[2025-03-31 00:00:05] Production.INFO: next invoice date [2025-03-31 00:00:05] Production.INFO: 2025-05-01 [2025-03-31 00:00:05] Production.INFO: getdaysdiff [2025-03-31 00:00:05] Production.INFO: +31 [2025-03-31 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (208,11,1,31,31,'RMScheduler',2025-03-31 00:00:05,0,0,,,0) [2025-03-31 00:00:05] Production.INFO: next invoice date [2025-03-31 00:00:05] Production.INFO: 2025-05-01 [2025-03-31 00:00:05] Production.INFO: getdaysdiff [2025-03-31 00:00:05] Production.INFO: +31 [2025-03-31 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (208,13,2,31,31,'RMScheduler',2025-03-31 00:00:05,0,0,,,0) [2025-03-31 00:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 21:00:07 [end_date_ymd] => 2025-03-31 00:00:07 [RateCDR] => 1 ) [2025-03-31 00: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-30 21:00:07' and `end` < '2025-03-31 00: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-31 00:00:19] Production.INFO: count ==1888 [2025-03-31 00:00:20] Production.ERROR: pbx CDR StartTime 2025-03-30 21:00:07 - End Time 2025-03-31 00:00:07 [2025-03-31 00:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799693', 'tblTempUsageDetail_20' ) start [2025-03-31 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799693', 'tblTempUsageDetail_20' ) end [2025-03-31 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799693', 'tblTempVendorCDR_20' ) start [2025-03-31 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799693', 'tblTempVendorCDR_20' ) end [2025-03-31 00:00:20] Production.INFO: ProcessCDR(1,14799693,1,1,2) [2025-03-31 00:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799693', 'tblTempUsageDetail_20' ) start [2025-03-31 00:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799693', 'tblTempUsageDetail_20' ) end [2025-03-31 00:00:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 00:00:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 00:00:25] Production.INFO: ==22251== Releasing lock... [2025-03-31 00:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 00:00:25] Production.INFO: 43.25 MB #Memory Used# [2025-03-31 00:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 21:01:06 [end_date_ymd] => 2025-03-31 00:01:06 [RateCDR] => 1 ) [2025-03-31 00:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 21:01:06' and `end` < '2025-03-31 00:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 00:01:19] Production.INFO: count ==1360 [2025-03-31 00:01:20] Production.ERROR: pbx CDR StartTime 2025-03-30 21:01:06 - End Time 2025-03-31 00:01:06 [2025-03-31 00:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 00:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799698', 'tblTempUsageDetail_20' ) start [2025-03-31 00:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799698', 'tblTempUsageDetail_20' ) end [2025-03-31 00:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799698', 'tblTempVendorCDR_20' ) start [2025-03-31 00:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799698', 'tblTempVendorCDR_20' ) end [2025-03-31 00:01:20] Production.INFO: ProcessCDR(1,14799698,1,1,2) [2025-03-31 00:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799698', 'tblTempUsageDetail_20' ) start [2025-03-31 00:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799698', 'tblTempUsageDetail_20' ) end [2025-03-31 00:01:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 00:01:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 00:01:26] Production.INFO: ==22345== Releasing lock... [2025-03-31 00:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 00:01:26] Production.INFO: 38.5 MB #Memory Used# [2025-03-31 00:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 21:02:06 [end_date_ymd] => 2025-03-31 00:02:06 [RateCDR] => 1 ) [2025-03-31 00: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-30 21:02:06' and `end` < '2025-03-31 00: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-31 00:02:19] Production.INFO: count ==1337 [2025-03-31 00:02:19] Production.ERROR: pbx CDR StartTime 2025-03-30 21:02:06 - End Time 2025-03-31 00:02:06 [2025-03-31 00:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 00:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799703', 'tblTempUsageDetail_20' ) start [2025-03-31 00:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799703', 'tblTempUsageDetail_20' ) end [2025-03-31 00:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799703', 'tblTempVendorCDR_20' ) start [2025-03-31 00:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799703', 'tblTempVendorCDR_20' ) end [2025-03-31 00:02:20] Production.INFO: ProcessCDR(1,14799703,1,1,2) [2025-03-31 00:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799703', 'tblTempUsageDetail_20' ) start [2025-03-31 00:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799703', 'tblTempUsageDetail_20' ) end [2025-03-31 00:02:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 00:02:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 00:02:24] Production.INFO: ==22419== Releasing lock... [2025-03-31 00:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 00:02:24] Production.INFO: 38.25 MB #Memory Used# [2025-03-31 00:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 21:03:06 [end_date_ymd] => 2025-03-31 00:03:06 [RateCDR] => 1 ) [2025-03-31 00: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-30 21:03:06' and `end` < '2025-03-31 00: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-31 00:03:19] Production.INFO: count ==1332 [2025-03-31 00:03:19] Production.ERROR: pbx CDR StartTime 2025-03-30 21:03:06 - End Time 2025-03-31 00:03:06 [2025-03-31 00:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 00:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799708', 'tblTempUsageDetail_20' ) start [2025-03-31 00:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799708', 'tblTempUsageDetail_20' ) end [2025-03-31 00:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799708', 'tblTempVendorCDR_20' ) start [2025-03-31 00:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799708', 'tblTempVendorCDR_20' ) end [2025-03-31 00:03:19] Production.INFO: ProcessCDR(1,14799708,1,1,2) [2025-03-31 00:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799708', 'tblTempUsageDetail_20' ) start [2025-03-31 00:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799708', 'tblTempUsageDetail_20' ) end [2025-03-31 00:03:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 00:03:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 00:03:24] Production.INFO: ==22496== Releasing lock... [2025-03-31 00:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 00:03:24] Production.INFO: 38 MB #Memory Used# [2025-03-31 00:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 21:04:06 [end_date_ymd] => 2025-03-31 00:04:06 [RateCDR] => 1 ) [2025-03-31 00: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-30 21:04:06' and `end` < '2025-03-31 00: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-31 00:04:31] Production.INFO: count ==1332 [2025-03-31 00:04:32] Production.ERROR: pbx CDR StartTime 2025-03-30 21:04:06 - End Time 2025-03-31 00:04:06 [2025-03-31 00:04:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 00:04:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799713', 'tblTempUsageDetail_20' ) start [2025-03-31 00:04:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799713', 'tblTempUsageDetail_20' ) end [2025-03-31 00:04:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799713', 'tblTempVendorCDR_20' ) start [2025-03-31 00:04:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799713', 'tblTempVendorCDR_20' ) end [2025-03-31 00:04:32] Production.INFO: ProcessCDR(1,14799713,1,1,2) [2025-03-31 00:04:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:04:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:04:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:04:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:04:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799713', 'tblTempUsageDetail_20' ) start [2025-03-31 00:04:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799713', 'tblTempUsageDetail_20' ) end [2025-03-31 00:04:35] Production.ERROR: pbx prc_insertCDR start [2025-03-31 00:04:35] Production.ERROR: pbx prc_insertCDR end [2025-03-31 00:04:35] Production.INFO: ==22577== Releasing lock... [2025-03-31 00:04:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 00:04:35] Production.INFO: 38 MB #Memory Used# [2025-03-31 00:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 21:05:04 [end_date_ymd] => 2025-03-31 00:05:04 [RateCDR] => 1 ) [2025-03-31 00: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-30 21:05:04' and `end` < '2025-03-31 00: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-31 00:05:25] Production.INFO: count ==1336 [2025-03-31 00:05:26] Production.ERROR: pbx CDR StartTime 2025-03-30 21:05:04 - End Time 2025-03-31 00:05:04 [2025-03-31 00:05:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 00:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799718', 'tblTempUsageDetail_20' ) start [2025-03-31 00:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799718', 'tblTempUsageDetail_20' ) end [2025-03-31 00:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799718', 'tblTempVendorCDR_20' ) start [2025-03-31 00:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799718', 'tblTempVendorCDR_20' ) end [2025-03-31 00:05:26] Production.INFO: ProcessCDR(1,14799718,1,1,2) [2025-03-31 00:05:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:05:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:05:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:05:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:05:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799718', 'tblTempUsageDetail_20' ) start [2025-03-31 00:05:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799718', 'tblTempUsageDetail_20' ) end [2025-03-31 00:05:29] Production.ERROR: pbx prc_insertCDR start [2025-03-31 00:05:29] Production.ERROR: pbx prc_insertCDR end [2025-03-31 00:05:29] Production.INFO: ==22689== Releasing lock... [2025-03-31 00:05:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 00:05:29] Production.INFO: 38.25 MB #Memory Used# [2025-03-31 00:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 21:06:05 [end_date_ymd] => 2025-03-31 00:06:05 [RateCDR] => 1 ) [2025-03-31 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-30 21:06:05' and `end` < '2025-03-31 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-31 00:06:27] Production.INFO: count ==1337 [2025-03-31 00:06:27] Production.ERROR: pbx CDR StartTime 2025-03-30 21:06:05 - End Time 2025-03-31 00:06:05 [2025-03-31 00:06:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 00:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799723', 'tblTempUsageDetail_20' ) start [2025-03-31 00:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799723', 'tblTempUsageDetail_20' ) end [2025-03-31 00:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799723', 'tblTempVendorCDR_20' ) start [2025-03-31 00:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799723', 'tblTempVendorCDR_20' ) end [2025-03-31 00:06:27] Production.INFO: ProcessCDR(1,14799723,1,1,2) [2025-03-31 00:06:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:06:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:06:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:06:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:06:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799723', 'tblTempUsageDetail_20' ) start [2025-03-31 00:06:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799723', 'tblTempUsageDetail_20' ) end [2025-03-31 00:06:31] Production.ERROR: pbx prc_insertCDR start [2025-03-31 00:06:31] Production.ERROR: pbx prc_insertCDR end [2025-03-31 00:06:31] Production.INFO: ==22772== Releasing lock... [2025-03-31 00:06:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 00:06:31] Production.INFO: 38.25 MB #Memory Used# [2025-03-31 00:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 21:07:06 [end_date_ymd] => 2025-03-31 00:07:06 [RateCDR] => 1 ) [2025-03-31 00:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 21:07:06' and `end` < '2025-03-31 00:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 00:07:26] Production.INFO: count ==1334 [2025-03-31 00:07:27] Production.ERROR: pbx CDR StartTime 2025-03-30 21:07:06 - End Time 2025-03-31 00:07:06 [2025-03-31 00:07:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 00:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799728', 'tblTempUsageDetail_20' ) start [2025-03-31 00:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799728', 'tblTempUsageDetail_20' ) end [2025-03-31 00:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799728', 'tblTempVendorCDR_20' ) start [2025-03-31 00:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799728', 'tblTempVendorCDR_20' ) end [2025-03-31 00:07:27] Production.INFO: ProcessCDR(1,14799728,1,1,2) [2025-03-31 00:07:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:07:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:07:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:07:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:07:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799728', 'tblTempUsageDetail_20' ) start [2025-03-31 00:07:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799728', 'tblTempUsageDetail_20' ) end [2025-03-31 00:07:30] Production.ERROR: pbx prc_insertCDR start [2025-03-31 00:07:30] Production.ERROR: pbx prc_insertCDR end [2025-03-31 00:07:30] Production.INFO: ==22844== Releasing lock... [2025-03-31 00:07:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 00:07:30] Production.INFO: 38 MB #Memory Used# [2025-03-31 00:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 21:08:05 [end_date_ymd] => 2025-03-31 00:08:05 [RateCDR] => 1 ) [2025-03-31 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-30 21:08:05' and `end` < '2025-03-31 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-31 00:08:18] Production.INFO: count ==1332 [2025-03-31 00:08:18] Production.ERROR: pbx CDR StartTime 2025-03-30 21:08:05 - End Time 2025-03-31 00:08:05 [2025-03-31 00:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799733', 'tblTempUsageDetail_20' ) start [2025-03-31 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799733', 'tblTempUsageDetail_20' ) end [2025-03-31 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799733', 'tblTempVendorCDR_20' ) start [2025-03-31 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799733', 'tblTempVendorCDR_20' ) end [2025-03-31 00:08:18] Production.INFO: ProcessCDR(1,14799733,1,1,2) [2025-03-31 00:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799733', 'tblTempUsageDetail_20' ) start [2025-03-31 00:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799733', 'tblTempUsageDetail_20' ) end [2025-03-31 00:08:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 00:08:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 00:08:22] Production.INFO: ==22920== Releasing lock... [2025-03-31 00:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 00:08:22] Production.INFO: 38 MB #Memory Used# [2025-03-31 00:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 21:09:06 [end_date_ymd] => 2025-03-31 00:09:06 [RateCDR] => 1 ) [2025-03-31 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-30 21:09:06' and `end` < '2025-03-31 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-31 00:09:18] Production.INFO: count ==1295 [2025-03-31 00:09:19] Production.ERROR: pbx CDR StartTime 2025-03-30 21:09:06 - End Time 2025-03-31 00:09:06 [2025-03-31 00:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 00:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799738', 'tblTempUsageDetail_20' ) start [2025-03-31 00:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799738', 'tblTempUsageDetail_20' ) end [2025-03-31 00:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799738', 'tblTempVendorCDR_20' ) start [2025-03-31 00:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799738', 'tblTempVendorCDR_20' ) end [2025-03-31 00:09:19] Production.INFO: ProcessCDR(1,14799738,1,1,2) [2025-03-31 00:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799738', 'tblTempUsageDetail_20' ) start [2025-03-31 00:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799738', 'tblTempUsageDetail_20' ) end [2025-03-31 00:09:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 00:09:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 00:09:23] Production.INFO: ==22994== Releasing lock... [2025-03-31 00:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 00:09:23] Production.INFO: 37.75 MB #Memory Used# [2025-03-31 00:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 21:10:06 [end_date_ymd] => 2025-03-31 00:10:06 [RateCDR] => 1 ) [2025-03-31 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-30 21:10:06' and `end` < '2025-03-31 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-31 00:10:18] Production.INFO: count ==1266 [2025-03-31 00:10:19] Production.ERROR: pbx CDR StartTime 2025-03-30 21:10:06 - End Time 2025-03-31 00:10:06 [2025-03-31 00:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799743', 'tblTempUsageDetail_20' ) start [2025-03-31 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799743', 'tblTempUsageDetail_20' ) end [2025-03-31 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799743', 'tblTempVendorCDR_20' ) start [2025-03-31 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799743', 'tblTempVendorCDR_20' ) end [2025-03-31 00:10:19] Production.INFO: ProcessCDR(1,14799743,1,1,2) [2025-03-31 00:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799743', 'tblTempUsageDetail_20' ) start [2025-03-31 00:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799743', 'tblTempUsageDetail_20' ) end [2025-03-31 00:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 00:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 00:10:22] Production.INFO: ==23070== Releasing lock... [2025-03-31 00:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 00:10:22] Production.INFO: 37.5 MB #Memory Used# [2025-03-31 00:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 21:11:06 [end_date_ymd] => 2025-03-31 00:11:06 [RateCDR] => 1 ) [2025-03-31 00: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-30 21:11:06' and `end` < '2025-03-31 00: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-31 00:11:18] Production.INFO: count ==1279 [2025-03-31 00:11:19] Production.ERROR: pbx CDR StartTime 2025-03-30 21:11:06 - End Time 2025-03-31 00:11:06 [2025-03-31 00:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 00:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799749', 'tblTempUsageDetail_20' ) start [2025-03-31 00:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799749', 'tblTempUsageDetail_20' ) end [2025-03-31 00:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799749', 'tblTempVendorCDR_20' ) start [2025-03-31 00:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799749', 'tblTempVendorCDR_20' ) end [2025-03-31 00:11:19] Production.INFO: ProcessCDR(1,14799749,1,1,2) [2025-03-31 00:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799749', 'tblTempUsageDetail_20' ) start [2025-03-31 00:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799749', 'tblTempUsageDetail_20' ) end [2025-03-31 00:11:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 00:11:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 00:11:24] Production.INFO: ==23145== Releasing lock... [2025-03-31 00:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 00:11:24] Production.INFO: 38 MB #Memory Used# [2025-03-31 00:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 21:12:05 [end_date_ymd] => 2025-03-31 00:12:05 [RateCDR] => 1 ) [2025-03-31 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-30 21:12:05' and `end` < '2025-03-31 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-31 00:12:17] Production.INFO: count ==1279 [2025-03-31 00:12:18] Production.ERROR: pbx CDR StartTime 2025-03-30 21:12:05 - End Time 2025-03-31 00:12:05 [2025-03-31 00:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799754', 'tblTempUsageDetail_20' ) start [2025-03-31 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799754', 'tblTempUsageDetail_20' ) end [2025-03-31 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799754', 'tblTempVendorCDR_20' ) start [2025-03-31 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799754', 'tblTempVendorCDR_20' ) end [2025-03-31 00:12:18] Production.INFO: ProcessCDR(1,14799754,1,1,2) [2025-03-31 00:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799754', 'tblTempUsageDetail_20' ) start [2025-03-31 00:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799754', 'tblTempUsageDetail_20' ) end [2025-03-31 00:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 00:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 00:12:22] Production.INFO: ==23221== Releasing lock... [2025-03-31 00:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 00:12:22] Production.INFO: 38 MB #Memory Used# [2025-03-31 00:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 21:13:05 [end_date_ymd] => 2025-03-31 00:13:05 [RateCDR] => 1 ) [2025-03-31 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-30 21:13:05' and `end` < '2025-03-31 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-31 00:13:18] Production.INFO: count ==1283 [2025-03-31 00:13:19] Production.ERROR: pbx CDR StartTime 2025-03-30 21:13:05 - End Time 2025-03-31 00:13:05 [2025-03-31 00:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 00:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799759', 'tblTempUsageDetail_20' ) start [2025-03-31 00:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799759', 'tblTempUsageDetail_20' ) end [2025-03-31 00:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799759', 'tblTempVendorCDR_20' ) start [2025-03-31 00:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799759', 'tblTempVendorCDR_20' ) end [2025-03-31 00:13:19] Production.INFO: ProcessCDR(1,14799759,1,1,2) [2025-03-31 00:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799759', 'tblTempUsageDetail_20' ) start [2025-03-31 00:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799759', 'tblTempUsageDetail_20' ) end [2025-03-31 00:13:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 00:13:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 00:13:23] Production.INFO: ==23299== Releasing lock... [2025-03-31 00:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 00:13:23] Production.INFO: 37.75 MB #Memory Used# [2025-03-31 00:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 21:14:06 [end_date_ymd] => 2025-03-31 00:14:06 [RateCDR] => 1 ) [2025-03-31 00: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-30 21:14:06' and `end` < '2025-03-31 00: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-31 00:14:18] Production.INFO: count ==1280 [2025-03-31 00:14:19] Production.ERROR: pbx CDR StartTime 2025-03-30 21:14:06 - End Time 2025-03-31 00:14:06 [2025-03-31 00:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 00:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799764', 'tblTempUsageDetail_20' ) start [2025-03-31 00:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799764', 'tblTempUsageDetail_20' ) end [2025-03-31 00:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799764', 'tblTempVendorCDR_20' ) start [2025-03-31 00:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799764', 'tblTempVendorCDR_20' ) end [2025-03-31 00:14:19] Production.INFO: ProcessCDR(1,14799764,1,1,2) [2025-03-31 00:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799764', 'tblTempUsageDetail_20' ) start [2025-03-31 00:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799764', 'tblTempUsageDetail_20' ) end [2025-03-31 00:14:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 00:14:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 00:14:23] Production.INFO: ==23377== Releasing lock... [2025-03-31 00:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 00:14:23] Production.INFO: 38 MB #Memory Used# [2025-03-31 00:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 21:15:05 [end_date_ymd] => 2025-03-31 00:15:05 [RateCDR] => 1 ) [2025-03-31 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-30 21:15:05' and `end` < '2025-03-31 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-31 00:15:18] Production.INFO: count ==1280 [2025-03-31 00:15:18] Production.ERROR: pbx CDR StartTime 2025-03-30 21:15:05 - End Time 2025-03-31 00:15:05 [2025-03-31 00:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799769', 'tblTempUsageDetail_20' ) start [2025-03-31 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799769', 'tblTempUsageDetail_20' ) end [2025-03-31 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799769', 'tblTempVendorCDR_20' ) start [2025-03-31 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799769', 'tblTempVendorCDR_20' ) end [2025-03-31 00:15:18] Production.INFO: ProcessCDR(1,14799769,1,1,2) [2025-03-31 00:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799769', 'tblTempUsageDetail_20' ) start [2025-03-31 00:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799769', 'tblTempUsageDetail_20' ) end [2025-03-31 00:15:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 00:15:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 00:15:23] Production.INFO: ==23453== Releasing lock... [2025-03-31 00:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 00:15:23] Production.INFO: 38.25 MB #Memory Used# [2025-03-31 00:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 21:16:06 [end_date_ymd] => 2025-03-31 00:16:06 [RateCDR] => 1 ) [2025-03-31 00: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-30 21:16:06' and `end` < '2025-03-31 00: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-31 00:16:19] Production.INFO: count ==1279 [2025-03-31 00:16:20] Production.ERROR: pbx CDR StartTime 2025-03-30 21:16:06 - End Time 2025-03-31 00:16:06 [2025-03-31 00:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 00:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799774', 'tblTempUsageDetail_20' ) start [2025-03-31 00:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799774', 'tblTempUsageDetail_20' ) end [2025-03-31 00:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799774', 'tblTempVendorCDR_20' ) start [2025-03-31 00:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799774', 'tblTempVendorCDR_20' ) end [2025-03-31 00:16:20] Production.INFO: ProcessCDR(1,14799774,1,1,2) [2025-03-31 00:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799774', 'tblTempUsageDetail_20' ) start [2025-03-31 00:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799774', 'tblTempUsageDetail_20' ) end [2025-03-31 00:16:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 00:16:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 00:16:23] Production.INFO: ==23531== Releasing lock... [2025-03-31 00:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 00:16:23] Production.INFO: 37.75 MB #Memory Used# [2025-03-31 00:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 21:17:05 [end_date_ymd] => 2025-03-31 00:17:05 [RateCDR] => 1 ) [2025-03-31 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-30 21:17:05' and `end` < '2025-03-31 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-31 00:17:18] Production.INFO: count ==1264 [2025-03-31 00:17:19] Production.ERROR: pbx CDR StartTime 2025-03-30 21:17:05 - End Time 2025-03-31 00:17:05 [2025-03-31 00:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 00:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799779', 'tblTempUsageDetail_20' ) start [2025-03-31 00:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799779', 'tblTempUsageDetail_20' ) end [2025-03-31 00:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799779', 'tblTempVendorCDR_20' ) start [2025-03-31 00:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799779', 'tblTempVendorCDR_20' ) end [2025-03-31 00:17:19] Production.INFO: ProcessCDR(1,14799779,1,1,2) [2025-03-31 00:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799779', 'tblTempUsageDetail_20' ) start [2025-03-31 00:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799779', 'tblTempUsageDetail_20' ) end [2025-03-31 00:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 00:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 00:17:22] Production.INFO: ==23605== Releasing lock... [2025-03-31 00:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 00:17:22] Production.INFO: 37.75 MB #Memory Used# [2025-03-31 00:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 21:18:05 [end_date_ymd] => 2025-03-31 00:18:05 [RateCDR] => 1 ) [2025-03-31 00:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 21:18:05' and `end` < '2025-03-31 00:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 00:18:18] Production.INFO: count ==1272 [2025-03-31 00:18:18] Production.ERROR: pbx CDR StartTime 2025-03-30 21:18:05 - End Time 2025-03-31 00:18:05 [2025-03-31 00:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799784', 'tblTempUsageDetail_20' ) start [2025-03-31 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799784', 'tblTempUsageDetail_20' ) end [2025-03-31 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799784', 'tblTempVendorCDR_20' ) start [2025-03-31 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799784', 'tblTempVendorCDR_20' ) end [2025-03-31 00:18:18] Production.INFO: ProcessCDR(1,14799784,1,1,2) [2025-03-31 00:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799784', 'tblTempUsageDetail_20' ) start [2025-03-31 00:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799784', 'tblTempUsageDetail_20' ) end [2025-03-31 00:18:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 00:18:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 00:18:22] Production.INFO: ==23682== Releasing lock... [2025-03-31 00:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 00:18:22] Production.INFO: 37.75 MB #Memory Used# [2025-03-31 00:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 21:19:05 [end_date_ymd] => 2025-03-31 00:19:05 [RateCDR] => 1 ) [2025-03-31 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-30 21:19:05' and `end` < '2025-03-31 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-31 00:19:18] Production.INFO: count ==1265 [2025-03-31 00:19:18] Production.ERROR: pbx CDR StartTime 2025-03-30 21:19:05 - End Time 2025-03-31 00:19:05 [2025-03-31 00:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799789', 'tblTempUsageDetail_20' ) start [2025-03-31 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799789', 'tblTempUsageDetail_20' ) end [2025-03-31 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799789', 'tblTempVendorCDR_20' ) start [2025-03-31 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799789', 'tblTempVendorCDR_20' ) end [2025-03-31 00:19:18] Production.INFO: ProcessCDR(1,14799789,1,1,2) [2025-03-31 00:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799789', 'tblTempUsageDetail_20' ) start [2025-03-31 00:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799789', 'tblTempUsageDetail_20' ) end [2025-03-31 00:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 00:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 00:19:22] Production.INFO: ==23755== Releasing lock... [2025-03-31 00:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 00:19:22] Production.INFO: 37.5 MB #Memory Used# [2025-03-31 00:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 21:20:06 [end_date_ymd] => 2025-03-31 00:20:06 [RateCDR] => 1 ) [2025-03-31 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-30 21:20:06' and `end` < '2025-03-31 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-31 00:20:19] Production.INFO: count ==1273 [2025-03-31 00:20:19] Production.ERROR: pbx CDR StartTime 2025-03-30 21:20:06 - End Time 2025-03-31 00:20:06 [2025-03-31 00:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799795', 'tblTempUsageDetail_20' ) start [2025-03-31 00:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799795', 'tblTempUsageDetail_20' ) end [2025-03-31 00:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799795', 'tblTempVendorCDR_20' ) start [2025-03-31 00:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799795', 'tblTempVendorCDR_20' ) end [2025-03-31 00:20:20] Production.INFO: ProcessCDR(1,14799795,1,1,2) [2025-03-31 00:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799795', 'tblTempUsageDetail_20' ) start [2025-03-31 00:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799795', 'tblTempUsageDetail_20' ) end [2025-03-31 00:20:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 00:20:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 00:20:23] Production.INFO: ==23834== Releasing lock... [2025-03-31 00:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 00:20:23] Production.INFO: 38 MB #Memory Used# [2025-03-31 00:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 21:21:06 [end_date_ymd] => 2025-03-31 00:21:06 [RateCDR] => 1 ) [2025-03-31 00: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-30 21:21:06' and `end` < '2025-03-31 00: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-31 00:21:18] Production.INFO: count ==1290 [2025-03-31 00:21:19] Production.ERROR: pbx CDR StartTime 2025-03-30 21:21:06 - End Time 2025-03-31 00:21:06 [2025-03-31 00:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 00:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799800', 'tblTempUsageDetail_20' ) start [2025-03-31 00:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799800', 'tblTempUsageDetail_20' ) end [2025-03-31 00:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799800', 'tblTempVendorCDR_20' ) start [2025-03-31 00:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799800', 'tblTempVendorCDR_20' ) end [2025-03-31 00:21:19] Production.INFO: ProcessCDR(1,14799800,1,1,2) [2025-03-31 00:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799800', 'tblTempUsageDetail_20' ) start [2025-03-31 00:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799800', 'tblTempUsageDetail_20' ) end [2025-03-31 00:21:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 00:21:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 00:21:24] Production.INFO: ==23945== Releasing lock... [2025-03-31 00:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 00:21:24] Production.INFO: 37.5 MB #Memory Used# [2025-03-31 00:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 21:22:06 [end_date_ymd] => 2025-03-31 00:22:06 [RateCDR] => 1 ) [2025-03-31 00:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 21:22:06' and `end` < '2025-03-31 00:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 00:22:18] Production.INFO: count ==1290 [2025-03-31 00:22:19] Production.ERROR: pbx CDR StartTime 2025-03-30 21:22:06 - End Time 2025-03-31 00:22:06 [2025-03-31 00:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 00:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799805', 'tblTempUsageDetail_20' ) start [2025-03-31 00:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799805', 'tblTempUsageDetail_20' ) end [2025-03-31 00:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799805', 'tblTempVendorCDR_20' ) start [2025-03-31 00:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799805', 'tblTempVendorCDR_20' ) end [2025-03-31 00:22:19] Production.INFO: ProcessCDR(1,14799805,1,1,2) [2025-03-31 00:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799805', 'tblTempUsageDetail_20' ) start [2025-03-31 00:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799805', 'tblTempUsageDetail_20' ) end [2025-03-31 00:22:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 00:22:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 00:22:24] Production.INFO: ==24016== Releasing lock... [2025-03-31 00:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 00:22:24] Production.INFO: 37.75 MB #Memory Used# [2025-03-31 00:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 21:23:05 [end_date_ymd] => 2025-03-31 00:23:05 [RateCDR] => 1 ) [2025-03-31 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-30 21:23:05' and `end` < '2025-03-31 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-31 00:23:18] Production.INFO: count ==1310 [2025-03-31 00:23:18] Production.ERROR: pbx CDR StartTime 2025-03-30 21:23:05 - End Time 2025-03-31 00:23:05 [2025-03-31 00:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799810', 'tblTempUsageDetail_20' ) start [2025-03-31 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799810', 'tblTempUsageDetail_20' ) end [2025-03-31 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799810', 'tblTempVendorCDR_20' ) start [2025-03-31 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799810', 'tblTempVendorCDR_20' ) end [2025-03-31 00:23:18] Production.INFO: ProcessCDR(1,14799810,1,1,2) [2025-03-31 00:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799810', 'tblTempUsageDetail_20' ) start [2025-03-31 00:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799810', 'tblTempUsageDetail_20' ) end [2025-03-31 00:23:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 00:23:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 00:23:22] Production.INFO: ==24091== Releasing lock... [2025-03-31 00:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 00:23:22] Production.INFO: 38 MB #Memory Used# [2025-03-31 00:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 21:24:05 [end_date_ymd] => 2025-03-31 00:24:05 [RateCDR] => 1 ) [2025-03-31 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-30 21:24:05' and `end` < '2025-03-31 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-31 00:24:18] Production.INFO: count ==1308 [2025-03-31 00:24:19] Production.ERROR: pbx CDR StartTime 2025-03-30 21:24:05 - End Time 2025-03-31 00:24:05 [2025-03-31 00:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 00:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799815', 'tblTempUsageDetail_20' ) start [2025-03-31 00:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799815', 'tblTempUsageDetail_20' ) end [2025-03-31 00:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799815', 'tblTempVendorCDR_20' ) start [2025-03-31 00:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799815', 'tblTempVendorCDR_20' ) end [2025-03-31 00:24:19] Production.INFO: ProcessCDR(1,14799815,1,1,2) [2025-03-31 00:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799815', 'tblTempUsageDetail_20' ) start [2025-03-31 00:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799815', 'tblTempUsageDetail_20' ) end [2025-03-31 00:24:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 00:24:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 00:24:22] Production.INFO: ==24162== Releasing lock... [2025-03-31 00:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 00:24:22] Production.INFO: 37.75 MB #Memory Used# [2025-03-31 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 21:25:05 [end_date_ymd] => 2025-03-31 00:25:05 [RateCDR] => 1 ) [2025-03-31 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-30 21:25:05' and `end` < '2025-03-31 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-31 00:25:18] Production.INFO: count ==1303 [2025-03-31 00:25:18] Production.ERROR: pbx CDR StartTime 2025-03-30 21:25:05 - End Time 2025-03-31 00:25:05 [2025-03-31 00:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799820', 'tblTempUsageDetail_20' ) start [2025-03-31 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799820', 'tblTempUsageDetail_20' ) end [2025-03-31 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799820', 'tblTempVendorCDR_20' ) start [2025-03-31 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799820', 'tblTempVendorCDR_20' ) end [2025-03-31 00:25:18] Production.INFO: ProcessCDR(1,14799820,1,1,2) [2025-03-31 00:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799820', 'tblTempUsageDetail_20' ) start [2025-03-31 00:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799820', 'tblTempUsageDetail_20' ) end [2025-03-31 00:25:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 00:25:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 00:25:22] Production.INFO: ==24234== Releasing lock... [2025-03-31 00:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 00:25:22] Production.INFO: 37.75 MB #Memory Used# [2025-03-31 00:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 21:26:05 [end_date_ymd] => 2025-03-31 00:26:05 [RateCDR] => 1 ) [2025-03-31 00:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 21:26:05' and `end` < '2025-03-31 00:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 00:26:18] Production.INFO: count ==1311 [2025-03-31 00:26:19] Production.ERROR: pbx CDR StartTime 2025-03-30 21:26:05 - End Time 2025-03-31 00:26:05 [2025-03-31 00:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 00:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799825', 'tblTempUsageDetail_20' ) start [2025-03-31 00:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799825', 'tblTempUsageDetail_20' ) end [2025-03-31 00:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799825', 'tblTempVendorCDR_20' ) start [2025-03-31 00:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799825', 'tblTempVendorCDR_20' ) end [2025-03-31 00:26:19] Production.INFO: ProcessCDR(1,14799825,1,1,2) [2025-03-31 00:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799825', 'tblTempUsageDetail_20' ) start [2025-03-31 00:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799825', 'tblTempUsageDetail_20' ) end [2025-03-31 00:26:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 00:26:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 00:26:22] Production.INFO: ==24308== Releasing lock... [2025-03-31 00:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 00:26:22] Production.INFO: 38 MB #Memory Used# [2025-03-31 00:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 21:27:05 [end_date_ymd] => 2025-03-31 00:27:05 [RateCDR] => 1 ) [2025-03-31 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-30 21:27:05' and `end` < '2025-03-31 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-31 00:27:18] Production.INFO: count ==1308 [2025-03-31 00:27:18] Production.ERROR: pbx CDR StartTime 2025-03-30 21:27:05 - End Time 2025-03-31 00:27:05 [2025-03-31 00:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799830', 'tblTempUsageDetail_20' ) start [2025-03-31 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799830', 'tblTempUsageDetail_20' ) end [2025-03-31 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799830', 'tblTempVendorCDR_20' ) start [2025-03-31 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799830', 'tblTempVendorCDR_20' ) end [2025-03-31 00:27:18] Production.INFO: ProcessCDR(1,14799830,1,1,2) [2025-03-31 00:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799830', 'tblTempUsageDetail_20' ) start [2025-03-31 00:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799830', 'tblTempUsageDetail_20' ) end [2025-03-31 00:27:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 00:27:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 00:27:23] Production.INFO: ==24384== Releasing lock... [2025-03-31 00:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 00:27:23] Production.INFO: 37.75 MB #Memory Used# [2025-03-31 00:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 21:28:05 [end_date_ymd] => 2025-03-31 00:28:05 [RateCDR] => 1 ) [2025-03-31 00:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 21:28:05' and `end` < '2025-03-31 00:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 00:28:18] Production.INFO: count ==1313 [2025-03-31 00:28:18] Production.ERROR: pbx CDR StartTime 2025-03-30 21:28:05 - End Time 2025-03-31 00:28:05 [2025-03-31 00:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799835', 'tblTempUsageDetail_20' ) start [2025-03-31 00:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799835', 'tblTempUsageDetail_20' ) end [2025-03-31 00:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799835', 'tblTempVendorCDR_20' ) start [2025-03-31 00:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799835', 'tblTempVendorCDR_20' ) end [2025-03-31 00:28:19] Production.INFO: ProcessCDR(1,14799835,1,1,2) [2025-03-31 00:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799835', 'tblTempUsageDetail_20' ) start [2025-03-31 00:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799835', 'tblTempUsageDetail_20' ) end [2025-03-31 00:28:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 00:28:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 00:28:22] Production.INFO: ==24456== Releasing lock... [2025-03-31 00:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 00:28:22] Production.INFO: 38 MB #Memory Used# [2025-03-31 00:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 21:29:05 [end_date_ymd] => 2025-03-31 00:29:05 [RateCDR] => 1 ) [2025-03-31 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-30 21:29:05' and `end` < '2025-03-31 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-31 00:29:18] Production.INFO: count ==1296 [2025-03-31 00:29:18] Production.ERROR: pbx CDR StartTime 2025-03-30 21:29:05 - End Time 2025-03-31 00:29:05 [2025-03-31 00:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799840', 'tblTempUsageDetail_20' ) start [2025-03-31 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799840', 'tblTempUsageDetail_20' ) end [2025-03-31 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799840', 'tblTempVendorCDR_20' ) start [2025-03-31 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799840', 'tblTempVendorCDR_20' ) end [2025-03-31 00:29:18] Production.INFO: ProcessCDR(1,14799840,1,1,2) [2025-03-31 00:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799840', 'tblTempUsageDetail_20' ) start [2025-03-31 00:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799840', 'tblTempUsageDetail_20' ) end [2025-03-31 00:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 00:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 00:29:21] Production.INFO: ==24529== Releasing lock... [2025-03-31 00:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 00:29:21] Production.INFO: 37.75 MB #Memory Used# [2025-03-31 00:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 21:30:06 [end_date_ymd] => 2025-03-31 00:30:06 [RateCDR] => 1 ) [2025-03-31 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-30 21:30:06' and `end` < '2025-03-31 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-31 00:30:19] Production.INFO: count ==1268 [2025-03-31 00:30:19] Production.ERROR: pbx CDR StartTime 2025-03-30 21:30:06 - End Time 2025-03-31 00:30:06 [2025-03-31 00:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799846', 'tblTempUsageDetail_20' ) start [2025-03-31 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799846', 'tblTempUsageDetail_20' ) end [2025-03-31 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799846', 'tblTempVendorCDR_20' ) start [2025-03-31 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799846', 'tblTempVendorCDR_20' ) end [2025-03-31 00:30:19] Production.INFO: ProcessCDR(1,14799846,1,1,2) [2025-03-31 00:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799846', 'tblTempUsageDetail_20' ) start [2025-03-31 00:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799846', 'tblTempUsageDetail_20' ) end [2025-03-31 00:30:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 00:30:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 00:30:23] Production.INFO: ==24607== Releasing lock... [2025-03-31 00:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 00:30:23] Production.INFO: 38 MB #Memory Used# [2025-03-31 00:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 21:31:06 [end_date_ymd] => 2025-03-31 00:31:06 [RateCDR] => 1 ) [2025-03-31 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-30 21:31:06' and `end` < '2025-03-31 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-31 00:31:18] Production.INFO: count ==1261 [2025-03-31 00:31:19] Production.ERROR: pbx CDR StartTime 2025-03-30 21:31:06 - End Time 2025-03-31 00:31:06 [2025-03-31 00:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 00:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799851', 'tblTempUsageDetail_20' ) start [2025-03-31 00:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799851', 'tblTempUsageDetail_20' ) end [2025-03-31 00:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799851', 'tblTempVendorCDR_20' ) start [2025-03-31 00:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799851', 'tblTempVendorCDR_20' ) end [2025-03-31 00:31:19] Production.INFO: ProcessCDR(1,14799851,1,1,2) [2025-03-31 00:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799851', 'tblTempUsageDetail_20' ) start [2025-03-31 00:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799851', 'tblTempUsageDetail_20' ) end [2025-03-31 00:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 00:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 00:31:22] Production.INFO: ==24684== Releasing lock... [2025-03-31 00:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 00:31:22] Production.INFO: 37.5 MB #Memory Used# [2025-03-31 00:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 21:32:05 [end_date_ymd] => 2025-03-31 00:32:05 [RateCDR] => 1 ) [2025-03-31 00:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 21:32:05' and `end` < '2025-03-31 00:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 00:32:18] Production.INFO: count ==1235 [2025-03-31 00:32:18] Production.ERROR: pbx CDR StartTime 2025-03-30 21:32:05 - End Time 2025-03-31 00:32:05 [2025-03-31 00:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799856', 'tblTempUsageDetail_20' ) start [2025-03-31 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799856', 'tblTempUsageDetail_20' ) end [2025-03-31 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799856', 'tblTempVendorCDR_20' ) start [2025-03-31 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799856', 'tblTempVendorCDR_20' ) end [2025-03-31 00:32:18] Production.INFO: ProcessCDR(1,14799856,1,1,2) [2025-03-31 00:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799856', 'tblTempUsageDetail_20' ) start [2025-03-31 00:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799856', 'tblTempUsageDetail_20' ) end [2025-03-31 00:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 00:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 00:32:22] Production.INFO: ==24755== Releasing lock... [2025-03-31 00:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 00:32:22] Production.INFO: 37.25 MB #Memory Used# [2025-03-31 00:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 21:33:05 [end_date_ymd] => 2025-03-31 00:33:05 [RateCDR] => 1 ) [2025-03-31 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-30 21:33:05' and `end` < '2025-03-31 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-31 00:33:18] Production.INFO: count ==1224 [2025-03-31 00:33:19] Production.ERROR: pbx CDR StartTime 2025-03-30 21:33:05 - End Time 2025-03-31 00:33:05 [2025-03-31 00:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 00:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799861', 'tblTempUsageDetail_20' ) start [2025-03-31 00:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799861', 'tblTempUsageDetail_20' ) end [2025-03-31 00:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799861', 'tblTempVendorCDR_20' ) start [2025-03-31 00:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799861', 'tblTempVendorCDR_20' ) end [2025-03-31 00:33:19] Production.INFO: ProcessCDR(1,14799861,1,1,2) [2025-03-31 00:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799861', 'tblTempUsageDetail_20' ) start [2025-03-31 00:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799861', 'tblTempUsageDetail_20' ) end [2025-03-31 00:33:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 00:33:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 00:33:22] Production.INFO: ==24826== Releasing lock... [2025-03-31 00:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 00:33:22] Production.INFO: 37.25 MB #Memory Used# [2025-03-31 00:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 21:34:05 [end_date_ymd] => 2025-03-31 00:34:05 [RateCDR] => 1 ) [2025-03-31 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-30 21:34:05' and `end` < '2025-03-31 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-31 00:34:18] Production.INFO: count ==1225 [2025-03-31 00:34:18] Production.ERROR: pbx CDR StartTime 2025-03-30 21:34:05 - End Time 2025-03-31 00:34:05 [2025-03-31 00:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799866', 'tblTempUsageDetail_20' ) start [2025-03-31 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799866', 'tblTempUsageDetail_20' ) end [2025-03-31 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799866', 'tblTempVendorCDR_20' ) start [2025-03-31 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799866', 'tblTempVendorCDR_20' ) end [2025-03-31 00:34:18] Production.INFO: ProcessCDR(1,14799866,1,1,2) [2025-03-31 00:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799866', 'tblTempUsageDetail_20' ) start [2025-03-31 00:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799866', 'tblTempUsageDetail_20' ) end [2025-03-31 00:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 00:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 00:34:22] Production.INFO: ==24901== Releasing lock... [2025-03-31 00:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 00:34:22] Production.INFO: 37.25 MB #Memory Used# [2025-03-31 00:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 21:35:05 [end_date_ymd] => 2025-03-31 00:35:05 [RateCDR] => 1 ) [2025-03-31 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-30 21:35:05' and `end` < '2025-03-31 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-31 00:35:18] Production.INFO: count ==1214 [2025-03-31 00:35:18] Production.ERROR: pbx CDR StartTime 2025-03-30 21:35:05 - End Time 2025-03-31 00:35:05 [2025-03-31 00:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799871', 'tblTempUsageDetail_20' ) start [2025-03-31 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799871', 'tblTempUsageDetail_20' ) end [2025-03-31 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799871', 'tblTempVendorCDR_20' ) start [2025-03-31 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799871', 'tblTempVendorCDR_20' ) end [2025-03-31 00:35:18] Production.INFO: ProcessCDR(1,14799871,1,1,2) [2025-03-31 00:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799871', 'tblTempUsageDetail_20' ) start [2025-03-31 00:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799871', 'tblTempUsageDetail_20' ) end [2025-03-31 00:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 00:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 00:35:22] Production.INFO: ==24974== Releasing lock... [2025-03-31 00:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 00:35:22] Production.INFO: 37.25 MB #Memory Used# [2025-03-31 00:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 21:36:05 [end_date_ymd] => 2025-03-31 00:36:05 [RateCDR] => 1 ) [2025-03-31 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-30 21:36:05' and `end` < '2025-03-31 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-31 00:36:17] Production.INFO: count ==1205 [2025-03-31 00:36:18] Production.ERROR: pbx CDR StartTime 2025-03-30 21:36:05 - End Time 2025-03-31 00:36:05 [2025-03-31 00:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799876', 'tblTempUsageDetail_20' ) start [2025-03-31 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799876', 'tblTempUsageDetail_20' ) end [2025-03-31 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799876', 'tblTempVendorCDR_20' ) start [2025-03-31 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799876', 'tblTempVendorCDR_20' ) end [2025-03-31 00:36:18] Production.INFO: ProcessCDR(1,14799876,1,1,2) [2025-03-31 00:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799876', 'tblTempUsageDetail_20' ) start [2025-03-31 00:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799876', 'tblTempUsageDetail_20' ) end [2025-03-31 00:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 00:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 00:36:21] Production.INFO: ==25091== Releasing lock... [2025-03-31 00:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 00:36:21] Production.INFO: 37.5 MB #Memory Used# [2025-03-31 00:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 21:37:06 [end_date_ymd] => 2025-03-31 00:37:06 [RateCDR] => 1 ) [2025-03-31 00:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 21:37:06' and `end` < '2025-03-31 00:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 00:37:18] Production.INFO: count ==1196 [2025-03-31 00:37:19] Production.ERROR: pbx CDR StartTime 2025-03-30 21:37:06 - End Time 2025-03-31 00:37:06 [2025-03-31 00:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 00:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799881', 'tblTempUsageDetail_20' ) start [2025-03-31 00:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799881', 'tblTempUsageDetail_20' ) end [2025-03-31 00:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799881', 'tblTempVendorCDR_20' ) start [2025-03-31 00:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799881', 'tblTempVendorCDR_20' ) end [2025-03-31 00:37:19] Production.INFO: ProcessCDR(1,14799881,1,1,2) [2025-03-31 00:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799881', 'tblTempUsageDetail_20' ) start [2025-03-31 00:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799881', 'tblTempUsageDetail_20' ) end [2025-03-31 00:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 00:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 00:37:22] Production.INFO: ==25163== Releasing lock... [2025-03-31 00:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 00:37:22] Production.INFO: 37 MB #Memory Used# [2025-03-31 00:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 21:38:06 [end_date_ymd] => 2025-03-31 00:38:06 [RateCDR] => 1 ) [2025-03-31 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-30 21:38:06' and `end` < '2025-03-31 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-31 00:38:18] Production.INFO: count ==1182 [2025-03-31 00:38:19] Production.ERROR: pbx CDR StartTime 2025-03-30 21:38:06 - End Time 2025-03-31 00:38:06 [2025-03-31 00:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 00:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799886', 'tblTempUsageDetail_20' ) start [2025-03-31 00:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799886', 'tblTempUsageDetail_20' ) end [2025-03-31 00:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799886', 'tblTempVendorCDR_20' ) start [2025-03-31 00:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799886', 'tblTempVendorCDR_20' ) end [2025-03-31 00:38:19] Production.INFO: ProcessCDR(1,14799886,1,1,2) [2025-03-31 00:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799886', 'tblTempUsageDetail_20' ) start [2025-03-31 00:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799886', 'tblTempUsageDetail_20' ) end [2025-03-31 00:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 00:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 00:38:22] Production.INFO: ==25236== Releasing lock... [2025-03-31 00:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 00:38:22] Production.INFO: 37.5 MB #Memory Used# [2025-03-31 00:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 21:39:05 [end_date_ymd] => 2025-03-31 00:39:05 [RateCDR] => 1 ) [2025-03-31 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-30 21:39:05' and `end` < '2025-03-31 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-31 00:39:18] Production.INFO: count ==1180 [2025-03-31 00:39:18] Production.ERROR: pbx CDR StartTime 2025-03-30 21:39:05 - End Time 2025-03-31 00:39:05 [2025-03-31 00:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799891', 'tblTempUsageDetail_20' ) start [2025-03-31 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799891', 'tblTempUsageDetail_20' ) end [2025-03-31 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799891', 'tblTempVendorCDR_20' ) start [2025-03-31 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799891', 'tblTempVendorCDR_20' ) end [2025-03-31 00:39:18] Production.INFO: ProcessCDR(1,14799891,1,1,2) [2025-03-31 00:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799891', 'tblTempUsageDetail_20' ) start [2025-03-31 00:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799891', 'tblTempUsageDetail_20' ) end [2025-03-31 00:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 00:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 00:39:21] Production.INFO: ==25310== Releasing lock... [2025-03-31 00:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 00:39:21] Production.INFO: 37.5 MB #Memory Used# [2025-03-31 00:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 21:40:06 [end_date_ymd] => 2025-03-31 00:40:06 [RateCDR] => 1 ) [2025-03-31 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-30 21:40:06' and `end` < '2025-03-31 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-31 00:40:19] Production.INFO: count ==1177 [2025-03-31 00:40:19] Production.ERROR: pbx CDR StartTime 2025-03-30 21:40:06 - End Time 2025-03-31 00:40:06 [2025-03-31 00:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799897', 'tblTempUsageDetail_20' ) start [2025-03-31 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799897', 'tblTempUsageDetail_20' ) end [2025-03-31 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799897', 'tblTempVendorCDR_20' ) start [2025-03-31 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799897', 'tblTempVendorCDR_20' ) end [2025-03-31 00:40:19] Production.INFO: ProcessCDR(1,14799897,1,1,2) [2025-03-31 00:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799897', 'tblTempUsageDetail_20' ) start [2025-03-31 00:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799897', 'tblTempUsageDetail_20' ) end [2025-03-31 00:40:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 00:40:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 00:40:24] Production.INFO: ==25383== Releasing lock... [2025-03-31 00:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 00:40:24] Production.INFO: 37.75 MB #Memory Used# [2025-03-31 00:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 21:41:05 [end_date_ymd] => 2025-03-31 00:41:05 [RateCDR] => 1 ) [2025-03-31 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-30 21:41:05' and `end` < '2025-03-31 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-31 00:41:18] Production.INFO: count ==1188 [2025-03-31 00:41:18] Production.ERROR: pbx CDR StartTime 2025-03-30 21:41:05 - End Time 2025-03-31 00:41:05 [2025-03-31 00:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799902', 'tblTempUsageDetail_20' ) start [2025-03-31 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799902', 'tblTempUsageDetail_20' ) end [2025-03-31 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799902', 'tblTempVendorCDR_20' ) start [2025-03-31 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799902', 'tblTempVendorCDR_20' ) end [2025-03-31 00:41:18] Production.INFO: ProcessCDR(1,14799902,1,1,2) [2025-03-31 00:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799902', 'tblTempUsageDetail_20' ) start [2025-03-31 00:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799902', 'tblTempUsageDetail_20' ) end [2025-03-31 00:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 00:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 00:41:22] Production.INFO: ==25460== Releasing lock... [2025-03-31 00:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 00:41:22] Production.INFO: 37.5 MB #Memory Used# [2025-03-31 00:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 21:42:05 [end_date_ymd] => 2025-03-31 00:42:05 [RateCDR] => 1 ) [2025-03-31 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-30 21:42:05' and `end` < '2025-03-31 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-31 00:42:18] Production.INFO: count ==1179 [2025-03-31 00:42:18] Production.ERROR: pbx CDR StartTime 2025-03-30 21:42:05 - End Time 2025-03-31 00:42:05 [2025-03-31 00:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799907', 'tblTempUsageDetail_20' ) start [2025-03-31 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799907', 'tblTempUsageDetail_20' ) end [2025-03-31 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799907', 'tblTempVendorCDR_20' ) start [2025-03-31 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799907', 'tblTempVendorCDR_20' ) end [2025-03-31 00:42:18] Production.INFO: ProcessCDR(1,14799907,1,1,2) [2025-03-31 00:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799907', 'tblTempUsageDetail_20' ) start [2025-03-31 00:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799907', 'tblTempUsageDetail_20' ) end [2025-03-31 00:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 00:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 00:42:22] Production.INFO: ==25531== Releasing lock... [2025-03-31 00:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 00:42:22] Production.INFO: 37.75 MB #Memory Used# [2025-03-31 00:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 21:43:05 [end_date_ymd] => 2025-03-31 00:43:05 [RateCDR] => 1 ) [2025-03-31 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-30 21:43:05' and `end` < '2025-03-31 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-31 00:43:18] Production.INFO: count ==1178 [2025-03-31 00:43:18] Production.ERROR: pbx CDR StartTime 2025-03-30 21:43:05 - End Time 2025-03-31 00:43:05 [2025-03-31 00:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799912', 'tblTempUsageDetail_20' ) start [2025-03-31 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799912', 'tblTempUsageDetail_20' ) end [2025-03-31 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799912', 'tblTempVendorCDR_20' ) start [2025-03-31 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799912', 'tblTempVendorCDR_20' ) end [2025-03-31 00:43:18] Production.INFO: ProcessCDR(1,14799912,1,1,2) [2025-03-31 00:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799912', 'tblTempUsageDetail_20' ) start [2025-03-31 00:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799912', 'tblTempUsageDetail_20' ) end [2025-03-31 00:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 00:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 00:43:22] Production.INFO: ==25601== Releasing lock... [2025-03-31 00:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 00:43:22] Production.INFO: 37.75 MB #Memory Used# [2025-03-31 00:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 21:44:06 [end_date_ymd] => 2025-03-31 00:44:06 [RateCDR] => 1 ) [2025-03-31 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-30 21:44:06' and `end` < '2025-03-31 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-31 00:44:18] Production.INFO: count ==1176 [2025-03-31 00:44:19] Production.ERROR: pbx CDR StartTime 2025-03-30 21:44:06 - End Time 2025-03-31 00:44:06 [2025-03-31 00:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 00:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799917', 'tblTempUsageDetail_20' ) start [2025-03-31 00:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799917', 'tblTempUsageDetail_20' ) end [2025-03-31 00:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799917', 'tblTempVendorCDR_20' ) start [2025-03-31 00:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799917', 'tblTempVendorCDR_20' ) end [2025-03-31 00:44:19] Production.INFO: ProcessCDR(1,14799917,1,1,2) [2025-03-31 00:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799917', 'tblTempUsageDetail_20' ) start [2025-03-31 00:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799917', 'tblTempUsageDetail_20' ) end [2025-03-31 00:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 00:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 00:44:22] Production.INFO: ==25677== Releasing lock... [2025-03-31 00:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 00:44:22] Production.INFO: 37.75 MB #Memory Used# [2025-03-31 00:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 21:45:05 [end_date_ymd] => 2025-03-31 00:45:05 [RateCDR] => 1 ) [2025-03-31 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-30 21:45:05' and `end` < '2025-03-31 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-31 00:45:18] Production.INFO: count ==1168 [2025-03-31 00:45:18] Production.ERROR: pbx CDR StartTime 2025-03-30 21:45:05 - End Time 2025-03-31 00:45:05 [2025-03-31 00:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799922', 'tblTempUsageDetail_20' ) start [2025-03-31 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799922', 'tblTempUsageDetail_20' ) end [2025-03-31 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799922', 'tblTempVendorCDR_20' ) start [2025-03-31 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799922', 'tblTempVendorCDR_20' ) end [2025-03-31 00:45:18] Production.INFO: ProcessCDR(1,14799922,1,1,2) [2025-03-31 00:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799922', 'tblTempUsageDetail_20' ) start [2025-03-31 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799922', 'tblTempUsageDetail_20' ) end [2025-03-31 00:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 00:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 00:45:21] Production.INFO: ==25754== Releasing lock... [2025-03-31 00:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 00:45:21] Production.INFO: 37.25 MB #Memory Used# [2025-03-31 00:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 21:46:05 [end_date_ymd] => 2025-03-31 00:46:05 [RateCDR] => 1 ) [2025-03-31 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-30 21:46:05' and `end` < '2025-03-31 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-31 00:46:17] Production.INFO: count ==1166 [2025-03-31 00:46:18] Production.ERROR: pbx CDR StartTime 2025-03-30 21:46:05 - End Time 2025-03-31 00:46:05 [2025-03-31 00:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799927', 'tblTempUsageDetail_20' ) start [2025-03-31 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799927', 'tblTempUsageDetail_20' ) end [2025-03-31 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799927', 'tblTempVendorCDR_20' ) start [2025-03-31 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799927', 'tblTempVendorCDR_20' ) end [2025-03-31 00:46:18] Production.INFO: ProcessCDR(1,14799927,1,1,2) [2025-03-31 00:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799927', 'tblTempUsageDetail_20' ) start [2025-03-31 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799927', 'tblTempUsageDetail_20' ) end [2025-03-31 00:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 00:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 00:46:21] Production.INFO: ==25824== Releasing lock... [2025-03-31 00:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 00:46:21] Production.INFO: 37.25 MB #Memory Used# [2025-03-31 00:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 21:47:05 [end_date_ymd] => 2025-03-31 00:47:05 [RateCDR] => 1 ) [2025-03-31 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-30 21:47:05' and `end` < '2025-03-31 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-31 00:47:17] Production.INFO: count ==1159 [2025-03-31 00:47:18] Production.ERROR: pbx CDR StartTime 2025-03-30 21:47:05 - End Time 2025-03-31 00:47:05 [2025-03-31 00:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799932', 'tblTempUsageDetail_20' ) start [2025-03-31 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799932', 'tblTempUsageDetail_20' ) end [2025-03-31 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799932', 'tblTempVendorCDR_20' ) start [2025-03-31 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799932', 'tblTempVendorCDR_20' ) end [2025-03-31 00:47:18] Production.INFO: ProcessCDR(1,14799932,1,1,2) [2025-03-31 00:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799932', 'tblTempUsageDetail_20' ) start [2025-03-31 00:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799932', 'tblTempUsageDetail_20' ) end [2025-03-31 00:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 00:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 00:47:21] Production.INFO: ==25902== Releasing lock... [2025-03-31 00:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 00:47:21] Production.INFO: 37.75 MB #Memory Used# [2025-03-31 00:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 21:48:05 [end_date_ymd] => 2025-03-31 00:48:05 [RateCDR] => 1 ) [2025-03-31 00:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 21:48:05' and `end` < '2025-03-31 00:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 00:48:18] Production.INFO: count ==1154 [2025-03-31 00:48:18] Production.ERROR: pbx CDR StartTime 2025-03-30 21:48:05 - End Time 2025-03-31 00:48:05 [2025-03-31 00:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799937', 'tblTempUsageDetail_20' ) start [2025-03-31 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799937', 'tblTempUsageDetail_20' ) end [2025-03-31 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799937', 'tblTempVendorCDR_20' ) start [2025-03-31 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799937', 'tblTempVendorCDR_20' ) end [2025-03-31 00:48:18] Production.INFO: ProcessCDR(1,14799937,1,1,2) [2025-03-31 00:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799937', 'tblTempUsageDetail_20' ) start [2025-03-31 00:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799937', 'tblTempUsageDetail_20' ) end [2025-03-31 00:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 00:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 00:48:22] Production.INFO: ==25978== Releasing lock... [2025-03-31 00:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 00:48:22] Production.INFO: 37.5 MB #Memory Used# [2025-03-31 00:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 21:49:05 [end_date_ymd] => 2025-03-31 00:49:05 [RateCDR] => 1 ) [2025-03-31 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-30 21:49:05' and `end` < '2025-03-31 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-31 00:49:18] Production.INFO: count ==1149 [2025-03-31 00:49:19] Production.ERROR: pbx CDR StartTime 2025-03-30 21:49:05 - End Time 2025-03-31 00:49:05 [2025-03-31 00:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 00:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799942', 'tblTempUsageDetail_20' ) start [2025-03-31 00:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799942', 'tblTempUsageDetail_20' ) end [2025-03-31 00:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799942', 'tblTempVendorCDR_20' ) start [2025-03-31 00:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799942', 'tblTempVendorCDR_20' ) end [2025-03-31 00:49:19] Production.INFO: ProcessCDR(1,14799942,1,1,2) [2025-03-31 00:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799942', 'tblTempUsageDetail_20' ) start [2025-03-31 00:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799942', 'tblTempUsageDetail_20' ) end [2025-03-31 00:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 00:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 00:49:22] Production.INFO: ==26050== Releasing lock... [2025-03-31 00:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 00:49:22] Production.INFO: 37.25 MB #Memory Used# [2025-03-31 00:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 21:50:06 [end_date_ymd] => 2025-03-31 00:50:06 [RateCDR] => 1 ) [2025-03-31 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-30 21:50:06' and `end` < '2025-03-31 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-31 00:50:19] Production.INFO: count ==1145 [2025-03-31 00:50:19] Production.ERROR: pbx CDR StartTime 2025-03-30 21:50:06 - End Time 2025-03-31 00:50:06 [2025-03-31 00:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799948', 'tblTempUsageDetail_20' ) start [2025-03-31 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799948', 'tblTempUsageDetail_20' ) end [2025-03-31 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799948', 'tblTempVendorCDR_20' ) start [2025-03-31 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799948', 'tblTempVendorCDR_20' ) end [2025-03-31 00:50:19] Production.INFO: ProcessCDR(1,14799948,1,1,2) [2025-03-31 00:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799948', 'tblTempUsageDetail_20' ) start [2025-03-31 00:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799948', 'tblTempUsageDetail_20' ) end [2025-03-31 00:50:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 00:50:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 00:50:23] Production.INFO: ==26125== Releasing lock... [2025-03-31 00:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 00:50:23] Production.INFO: 37.5 MB #Memory Used# [2025-03-31 00:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 21:51:05 [end_date_ymd] => 2025-03-31 00:51:05 [RateCDR] => 1 ) [2025-03-31 00: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-30 21:51:05' and `end` < '2025-03-31 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-31 00:51:18] Production.INFO: count ==1146 [2025-03-31 00:51:19] Production.ERROR: pbx CDR StartTime 2025-03-30 21:51:05 - End Time 2025-03-31 00:51:05 [2025-03-31 00:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 00:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799953', 'tblTempUsageDetail_20' ) start [2025-03-31 00:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799953', 'tblTempUsageDetail_20' ) end [2025-03-31 00:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799953', 'tblTempVendorCDR_20' ) start [2025-03-31 00:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799953', 'tblTempVendorCDR_20' ) end [2025-03-31 00:51:19] Production.INFO: ProcessCDR(1,14799953,1,1,2) [2025-03-31 00:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799953', 'tblTempUsageDetail_20' ) start [2025-03-31 00:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799953', 'tblTempUsageDetail_20' ) end [2025-03-31 00:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 00:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 00:51:22] Production.INFO: ==26199== Releasing lock... [2025-03-31 00:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 00:51:22] Production.INFO: 37.25 MB #Memory Used# [2025-03-31 00:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 21:52:05 [end_date_ymd] => 2025-03-31 00:52:05 [RateCDR] => 1 ) [2025-03-31 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-30 21:52:05' and `end` < '2025-03-31 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-31 00:52:18] Production.INFO: count ==1143 [2025-03-31 00:52:18] Production.ERROR: pbx CDR StartTime 2025-03-30 21:52:05 - End Time 2025-03-31 00:52:05 [2025-03-31 00:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799958', 'tblTempUsageDetail_20' ) start [2025-03-31 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799958', 'tblTempUsageDetail_20' ) end [2025-03-31 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799958', 'tblTempVendorCDR_20' ) start [2025-03-31 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799958', 'tblTempVendorCDR_20' ) end [2025-03-31 00:52:18] Production.INFO: ProcessCDR(1,14799958,1,1,2) [2025-03-31 00:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799958', 'tblTempUsageDetail_20' ) start [2025-03-31 00:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799958', 'tblTempUsageDetail_20' ) end [2025-03-31 00:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 00:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 00:52:22] Production.INFO: ==26308== Releasing lock... [2025-03-31 00:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 00:52:22] Production.INFO: 37.75 MB #Memory Used# [2025-03-31 00:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 21:53:06 [end_date_ymd] => 2025-03-31 00:53:06 [RateCDR] => 1 ) [2025-03-31 00: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-30 21:53:06' and `end` < '2025-03-31 00: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-31 00:53:18] Production.INFO: count ==1141 [2025-03-31 00:53:19] Production.ERROR: pbx CDR StartTime 2025-03-30 21:53:06 - End Time 2025-03-31 00:53:06 [2025-03-31 00:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 00:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799963', 'tblTempUsageDetail_20' ) start [2025-03-31 00:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799963', 'tblTempUsageDetail_20' ) end [2025-03-31 00:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799963', 'tblTempVendorCDR_20' ) start [2025-03-31 00:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799963', 'tblTempVendorCDR_20' ) end [2025-03-31 00:53:19] Production.INFO: ProcessCDR(1,14799963,1,1,2) [2025-03-31 00:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799963', 'tblTempUsageDetail_20' ) start [2025-03-31 00:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799963', 'tblTempUsageDetail_20' ) end [2025-03-31 00:53:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 00:53:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 00:53:23] Production.INFO: ==26384== Releasing lock... [2025-03-31 00:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 00:53:23] Production.INFO: 37.75 MB #Memory Used# [2025-03-31 00:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 21:54:05 [end_date_ymd] => 2025-03-31 00:54:05 [RateCDR] => 1 ) [2025-03-31 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-30 21:54:05' and `end` < '2025-03-31 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-31 00:54:18] Production.INFO: count ==1138 [2025-03-31 00:54:18] Production.ERROR: pbx CDR StartTime 2025-03-30 21:54:05 - End Time 2025-03-31 00:54:05 [2025-03-31 00:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799968', 'tblTempUsageDetail_20' ) start [2025-03-31 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799968', 'tblTempUsageDetail_20' ) end [2025-03-31 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799968', 'tblTempVendorCDR_20' ) start [2025-03-31 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799968', 'tblTempVendorCDR_20' ) end [2025-03-31 00:54:18] Production.INFO: ProcessCDR(1,14799968,1,1,2) [2025-03-31 00:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799968', 'tblTempUsageDetail_20' ) start [2025-03-31 00:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799968', 'tblTempUsageDetail_20' ) end [2025-03-31 00:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 00:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 00:54:22] Production.INFO: ==26459== Releasing lock... [2025-03-31 00:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 00:54:22] Production.INFO: 37.25 MB #Memory Used# [2025-03-31 00:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 21:55:05 [end_date_ymd] => 2025-03-31 00:55:05 [RateCDR] => 1 ) [2025-03-31 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-30 21:55:05' and `end` < '2025-03-31 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-31 00:55:18] Production.INFO: count ==1131 [2025-03-31 00:55:18] Production.ERROR: pbx CDR StartTime 2025-03-30 21:55:05 - End Time 2025-03-31 00:55:05 [2025-03-31 00:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799973', 'tblTempUsageDetail_20' ) start [2025-03-31 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799973', 'tblTempUsageDetail_20' ) end [2025-03-31 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799973', 'tblTempVendorCDR_20' ) start [2025-03-31 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799973', 'tblTempVendorCDR_20' ) end [2025-03-31 00:55:18] Production.INFO: ProcessCDR(1,14799973,1,1,2) [2025-03-31 00:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799973', 'tblTempUsageDetail_20' ) start [2025-03-31 00:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799973', 'tblTempUsageDetail_20' ) end [2025-03-31 00:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 00:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 00:55:22] Production.INFO: ==26558== Releasing lock... [2025-03-31 00:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 00:55:22] Production.INFO: 37.5 MB #Memory Used# [2025-03-31 00:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 21:56:05 [end_date_ymd] => 2025-03-31 00:56:05 [RateCDR] => 1 ) [2025-03-31 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-30 21:56:05' and `end` < '2025-03-31 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-31 00:56:18] Production.INFO: count ==1106 [2025-03-31 00:56:18] Production.ERROR: pbx CDR StartTime 2025-03-30 21:56:05 - End Time 2025-03-31 00:56:05 [2025-03-31 00:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799978', 'tblTempUsageDetail_20' ) start [2025-03-31 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799978', 'tblTempUsageDetail_20' ) end [2025-03-31 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799978', 'tblTempVendorCDR_20' ) start [2025-03-31 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799978', 'tblTempVendorCDR_20' ) end [2025-03-31 00:56:18] Production.INFO: ProcessCDR(1,14799978,1,1,2) [2025-03-31 00:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799978', 'tblTempUsageDetail_20' ) start [2025-03-31 00:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799978', 'tblTempUsageDetail_20' ) end [2025-03-31 00:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 00:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 00:56:22] Production.INFO: ==26631== Releasing lock... [2025-03-31 00:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 00:56:22] Production.INFO: 37.25 MB #Memory Used# [2025-03-31 00:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 21:57:05 [end_date_ymd] => 2025-03-31 00:57:05 [RateCDR] => 1 ) [2025-03-31 00:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 21:57:05' and `end` < '2025-03-31 00:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 00:57:18] Production.INFO: count ==1095 [2025-03-31 00:57:18] Production.ERROR: pbx CDR StartTime 2025-03-30 21:57:05 - End Time 2025-03-31 00:57:05 [2025-03-31 00:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799983', 'tblTempUsageDetail_20' ) start [2025-03-31 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799983', 'tblTempUsageDetail_20' ) end [2025-03-31 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799983', 'tblTempVendorCDR_20' ) start [2025-03-31 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799983', 'tblTempVendorCDR_20' ) end [2025-03-31 00:57:18] Production.INFO: ProcessCDR(1,14799983,1,1,2) [2025-03-31 00:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799983', 'tblTempUsageDetail_20' ) start [2025-03-31 00:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799983', 'tblTempUsageDetail_20' ) end [2025-03-31 00:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 00:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 00:57:22] Production.INFO: ==26704== Releasing lock... [2025-03-31 00:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 00:57:22] Production.INFO: 37.5 MB #Memory Used# [2025-03-31 00:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 21:58:05 [end_date_ymd] => 2025-03-31 00:58:05 [RateCDR] => 1 ) [2025-03-31 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-30 21:58:05' and `end` < '2025-03-31 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-31 00:58:17] Production.INFO: count ==1086 [2025-03-31 00:58:18] Production.ERROR: pbx CDR StartTime 2025-03-30 21:58:05 - End Time 2025-03-31 00:58:05 [2025-03-31 00:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799988', 'tblTempUsageDetail_20' ) start [2025-03-31 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799988', 'tblTempUsageDetail_20' ) end [2025-03-31 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799988', 'tblTempVendorCDR_20' ) start [2025-03-31 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799988', 'tblTempVendorCDR_20' ) end [2025-03-31 00:58:18] Production.INFO: ProcessCDR(1,14799988,1,1,2) [2025-03-31 00:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799988', 'tblTempUsageDetail_20' ) start [2025-03-31 00:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799988', 'tblTempUsageDetail_20' ) end [2025-03-31 00:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 00:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 00:58:21] Production.INFO: ==26780== Releasing lock... [2025-03-31 00:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 00:58:21] Production.INFO: 37.25 MB #Memory Used# [2025-03-31 00:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 21:59:05 [end_date_ymd] => 2025-03-31 00:59:05 [RateCDR] => 1 ) [2025-03-31 00:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 21:59:05' and `end` < '2025-03-31 00:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 00:59:17] Production.INFO: count ==1070 [2025-03-31 00:59:18] Production.ERROR: pbx CDR StartTime 2025-03-30 21:59:05 - End Time 2025-03-31 00:59:05 [2025-03-31 00:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799993', 'tblTempUsageDetail_20' ) start [2025-03-31 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799993', 'tblTempUsageDetail_20' ) end [2025-03-31 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799993', 'tblTempVendorCDR_20' ) start [2025-03-31 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799993', 'tblTempVendorCDR_20' ) end [2025-03-31 00:59:18] Production.INFO: ProcessCDR(1,14799993,1,1,2) [2025-03-31 00:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 00:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 00:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799993', 'tblTempUsageDetail_20' ) start [2025-03-31 00:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799993', 'tblTempUsageDetail_20' ) end [2025-03-31 00:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 00:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 00:59:21] Production.INFO: ==26853== Releasing lock... [2025-03-31 00:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 00:59:21] Production.INFO: 36.75 MB #Memory Used# [2025-03-31 01:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 22:00:06 [end_date_ymd] => 2025-03-31 01:00:06 [RateCDR] => 1 ) [2025-03-31 01:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 22:00:06' and `end` < '2025-03-31 01:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 01:00:18] Production.INFO: count ==1052 [2025-03-31 01:00:19] Production.ERROR: pbx CDR StartTime 2025-03-30 22:00:06 - End Time 2025-03-31 01:00:06 [2025-03-31 01:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799999', 'tblTempUsageDetail_20' ) start [2025-03-31 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799999', 'tblTempUsageDetail_20' ) end [2025-03-31 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799999', 'tblTempVendorCDR_20' ) start [2025-03-31 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799999', 'tblTempVendorCDR_20' ) end [2025-03-31 01:00:19] Production.INFO: ProcessCDR(1,14799999,1,1,2) [2025-03-31 01:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799999', 'tblTempUsageDetail_20' ) start [2025-03-31 01:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799999', 'tblTempUsageDetail_20' ) end [2025-03-31 01:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 01:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 01:00:22] Production.INFO: ==26930== Releasing lock... [2025-03-31 01:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 01:00:22] Production.INFO: 36.75 MB #Memory Used# [2025-03-31 01:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 22:01:05 [end_date_ymd] => 2025-03-31 01:01:05 [RateCDR] => 1 ) [2025-03-31 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-30 22:01:05' and `end` < '2025-03-31 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-31 01:01:18] Production.INFO: count ==1052 [2025-03-31 01:01:18] Production.ERROR: pbx CDR StartTime 2025-03-30 22:01:05 - End Time 2025-03-31 01:01:05 [2025-03-31 01:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800004', 'tblTempUsageDetail_20' ) start [2025-03-31 01:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800004', 'tblTempUsageDetail_20' ) end [2025-03-31 01:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800004', 'tblTempVendorCDR_20' ) start [2025-03-31 01:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800004', 'tblTempVendorCDR_20' ) end [2025-03-31 01:01:19] Production.INFO: ProcessCDR(1,14800004,1,1,2) [2025-03-31 01:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800004', 'tblTempUsageDetail_20' ) start [2025-03-31 01:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800004', 'tblTempUsageDetail_20' ) end [2025-03-31 01:01:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 01:01:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 01:01:22] Production.INFO: ==27019== Releasing lock... [2025-03-31 01:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 01:01:22] Production.INFO: 36.75 MB #Memory Used# [2025-03-31 01:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 22:02:06 [end_date_ymd] => 2025-03-31 01:02:06 [RateCDR] => 1 ) [2025-03-31 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-30 22:02:06' and `end` < '2025-03-31 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-31 01:02:18] Production.INFO: count ==1027 [2025-03-31 01:02:19] Production.ERROR: pbx CDR StartTime 2025-03-30 22:02:06 - End Time 2025-03-31 01:02:06 [2025-03-31 01:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 01:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800009', 'tblTempUsageDetail_20' ) start [2025-03-31 01:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800009', 'tblTempUsageDetail_20' ) end [2025-03-31 01:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800009', 'tblTempVendorCDR_20' ) start [2025-03-31 01:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800009', 'tblTempVendorCDR_20' ) end [2025-03-31 01:02:19] Production.INFO: ProcessCDR(1,14800009,1,1,2) [2025-03-31 01:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800009', 'tblTempUsageDetail_20' ) start [2025-03-31 01:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800009', 'tblTempUsageDetail_20' ) end [2025-03-31 01:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 01:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 01:02:22] Production.INFO: ==27090== Releasing lock... [2025-03-31 01:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 01:02:22] Production.INFO: 36.75 MB #Memory Used# [2025-03-31 01:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 22:03:06 [end_date_ymd] => 2025-03-31 01:03:06 [RateCDR] => 1 ) [2025-03-31 01:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 22:03:06' and `end` < '2025-03-31 01:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 01:03:18] Production.INFO: count ==1007 [2025-03-31 01:03:19] Production.ERROR: pbx CDR StartTime 2025-03-30 22:03:06 - End Time 2025-03-31 01:03:06 [2025-03-31 01:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 01:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800014', 'tblTempUsageDetail_20' ) start [2025-03-31 01:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800014', 'tblTempUsageDetail_20' ) end [2025-03-31 01:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800014', 'tblTempVendorCDR_20' ) start [2025-03-31 01:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800014', 'tblTempVendorCDR_20' ) end [2025-03-31 01:03:19] Production.INFO: ProcessCDR(1,14800014,1,1,2) [2025-03-31 01:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800014', 'tblTempUsageDetail_20' ) start [2025-03-31 01:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800014', 'tblTempUsageDetail_20' ) end [2025-03-31 01:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 01:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 01:03:22] Production.INFO: ==27165== Releasing lock... [2025-03-31 01:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 01:03:22] Production.INFO: 36 MB #Memory Used# [2025-03-31 01:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 22:04:06 [end_date_ymd] => 2025-03-31 01:04:06 [RateCDR] => 1 ) [2025-03-31 01: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-30 22:04:06' and `end` < '2025-03-31 01: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-31 01:04:19] Production.INFO: count ==1002 [2025-03-31 01:04:19] Production.ERROR: pbx CDR StartTime 2025-03-30 22:04:06 - End Time 2025-03-31 01:04:06 [2025-03-31 01:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 01:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800019', 'tblTempUsageDetail_20' ) start [2025-03-31 01:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800019', 'tblTempUsageDetail_20' ) end [2025-03-31 01:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800019', 'tblTempVendorCDR_20' ) start [2025-03-31 01:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800019', 'tblTempVendorCDR_20' ) end [2025-03-31 01:04:19] Production.INFO: ProcessCDR(1,14800019,1,1,2) [2025-03-31 01:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800019', 'tblTempUsageDetail_20' ) start [2025-03-31 01:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800019', 'tblTempUsageDetail_20' ) end [2025-03-31 01:04:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 01:04:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 01:04:23] Production.INFO: ==27242== Releasing lock... [2025-03-31 01:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 01:04:23] Production.INFO: 36 MB #Memory Used# [2025-03-31 01:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 22:05:05 [end_date_ymd] => 2025-03-31 01:05:05 [RateCDR] => 1 ) [2025-03-31 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-30 22:05:05' and `end` < '2025-03-31 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-31 01:05:18] Production.INFO: count ==994 [2025-03-31 01:05:18] Production.ERROR: pbx CDR StartTime 2025-03-30 22:05:05 - End Time 2025-03-31 01:05:05 [2025-03-31 01:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800024', 'tblTempUsageDetail_20' ) start [2025-03-31 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800024', 'tblTempUsageDetail_20' ) end [2025-03-31 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800024', 'tblTempVendorCDR_20' ) start [2025-03-31 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800024', 'tblTempVendorCDR_20' ) end [2025-03-31 01:05:18] Production.INFO: ProcessCDR(1,14800024,1,1,2) [2025-03-31 01:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800024', 'tblTempUsageDetail_20' ) start [2025-03-31 01:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800024', 'tblTempUsageDetail_20' ) end [2025-03-31 01:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 01:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 01:05:22] Production.INFO: ==27315== Releasing lock... [2025-03-31 01:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 01:05:22] Production.INFO: 36.25 MB #Memory Used# [2025-03-31 01:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 22:06:06 [end_date_ymd] => 2025-03-31 01:06:06 [RateCDR] => 1 ) [2025-03-31 01: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-30 22:06:06' and `end` < '2025-03-31 01: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-31 01:06:18] Production.INFO: count ==979 [2025-03-31 01:06:19] Production.ERROR: pbx CDR StartTime 2025-03-30 22:06:06 - End Time 2025-03-31 01:06:06 [2025-03-31 01:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 01:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800029', 'tblTempUsageDetail_20' ) start [2025-03-31 01:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800029', 'tblTempUsageDetail_20' ) end [2025-03-31 01:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800029', 'tblTempVendorCDR_20' ) start [2025-03-31 01:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800029', 'tblTempVendorCDR_20' ) end [2025-03-31 01:06:19] Production.INFO: ProcessCDR(1,14800029,1,1,2) [2025-03-31 01:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800029', 'tblTempUsageDetail_20' ) start [2025-03-31 01:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800029', 'tblTempUsageDetail_20' ) end [2025-03-31 01:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 01:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 01:06:22] Production.INFO: ==27394== Releasing lock... [2025-03-31 01:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 01:06:22] Production.INFO: 36 MB #Memory Used# [2025-03-31 01:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 22:07:05 [end_date_ymd] => 2025-03-31 01:07:05 [RateCDR] => 1 ) [2025-03-31 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-30 22:07:05' and `end` < '2025-03-31 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-31 01:07:17] Production.INFO: count ==964 [2025-03-31 01:07:18] Production.ERROR: pbx CDR StartTime 2025-03-30 22:07:05 - End Time 2025-03-31 01:07:05 [2025-03-31 01:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800034', 'tblTempUsageDetail_20' ) start [2025-03-31 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800034', 'tblTempUsageDetail_20' ) end [2025-03-31 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800034', 'tblTempVendorCDR_20' ) start [2025-03-31 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800034', 'tblTempVendorCDR_20' ) end [2025-03-31 01:07:18] Production.INFO: ProcessCDR(1,14800034,1,1,2) [2025-03-31 01:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800034', 'tblTempUsageDetail_20' ) start [2025-03-31 01:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800034', 'tblTempUsageDetail_20' ) end [2025-03-31 01:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 01:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 01:07:21] Production.INFO: ==27505== Releasing lock... [2025-03-31 01:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 01:07:21] Production.INFO: 36 MB #Memory Used# [2025-03-31 01:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 22:08:05 [end_date_ymd] => 2025-03-31 01:08:05 [RateCDR] => 1 ) [2025-03-31 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-30 22:08:05' and `end` < '2025-03-31 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-31 01:08:18] Production.INFO: count ==953 [2025-03-31 01:08:18] Production.ERROR: pbx CDR StartTime 2025-03-30 22:08:05 - End Time 2025-03-31 01:08:05 [2025-03-31 01:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800039', 'tblTempUsageDetail_20' ) start [2025-03-31 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800039', 'tblTempUsageDetail_20' ) end [2025-03-31 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800039', 'tblTempVendorCDR_20' ) start [2025-03-31 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800039', 'tblTempVendorCDR_20' ) end [2025-03-31 01:08:18] Production.INFO: ProcessCDR(1,14800039,1,1,2) [2025-03-31 01:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800039', 'tblTempUsageDetail_20' ) start [2025-03-31 01:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800039', 'tblTempUsageDetail_20' ) end [2025-03-31 01:08:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 01:08:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 01:08:22] Production.INFO: ==27578== Releasing lock... [2025-03-31 01:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 01:08:22] Production.INFO: 35.75 MB #Memory Used# [2025-03-31 01:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 22:09:05 [end_date_ymd] => 2025-03-31 01:09:05 [RateCDR] => 1 ) [2025-03-31 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-30 22:09:05' and `end` < '2025-03-31 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-31 01:09:17] Production.INFO: count ==942 [2025-03-31 01:09:18] Production.ERROR: pbx CDR StartTime 2025-03-30 22:09:05 - End Time 2025-03-31 01:09:05 [2025-03-31 01:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800044', 'tblTempUsageDetail_20' ) start [2025-03-31 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800044', 'tblTempUsageDetail_20' ) end [2025-03-31 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800044', 'tblTempVendorCDR_20' ) start [2025-03-31 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800044', 'tblTempVendorCDR_20' ) end [2025-03-31 01:09:18] Production.INFO: ProcessCDR(1,14800044,1,1,2) [2025-03-31 01:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800044', 'tblTempUsageDetail_20' ) start [2025-03-31 01:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800044', 'tblTempUsageDetail_20' ) end [2025-03-31 01:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 01:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 01:09:21] Production.INFO: ==27652== Releasing lock... [2025-03-31 01:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 01:09:21] Production.INFO: 35.5 MB #Memory Used# [2025-03-31 01:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 22:10:06 [end_date_ymd] => 2025-03-31 01:10:06 [RateCDR] => 1 ) [2025-03-31 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-30 22:10:06' and `end` < '2025-03-31 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-31 01:10:19] Production.INFO: count ==937 [2025-03-31 01:10:19] Production.ERROR: pbx CDR StartTime 2025-03-30 22:10:06 - End Time 2025-03-31 01:10:06 [2025-03-31 01:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800050', 'tblTempUsageDetail_20' ) start [2025-03-31 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800050', 'tblTempUsageDetail_20' ) end [2025-03-31 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800050', 'tblTempVendorCDR_20' ) start [2025-03-31 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800050', 'tblTempVendorCDR_20' ) end [2025-03-31 01:10:19] Production.INFO: ProcessCDR(1,14800050,1,1,2) [2025-03-31 01:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800050', 'tblTempUsageDetail_20' ) start [2025-03-31 01:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800050', 'tblTempUsageDetail_20' ) end [2025-03-31 01:10:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 01:10:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 01:10:23] Production.INFO: ==27725== Releasing lock... [2025-03-31 01:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 01:10:23] Production.INFO: 36.25 MB #Memory Used# [2025-03-31 01:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 22:11:05 [end_date_ymd] => 2025-03-31 01:11:05 [RateCDR] => 1 ) [2025-03-31 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-30 22:11:05' and `end` < '2025-03-31 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-31 01:11:17] Production.INFO: count ==937 [2025-03-31 01:11:18] Production.ERROR: pbx CDR StartTime 2025-03-30 22:11:05 - End Time 2025-03-31 01:11:05 [2025-03-31 01:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800055', 'tblTempUsageDetail_20' ) start [2025-03-31 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800055', 'tblTempUsageDetail_20' ) end [2025-03-31 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800055', 'tblTempVendorCDR_20' ) start [2025-03-31 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800055', 'tblTempVendorCDR_20' ) end [2025-03-31 01:11:18] Production.INFO: ProcessCDR(1,14800055,1,1,2) [2025-03-31 01:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800055', 'tblTempUsageDetail_20' ) start [2025-03-31 01:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800055', 'tblTempUsageDetail_20' ) end [2025-03-31 01:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 01:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 01:11:21] Production.INFO: ==27802== Releasing lock... [2025-03-31 01:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 01:11:21] Production.INFO: 36.25 MB #Memory Used# [2025-03-31 01:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 22:12:05 [end_date_ymd] => 2025-03-31 01:12:05 [RateCDR] => 1 ) [2025-03-31 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-30 22:12:05' and `end` < '2025-03-31 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-31 01:12:18] Production.INFO: count ==949 [2025-03-31 01:12:19] Production.ERROR: pbx CDR StartTime 2025-03-30 22:12:05 - End Time 2025-03-31 01:12:05 [2025-03-31 01:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 01:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800060', 'tblTempUsageDetail_20' ) start [2025-03-31 01:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800060', 'tblTempUsageDetail_20' ) end [2025-03-31 01:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800060', 'tblTempVendorCDR_20' ) start [2025-03-31 01:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800060', 'tblTempVendorCDR_20' ) end [2025-03-31 01:12:19] Production.INFO: ProcessCDR(1,14800060,1,1,2) [2025-03-31 01:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800060', 'tblTempUsageDetail_20' ) start [2025-03-31 01:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800060', 'tblTempUsageDetail_20' ) end [2025-03-31 01:12:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 01:12:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 01:12:22] Production.INFO: ==27879== Releasing lock... [2025-03-31 01:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 01:12:22] Production.INFO: 36.25 MB #Memory Used# [2025-03-31 01:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 22:13:05 [end_date_ymd] => 2025-03-31 01:13:05 [RateCDR] => 1 ) [2025-03-31 01:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 22:13:05' and `end` < '2025-03-31 01:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 01:13:18] Production.INFO: count ==953 [2025-03-31 01:13:18] Production.ERROR: pbx CDR StartTime 2025-03-30 22:13:05 - End Time 2025-03-31 01:13:05 [2025-03-31 01:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800065', 'tblTempUsageDetail_20' ) start [2025-03-31 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800065', 'tblTempUsageDetail_20' ) end [2025-03-31 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800065', 'tblTempVendorCDR_20' ) start [2025-03-31 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800065', 'tblTempVendorCDR_20' ) end [2025-03-31 01:13:18] Production.INFO: ProcessCDR(1,14800065,1,1,2) [2025-03-31 01:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800065', 'tblTempUsageDetail_20' ) start [2025-03-31 01:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800065', 'tblTempUsageDetail_20' ) end [2025-03-31 01:13:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 01:13:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 01:13:22] Production.INFO: ==27954== Releasing lock... [2025-03-31 01:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 01:13:22] Production.INFO: 36.25 MB #Memory Used# [2025-03-31 01:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 22:14:05 [end_date_ymd] => 2025-03-31 01:14:05 [RateCDR] => 1 ) [2025-03-31 01:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 22:14:05' and `end` < '2025-03-31 01:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 01:14:18] Production.INFO: count ==958 [2025-03-31 01:14:18] Production.ERROR: pbx CDR StartTime 2025-03-30 22:14:05 - End Time 2025-03-31 01:14:05 [2025-03-31 01:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800070', 'tblTempUsageDetail_20' ) start [2025-03-31 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800070', 'tblTempUsageDetail_20' ) end [2025-03-31 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800070', 'tblTempVendorCDR_20' ) start [2025-03-31 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800070', 'tblTempVendorCDR_20' ) end [2025-03-31 01:14:18] Production.INFO: ProcessCDR(1,14800070,1,1,2) [2025-03-31 01:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800070', 'tblTempUsageDetail_20' ) start [2025-03-31 01:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800070', 'tblTempUsageDetail_20' ) end [2025-03-31 01:14:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 01:14:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 01:14:22] Production.INFO: ==28024== Releasing lock... [2025-03-31 01:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 01:14:22] Production.INFO: 36.5 MB #Memory Used# [2025-03-31 01:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 22:15:06 [end_date_ymd] => 2025-03-31 01:15:06 [RateCDR] => 1 ) [2025-03-31 01: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-30 22:15:06' and `end` < '2025-03-31 01: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-31 01:15:18] Production.INFO: count ==948 [2025-03-31 01:15:19] Production.ERROR: pbx CDR StartTime 2025-03-30 22:15:06 - End Time 2025-03-31 01:15:06 [2025-03-31 01:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 01:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800075', 'tblTempUsageDetail_20' ) start [2025-03-31 01:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800075', 'tblTempUsageDetail_20' ) end [2025-03-31 01:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800075', 'tblTempVendorCDR_20' ) start [2025-03-31 01:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800075', 'tblTempVendorCDR_20' ) end [2025-03-31 01:15:19] Production.INFO: ProcessCDR(1,14800075,1,1,2) [2025-03-31 01:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800075', 'tblTempUsageDetail_20' ) start [2025-03-31 01:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800075', 'tblTempUsageDetail_20' ) end [2025-03-31 01:15:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 01:15:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 01:15:23] Production.INFO: ==28098== Releasing lock... [2025-03-31 01:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 01:15:23] Production.INFO: 36 MB #Memory Used# [2025-03-31 01:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 22:16:05 [end_date_ymd] => 2025-03-31 01:16:05 [RateCDR] => 1 ) [2025-03-31 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-30 22:16:05' and `end` < '2025-03-31 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-31 01:16:18] Production.INFO: count ==953 [2025-03-31 01:16:18] Production.ERROR: pbx CDR StartTime 2025-03-30 22:16:05 - End Time 2025-03-31 01:16:05 [2025-03-31 01:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800080', 'tblTempUsageDetail_20' ) start [2025-03-31 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800080', 'tblTempUsageDetail_20' ) end [2025-03-31 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800080', 'tblTempVendorCDR_20' ) start [2025-03-31 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800080', 'tblTempVendorCDR_20' ) end [2025-03-31 01:16:18] Production.INFO: ProcessCDR(1,14800080,1,1,2) [2025-03-31 01:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800080', 'tblTempUsageDetail_20' ) start [2025-03-31 01:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800080', 'tblTempUsageDetail_20' ) end [2025-03-31 01:16:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 01:16:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 01:16:22] Production.INFO: ==28170== Releasing lock... [2025-03-31 01:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 01:16:22] Production.INFO: 35.5 MB #Memory Used# [2025-03-31 01:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 22:17:06 [end_date_ymd] => 2025-03-31 01:17:06 [RateCDR] => 1 ) [2025-03-31 01: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-30 22:17:06' and `end` < '2025-03-31 01: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-31 01:17:18] Production.INFO: count ==952 [2025-03-31 01:17:19] Production.ERROR: pbx CDR StartTime 2025-03-30 22:17:06 - End Time 2025-03-31 01:17:06 [2025-03-31 01:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 01:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800085', 'tblTempUsageDetail_20' ) start [2025-03-31 01:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800085', 'tblTempUsageDetail_20' ) end [2025-03-31 01:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800085', 'tblTempVendorCDR_20' ) start [2025-03-31 01:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800085', 'tblTempVendorCDR_20' ) end [2025-03-31 01:17:19] Production.INFO: ProcessCDR(1,14800085,1,1,2) [2025-03-31 01:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800085', 'tblTempUsageDetail_20' ) start [2025-03-31 01:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800085', 'tblTempUsageDetail_20' ) end [2025-03-31 01:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 01:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 01:17:22] Production.INFO: ==28243== Releasing lock... [2025-03-31 01:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 01:17:22] Production.INFO: 35.5 MB #Memory Used# [2025-03-31 01:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 22:18:05 [end_date_ymd] => 2025-03-31 01:18:05 [RateCDR] => 1 ) [2025-03-31 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-30 22:18:05' and `end` < '2025-03-31 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-31 01:18:17] Production.INFO: count ==953 [2025-03-31 01:18:18] Production.ERROR: pbx CDR StartTime 2025-03-30 22:18:05 - End Time 2025-03-31 01:18:05 [2025-03-31 01:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800090', 'tblTempUsageDetail_20' ) start [2025-03-31 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800090', 'tblTempUsageDetail_20' ) end [2025-03-31 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800090', 'tblTempVendorCDR_20' ) start [2025-03-31 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800090', 'tblTempVendorCDR_20' ) end [2025-03-31 01:18:18] Production.INFO: ProcessCDR(1,14800090,1,1,2) [2025-03-31 01:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800090', 'tblTempUsageDetail_20' ) start [2025-03-31 01:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800090', 'tblTempUsageDetail_20' ) end [2025-03-31 01:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 01:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 01:18:21] Production.INFO: ==28325== Releasing lock... [2025-03-31 01:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 01:18:21] Production.INFO: 35.75 MB #Memory Used# [2025-03-31 01:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 22:19:05 [end_date_ymd] => 2025-03-31 01:19:05 [RateCDR] => 1 ) [2025-03-31 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-30 22:19:05' and `end` < '2025-03-31 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-31 01:19:18] Production.INFO: count ==938 [2025-03-31 01:19:18] Production.ERROR: pbx CDR StartTime 2025-03-30 22:19:05 - End Time 2025-03-31 01:19:05 [2025-03-31 01:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800095', 'tblTempUsageDetail_20' ) start [2025-03-31 01:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800095', 'tblTempUsageDetail_20' ) end [2025-03-31 01:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800095', 'tblTempVendorCDR_20' ) start [2025-03-31 01:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800095', 'tblTempVendorCDR_20' ) end [2025-03-31 01:19:19] Production.INFO: ProcessCDR(1,14800095,1,1,2) [2025-03-31 01:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800095', 'tblTempUsageDetail_20' ) start [2025-03-31 01:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800095', 'tblTempUsageDetail_20' ) end [2025-03-31 01:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 01:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 01:19:22] Production.INFO: ==28400== Releasing lock... [2025-03-31 01:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 01:19:22] Production.INFO: 36 MB #Memory Used# [2025-03-31 01:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 22:20:05 [end_date_ymd] => 2025-03-31 01:20:05 [RateCDR] => 1 ) [2025-03-31 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-30 22:20:05' and `end` < '2025-03-31 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-31 01:20:18] Production.INFO: count ==935 [2025-03-31 01:20:18] Production.ERROR: pbx CDR StartTime 2025-03-30 22:20:05 - End Time 2025-03-31 01:20:05 [2025-03-31 01:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800101', 'tblTempUsageDetail_20' ) start [2025-03-31 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800101', 'tblTempUsageDetail_20' ) end [2025-03-31 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800101', 'tblTempVendorCDR_20' ) start [2025-03-31 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800101', 'tblTempVendorCDR_20' ) end [2025-03-31 01:20:18] Production.INFO: ProcessCDR(1,14800101,1,1,2) [2025-03-31 01:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800101', 'tblTempUsageDetail_20' ) start [2025-03-31 01:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800101', 'tblTempUsageDetail_20' ) end [2025-03-31 01:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 01:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 01:20:22] Production.INFO: ==28473== Releasing lock... [2025-03-31 01:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 01:20:22] Production.INFO: 36 MB #Memory Used# [2025-03-31 01:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 22:21:05 [end_date_ymd] => 2025-03-31 01:21:05 [RateCDR] => 1 ) [2025-03-31 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-30 22:21:05' and `end` < '2025-03-31 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-31 01:21:18] Production.INFO: count ==940 [2025-03-31 01:21:18] Production.ERROR: pbx CDR StartTime 2025-03-30 22:21:05 - End Time 2025-03-31 01:21:05 [2025-03-31 01:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800106', 'tblTempUsageDetail_20' ) start [2025-03-31 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800106', 'tblTempUsageDetail_20' ) end [2025-03-31 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800106', 'tblTempVendorCDR_20' ) start [2025-03-31 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800106', 'tblTempVendorCDR_20' ) end [2025-03-31 01:21:18] Production.INFO: ProcessCDR(1,14800106,1,1,2) [2025-03-31 01:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800106', 'tblTempUsageDetail_20' ) start [2025-03-31 01:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800106', 'tblTempUsageDetail_20' ) end [2025-03-31 01:21:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 01:21:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 01:21:22] Production.INFO: ==28547== Releasing lock... [2025-03-31 01:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 01:21:22] Production.INFO: 36.25 MB #Memory Used# [2025-03-31 01:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 22:22:06 [end_date_ymd] => 2025-03-31 01:22:06 [RateCDR] => 1 ) [2025-03-31 01:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 22:22:06' and `end` < '2025-03-31 01:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 01:22:19] Production.INFO: count ==932 [2025-03-31 01:22:19] Production.ERROR: pbx CDR StartTime 2025-03-30 22:22:06 - End Time 2025-03-31 01:22:06 [2025-03-31 01:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 01:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800111', 'tblTempUsageDetail_20' ) start [2025-03-31 01:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800111', 'tblTempUsageDetail_20' ) end [2025-03-31 01:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800111', 'tblTempVendorCDR_20' ) start [2025-03-31 01:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800111', 'tblTempVendorCDR_20' ) end [2025-03-31 01:22:19] Production.INFO: ProcessCDR(1,14800111,1,1,2) [2025-03-31 01:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800111', 'tblTempUsageDetail_20' ) start [2025-03-31 01:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800111', 'tblTempUsageDetail_20' ) end [2025-03-31 01:22:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 01:22:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 01:22:23] Production.INFO: ==28660== Releasing lock... [2025-03-31 01:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 01:22:23] Production.INFO: 36 MB #Memory Used# [2025-03-31 01:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 22:23:05 [end_date_ymd] => 2025-03-31 01:23:05 [RateCDR] => 1 ) [2025-03-31 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-30 22:23:05' and `end` < '2025-03-31 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-31 01:23:18] Production.INFO: count ==926 [2025-03-31 01:23:18] Production.ERROR: pbx CDR StartTime 2025-03-30 22:23:05 - End Time 2025-03-31 01:23:05 [2025-03-31 01:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800116', 'tblTempUsageDetail_20' ) start [2025-03-31 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800116', 'tblTempUsageDetail_20' ) end [2025-03-31 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800116', 'tblTempVendorCDR_20' ) start [2025-03-31 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800116', 'tblTempVendorCDR_20' ) end [2025-03-31 01:23:18] Production.INFO: ProcessCDR(1,14800116,1,1,2) [2025-03-31 01:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800116', 'tblTempUsageDetail_20' ) start [2025-03-31 01:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800116', 'tblTempUsageDetail_20' ) end [2025-03-31 01:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 01:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 01:23:21] Production.INFO: ==28735== Releasing lock... [2025-03-31 01:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 01:23:21] Production.INFO: 35.5 MB #Memory Used# [2025-03-31 01:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 22:24:06 [end_date_ymd] => 2025-03-31 01:24:06 [RateCDR] => 1 ) [2025-03-31 01:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 22:24:06' and `end` < '2025-03-31 01:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 01:24:18] Production.INFO: count ==937 [2025-03-31 01:24:19] Production.ERROR: pbx CDR StartTime 2025-03-30 22:24:06 - End Time 2025-03-31 01:24:06 [2025-03-31 01:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 01:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800121', 'tblTempUsageDetail_20' ) start [2025-03-31 01:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800121', 'tblTempUsageDetail_20' ) end [2025-03-31 01:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800121', 'tblTempVendorCDR_20' ) start [2025-03-31 01:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800121', 'tblTempVendorCDR_20' ) end [2025-03-31 01:24:19] Production.INFO: ProcessCDR(1,14800121,1,1,2) [2025-03-31 01:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800121', 'tblTempUsageDetail_20' ) start [2025-03-31 01:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800121', 'tblTempUsageDetail_20' ) end [2025-03-31 01:24:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 01:24:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 01:24:22] Production.INFO: ==28805== Releasing lock... [2025-03-31 01:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 01:24:22] Production.INFO: 36.5 MB #Memory Used# [2025-03-31 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 22:25:05 [end_date_ymd] => 2025-03-31 01:25:05 [RateCDR] => 1 ) [2025-03-31 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-30 22:25:05' and `end` < '2025-03-31 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-31 01:25:18] Production.INFO: count ==938 [2025-03-31 01:25:18] Production.ERROR: pbx CDR StartTime 2025-03-30 22:25:05 - End Time 2025-03-31 01:25:05 [2025-03-31 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800126', 'tblTempUsageDetail_20' ) start [2025-03-31 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800126', 'tblTempUsageDetail_20' ) end [2025-03-31 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800126', 'tblTempVendorCDR_20' ) start [2025-03-31 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800126', 'tblTempVendorCDR_20' ) end [2025-03-31 01:25:18] Production.INFO: ProcessCDR(1,14800126,1,1,2) [2025-03-31 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800126', 'tblTempUsageDetail_20' ) start [2025-03-31 01:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800126', 'tblTempUsageDetail_20' ) end [2025-03-31 01:25:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 01:25:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 01:25:22] Production.INFO: ==28886== Releasing lock... [2025-03-31 01:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 01:25:22] Production.INFO: 36.25 MB #Memory Used# [2025-03-31 01:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 22:26:05 [end_date_ymd] => 2025-03-31 01:26:05 [RateCDR] => 1 ) [2025-03-31 01:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 22:26:05' and `end` < '2025-03-31 01:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 01:26:18] Production.INFO: count ==928 [2025-03-31 01:26:18] Production.ERROR: pbx CDR StartTime 2025-03-30 22:26:05 - End Time 2025-03-31 01:26:05 [2025-03-31 01:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800131', 'tblTempUsageDetail_20' ) start [2025-03-31 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800131', 'tblTempUsageDetail_20' ) end [2025-03-31 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800131', 'tblTempVendorCDR_20' ) start [2025-03-31 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800131', 'tblTempVendorCDR_20' ) end [2025-03-31 01:26:18] Production.INFO: ProcessCDR(1,14800131,1,1,2) [2025-03-31 01:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800131', 'tblTempUsageDetail_20' ) start [2025-03-31 01:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800131', 'tblTempUsageDetail_20' ) end [2025-03-31 01:26:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 01:26:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 01:26:22] Production.INFO: ==28961== Releasing lock... [2025-03-31 01:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 01:26:22] Production.INFO: 36 MB #Memory Used# [2025-03-31 01:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 22:27:05 [end_date_ymd] => 2025-03-31 01:27:05 [RateCDR] => 1 ) [2025-03-31 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-30 22:27:05' and `end` < '2025-03-31 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-31 01:27:17] Production.INFO: count ==918 [2025-03-31 01:27:18] Production.ERROR: pbx CDR StartTime 2025-03-30 22:27:05 - End Time 2025-03-31 01:27:05 [2025-03-31 01:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800136', 'tblTempUsageDetail_20' ) start [2025-03-31 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800136', 'tblTempUsageDetail_20' ) end [2025-03-31 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800136', 'tblTempVendorCDR_20' ) start [2025-03-31 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800136', 'tblTempVendorCDR_20' ) end [2025-03-31 01:27:18] Production.INFO: ProcessCDR(1,14800136,1,1,2) [2025-03-31 01:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800136', 'tblTempUsageDetail_20' ) start [2025-03-31 01:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800136', 'tblTempUsageDetail_20' ) end [2025-03-31 01:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 01:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 01:27:21] Production.INFO: ==29029== Releasing lock... [2025-03-31 01:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 01:27:21] Production.INFO: 35 MB #Memory Used# [2025-03-31 01:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 22:28:06 [end_date_ymd] => 2025-03-31 01:28:06 [RateCDR] => 1 ) [2025-03-31 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-30 22:28:06' and `end` < '2025-03-31 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-31 01:28:18] Production.INFO: count ==903 [2025-03-31 01:28:19] Production.ERROR: pbx CDR StartTime 2025-03-30 22:28:06 - End Time 2025-03-31 01:28:06 [2025-03-31 01:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 01:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800141', 'tblTempUsageDetail_20' ) start [2025-03-31 01:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800141', 'tblTempUsageDetail_20' ) end [2025-03-31 01:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800141', 'tblTempVendorCDR_20' ) start [2025-03-31 01:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800141', 'tblTempVendorCDR_20' ) end [2025-03-31 01:28:19] Production.INFO: ProcessCDR(1,14800141,1,1,2) [2025-03-31 01:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800141', 'tblTempUsageDetail_20' ) start [2025-03-31 01:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800141', 'tblTempUsageDetail_20' ) end [2025-03-31 01:28:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 01:28:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 01:28:22] Production.INFO: ==29105== Releasing lock... [2025-03-31 01:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 01:28:22] Production.INFO: 35 MB #Memory Used# [2025-03-31 01:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 22:29:05 [end_date_ymd] => 2025-03-31 01:29:05 [RateCDR] => 1 ) [2025-03-31 01:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 22:29:05' and `end` < '2025-03-31 01:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 01:29:17] Production.INFO: count ==909 [2025-03-31 01:29:18] Production.ERROR: pbx CDR StartTime 2025-03-30 22:29:05 - End Time 2025-03-31 01:29:05 [2025-03-31 01:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800146', 'tblTempUsageDetail_20' ) start [2025-03-31 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800146', 'tblTempUsageDetail_20' ) end [2025-03-31 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800146', 'tblTempVendorCDR_20' ) start [2025-03-31 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800146', 'tblTempVendorCDR_20' ) end [2025-03-31 01:29:18] Production.INFO: ProcessCDR(1,14800146,1,1,2) [2025-03-31 01:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800146', 'tblTempUsageDetail_20' ) start [2025-03-31 01:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800146', 'tblTempUsageDetail_20' ) end [2025-03-31 01:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 01:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 01:29:21] Production.INFO: ==29177== Releasing lock... [2025-03-31 01:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 01:29:21] Production.INFO: 35.25 MB #Memory Used# [2025-03-31 01:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 22:30:06 [end_date_ymd] => 2025-03-31 01:30:06 [RateCDR] => 1 ) [2025-03-31 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-30 22:30:06' and `end` < '2025-03-31 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-31 01:30:19] Production.INFO: count ==873 [2025-03-31 01:30:19] Production.ERROR: pbx CDR StartTime 2025-03-30 22:30:06 - End Time 2025-03-31 01:30:06 [2025-03-31 01:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800152', 'tblTempUsageDetail_20' ) start [2025-03-31 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800152', 'tblTempUsageDetail_20' ) end [2025-03-31 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800152', 'tblTempVendorCDR_20' ) start [2025-03-31 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800152', 'tblTempVendorCDR_20' ) end [2025-03-31 01:30:19] Production.INFO: ProcessCDR(1,14800152,1,1,2) [2025-03-31 01:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800152', 'tblTempUsageDetail_20' ) start [2025-03-31 01:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800152', 'tblTempUsageDetail_20' ) end [2025-03-31 01:30:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 01:30:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 01:30:23] Production.INFO: ==29255== Releasing lock... [2025-03-31 01:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 01:30:23] Production.INFO: 35 MB #Memory Used# [2025-03-31 01:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 22:31:05 [end_date_ymd] => 2025-03-31 01:31:05 [RateCDR] => 1 ) [2025-03-31 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-30 22:31:05' and `end` < '2025-03-31 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-31 01:31:17] Production.INFO: count ==873 [2025-03-31 01:31:18] Production.ERROR: pbx CDR StartTime 2025-03-30 22:31:05 - End Time 2025-03-31 01:31:05 [2025-03-31 01:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800157', 'tblTempUsageDetail_20' ) start [2025-03-31 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800157', 'tblTempUsageDetail_20' ) end [2025-03-31 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800157', 'tblTempVendorCDR_20' ) start [2025-03-31 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800157', 'tblTempVendorCDR_20' ) end [2025-03-31 01:31:18] Production.INFO: ProcessCDR(1,14800157,1,1,2) [2025-03-31 01:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800157', 'tblTempUsageDetail_20' ) start [2025-03-31 01:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800157', 'tblTempUsageDetail_20' ) end [2025-03-31 01:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 01:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 01:31:21] Production.INFO: ==29329== Releasing lock... [2025-03-31 01:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 01:31:21] Production.INFO: 35 MB #Memory Used# [2025-03-31 01:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 22:32:06 [end_date_ymd] => 2025-03-31 01:32:06 [RateCDR] => 1 ) [2025-03-31 01: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-30 22:32:06' and `end` < '2025-03-31 01: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-31 01:32:18] Production.INFO: count ==881 [2025-03-31 01:32:19] Production.ERROR: pbx CDR StartTime 2025-03-30 22:32:06 - End Time 2025-03-31 01:32:06 [2025-03-31 01:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 01:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800162', 'tblTempUsageDetail_20' ) start [2025-03-31 01:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800162', 'tblTempUsageDetail_20' ) end [2025-03-31 01:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800162', 'tblTempVendorCDR_20' ) start [2025-03-31 01:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800162', 'tblTempVendorCDR_20' ) end [2025-03-31 01:32:19] Production.INFO: ProcessCDR(1,14800162,1,1,2) [2025-03-31 01:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800162', 'tblTempUsageDetail_20' ) start [2025-03-31 01:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800162', 'tblTempUsageDetail_20' ) end [2025-03-31 01:32:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 01:32:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 01:32:24] Production.INFO: ==29403== Releasing lock... [2025-03-31 01:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 01:32:24] Production.INFO: 35.25 MB #Memory Used# [2025-03-31 01:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 22:33:05 [end_date_ymd] => 2025-03-31 01:33:05 [RateCDR] => 1 ) [2025-03-31 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-30 22:33:05' and `end` < '2025-03-31 01:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 01:33:18] Production.INFO: count ==884 [2025-03-31 01:33:18] Production.ERROR: pbx CDR StartTime 2025-03-30 22:33:05 - End Time 2025-03-31 01:33:05 [2025-03-31 01:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800167', 'tblTempUsageDetail_20' ) start [2025-03-31 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800167', 'tblTempUsageDetail_20' ) end [2025-03-31 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800167', 'tblTempVendorCDR_20' ) start [2025-03-31 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800167', 'tblTempVendorCDR_20' ) end [2025-03-31 01:33:18] Production.INFO: ProcessCDR(1,14800167,1,1,2) [2025-03-31 01:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800167', 'tblTempUsageDetail_20' ) start [2025-03-31 01:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800167', 'tblTempUsageDetail_20' ) end [2025-03-31 01:33:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 01:33:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 01:33:22] Production.INFO: ==29477== Releasing lock... [2025-03-31 01:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 01:33:22] Production.INFO: 35.5 MB #Memory Used# [2025-03-31 01:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 22:34:05 [end_date_ymd] => 2025-03-31 01:34:05 [RateCDR] => 1 ) [2025-03-31 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-30 22:34:05' and `end` < '2025-03-31 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-31 01:34:18] Production.INFO: count ==880 [2025-03-31 01:34:18] Production.ERROR: pbx CDR StartTime 2025-03-30 22:34:05 - End Time 2025-03-31 01:34:05 [2025-03-31 01:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800172', 'tblTempUsageDetail_20' ) start [2025-03-31 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800172', 'tblTempUsageDetail_20' ) end [2025-03-31 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800172', 'tblTempVendorCDR_20' ) start [2025-03-31 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800172', 'tblTempVendorCDR_20' ) end [2025-03-31 01:34:18] Production.INFO: ProcessCDR(1,14800172,1,1,2) [2025-03-31 01:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800172', 'tblTempUsageDetail_20' ) start [2025-03-31 01:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800172', 'tblTempUsageDetail_20' ) end [2025-03-31 01:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 01:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 01:34:22] Production.INFO: ==29555== Releasing lock... [2025-03-31 01:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 01:34:22] Production.INFO: 35 MB #Memory Used# [2025-03-31 01:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 22:35:05 [end_date_ymd] => 2025-03-31 01:35:05 [RateCDR] => 1 ) [2025-03-31 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-30 22:35:05' and `end` < '2025-03-31 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-31 01:35:18] Production.INFO: count ==876 [2025-03-31 01:35:18] Production.ERROR: pbx CDR StartTime 2025-03-30 22:35:05 - End Time 2025-03-31 01:35:05 [2025-03-31 01:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800177', 'tblTempUsageDetail_20' ) start [2025-03-31 01:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800177', 'tblTempUsageDetail_20' ) end [2025-03-31 01:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800177', 'tblTempVendorCDR_20' ) start [2025-03-31 01:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800177', 'tblTempVendorCDR_20' ) end [2025-03-31 01:35:19] Production.INFO: ProcessCDR(1,14800177,1,1,2) [2025-03-31 01:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800177', 'tblTempUsageDetail_20' ) start [2025-03-31 01:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800177', 'tblTempUsageDetail_20' ) end [2025-03-31 01:35:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 01:35:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 01:35:23] Production.INFO: ==29630== Releasing lock... [2025-03-31 01:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 01:35:23] Production.INFO: 35 MB #Memory Used# [2025-03-31 01:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 22:36:05 [end_date_ymd] => 2025-03-31 01:36:05 [RateCDR] => 1 ) [2025-03-31 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-30 22:36:05' and `end` < '2025-03-31 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-31 01:36:18] Production.INFO: count ==879 [2025-03-31 01:36:18] Production.ERROR: pbx CDR StartTime 2025-03-30 22:36:05 - End Time 2025-03-31 01:36:05 [2025-03-31 01:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800182', 'tblTempUsageDetail_20' ) start [2025-03-31 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800182', 'tblTempUsageDetail_20' ) end [2025-03-31 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800182', 'tblTempVendorCDR_20' ) start [2025-03-31 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800182', 'tblTempVendorCDR_20' ) end [2025-03-31 01:36:18] Production.INFO: ProcessCDR(1,14800182,1,1,2) [2025-03-31 01:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800182', 'tblTempUsageDetail_20' ) start [2025-03-31 01:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800182', 'tblTempUsageDetail_20' ) end [2025-03-31 01:36:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 01:36:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 01:36:22] Production.INFO: ==29704== Releasing lock... [2025-03-31 01:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 01:36:22] Production.INFO: 35 MB #Memory Used# [2025-03-31 01:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 22:37:05 [end_date_ymd] => 2025-03-31 01:37:05 [RateCDR] => 1 ) [2025-03-31 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-30 22:37:05' and `end` < '2025-03-31 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-31 01:37:17] Production.INFO: count ==875 [2025-03-31 01:37:18] Production.ERROR: pbx CDR StartTime 2025-03-30 22:37:05 - End Time 2025-03-31 01:37:05 [2025-03-31 01:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800187', 'tblTempUsageDetail_20' ) start [2025-03-31 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800187', 'tblTempUsageDetail_20' ) end [2025-03-31 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800187', 'tblTempVendorCDR_20' ) start [2025-03-31 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800187', 'tblTempVendorCDR_20' ) end [2025-03-31 01:37:18] Production.INFO: ProcessCDR(1,14800187,1,1,2) [2025-03-31 01:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800187', 'tblTempUsageDetail_20' ) start [2025-03-31 01:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800187', 'tblTempUsageDetail_20' ) end [2025-03-31 01:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 01:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 01:37:21] Production.INFO: ==29780== Releasing lock... [2025-03-31 01:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 01:37:21] Production.INFO: 35 MB #Memory Used# [2025-03-31 01:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 22:38:06 [end_date_ymd] => 2025-03-31 01:38:06 [RateCDR] => 1 ) [2025-03-31 01: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-30 22:38:06' and `end` < '2025-03-31 01: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-31 01:38:18] Production.INFO: count ==875 [2025-03-31 01:38:19] Production.ERROR: pbx CDR StartTime 2025-03-30 22:38:06 - End Time 2025-03-31 01:38:06 [2025-03-31 01:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 01:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800192', 'tblTempUsageDetail_20' ) start [2025-03-31 01:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800192', 'tblTempUsageDetail_20' ) end [2025-03-31 01:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800192', 'tblTempVendorCDR_20' ) start [2025-03-31 01:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800192', 'tblTempVendorCDR_20' ) end [2025-03-31 01:38:19] Production.INFO: ProcessCDR(1,14800192,1,1,2) [2025-03-31 01:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800192', 'tblTempUsageDetail_20' ) start [2025-03-31 01:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800192', 'tblTempUsageDetail_20' ) end [2025-03-31 01:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 01:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 01:38:22] Production.INFO: ==29900== Releasing lock... [2025-03-31 01:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 01:38:22] Production.INFO: 34.75 MB #Memory Used# [2025-03-31 01:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 22:39:05 [end_date_ymd] => 2025-03-31 01:39:05 [RateCDR] => 1 ) [2025-03-31 01:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 22:39:05' and `end` < '2025-03-31 01:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 01:39:18] Production.INFO: count ==878 [2025-03-31 01:39:18] Production.ERROR: pbx CDR StartTime 2025-03-30 22:39:05 - End Time 2025-03-31 01:39:05 [2025-03-31 01:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800197', 'tblTempUsageDetail_20' ) start [2025-03-31 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800197', 'tblTempUsageDetail_20' ) end [2025-03-31 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800197', 'tblTempVendorCDR_20' ) start [2025-03-31 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800197', 'tblTempVendorCDR_20' ) end [2025-03-31 01:39:18] Production.INFO: ProcessCDR(1,14800197,1,1,2) [2025-03-31 01:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800197', 'tblTempUsageDetail_20' ) start [2025-03-31 01:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800197', 'tblTempUsageDetail_20' ) end [2025-03-31 01:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 01:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 01:39:21] Production.INFO: ==29973== Releasing lock... [2025-03-31 01:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 01:39:21] Production.INFO: 35 MB #Memory Used# [2025-03-31 01:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 22:40:06 [end_date_ymd] => 2025-03-31 01:40:06 [RateCDR] => 1 ) [2025-03-31 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-30 22:40:06' and `end` < '2025-03-31 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-31 01:40:18] Production.INFO: count ==885 [2025-03-31 01:40:19] Production.ERROR: pbx CDR StartTime 2025-03-30 22:40:06 - End Time 2025-03-31 01:40:06 [2025-03-31 01:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800203', 'tblTempUsageDetail_20' ) start [2025-03-31 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800203', 'tblTempUsageDetail_20' ) end [2025-03-31 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800203', 'tblTempVendorCDR_20' ) start [2025-03-31 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800203', 'tblTempVendorCDR_20' ) end [2025-03-31 01:40:19] Production.INFO: ProcessCDR(1,14800203,1,1,2) [2025-03-31 01:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800203', 'tblTempUsageDetail_20' ) start [2025-03-31 01:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800203', 'tblTempUsageDetail_20' ) end [2025-03-31 01:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 01:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 01:40:22] Production.INFO: ==30051== Releasing lock... [2025-03-31 01:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 01:40:22] Production.INFO: 34.75 MB #Memory Used# [2025-03-31 01:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 22:41:06 [end_date_ymd] => 2025-03-31 01:41:06 [RateCDR] => 1 ) [2025-03-31 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-30 22:41:06' and `end` < '2025-03-31 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-31 01:41:19] Production.INFO: count ==884 [2025-03-31 01:41:19] Production.ERROR: pbx CDR StartTime 2025-03-30 22:41:06 - End Time 2025-03-31 01:41:06 [2025-03-31 01:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 01:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800208', 'tblTempUsageDetail_20' ) start [2025-03-31 01:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800208', 'tblTempUsageDetail_20' ) end [2025-03-31 01:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800208', 'tblTempVendorCDR_20' ) start [2025-03-31 01:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800208', 'tblTempVendorCDR_20' ) end [2025-03-31 01:41:19] Production.INFO: ProcessCDR(1,14800208,1,1,2) [2025-03-31 01:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800208', 'tblTempUsageDetail_20' ) start [2025-03-31 01:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800208', 'tblTempUsageDetail_20' ) end [2025-03-31 01:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 01:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 01:41:23] Production.INFO: ==30131== Releasing lock... [2025-03-31 01:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 01:41:23] Production.INFO: 35 MB #Memory Used# [2025-03-31 01:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 22:42:05 [end_date_ymd] => 2025-03-31 01:42:05 [RateCDR] => 1 ) [2025-03-31 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-30 22:42:05' and `end` < '2025-03-31 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-31 01:42:18] Production.INFO: count ==890 [2025-03-31 01:42:18] Production.ERROR: pbx CDR StartTime 2025-03-30 22:42:05 - End Time 2025-03-31 01:42:05 [2025-03-31 01:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800213', 'tblTempUsageDetail_20' ) start [2025-03-31 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800213', 'tblTempUsageDetail_20' ) end [2025-03-31 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800213', 'tblTempVendorCDR_20' ) start [2025-03-31 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800213', 'tblTempVendorCDR_20' ) end [2025-03-31 01:42:18] Production.INFO: ProcessCDR(1,14800213,1,1,2) [2025-03-31 01:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800213', 'tblTempUsageDetail_20' ) start [2025-03-31 01:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800213', 'tblTempUsageDetail_20' ) end [2025-03-31 01:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 01:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 01:42:22] Production.INFO: ==30201== Releasing lock... [2025-03-31 01:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 01:42:22] Production.INFO: 35.5 MB #Memory Used# [2025-03-31 01:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 22:43:06 [end_date_ymd] => 2025-03-31 01:43:06 [RateCDR] => 1 ) [2025-03-31 01: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-30 22:43:06' and `end` < '2025-03-31 01: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-31 01:43:18] Production.INFO: count ==879 [2025-03-31 01:43:19] Production.ERROR: pbx CDR StartTime 2025-03-30 22:43:06 - End Time 2025-03-31 01:43:06 [2025-03-31 01:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 01:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800218', 'tblTempUsageDetail_20' ) start [2025-03-31 01:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800218', 'tblTempUsageDetail_20' ) end [2025-03-31 01:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800218', 'tblTempVendorCDR_20' ) start [2025-03-31 01:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800218', 'tblTempVendorCDR_20' ) end [2025-03-31 01:43:19] Production.INFO: ProcessCDR(1,14800218,1,1,2) [2025-03-31 01:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800218', 'tblTempUsageDetail_20' ) start [2025-03-31 01:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800218', 'tblTempUsageDetail_20' ) end [2025-03-31 01:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 01:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 01:43:22] Production.INFO: ==30277== Releasing lock... [2025-03-31 01:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 01:43:22] Production.INFO: 35 MB #Memory Used# [2025-03-31 01:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 22:44:05 [end_date_ymd] => 2025-03-31 01:44:05 [RateCDR] => 1 ) [2025-03-31 01:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 22:44:05' and `end` < '2025-03-31 01:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 01:44:18] Production.INFO: count ==884 [2025-03-31 01:44:18] Production.ERROR: pbx CDR StartTime 2025-03-30 22:44:05 - End Time 2025-03-31 01:44:05 [2025-03-31 01:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800223', 'tblTempUsageDetail_20' ) start [2025-03-31 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800223', 'tblTempUsageDetail_20' ) end [2025-03-31 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800223', 'tblTempVendorCDR_20' ) start [2025-03-31 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800223', 'tblTempVendorCDR_20' ) end [2025-03-31 01:44:18] Production.INFO: ProcessCDR(1,14800223,1,1,2) [2025-03-31 01:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800223', 'tblTempUsageDetail_20' ) start [2025-03-31 01:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800223', 'tblTempUsageDetail_20' ) end [2025-03-31 01:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 01:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 01:44:22] Production.INFO: ==30356== Releasing lock... [2025-03-31 01:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 01:44:22] Production.INFO: 35 MB #Memory Used# [2025-03-31 01:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 22:45:06 [end_date_ymd] => 2025-03-31 01:45:06 [RateCDR] => 1 ) [2025-03-31 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-30 22:45:06' and `end` < '2025-03-31 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-31 01:45:19] Production.INFO: count ==874 [2025-03-31 01:45:19] Production.ERROR: pbx CDR StartTime 2025-03-30 22:45:06 - End Time 2025-03-31 01:45:06 [2025-03-31 01:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 01:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800228', 'tblTempUsageDetail_20' ) start [2025-03-31 01:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800228', 'tblTempUsageDetail_20' ) end [2025-03-31 01:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800228', 'tblTempVendorCDR_20' ) start [2025-03-31 01:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800228', 'tblTempVendorCDR_20' ) end [2025-03-31 01:45:19] Production.INFO: ProcessCDR(1,14800228,1,1,2) [2025-03-31 01:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800228', 'tblTempUsageDetail_20' ) start [2025-03-31 01:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800228', 'tblTempUsageDetail_20' ) end [2025-03-31 01:45:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 01:45:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 01:45:22] Production.INFO: ==30434== Releasing lock... [2025-03-31 01:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 01:45:22] Production.INFO: 35 MB #Memory Used# [2025-03-31 01:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 22:46:05 [end_date_ymd] => 2025-03-31 01:46:05 [RateCDR] => 1 ) [2025-03-31 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-30 22:46:05' and `end` < '2025-03-31 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-31 01:46:18] Production.INFO: count ==873 [2025-03-31 01:46:18] Production.ERROR: pbx CDR StartTime 2025-03-30 22:46:05 - End Time 2025-03-31 01:46:05 [2025-03-31 01:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800233', 'tblTempUsageDetail_20' ) start [2025-03-31 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800233', 'tblTempUsageDetail_20' ) end [2025-03-31 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800233', 'tblTempVendorCDR_20' ) start [2025-03-31 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800233', 'tblTempVendorCDR_20' ) end [2025-03-31 01:46:18] Production.INFO: ProcessCDR(1,14800233,1,1,2) [2025-03-31 01:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800233', 'tblTempUsageDetail_20' ) start [2025-03-31 01:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800233', 'tblTempUsageDetail_20' ) end [2025-03-31 01:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 01:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 01:46:22] Production.INFO: ==30518== Releasing lock... [2025-03-31 01:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 01:46:22] Production.INFO: 34.5 MB #Memory Used# [2025-03-31 01:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 22:47:05 [end_date_ymd] => 2025-03-31 01:47:05 [RateCDR] => 1 ) [2025-03-31 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-30 22:47:05' and `end` < '2025-03-31 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-31 01:47:18] Production.INFO: count ==877 [2025-03-31 01:47:18] Production.ERROR: pbx CDR StartTime 2025-03-30 22:47:05 - End Time 2025-03-31 01:47:05 [2025-03-31 01:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800238', 'tblTempUsageDetail_20' ) start [2025-03-31 01:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800238', 'tblTempUsageDetail_20' ) end [2025-03-31 01:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800238', 'tblTempVendorCDR_20' ) start [2025-03-31 01:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800238', 'tblTempVendorCDR_20' ) end [2025-03-31 01:47:19] Production.INFO: ProcessCDR(1,14800238,1,1,2) [2025-03-31 01:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800238', 'tblTempUsageDetail_20' ) start [2025-03-31 01:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800238', 'tblTempUsageDetail_20' ) end [2025-03-31 01:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 01:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 01:47:22] Production.INFO: ==30598== Releasing lock... [2025-03-31 01:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 01:47:22] Production.INFO: 35.25 MB #Memory Used# [2025-03-31 01:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 22:48:04 [end_date_ymd] => 2025-03-31 01:48:04 [RateCDR] => 1 ) [2025-03-31 01:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 22:48:04' and `end` < '2025-03-31 01:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 01:48:17] Production.INFO: count ==877 [2025-03-31 01:48:17] Production.ERROR: pbx CDR StartTime 2025-03-30 22:48:04 - End Time 2025-03-31 01:48:04 [2025-03-31 01:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 01:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800243', 'tblTempUsageDetail_20' ) start [2025-03-31 01:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800243', 'tblTempUsageDetail_20' ) end [2025-03-31 01:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800243', 'tblTempVendorCDR_20' ) start [2025-03-31 01:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800243', 'tblTempVendorCDR_20' ) end [2025-03-31 01:48:17] Production.INFO: ProcessCDR(1,14800243,1,1,2) [2025-03-31 01:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800243', 'tblTempUsageDetail_20' ) start [2025-03-31 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800243', 'tblTempUsageDetail_20' ) end [2025-03-31 01:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 01:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 01:48:21] Production.INFO: ==30680== Releasing lock... [2025-03-31 01:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 01:48:21] Production.INFO: 35.25 MB #Memory Used# [2025-03-31 01:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 22:49:05 [end_date_ymd] => 2025-03-31 01:49:05 [RateCDR] => 1 ) [2025-03-31 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-30 22:49:05' and `end` < '2025-03-31 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-31 01:49:18] Production.INFO: count ==867 [2025-03-31 01:49:18] Production.ERROR: pbx CDR StartTime 2025-03-30 22:49:05 - End Time 2025-03-31 01:49:05 [2025-03-31 01:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800248', 'tblTempUsageDetail_20' ) start [2025-03-31 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800248', 'tblTempUsageDetail_20' ) end [2025-03-31 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800248', 'tblTempVendorCDR_20' ) start [2025-03-31 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800248', 'tblTempVendorCDR_20' ) end [2025-03-31 01:49:18] Production.INFO: ProcessCDR(1,14800248,1,1,2) [2025-03-31 01:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800248', 'tblTempUsageDetail_20' ) start [2025-03-31 01:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800248', 'tblTempUsageDetail_20' ) end [2025-03-31 01:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 01:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 01:49:22] Production.INFO: ==30756== Releasing lock... [2025-03-31 01:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 01:49:22] Production.INFO: 34.75 MB #Memory Used# [2025-03-31 01:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 22:50:06 [end_date_ymd] => 2025-03-31 01:50:06 [RateCDR] => 1 ) [2025-03-31 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-30 22:50:06' and `end` < '2025-03-31 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-31 01:50:19] Production.INFO: count ==905 [2025-03-31 01:50:19] Production.ERROR: pbx CDR StartTime 2025-03-30 22:50:06 - End Time 2025-03-31 01:50:06 [2025-03-31 01:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800254', 'tblTempUsageDetail_20' ) start [2025-03-31 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800254', 'tblTempUsageDetail_20' ) end [2025-03-31 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800254', 'tblTempVendorCDR_20' ) start [2025-03-31 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800254', 'tblTempVendorCDR_20' ) end [2025-03-31 01:50:19] Production.INFO: ProcessCDR(1,14800254,1,1,2) [2025-03-31 01:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800254', 'tblTempUsageDetail_20' ) start [2025-03-31 01:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800254', 'tblTempUsageDetail_20' ) end [2025-03-31 01:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 01:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 01:50:22] Production.INFO: ==30839== Releasing lock... [2025-03-31 01:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 01:50:22] Production.INFO: 35 MB #Memory Used# [2025-03-31 01:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 22:51:05 [end_date_ymd] => 2025-03-31 01:51:05 [RateCDR] => 1 ) [2025-03-31 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-30 22:51:05' and `end` < '2025-03-31 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-31 01:51:18] Production.INFO: count ==913 [2025-03-31 01:51:18] Production.ERROR: pbx CDR StartTime 2025-03-30 22:51:05 - End Time 2025-03-31 01:51:05 [2025-03-31 01:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800259', 'tblTempUsageDetail_20' ) start [2025-03-31 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800259', 'tblTempUsageDetail_20' ) end [2025-03-31 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800259', 'tblTempVendorCDR_20' ) start [2025-03-31 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800259', 'tblTempVendorCDR_20' ) end [2025-03-31 01:51:18] Production.INFO: ProcessCDR(1,14800259,1,1,2) [2025-03-31 01:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800259', 'tblTempUsageDetail_20' ) start [2025-03-31 01:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800259', 'tblTempUsageDetail_20' ) end [2025-03-31 01:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 01:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 01:51:22] Production.INFO: ==30925== Releasing lock... [2025-03-31 01:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 01:51:22] Production.INFO: 34.75 MB #Memory Used# [2025-03-31 01:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 22:52:05 [end_date_ymd] => 2025-03-31 01:52:05 [RateCDR] => 1 ) [2025-03-31 01:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 22:52:05' and `end` < '2025-03-31 01:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 01:52:17] Production.INFO: count ==912 [2025-03-31 01:52:18] Production.ERROR: pbx CDR StartTime 2025-03-30 22:52:05 - End Time 2025-03-31 01:52:05 [2025-03-31 01:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800264', 'tblTempUsageDetail_20' ) start [2025-03-31 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800264', 'tblTempUsageDetail_20' ) end [2025-03-31 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800264', 'tblTempVendorCDR_20' ) start [2025-03-31 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800264', 'tblTempVendorCDR_20' ) end [2025-03-31 01:52:18] Production.INFO: ProcessCDR(1,14800264,1,1,2) [2025-03-31 01:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800264', 'tblTempUsageDetail_20' ) start [2025-03-31 01:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800264', 'tblTempUsageDetail_20' ) end [2025-03-31 01:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 01:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 01:52:21] Production.INFO: ==31016== Releasing lock... [2025-03-31 01:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 01:52:21] Production.INFO: 34.75 MB #Memory Used# [2025-03-31 01:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 22:53:05 [end_date_ymd] => 2025-03-31 01:53:05 [RateCDR] => 1 ) [2025-03-31 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-30 22:53:05' and `end` < '2025-03-31 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-31 01:53:18] Production.INFO: count ==915 [2025-03-31 01:53:18] Production.ERROR: pbx CDR StartTime 2025-03-30 22:53:05 - End Time 2025-03-31 01:53:05 [2025-03-31 01:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800269', 'tblTempUsageDetail_20' ) start [2025-03-31 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800269', 'tblTempUsageDetail_20' ) end [2025-03-31 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800269', 'tblTempVendorCDR_20' ) start [2025-03-31 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800269', 'tblTempVendorCDR_20' ) end [2025-03-31 01:53:18] Production.INFO: ProcessCDR(1,14800269,1,1,2) [2025-03-31 01:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800269', 'tblTempUsageDetail_20' ) start [2025-03-31 01:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800269', 'tblTempUsageDetail_20' ) end [2025-03-31 01:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 01:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 01:53:22] Production.INFO: ==31151== Releasing lock... [2025-03-31 01:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 01:53:22] Production.INFO: 35 MB #Memory Used# [2025-03-31 01:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 22:54:05 [end_date_ymd] => 2025-03-31 01:54:05 [RateCDR] => 1 ) [2025-03-31 01:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 22:54:05' and `end` < '2025-03-31 01:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 01:54:17] Production.INFO: count ==914 [2025-03-31 01:54:18] Production.ERROR: pbx CDR StartTime 2025-03-30 22:54:05 - End Time 2025-03-31 01:54:05 [2025-03-31 01:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800274', 'tblTempUsageDetail_20' ) start [2025-03-31 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800274', 'tblTempUsageDetail_20' ) end [2025-03-31 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800274', 'tblTempVendorCDR_20' ) start [2025-03-31 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800274', 'tblTempVendorCDR_20' ) end [2025-03-31 01:54:18] Production.INFO: ProcessCDR(1,14800274,1,1,2) [2025-03-31 01:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800274', 'tblTempUsageDetail_20' ) start [2025-03-31 01:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800274', 'tblTempUsageDetail_20' ) end [2025-03-31 01:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 01:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 01:54:21] Production.INFO: ==31233== Releasing lock... [2025-03-31 01:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 01:54:21] Production.INFO: 35 MB #Memory Used# [2025-03-31 01:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 22:55:05 [end_date_ymd] => 2025-03-31 01:55:05 [RateCDR] => 1 ) [2025-03-31 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-30 22:55:05' and `end` < '2025-03-31 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-31 01:55:18] Production.INFO: count ==902 [2025-03-31 01:55:18] Production.ERROR: pbx CDR StartTime 2025-03-30 22:55:05 - End Time 2025-03-31 01:55:05 [2025-03-31 01:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800279', 'tblTempUsageDetail_20' ) start [2025-03-31 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800279', 'tblTempUsageDetail_20' ) end [2025-03-31 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800279', 'tblTempVendorCDR_20' ) start [2025-03-31 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800279', 'tblTempVendorCDR_20' ) end [2025-03-31 01:55:18] Production.INFO: ProcessCDR(1,14800279,1,1,2) [2025-03-31 01:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800279', 'tblTempUsageDetail_20' ) start [2025-03-31 01:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800279', 'tblTempUsageDetail_20' ) end [2025-03-31 01:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 01:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 01:55:22] Production.INFO: ==31314== Releasing lock... [2025-03-31 01:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 01:55:22] Production.INFO: 35.5 MB #Memory Used# [2025-03-31 01:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 22:56:06 [end_date_ymd] => 2025-03-31 01:56:06 [RateCDR] => 1 ) [2025-03-31 01:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 22:56:06' and `end` < '2025-03-31 01:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 01:56:18] Production.INFO: count ==902 [2025-03-31 01:56:19] Production.ERROR: pbx CDR StartTime 2025-03-30 22:56:06 - End Time 2025-03-31 01:56:06 [2025-03-31 01:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800284', 'tblTempUsageDetail_20' ) start [2025-03-31 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800284', 'tblTempUsageDetail_20' ) end [2025-03-31 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800284', 'tblTempVendorCDR_20' ) start [2025-03-31 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800284', 'tblTempVendorCDR_20' ) end [2025-03-31 01:56:19] Production.INFO: ProcessCDR(1,14800284,1,1,2) [2025-03-31 01:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800284', 'tblTempUsageDetail_20' ) start [2025-03-31 01:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800284', 'tblTempUsageDetail_20' ) end [2025-03-31 01:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 01:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 01:56:22] Production.INFO: ==31402== Releasing lock... [2025-03-31 01:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 01:56:22] Production.INFO: 35.5 MB #Memory Used# [2025-03-31 01:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 22:57:05 [end_date_ymd] => 2025-03-31 01:57:05 [RateCDR] => 1 ) [2025-03-31 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-30 22:57:05' and `end` < '2025-03-31 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-31 01:57:18] Production.INFO: count ==897 [2025-03-31 01:57:18] Production.ERROR: pbx CDR StartTime 2025-03-30 22:57:05 - End Time 2025-03-31 01:57:05 [2025-03-31 01:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800289', 'tblTempUsageDetail_20' ) start [2025-03-31 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800289', 'tblTempUsageDetail_20' ) end [2025-03-31 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800289', 'tblTempVendorCDR_20' ) start [2025-03-31 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800289', 'tblTempVendorCDR_20' ) end [2025-03-31 01:57:18] Production.INFO: ProcessCDR(1,14800289,1,1,2) [2025-03-31 01:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800289', 'tblTempUsageDetail_20' ) start [2025-03-31 01:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800289', 'tblTempUsageDetail_20' ) end [2025-03-31 01:57:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 01:57:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 01:57:23] Production.INFO: ==31488== Releasing lock... [2025-03-31 01:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 01:57:23] Production.INFO: 35 MB #Memory Used# [2025-03-31 01:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 22:58:06 [end_date_ymd] => 2025-03-31 01:58:06 [RateCDR] => 1 ) [2025-03-31 01:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 22:58:06' and `end` < '2025-03-31 01:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 01:58:19] Production.INFO: count ==898 [2025-03-31 01:58:19] Production.ERROR: pbx CDR StartTime 2025-03-30 22:58:06 - End Time 2025-03-31 01:58:06 [2025-03-31 01:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800294', 'tblTempUsageDetail_20' ) start [2025-03-31 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800294', 'tblTempUsageDetail_20' ) end [2025-03-31 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800294', 'tblTempVendorCDR_20' ) start [2025-03-31 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800294', 'tblTempVendorCDR_20' ) end [2025-03-31 01:58:19] Production.INFO: ProcessCDR(1,14800294,1,1,2) [2025-03-31 01:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800294', 'tblTempUsageDetail_20' ) start [2025-03-31 01:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800294', 'tblTempUsageDetail_20' ) end [2025-03-31 01:58:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 01:58:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 01:58:24] Production.INFO: ==31569== Releasing lock... [2025-03-31 01:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 01:58:24] Production.INFO: 35 MB #Memory Used# [2025-03-31 01:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 22:59:05 [end_date_ymd] => 2025-03-31 01:59:05 [RateCDR] => 1 ) [2025-03-31 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-30 22:59:05' and `end` < '2025-03-31 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-31 01:59:18] Production.INFO: count ==881 [2025-03-31 01:59:18] Production.ERROR: pbx CDR StartTime 2025-03-30 22:59:05 - End Time 2025-03-31 01:59:05 [2025-03-31 01:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800299', 'tblTempUsageDetail_20' ) start [2025-03-31 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800299', 'tblTempUsageDetail_20' ) end [2025-03-31 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800299', 'tblTempVendorCDR_20' ) start [2025-03-31 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800299', 'tblTempVendorCDR_20' ) end [2025-03-31 01:59:18] Production.INFO: ProcessCDR(1,14800299,1,1,2) [2025-03-31 01:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 01:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 01:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800299', 'tblTempUsageDetail_20' ) start [2025-03-31 01:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800299', 'tblTempUsageDetail_20' ) end [2025-03-31 01:59:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 01:59:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 01:59:23] Production.INFO: ==31652== Releasing lock... [2025-03-31 01:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 01:59:23] Production.INFO: 35 MB #Memory Used# [2025-03-31 02:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 23:00:07 [end_date_ymd] => 2025-03-31 02:00:07 [RateCDR] => 1 ) [2025-03-31 02:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 23:00:07' and `end` < '2025-03-31 02:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 02:00:20] Production.INFO: count ==890 [2025-03-31 02:00:20] Production.ERROR: pbx CDR StartTime 2025-03-30 23:00:07 - End Time 2025-03-31 02:00:07 [2025-03-31 02:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 02:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800305', 'tblTempUsageDetail_20' ) start [2025-03-31 02:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800305', 'tblTempUsageDetail_20' ) end [2025-03-31 02:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800305', 'tblTempVendorCDR_20' ) start [2025-03-31 02:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800305', 'tblTempVendorCDR_20' ) end [2025-03-31 02:00:20] Production.INFO: ProcessCDR(1,14800305,1,1,2) [2025-03-31 02:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800305', 'tblTempUsageDetail_20' ) start [2025-03-31 02:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800305', 'tblTempUsageDetail_20' ) end [2025-03-31 02:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 02:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 02:00:23] Production.INFO: ==31740== Releasing lock... [2025-03-31 02:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 02:00:23] Production.INFO: 35 MB #Memory Used# [2025-03-31 02:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 23:01:05 [end_date_ymd] => 2025-03-31 02:01:05 [RateCDR] => 1 ) [2025-03-31 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-30 23:01:05' and `end` < '2025-03-31 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-31 02:01:18] Production.INFO: count ==890 [2025-03-31 02:01:18] Production.ERROR: pbx CDR StartTime 2025-03-30 23:01:05 - End Time 2025-03-31 02:01:05 [2025-03-31 02:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800310', 'tblTempUsageDetail_20' ) start [2025-03-31 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800310', 'tblTempUsageDetail_20' ) end [2025-03-31 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800310', 'tblTempVendorCDR_20' ) start [2025-03-31 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800310', 'tblTempVendorCDR_20' ) end [2025-03-31 02:01:19] Production.INFO: ProcessCDR(1,14800310,1,1,2) [2025-03-31 02:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800310', 'tblTempUsageDetail_20' ) start [2025-03-31 02:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800310', 'tblTempUsageDetail_20' ) end [2025-03-31 02:01:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 02:01:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 02:01:22] Production.INFO: ==31842== Releasing lock... [2025-03-31 02:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 02:01:22] Production.INFO: 35 MB #Memory Used# [2025-03-31 02:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 23:02:05 [end_date_ymd] => 2025-03-31 02:02:05 [RateCDR] => 1 ) [2025-03-31 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-30 23:02:05' and `end` < '2025-03-31 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-31 02:02:18] Production.INFO: count ==888 [2025-03-31 02:02:18] Production.ERROR: pbx CDR StartTime 2025-03-30 23:02:05 - End Time 2025-03-31 02:02:05 [2025-03-31 02:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800315', 'tblTempUsageDetail_20' ) start [2025-03-31 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800315', 'tblTempUsageDetail_20' ) end [2025-03-31 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800315', 'tblTempVendorCDR_20' ) start [2025-03-31 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800315', 'tblTempVendorCDR_20' ) end [2025-03-31 02:02:18] Production.INFO: ProcessCDR(1,14800315,1,1,2) [2025-03-31 02:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800315', 'tblTempUsageDetail_20' ) start [2025-03-31 02:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800315', 'tblTempUsageDetail_20' ) end [2025-03-31 02:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 02:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 02:02:22] Production.INFO: ==32009== Releasing lock... [2025-03-31 02:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 02:02:22] Production.INFO: 35 MB #Memory Used# [2025-03-31 02:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 23:03:05 [end_date_ymd] => 2025-03-31 02:03:05 [RateCDR] => 1 ) [2025-03-31 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-30 23:03:05' and `end` < '2025-03-31 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-31 02:03:18] Production.INFO: count ==872 [2025-03-31 02:03:18] Production.ERROR: pbx CDR StartTime 2025-03-30 23:03:05 - End Time 2025-03-31 02:03:05 [2025-03-31 02:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800320', 'tblTempUsageDetail_20' ) start [2025-03-31 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800320', 'tblTempUsageDetail_20' ) end [2025-03-31 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800320', 'tblTempVendorCDR_20' ) start [2025-03-31 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800320', 'tblTempVendorCDR_20' ) end [2025-03-31 02:03:18] Production.INFO: ProcessCDR(1,14800320,1,1,2) [2025-03-31 02:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800320', 'tblTempUsageDetail_20' ) start [2025-03-31 02:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800320', 'tblTempUsageDetail_20' ) end [2025-03-31 02:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 02:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 02:03:21] Production.INFO: ==32094== Releasing lock... [2025-03-31 02:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 02:03:21] Production.INFO: 35 MB #Memory Used# [2025-03-31 02:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 23:04:06 [end_date_ymd] => 2025-03-31 02:04:06 [RateCDR] => 1 ) [2025-03-31 02:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 23:04:06' and `end` < '2025-03-31 02:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 02:04:18] Production.INFO: count ==871 [2025-03-31 02:04:18] Production.ERROR: pbx CDR StartTime 2025-03-30 23:04:06 - End Time 2025-03-31 02:04:06 [2025-03-31 02:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800325', 'tblTempUsageDetail_20' ) start [2025-03-31 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800325', 'tblTempUsageDetail_20' ) end [2025-03-31 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800325', 'tblTempVendorCDR_20' ) start [2025-03-31 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800325', 'tblTempVendorCDR_20' ) end [2025-03-31 02:04:18] Production.INFO: ProcessCDR(1,14800325,1,1,2) [2025-03-31 02:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800325', 'tblTempUsageDetail_20' ) start [2025-03-31 02:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800325', 'tblTempUsageDetail_20' ) end [2025-03-31 02:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 02:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 02:04:22] Production.INFO: ==32177== Releasing lock... [2025-03-31 02:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 02:04:22] Production.INFO: 34.75 MB #Memory Used# [2025-03-31 02:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 23:05:05 [end_date_ymd] => 2025-03-31 02:05:05 [RateCDR] => 1 ) [2025-03-31 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-30 23:05:05' and `end` < '2025-03-31 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-31 02:05:18] Production.INFO: count ==856 [2025-03-31 02:05:18] Production.ERROR: pbx CDR StartTime 2025-03-30 23:05:05 - End Time 2025-03-31 02:05:05 [2025-03-31 02:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800330', 'tblTempUsageDetail_20' ) start [2025-03-31 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800330', 'tblTempUsageDetail_20' ) end [2025-03-31 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800330', 'tblTempVendorCDR_20' ) start [2025-03-31 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800330', 'tblTempVendorCDR_20' ) end [2025-03-31 02:05:18] Production.INFO: ProcessCDR(1,14800330,1,1,2) [2025-03-31 02:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800330', 'tblTempUsageDetail_20' ) start [2025-03-31 02:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800330', 'tblTempUsageDetail_20' ) end [2025-03-31 02:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 02:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 02:05:21] Production.INFO: ==32265== Releasing lock... [2025-03-31 02:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 02:05:21] Production.INFO: 34 MB #Memory Used# [2025-03-31 02:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 23:06:06 [end_date_ymd] => 2025-03-31 02:06:06 [RateCDR] => 1 ) [2025-03-31 02:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 23:06:06' and `end` < '2025-03-31 02:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 02:06:18] Production.INFO: count ==855 [2025-03-31 02:06:19] Production.ERROR: pbx CDR StartTime 2025-03-30 23:06:06 - End Time 2025-03-31 02:06:06 [2025-03-31 02:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 02:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800335', 'tblTempUsageDetail_20' ) start [2025-03-31 02:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800335', 'tblTempUsageDetail_20' ) end [2025-03-31 02:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800335', 'tblTempVendorCDR_20' ) start [2025-03-31 02:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800335', 'tblTempVendorCDR_20' ) end [2025-03-31 02:06:19] Production.INFO: ProcessCDR(1,14800335,1,1,2) [2025-03-31 02:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800335', 'tblTempUsageDetail_20' ) start [2025-03-31 02:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800335', 'tblTempUsageDetail_20' ) end [2025-03-31 02:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 02:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 02:06:22] Production.INFO: ==32350== Releasing lock... [2025-03-31 02:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 02:06:22] Production.INFO: 34 MB #Memory Used# [2025-03-31 02:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 23:07:05 [end_date_ymd] => 2025-03-31 02:07:05 [RateCDR] => 1 ) [2025-03-31 02:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 23:07:05' and `end` < '2025-03-31 02:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 02:07:18] Production.INFO: count ==839 [2025-03-31 02:07:18] Production.ERROR: pbx CDR StartTime 2025-03-30 23:07:05 - End Time 2025-03-31 02:07:05 [2025-03-31 02:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800340', 'tblTempUsageDetail_20' ) start [2025-03-31 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800340', 'tblTempUsageDetail_20' ) end [2025-03-31 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800340', 'tblTempVendorCDR_20' ) start [2025-03-31 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800340', 'tblTempVendorCDR_20' ) end [2025-03-31 02:07:18] Production.INFO: ProcessCDR(1,14800340,1,1,2) [2025-03-31 02:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800340', 'tblTempUsageDetail_20' ) start [2025-03-31 02:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800340', 'tblTempUsageDetail_20' ) end [2025-03-31 02:07:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 02:07:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 02:07:22] Production.INFO: ==32426== Releasing lock... [2025-03-31 02:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 02:07:22] Production.INFO: 34.25 MB #Memory Used# [2025-03-31 02:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 23:08:06 [end_date_ymd] => 2025-03-31 02:08:06 [RateCDR] => 1 ) [2025-03-31 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-30 23:08:06' and `end` < '2025-03-31 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-31 02:08:18] Production.INFO: count ==813 [2025-03-31 02:08:18] Production.ERROR: pbx CDR StartTime 2025-03-30 23:08:06 - End Time 2025-03-31 02:08:06 [2025-03-31 02:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800345', 'tblTempUsageDetail_20' ) start [2025-03-31 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800345', 'tblTempUsageDetail_20' ) end [2025-03-31 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800345', 'tblTempVendorCDR_20' ) start [2025-03-31 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800345', 'tblTempVendorCDR_20' ) end [2025-03-31 02:08:18] Production.INFO: ProcessCDR(1,14800345,1,1,2) [2025-03-31 02:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800345', 'tblTempUsageDetail_20' ) start [2025-03-31 02:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800345', 'tblTempUsageDetail_20' ) end [2025-03-31 02:08:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 02:08:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 02:08:22] Production.INFO: ==32509== Releasing lock... [2025-03-31 02:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 02:08:22] Production.INFO: 34 MB #Memory Used# [2025-03-31 02:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 23:09:05 [end_date_ymd] => 2025-03-31 02:09:05 [RateCDR] => 1 ) [2025-03-31 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-30 23:09:05' and `end` < '2025-03-31 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-31 02:09:17] Production.INFO: count ==787 [2025-03-31 02:09:18] Production.ERROR: pbx CDR StartTime 2025-03-30 23:09:05 - End Time 2025-03-31 02:09:05 [2025-03-31 02:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800350', 'tblTempUsageDetail_20' ) start [2025-03-31 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800350', 'tblTempUsageDetail_20' ) end [2025-03-31 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800350', 'tblTempVendorCDR_20' ) start [2025-03-31 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800350', 'tblTempVendorCDR_20' ) end [2025-03-31 02:09:18] Production.INFO: ProcessCDR(1,14800350,1,1,2) [2025-03-31 02:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800350', 'tblTempUsageDetail_20' ) start [2025-03-31 02:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800350', 'tblTempUsageDetail_20' ) end [2025-03-31 02:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 02:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 02:09:21] Production.INFO: ==32620== Releasing lock... [2025-03-31 02:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 02:09:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-31 02:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 23:10:06 [end_date_ymd] => 2025-03-31 02:10:06 [RateCDR] => 1 ) [2025-03-31 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-30 23:10:06' and `end` < '2025-03-31 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-31 02:10:19] Production.INFO: count ==795 [2025-03-31 02:10:19] Production.ERROR: pbx CDR StartTime 2025-03-30 23:10:06 - End Time 2025-03-31 02:10:06 [2025-03-31 02:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800356', 'tblTempUsageDetail_20' ) start [2025-03-31 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800356', 'tblTempUsageDetail_20' ) end [2025-03-31 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800356', 'tblTempVendorCDR_20' ) start [2025-03-31 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800356', 'tblTempVendorCDR_20' ) end [2025-03-31 02:10:19] Production.INFO: ProcessCDR(1,14800356,1,1,2) [2025-03-31 02:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800356', 'tblTempUsageDetail_20' ) start [2025-03-31 02:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800356', 'tblTempUsageDetail_20' ) end [2025-03-31 02:10:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 02:10:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 02:10:24] Production.INFO: ==32698== Releasing lock... [2025-03-31 02:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 02:10:24] Production.INFO: 34.25 MB #Memory Used# [2025-03-31 02:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 23:11:05 [end_date_ymd] => 2025-03-31 02:11:05 [RateCDR] => 1 ) [2025-03-31 02:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 23:11:05' and `end` < '2025-03-31 02:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 02:11:17] Production.INFO: count ==793 [2025-03-31 02:11:18] Production.ERROR: pbx CDR StartTime 2025-03-30 23:11:05 - End Time 2025-03-31 02:11:05 [2025-03-31 02:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800361', 'tblTempUsageDetail_20' ) start [2025-03-31 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800361', 'tblTempUsageDetail_20' ) end [2025-03-31 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800361', 'tblTempVendorCDR_20' ) start [2025-03-31 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800361', 'tblTempVendorCDR_20' ) end [2025-03-31 02:11:18] Production.INFO: ProcessCDR(1,14800361,1,1,2) [2025-03-31 02:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800361', 'tblTempUsageDetail_20' ) start [2025-03-31 02:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800361', 'tblTempUsageDetail_20' ) end [2025-03-31 02:11:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 02:11:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 02:11:23] Production.INFO: ==307== Releasing lock... [2025-03-31 02:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 02:11:23] Production.INFO: 33.5 MB #Memory Used# [2025-03-31 02:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 23:12:06 [end_date_ymd] => 2025-03-31 02:12:06 [RateCDR] => 1 ) [2025-03-31 02:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 23:12:06' and `end` < '2025-03-31 02:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 02:12:18] Production.INFO: count ==809 [2025-03-31 02:12:19] Production.ERROR: pbx CDR StartTime 2025-03-30 23:12:06 - End Time 2025-03-31 02:12:06 [2025-03-31 02:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800366', 'tblTempUsageDetail_20' ) start [2025-03-31 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800366', 'tblTempUsageDetail_20' ) end [2025-03-31 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800366', 'tblTempVendorCDR_20' ) start [2025-03-31 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800366', 'tblTempVendorCDR_20' ) end [2025-03-31 02:12:19] Production.INFO: ProcessCDR(1,14800366,1,1,2) [2025-03-31 02:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800366', 'tblTempUsageDetail_20' ) start [2025-03-31 02:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800366', 'tblTempUsageDetail_20' ) end [2025-03-31 02:12:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 02:12:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 02:12:24] Production.INFO: ==404== Releasing lock... [2025-03-31 02:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 02:12:24] Production.INFO: 34.25 MB #Memory Used# [2025-03-31 02:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 23:13:05 [end_date_ymd] => 2025-03-31 02:13:05 [RateCDR] => 1 ) [2025-03-31 02:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 23:13:05' and `end` < '2025-03-31 02:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 02:13:18] Production.INFO: count ==774 [2025-03-31 02:13:18] Production.ERROR: pbx CDR StartTime 2025-03-30 23:13:05 - End Time 2025-03-31 02:13:05 [2025-03-31 02:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800371', 'tblTempUsageDetail_20' ) start [2025-03-31 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800371', 'tblTempUsageDetail_20' ) end [2025-03-31 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800371', 'tblTempVendorCDR_20' ) start [2025-03-31 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800371', 'tblTempVendorCDR_20' ) end [2025-03-31 02:13:18] Production.INFO: ProcessCDR(1,14800371,1,1,2) [2025-03-31 02:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800371', 'tblTempUsageDetail_20' ) start [2025-03-31 02:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800371', 'tblTempUsageDetail_20' ) end [2025-03-31 02:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 02:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 02:13:21] Production.INFO: ==478== Releasing lock... [2025-03-31 02:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 02:13:21] Production.INFO: 34 MB #Memory Used# [2025-03-31 02:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 23:14:05 [end_date_ymd] => 2025-03-31 02:14:05 [RateCDR] => 1 ) [2025-03-31 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-30 23:14:05' and `end` < '2025-03-31 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-31 02:14:18] Production.INFO: count ==772 [2025-03-31 02:14:18] Production.ERROR: pbx CDR StartTime 2025-03-30 23:14:05 - End Time 2025-03-31 02:14:05 [2025-03-31 02:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800376', 'tblTempUsageDetail_20' ) start [2025-03-31 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800376', 'tblTempUsageDetail_20' ) end [2025-03-31 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800376', 'tblTempVendorCDR_20' ) start [2025-03-31 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800376', 'tblTempVendorCDR_20' ) end [2025-03-31 02:14:18] Production.INFO: ProcessCDR(1,14800376,1,1,2) [2025-03-31 02:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800376', 'tblTempUsageDetail_20' ) start [2025-03-31 02:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800376', 'tblTempUsageDetail_20' ) end [2025-03-31 02:14:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 02:14:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 02:14:22] Production.INFO: ==554== Releasing lock... [2025-03-31 02:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 02:14:22] Production.INFO: 34.5 MB #Memory Used# [2025-03-31 02:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 23:15:05 [end_date_ymd] => 2025-03-31 02:15:05 [RateCDR] => 1 ) [2025-03-31 02:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 23:15:05' and `end` < '2025-03-31 02:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 02:15:17] Production.INFO: count ==751 [2025-03-31 02:15:18] Production.ERROR: pbx CDR StartTime 2025-03-30 23:15:05 - End Time 2025-03-31 02:15:05 [2025-03-31 02:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800381', 'tblTempUsageDetail_20' ) start [2025-03-31 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800381', 'tblTempUsageDetail_20' ) end [2025-03-31 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800381', 'tblTempVendorCDR_20' ) start [2025-03-31 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800381', 'tblTempVendorCDR_20' ) end [2025-03-31 02:15:18] Production.INFO: ProcessCDR(1,14800381,1,1,2) [2025-03-31 02:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800381', 'tblTempUsageDetail_20' ) start [2025-03-31 02:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800381', 'tblTempUsageDetail_20' ) end [2025-03-31 02:15:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 02:15:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 02:15:22] Production.INFO: ==638== Releasing lock... [2025-03-31 02:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 02:15:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-31 02:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 23:16:06 [end_date_ymd] => 2025-03-31 02:16:06 [RateCDR] => 1 ) [2025-03-31 02: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-30 23:16:06' and `end` < '2025-03-31 02: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-31 02:16:18] Production.INFO: count ==750 [2025-03-31 02:16:18] Production.ERROR: pbx CDR StartTime 2025-03-30 23:16:06 - End Time 2025-03-31 02:16:06 [2025-03-31 02:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800386', 'tblTempUsageDetail_20' ) start [2025-03-31 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800386', 'tblTempUsageDetail_20' ) end [2025-03-31 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800386', 'tblTempVendorCDR_20' ) start [2025-03-31 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800386', 'tblTempVendorCDR_20' ) end [2025-03-31 02:16:18] Production.INFO: ProcessCDR(1,14800386,1,1,2) [2025-03-31 02:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800386', 'tblTempUsageDetail_20' ) start [2025-03-31 02:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800386', 'tblTempUsageDetail_20' ) end [2025-03-31 02:16:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 02:16:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 02:16:24] Production.INFO: ==741== Releasing lock... [2025-03-31 02:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 02:16:24] Production.INFO: 33.75 MB #Memory Used# [2025-03-31 02:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 23:17:04 [end_date_ymd] => 2025-03-31 02:17:04 [RateCDR] => 1 ) [2025-03-31 02: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-30 23:17:04' and `end` < '2025-03-31 02: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-31 02:17:17] Production.INFO: count ==752 [2025-03-31 02:17:17] Production.ERROR: pbx CDR StartTime 2025-03-30 23:17:04 - End Time 2025-03-31 02:17:04 [2025-03-31 02:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800391', 'tblTempUsageDetail_20' ) start [2025-03-31 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800391', 'tblTempUsageDetail_20' ) end [2025-03-31 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800391', 'tblTempVendorCDR_20' ) start [2025-03-31 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800391', 'tblTempVendorCDR_20' ) end [2025-03-31 02:17:17] Production.INFO: ProcessCDR(1,14800391,1,1,2) [2025-03-31 02:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800391', 'tblTempUsageDetail_20' ) start [2025-03-31 02:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800391', 'tblTempUsageDetail_20' ) end [2025-03-31 02:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 02:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 02:17:22] Production.INFO: ==813== Releasing lock... [2025-03-31 02:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 02:17:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-31 02:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 23:18:06 [end_date_ymd] => 2025-03-31 02:18:06 [RateCDR] => 1 ) [2025-03-31 02:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 23:18:06' and `end` < '2025-03-31 02:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 02:18:18] Production.INFO: count ==751 [2025-03-31 02:18:18] Production.ERROR: pbx CDR StartTime 2025-03-30 23:18:06 - End Time 2025-03-31 02:18:06 [2025-03-31 02:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800396', 'tblTempUsageDetail_20' ) start [2025-03-31 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800396', 'tblTempUsageDetail_20' ) end [2025-03-31 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800396', 'tblTempVendorCDR_20' ) start [2025-03-31 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800396', 'tblTempVendorCDR_20' ) end [2025-03-31 02:18:18] Production.INFO: ProcessCDR(1,14800396,1,1,2) [2025-03-31 02:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800396', 'tblTempUsageDetail_20' ) start [2025-03-31 02:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800396', 'tblTempUsageDetail_20' ) end [2025-03-31 02:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 02:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 02:18:21] Production.INFO: ==888== Releasing lock... [2025-03-31 02:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 02:18:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-31 02:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 23:19:05 [end_date_ymd] => 2025-03-31 02:19:05 [RateCDR] => 1 ) [2025-03-31 02:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 23:19:05' and `end` < '2025-03-31 02:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 02:19:18] Production.INFO: count ==751 [2025-03-31 02:19:18] Production.ERROR: pbx CDR StartTime 2025-03-30 23:19:05 - End Time 2025-03-31 02:19:05 [2025-03-31 02:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800401', 'tblTempUsageDetail_20' ) start [2025-03-31 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800401', 'tblTempUsageDetail_20' ) end [2025-03-31 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800401', 'tblTempVendorCDR_20' ) start [2025-03-31 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800401', 'tblTempVendorCDR_20' ) end [2025-03-31 02:19:18] Production.INFO: ProcessCDR(1,14800401,1,1,2) [2025-03-31 02:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800401', 'tblTempUsageDetail_20' ) start [2025-03-31 02:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800401', 'tblTempUsageDetail_20' ) end [2025-03-31 02:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 02:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 02:19:21] Production.INFO: ==968== Releasing lock... [2025-03-31 02:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 02:19:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-31 02:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 23:20:06 [end_date_ymd] => 2025-03-31 02:20:06 [RateCDR] => 1 ) [2025-03-31 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-30 23:20:06' and `end` < '2025-03-31 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-31 02:20:18] Production.INFO: count ==751 [2025-03-31 02:20:18] Production.ERROR: pbx CDR StartTime 2025-03-30 23:20:06 - End Time 2025-03-31 02:20:06 [2025-03-31 02:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800407', 'tblTempUsageDetail_20' ) start [2025-03-31 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800407', 'tblTempUsageDetail_20' ) end [2025-03-31 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800407', 'tblTempVendorCDR_20' ) start [2025-03-31 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800407', 'tblTempVendorCDR_20' ) end [2025-03-31 02:20:18] Production.INFO: ProcessCDR(1,14800407,1,1,2) [2025-03-31 02:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800407', 'tblTempUsageDetail_20' ) start [2025-03-31 02:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800407', 'tblTempUsageDetail_20' ) end [2025-03-31 02:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 02:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 02:20:22] Production.INFO: ==1041== Releasing lock... [2025-03-31 02:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 02:20:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-31 02:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 23:21:06 [end_date_ymd] => 2025-03-31 02:21:06 [RateCDR] => 1 ) [2025-03-31 02:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 23:21:06' and `end` < '2025-03-31 02:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 02:21:18] Production.INFO: count ==752 [2025-03-31 02:21:18] Production.ERROR: pbx CDR StartTime 2025-03-30 23:21:06 - End Time 2025-03-31 02:21:06 [2025-03-31 02:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800412', 'tblTempUsageDetail_20' ) start [2025-03-31 02:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800412', 'tblTempUsageDetail_20' ) end [2025-03-31 02:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800412', 'tblTempVendorCDR_20' ) start [2025-03-31 02:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800412', 'tblTempVendorCDR_20' ) end [2025-03-31 02:21:19] Production.INFO: ProcessCDR(1,14800412,1,1,2) [2025-03-31 02:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800412', 'tblTempUsageDetail_20' ) start [2025-03-31 02:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800412', 'tblTempUsageDetail_20' ) end [2025-03-31 02:21:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 02:21:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 02:21:24] Production.INFO: ==1117== Releasing lock... [2025-03-31 02:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 02:21:24] Production.INFO: 34 MB #Memory Used# [2025-03-31 02:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 23:22:05 [end_date_ymd] => 2025-03-31 02:22:05 [RateCDR] => 1 ) [2025-03-31 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-30 23:22:05' and `end` < '2025-03-31 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-31 02:22:18] Production.INFO: count ==753 [2025-03-31 02:22:18] Production.ERROR: pbx CDR StartTime 2025-03-30 23:22:05 - End Time 2025-03-31 02:22:05 [2025-03-31 02:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800417', 'tblTempUsageDetail_20' ) start [2025-03-31 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800417', 'tblTempUsageDetail_20' ) end [2025-03-31 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800417', 'tblTempVendorCDR_20' ) start [2025-03-31 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800417', 'tblTempVendorCDR_20' ) end [2025-03-31 02:22:18] Production.INFO: ProcessCDR(1,14800417,1,1,2) [2025-03-31 02:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800417', 'tblTempUsageDetail_20' ) start [2025-03-31 02:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800417', 'tblTempUsageDetail_20' ) end [2025-03-31 02:22:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 02:22:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 02:22:23] Production.INFO: ==1196== Releasing lock... [2025-03-31 02:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 02:22:23] Production.INFO: 33.75 MB #Memory Used# [2025-03-31 02:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 23:23:06 [end_date_ymd] => 2025-03-31 02:23:06 [RateCDR] => 1 ) [2025-03-31 02:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 23:23:06' and `end` < '2025-03-31 02:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 02:23:18] Production.INFO: count ==754 [2025-03-31 02:23:18] Production.ERROR: pbx CDR StartTime 2025-03-30 23:23:06 - End Time 2025-03-31 02:23:06 [2025-03-31 02:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800422', 'tblTempUsageDetail_20' ) start [2025-03-31 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800422', 'tblTempUsageDetail_20' ) end [2025-03-31 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800422', 'tblTempVendorCDR_20' ) start [2025-03-31 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800422', 'tblTempVendorCDR_20' ) end [2025-03-31 02:23:18] Production.INFO: ProcessCDR(1,14800422,1,1,2) [2025-03-31 02:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800422', 'tblTempUsageDetail_20' ) start [2025-03-31 02:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800422', 'tblTempUsageDetail_20' ) end [2025-03-31 02:23:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 02:23:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 02:23:24] Production.INFO: ==1285== Releasing lock... [2025-03-31 02:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 02:23:24] Production.INFO: 33.5 MB #Memory Used# [2025-03-31 02:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 23:24:06 [end_date_ymd] => 2025-03-31 02:24:06 [RateCDR] => 1 ) [2025-03-31 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-30 23:24:06' and `end` < '2025-03-31 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-31 02:24:18] Production.INFO: count ==754 [2025-03-31 02:24:18] Production.ERROR: pbx CDR StartTime 2025-03-30 23:24:06 - End Time 2025-03-31 02:24:06 [2025-03-31 02:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800427', 'tblTempUsageDetail_20' ) start [2025-03-31 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800427', 'tblTempUsageDetail_20' ) end [2025-03-31 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800427', 'tblTempVendorCDR_20' ) start [2025-03-31 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800427', 'tblTempVendorCDR_20' ) end [2025-03-31 02:24:18] Production.INFO: ProcessCDR(1,14800427,1,1,2) [2025-03-31 02:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800427', 'tblTempUsageDetail_20' ) start [2025-03-31 02:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800427', 'tblTempUsageDetail_20' ) end [2025-03-31 02:24:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 02:24:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 02:24:22] Production.INFO: ==1395== Releasing lock... [2025-03-31 02:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 02:24:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-31 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 23:25:05 [end_date_ymd] => 2025-03-31 02:25:05 [RateCDR] => 1 ) [2025-03-31 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-30 23:25:05' and `end` < '2025-03-31 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-31 02:25:17] Production.INFO: count ==760 [2025-03-31 02:25:17] Production.ERROR: pbx CDR StartTime 2025-03-30 23:25:05 - End Time 2025-03-31 02:25:05 [2025-03-31 02:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800432', 'tblTempUsageDetail_20' ) start [2025-03-31 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800432', 'tblTempUsageDetail_20' ) end [2025-03-31 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800432', 'tblTempVendorCDR_20' ) start [2025-03-31 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800432', 'tblTempVendorCDR_20' ) end [2025-03-31 02:25:18] Production.INFO: ProcessCDR(1,14800432,1,1,2) [2025-03-31 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800432', 'tblTempUsageDetail_20' ) start [2025-03-31 02:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800432', 'tblTempUsageDetail_20' ) end [2025-03-31 02:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 02:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 02:25:21] Production.INFO: ==1471== Releasing lock... [2025-03-31 02:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 02:25:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-31 02:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 23:26:06 [end_date_ymd] => 2025-03-31 02:26:06 [RateCDR] => 1 ) [2025-03-31 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-30 23:26:06' and `end` < '2025-03-31 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-31 02:26:18] Production.INFO: count ==769 [2025-03-31 02:26:19] Production.ERROR: pbx CDR StartTime 2025-03-30 23:26:06 - End Time 2025-03-31 02:26:06 [2025-03-31 02:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 02:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800437', 'tblTempUsageDetail_20' ) start [2025-03-31 02:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800437', 'tblTempUsageDetail_20' ) end [2025-03-31 02:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800437', 'tblTempVendorCDR_20' ) start [2025-03-31 02:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800437', 'tblTempVendorCDR_20' ) end [2025-03-31 02:26:19] Production.INFO: ProcessCDR(1,14800437,1,1,2) [2025-03-31 02:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800437', 'tblTempUsageDetail_20' ) start [2025-03-31 02:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800437', 'tblTempUsageDetail_20' ) end [2025-03-31 02:26:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 02:26:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 02:26:22] Production.INFO: ==1583== Releasing lock... [2025-03-31 02:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 02:26:22] Production.INFO: 34 MB #Memory Used# [2025-03-31 02:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 23:27:05 [end_date_ymd] => 2025-03-31 02:27:05 [RateCDR] => 1 ) [2025-03-31 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-30 23:27:05' and `end` < '2025-03-31 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-31 02:27:17] Production.INFO: count ==769 [2025-03-31 02:27:17] Production.ERROR: pbx CDR StartTime 2025-03-30 23:27:05 - End Time 2025-03-31 02:27:05 [2025-03-31 02:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800442', 'tblTempUsageDetail_20' ) start [2025-03-31 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800442', 'tblTempUsageDetail_20' ) end [2025-03-31 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800442', 'tblTempVendorCDR_20' ) start [2025-03-31 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800442', 'tblTempVendorCDR_20' ) end [2025-03-31 02:27:17] Production.INFO: ProcessCDR(1,14800442,1,1,2) [2025-03-31 02:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800442', 'tblTempUsageDetail_20' ) start [2025-03-31 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800442', 'tblTempUsageDetail_20' ) end [2025-03-31 02:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 02:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 02:27:21] Production.INFO: ==1655== Releasing lock... [2025-03-31 02:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 02:27:21] Production.INFO: 34 MB #Memory Used# [2025-03-31 02:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 23:28:05 [end_date_ymd] => 2025-03-31 02:28:05 [RateCDR] => 1 ) [2025-03-31 02:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 23:28:05' and `end` < '2025-03-31 02:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 02:28:18] Production.INFO: count ==755 [2025-03-31 02:28:18] Production.ERROR: pbx CDR StartTime 2025-03-30 23:28:05 - End Time 2025-03-31 02:28:05 [2025-03-31 02:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800447', 'tblTempUsageDetail_20' ) start [2025-03-31 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800447', 'tblTempUsageDetail_20' ) end [2025-03-31 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800447', 'tblTempVendorCDR_20' ) start [2025-03-31 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800447', 'tblTempVendorCDR_20' ) end [2025-03-31 02:28:18] Production.INFO: ProcessCDR(1,14800447,1,1,2) [2025-03-31 02:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800447', 'tblTempUsageDetail_20' ) start [2025-03-31 02:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800447', 'tblTempUsageDetail_20' ) end [2025-03-31 02:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 02:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 02:28:21] Production.INFO: ==1729== Releasing lock... [2025-03-31 02:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 02:28:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-31 02:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 23:29:06 [end_date_ymd] => 2025-03-31 02:29:06 [RateCDR] => 1 ) [2025-03-31 02: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-30 23:29:06' and `end` < '2025-03-31 02: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-31 02:29:18] Production.INFO: count ==754 [2025-03-31 02:29:19] Production.ERROR: pbx CDR StartTime 2025-03-30 23:29:06 - End Time 2025-03-31 02:29:06 [2025-03-31 02:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 02:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800452', 'tblTempUsageDetail_20' ) start [2025-03-31 02:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800452', 'tblTempUsageDetail_20' ) end [2025-03-31 02:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800452', 'tblTempVendorCDR_20' ) start [2025-03-31 02:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800452', 'tblTempVendorCDR_20' ) end [2025-03-31 02:29:19] Production.INFO: ProcessCDR(1,14800452,1,1,2) [2025-03-31 02:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800452', 'tblTempUsageDetail_20' ) start [2025-03-31 02:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800452', 'tblTempUsageDetail_20' ) end [2025-03-31 02:29:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 02:29:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 02:29:22] Production.INFO: ==1799== Releasing lock... [2025-03-31 02:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 02:29:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-31 02:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 23:30:06 [end_date_ymd] => 2025-03-31 02:30:06 [RateCDR] => 1 ) [2025-03-31 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-30 23:30:06' and `end` < '2025-03-31 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-31 02:30:19] Production.INFO: count ==753 [2025-03-31 02:30:19] Production.ERROR: pbx CDR StartTime 2025-03-30 23:30:06 - End Time 2025-03-31 02:30:06 [2025-03-31 02:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800458', 'tblTempUsageDetail_20' ) start [2025-03-31 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800458', 'tblTempUsageDetail_20' ) end [2025-03-31 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800458', 'tblTempVendorCDR_20' ) start [2025-03-31 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800458', 'tblTempVendorCDR_20' ) end [2025-03-31 02:30:19] Production.INFO: ProcessCDR(1,14800458,1,1,2) [2025-03-31 02:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800458', 'tblTempUsageDetail_20' ) start [2025-03-31 02:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800458', 'tblTempUsageDetail_20' ) end [2025-03-31 02:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 02:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 02:30:22] Production.INFO: ==1880== Releasing lock... [2025-03-31 02:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 02:30:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-31 02:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 23:31:05 [end_date_ymd] => 2025-03-31 02:31:05 [RateCDR] => 1 ) [2025-03-31 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-30 23:31:05' and `end` < '2025-03-31 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-31 02:31:18] Production.INFO: count ==753 [2025-03-31 02:31:18] Production.ERROR: pbx CDR StartTime 2025-03-30 23:31:05 - End Time 2025-03-31 02:31:05 [2025-03-31 02:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800463', 'tblTempUsageDetail_20' ) start [2025-03-31 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800463', 'tblTempUsageDetail_20' ) end [2025-03-31 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800463', 'tblTempVendorCDR_20' ) start [2025-03-31 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800463', 'tblTempVendorCDR_20' ) end [2025-03-31 02:31:18] Production.INFO: ProcessCDR(1,14800463,1,1,2) [2025-03-31 02:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800463', 'tblTempUsageDetail_20' ) start [2025-03-31 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800463', 'tblTempUsageDetail_20' ) end [2025-03-31 02:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 02:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 02:31:21] Production.INFO: ==1954== Releasing lock... [2025-03-31 02:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 02:31:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-31 02:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 23:32:05 [end_date_ymd] => 2025-03-31 02:32:05 [RateCDR] => 1 ) [2025-03-31 02:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 23:32:05' and `end` < '2025-03-31 02:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 02:32:18] Production.INFO: count ==749 [2025-03-31 02:32:18] Production.ERROR: pbx CDR StartTime 2025-03-30 23:32:05 - End Time 2025-03-31 02:32:05 [2025-03-31 02:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800468', 'tblTempUsageDetail_20' ) start [2025-03-31 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800468', 'tblTempUsageDetail_20' ) end [2025-03-31 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800468', 'tblTempVendorCDR_20' ) start [2025-03-31 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800468', 'tblTempVendorCDR_20' ) end [2025-03-31 02:32:18] Production.INFO: ProcessCDR(1,14800468,1,1,2) [2025-03-31 02:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800468', 'tblTempUsageDetail_20' ) start [2025-03-31 02:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800468', 'tblTempUsageDetail_20' ) end [2025-03-31 02:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 02:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 02:32:21] Production.INFO: ==2029== Releasing lock... [2025-03-31 02:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 02:32:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-31 02:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 23:33:05 [end_date_ymd] => 2025-03-31 02:33:05 [RateCDR] => 1 ) [2025-03-31 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-30 23:33:05' and `end` < '2025-03-31 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-31 02:33:18] Production.INFO: count ==742 [2025-03-31 02:33:18] Production.ERROR: pbx CDR StartTime 2025-03-30 23:33:05 - End Time 2025-03-31 02:33:05 [2025-03-31 02:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800473', 'tblTempUsageDetail_20' ) start [2025-03-31 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800473', 'tblTempUsageDetail_20' ) end [2025-03-31 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800473', 'tblTempVendorCDR_20' ) start [2025-03-31 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800473', 'tblTempVendorCDR_20' ) end [2025-03-31 02:33:18] Production.INFO: ProcessCDR(1,14800473,1,1,2) [2025-03-31 02:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800473', 'tblTempUsageDetail_20' ) start [2025-03-31 02:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800473', 'tblTempUsageDetail_20' ) end [2025-03-31 02:33:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 02:33:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 02:33:22] Production.INFO: ==2107== Releasing lock... [2025-03-31 02:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 02:33:22] Production.INFO: 34 MB #Memory Used# [2025-03-31 02:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 23:34:05 [end_date_ymd] => 2025-03-31 02:34:05 [RateCDR] => 1 ) [2025-03-31 02:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 23:34:05' and `end` < '2025-03-31 02:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 02:34:18] Production.INFO: count ==738 [2025-03-31 02:34:18] Production.ERROR: pbx CDR StartTime 2025-03-30 23:34:05 - End Time 2025-03-31 02:34:05 [2025-03-31 02:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800478', 'tblTempUsageDetail_20' ) start [2025-03-31 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800478', 'tblTempUsageDetail_20' ) end [2025-03-31 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800478', 'tblTempVendorCDR_20' ) start [2025-03-31 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800478', 'tblTempVendorCDR_20' ) end [2025-03-31 02:34:18] Production.INFO: ProcessCDR(1,14800478,1,1,2) [2025-03-31 02:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800478', 'tblTempUsageDetail_20' ) start [2025-03-31 02:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800478', 'tblTempUsageDetail_20' ) end [2025-03-31 02:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 02:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 02:34:22] Production.INFO: ==2180== Releasing lock... [2025-03-31 02:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 02:34:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-31 02:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 23:35:06 [end_date_ymd] => 2025-03-31 02:35:06 [RateCDR] => 1 ) [2025-03-31 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-30 23:35:06' and `end` < '2025-03-31 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-31 02:35:18] Production.INFO: count ==732 [2025-03-31 02:35:19] Production.ERROR: pbx CDR StartTime 2025-03-30 23:35:06 - End Time 2025-03-31 02:35:06 [2025-03-31 02:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 02:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800483', 'tblTempUsageDetail_20' ) start [2025-03-31 02:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800483', 'tblTempUsageDetail_20' ) end [2025-03-31 02:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800483', 'tblTempVendorCDR_20' ) start [2025-03-31 02:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800483', 'tblTempVendorCDR_20' ) end [2025-03-31 02:35:19] Production.INFO: ProcessCDR(1,14800483,1,1,2) [2025-03-31 02:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800483', 'tblTempUsageDetail_20' ) start [2025-03-31 02:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800483', 'tblTempUsageDetail_20' ) end [2025-03-31 02:35:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 02:35:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 02:35:23] Production.INFO: ==2252== Releasing lock... [2025-03-31 02:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 02:35:23] Production.INFO: 33.75 MB #Memory Used# [2025-03-31 02:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 23:36:06 [end_date_ymd] => 2025-03-31 02:36:06 [RateCDR] => 1 ) [2025-03-31 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-30 23:36:06' and `end` < '2025-03-31 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-31 02:36:18] Production.INFO: count ==727 [2025-03-31 02:36:19] Production.ERROR: pbx CDR StartTime 2025-03-30 23:36:06 - End Time 2025-03-31 02:36:06 [2025-03-31 02:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800488', 'tblTempUsageDetail_20' ) start [2025-03-31 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800488', 'tblTempUsageDetail_20' ) end [2025-03-31 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800488', 'tblTempVendorCDR_20' ) start [2025-03-31 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800488', 'tblTempVendorCDR_20' ) end [2025-03-31 02:36:19] Production.INFO: ProcessCDR(1,14800488,1,1,2) [2025-03-31 02:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800488', 'tblTempUsageDetail_20' ) start [2025-03-31 02:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800488', 'tblTempUsageDetail_20' ) end [2025-03-31 02:36:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 02:36:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 02:36:23] Production.INFO: ==2324== Releasing lock... [2025-03-31 02:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 02:36:23] Production.INFO: 33.75 MB #Memory Used# [2025-03-31 02:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 23:37:06 [end_date_ymd] => 2025-03-31 02:37:06 [RateCDR] => 1 ) [2025-03-31 02:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 23:37:06' and `end` < '2025-03-31 02:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 02:37:19] Production.INFO: count ==734 [2025-03-31 02:37:19] Production.ERROR: pbx CDR StartTime 2025-03-30 23:37:06 - End Time 2025-03-31 02:37:06 [2025-03-31 02:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 02:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800493', 'tblTempUsageDetail_20' ) start [2025-03-31 02:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800493', 'tblTempUsageDetail_20' ) end [2025-03-31 02:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800493', 'tblTempVendorCDR_20' ) start [2025-03-31 02:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800493', 'tblTempVendorCDR_20' ) end [2025-03-31 02:37:19] Production.INFO: ProcessCDR(1,14800493,1,1,2) [2025-03-31 02:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800493', 'tblTempUsageDetail_20' ) start [2025-03-31 02:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800493', 'tblTempUsageDetail_20' ) end [2025-03-31 02:37:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 02:37:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 02:37:23] Production.INFO: ==2396== Releasing lock... [2025-03-31 02:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 02:37:23] Production.INFO: 33.5 MB #Memory Used# [2025-03-31 02:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 23:38:06 [end_date_ymd] => 2025-03-31 02:38:06 [RateCDR] => 1 ) [2025-03-31 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-30 23:38:06' and `end` < '2025-03-31 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-31 02:38:18] Production.INFO: count ==734 [2025-03-31 02:38:19] Production.ERROR: pbx CDR StartTime 2025-03-30 23:38:06 - End Time 2025-03-31 02:38:06 [2025-03-31 02:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800498', 'tblTempUsageDetail_20' ) start [2025-03-31 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800498', 'tblTempUsageDetail_20' ) end [2025-03-31 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800498', 'tblTempVendorCDR_20' ) start [2025-03-31 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800498', 'tblTempVendorCDR_20' ) end [2025-03-31 02:38:19] Production.INFO: ProcessCDR(1,14800498,1,1,2) [2025-03-31 02:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800498', 'tblTempUsageDetail_20' ) start [2025-03-31 02:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800498', 'tblTempUsageDetail_20' ) end [2025-03-31 02:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 02:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 02:38:22] Production.INFO: ==2476== Releasing lock... [2025-03-31 02:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 02:38:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-31 02:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 23:39:06 [end_date_ymd] => 2025-03-31 02:39:06 [RateCDR] => 1 ) [2025-03-31 02:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 23:39:06' and `end` < '2025-03-31 02:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 02:39:19] Production.INFO: count ==732 [2025-03-31 02:39:19] Production.ERROR: pbx CDR StartTime 2025-03-30 23:39:06 - End Time 2025-03-31 02:39:06 [2025-03-31 02:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 02:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800503', 'tblTempUsageDetail_20' ) start [2025-03-31 02:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800503', 'tblTempUsageDetail_20' ) end [2025-03-31 02:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800503', 'tblTempVendorCDR_20' ) start [2025-03-31 02:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800503', 'tblTempVendorCDR_20' ) end [2025-03-31 02:39:19] Production.INFO: ProcessCDR(1,14800503,1,1,2) [2025-03-31 02:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800503', 'tblTempUsageDetail_20' ) start [2025-03-31 02:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800503', 'tblTempUsageDetail_20' ) end [2025-03-31 02:39:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 02:39:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 02:39:23] Production.INFO: ==2580== Releasing lock... [2025-03-31 02:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 02:39:23] Production.INFO: 33.5 MB #Memory Used# [2025-03-31 02:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 23:40:07 [end_date_ymd] => 2025-03-31 02:40:07 [RateCDR] => 1 ) [2025-03-31 02: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-30 23:40:07' and `end` < '2025-03-31 02: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-31 02:40:20] Production.INFO: count ==739 [2025-03-31 02:40:20] Production.ERROR: pbx CDR StartTime 2025-03-30 23:40:07 - End Time 2025-03-31 02:40:07 [2025-03-31 02:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 02:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800509', 'tblTempUsageDetail_20' ) start [2025-03-31 02:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800509', 'tblTempUsageDetail_20' ) end [2025-03-31 02:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800509', 'tblTempVendorCDR_20' ) start [2025-03-31 02:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800509', 'tblTempVendorCDR_20' ) end [2025-03-31 02:40:20] Production.INFO: ProcessCDR(1,14800509,1,1,2) [2025-03-31 02:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800509', 'tblTempUsageDetail_20' ) start [2025-03-31 02:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800509', 'tblTempUsageDetail_20' ) end [2025-03-31 02:40:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 02:40:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 02:40:24] Production.INFO: ==2723== Releasing lock... [2025-03-31 02:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 02:40:24] Production.INFO: 33.75 MB #Memory Used# [2025-03-31 02:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 23:41:05 [end_date_ymd] => 2025-03-31 02:41:05 [RateCDR] => 1 ) [2025-03-31 02:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 23:41:05' and `end` < '2025-03-31 02:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 02:41:18] Production.INFO: count ==749 [2025-03-31 02:41:18] Production.ERROR: pbx CDR StartTime 2025-03-30 23:41:05 - End Time 2025-03-31 02:41:05 [2025-03-31 02:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800514', 'tblTempUsageDetail_20' ) start [2025-03-31 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800514', 'tblTempUsageDetail_20' ) end [2025-03-31 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800514', 'tblTempVendorCDR_20' ) start [2025-03-31 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800514', 'tblTempVendorCDR_20' ) end [2025-03-31 02:41:18] Production.INFO: ProcessCDR(1,14800514,1,1,2) [2025-03-31 02:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800514', 'tblTempUsageDetail_20' ) start [2025-03-31 02:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800514', 'tblTempUsageDetail_20' ) end [2025-03-31 02:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 02:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 02:41:22] Production.INFO: ==2830== Releasing lock... [2025-03-31 02:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 02:41:22] Production.INFO: 34 MB #Memory Used# [2025-03-31 02:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 23:42:05 [end_date_ymd] => 2025-03-31 02:42:05 [RateCDR] => 1 ) [2025-03-31 02:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 23:42:05' and `end` < '2025-03-31 02:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 02:42:18] Production.INFO: count ==773 [2025-03-31 02:42:18] Production.ERROR: pbx CDR StartTime 2025-03-30 23:42:05 - End Time 2025-03-31 02:42:05 [2025-03-31 02:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800519', 'tblTempUsageDetail_20' ) start [2025-03-31 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800519', 'tblTempUsageDetail_20' ) end [2025-03-31 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800519', 'tblTempVendorCDR_20' ) start [2025-03-31 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800519', 'tblTempVendorCDR_20' ) end [2025-03-31 02:42:18] Production.INFO: ProcessCDR(1,14800519,1,1,2) [2025-03-31 02:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800519', 'tblTempUsageDetail_20' ) start [2025-03-31 02:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800519', 'tblTempUsageDetail_20' ) end [2025-03-31 02:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 02:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 02:42:22] Production.INFO: ==2935== Releasing lock... [2025-03-31 02:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 02:42:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-31 02:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 23:43:05 [end_date_ymd] => 2025-03-31 02:43:05 [RateCDR] => 1 ) [2025-03-31 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-30 23:43:05' and `end` < '2025-03-31 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-31 02:43:18] Production.INFO: count ==762 [2025-03-31 02:43:18] Production.ERROR: pbx CDR StartTime 2025-03-30 23:43:05 - End Time 2025-03-31 02:43:05 [2025-03-31 02:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800524', 'tblTempUsageDetail_20' ) start [2025-03-31 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800524', 'tblTempUsageDetail_20' ) end [2025-03-31 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800524', 'tblTempVendorCDR_20' ) start [2025-03-31 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800524', 'tblTempVendorCDR_20' ) end [2025-03-31 02:43:18] Production.INFO: ProcessCDR(1,14800524,1,1,2) [2025-03-31 02:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800524', 'tblTempUsageDetail_20' ) start [2025-03-31 02:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800524', 'tblTempUsageDetail_20' ) end [2025-03-31 02:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 02:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 02:43:22] Production.INFO: ==3049== Releasing lock... [2025-03-31 02:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 02:43:22] Production.INFO: 34 MB #Memory Used# [2025-03-31 02:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 23:44:06 [end_date_ymd] => 2025-03-31 02:44:06 [RateCDR] => 1 ) [2025-03-31 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-30 23:44:06' and `end` < '2025-03-31 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-31 02:44:19] Production.INFO: count ==768 [2025-03-31 02:44:19] Production.ERROR: pbx CDR StartTime 2025-03-30 23:44:06 - End Time 2025-03-31 02:44:06 [2025-03-31 02:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800529', 'tblTempUsageDetail_20' ) start [2025-03-31 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800529', 'tblTempUsageDetail_20' ) end [2025-03-31 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800529', 'tblTempVendorCDR_20' ) start [2025-03-31 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800529', 'tblTempVendorCDR_20' ) end [2025-03-31 02:44:19] Production.INFO: ProcessCDR(1,14800529,1,1,2) [2025-03-31 02:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800529', 'tblTempUsageDetail_20' ) start [2025-03-31 02:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800529', 'tblTempUsageDetail_20' ) end [2025-03-31 02:44:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 02:44:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 02:44:23] Production.INFO: ==3156== Releasing lock... [2025-03-31 02:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 02:44:23] Production.INFO: 34.25 MB #Memory Used# [2025-03-31 02:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 23:45:05 [end_date_ymd] => 2025-03-31 02:45:05 [RateCDR] => 1 ) [2025-03-31 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-30 23:45:05' and `end` < '2025-03-31 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-31 02:45:18] Production.INFO: count ==754 [2025-03-31 02:45:18] Production.ERROR: pbx CDR StartTime 2025-03-30 23:45:05 - End Time 2025-03-31 02:45:05 [2025-03-31 02:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800534', 'tblTempUsageDetail_20' ) start [2025-03-31 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800534', 'tblTempUsageDetail_20' ) end [2025-03-31 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800534', 'tblTempVendorCDR_20' ) start [2025-03-31 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800534', 'tblTempVendorCDR_20' ) end [2025-03-31 02:45:18] Production.INFO: ProcessCDR(1,14800534,1,1,2) [2025-03-31 02:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800534', 'tblTempUsageDetail_20' ) start [2025-03-31 02:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800534', 'tblTempUsageDetail_20' ) end [2025-03-31 02:45:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 02:45:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 02:45:23] Production.INFO: ==3261== Releasing lock... [2025-03-31 02:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 02:45:23] Production.INFO: 34.25 MB #Memory Used# [2025-03-31 02:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 23:46:06 [end_date_ymd] => 2025-03-31 02:46:06 [RateCDR] => 1 ) [2025-03-31 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-30 23:46:06' and `end` < '2025-03-31 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-31 02:46:18] Production.INFO: count ==742 [2025-03-31 02:46:19] Production.ERROR: pbx CDR StartTime 2025-03-30 23:46:06 - End Time 2025-03-31 02:46:06 [2025-03-31 02:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 02:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800539', 'tblTempUsageDetail_20' ) start [2025-03-31 02:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800539', 'tblTempUsageDetail_20' ) end [2025-03-31 02:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800539', 'tblTempVendorCDR_20' ) start [2025-03-31 02:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800539', 'tblTempVendorCDR_20' ) end [2025-03-31 02:46:19] Production.INFO: ProcessCDR(1,14800539,1,1,2) [2025-03-31 02:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800539', 'tblTempUsageDetail_20' ) start [2025-03-31 02:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800539', 'tblTempUsageDetail_20' ) end [2025-03-31 02:46:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 02:46:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 02:46:23] Production.INFO: ==3360== Releasing lock... [2025-03-31 02:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 02:46:23] Production.INFO: 33.75 MB #Memory Used# [2025-03-31 02:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 23:47:06 [end_date_ymd] => 2025-03-31 02:47:06 [RateCDR] => 1 ) [2025-03-31 02:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 23:47:06' and `end` < '2025-03-31 02:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 02:47:18] Production.INFO: count ==741 [2025-03-31 02:47:18] Production.ERROR: pbx CDR StartTime 2025-03-30 23:47:06 - End Time 2025-03-31 02:47:06 [2025-03-31 02:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800544', 'tblTempUsageDetail_20' ) start [2025-03-31 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800544', 'tblTempUsageDetail_20' ) end [2025-03-31 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800544', 'tblTempVendorCDR_20' ) start [2025-03-31 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800544', 'tblTempVendorCDR_20' ) end [2025-03-31 02:47:18] Production.INFO: ProcessCDR(1,14800544,1,1,2) [2025-03-31 02:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800544', 'tblTempUsageDetail_20' ) start [2025-03-31 02:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800544', 'tblTempUsageDetail_20' ) end [2025-03-31 02:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 02:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 02:47:22] Production.INFO: ==3453== Releasing lock... [2025-03-31 02:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 02:47:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-31 02:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 23:48:05 [end_date_ymd] => 2025-03-31 02:48:05 [RateCDR] => 1 ) [2025-03-31 02:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 23:48:05' and `end` < '2025-03-31 02:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 02:48:18] Production.INFO: count ==741 [2025-03-31 02:48:18] Production.ERROR: pbx CDR StartTime 2025-03-30 23:48:05 - End Time 2025-03-31 02:48:05 [2025-03-31 02:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800549', 'tblTempUsageDetail_20' ) start [2025-03-31 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800549', 'tblTempUsageDetail_20' ) end [2025-03-31 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800549', 'tblTempVendorCDR_20' ) start [2025-03-31 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800549', 'tblTempVendorCDR_20' ) end [2025-03-31 02:48:18] Production.INFO: ProcessCDR(1,14800549,1,1,2) [2025-03-31 02:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800549', 'tblTempUsageDetail_20' ) start [2025-03-31 02:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800549', 'tblTempUsageDetail_20' ) end [2025-03-31 02:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 02:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 02:48:22] Production.INFO: ==3546== Releasing lock... [2025-03-31 02:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 02:48:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-31 02:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 23:49:06 [end_date_ymd] => 2025-03-31 02:49:06 [RateCDR] => 1 ) [2025-03-31 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-30 23:49:06' and `end` < '2025-03-31 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-31 02:49:18] Production.INFO: count ==745 [2025-03-31 02:49:18] Production.ERROR: pbx CDR StartTime 2025-03-30 23:49:06 - End Time 2025-03-31 02:49:06 [2025-03-31 02:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800554', 'tblTempUsageDetail_20' ) start [2025-03-31 02:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800554', 'tblTempUsageDetail_20' ) end [2025-03-31 02:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800554', 'tblTempVendorCDR_20' ) start [2025-03-31 02:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800554', 'tblTempVendorCDR_20' ) end [2025-03-31 02:49:19] Production.INFO: ProcessCDR(1,14800554,1,1,2) [2025-03-31 02:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800554', 'tblTempUsageDetail_20' ) start [2025-03-31 02:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800554', 'tblTempUsageDetail_20' ) end [2025-03-31 02:49:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 02:49:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 02:49:23] Production.INFO: ==3651== Releasing lock... [2025-03-31 02:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 02:49:23] Production.INFO: 34 MB #Memory Used# [2025-03-31 02:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 23:50:07 [end_date_ymd] => 2025-03-31 02:50:07 [RateCDR] => 1 ) [2025-03-31 02:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 23:50:07' and `end` < '2025-03-31 02:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 02:50:20] Production.INFO: count ==737 [2025-03-31 02:50:20] Production.ERROR: pbx CDR StartTime 2025-03-30 23:50:07 - End Time 2025-03-31 02:50:07 [2025-03-31 02:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 02:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800560', 'tblTempUsageDetail_20' ) start [2025-03-31 02:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800560', 'tblTempUsageDetail_20' ) end [2025-03-31 02:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800560', 'tblTempVendorCDR_20' ) start [2025-03-31 02:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800560', 'tblTempVendorCDR_20' ) end [2025-03-31 02:50:20] Production.INFO: ProcessCDR(1,14800560,1,1,2) [2025-03-31 02:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800560', 'tblTempUsageDetail_20' ) start [2025-03-31 02:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800560', 'tblTempUsageDetail_20' ) end [2025-03-31 02:50:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 02:50:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 02:50:23] Production.INFO: ==3759== Releasing lock... [2025-03-31 02:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 02:50:23] Production.INFO: 34.25 MB #Memory Used# [2025-03-31 02:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 23:51:06 [end_date_ymd] => 2025-03-31 02:51:06 [RateCDR] => 1 ) [2025-03-31 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-30 23:51:06' and `end` < '2025-03-31 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-31 02:51:18] Production.INFO: count ==735 [2025-03-31 02:51:19] Production.ERROR: pbx CDR StartTime 2025-03-30 23:51:06 - End Time 2025-03-31 02:51:06 [2025-03-31 02:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 02:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800565', 'tblTempUsageDetail_20' ) start [2025-03-31 02:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800565', 'tblTempUsageDetail_20' ) end [2025-03-31 02:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800565', 'tblTempVendorCDR_20' ) start [2025-03-31 02:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800565', 'tblTempVendorCDR_20' ) end [2025-03-31 02:51:19] Production.INFO: ProcessCDR(1,14800565,1,1,2) [2025-03-31 02:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800565', 'tblTempUsageDetail_20' ) start [2025-03-31 02:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800565', 'tblTempUsageDetail_20' ) end [2025-03-31 02:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 02:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 02:51:23] Production.INFO: ==3873== Releasing lock... [2025-03-31 02:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 02:51:23] Production.INFO: 34.25 MB #Memory Used# [2025-03-31 02:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 23:52:06 [end_date_ymd] => 2025-03-31 02:52:06 [RateCDR] => 1 ) [2025-03-31 02:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 23:52:06' and `end` < '2025-03-31 02:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 02:52:19] Production.INFO: count ==734 [2025-03-31 02:52:19] Production.ERROR: pbx CDR StartTime 2025-03-30 23:52:06 - End Time 2025-03-31 02:52:06 [2025-03-31 02:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800570', 'tblTempUsageDetail_20' ) start [2025-03-31 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800570', 'tblTempUsageDetail_20' ) end [2025-03-31 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800570', 'tblTempVendorCDR_20' ) start [2025-03-31 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800570', 'tblTempVendorCDR_20' ) end [2025-03-31 02:52:19] Production.INFO: ProcessCDR(1,14800570,1,1,2) [2025-03-31 02:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800570', 'tblTempUsageDetail_20' ) start [2025-03-31 02:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800570', 'tblTempUsageDetail_20' ) end [2025-03-31 02:52:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 02:52:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 02:52:23] Production.INFO: ==4004== Releasing lock... [2025-03-31 02:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 02:52:23] Production.INFO: 34 MB #Memory Used# [2025-03-31 02:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 23:53:06 [end_date_ymd] => 2025-03-31 02:53:06 [RateCDR] => 1 ) [2025-03-31 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-30 23:53:06' and `end` < '2025-03-31 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-31 02:53:18] Production.INFO: count ==725 [2025-03-31 02:53:19] Production.ERROR: pbx CDR StartTime 2025-03-30 23:53:06 - End Time 2025-03-31 02:53:06 [2025-03-31 02:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800575', 'tblTempUsageDetail_20' ) start [2025-03-31 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800575', 'tblTempUsageDetail_20' ) end [2025-03-31 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800575', 'tblTempVendorCDR_20' ) start [2025-03-31 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800575', 'tblTempVendorCDR_20' ) end [2025-03-31 02:53:19] Production.INFO: ProcessCDR(1,14800575,1,1,2) [2025-03-31 02:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800575', 'tblTempUsageDetail_20' ) start [2025-03-31 02:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800575', 'tblTempUsageDetail_20' ) end [2025-03-31 02:53:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 02:53:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 02:53:24] Production.INFO: ==4107== Releasing lock... [2025-03-31 02:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 02:53:24] Production.INFO: 33.5 MB #Memory Used# [2025-03-31 02:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 23:54:06 [end_date_ymd] => 2025-03-31 02:54:06 [RateCDR] => 1 ) [2025-03-31 02:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 23:54:06' and `end` < '2025-03-31 02:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 02:54:19] Production.INFO: count ==729 [2025-03-31 02:54:19] Production.ERROR: pbx CDR StartTime 2025-03-30 23:54:06 - End Time 2025-03-31 02:54:06 [2025-03-31 02:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800580', 'tblTempUsageDetail_20' ) start [2025-03-31 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800580', 'tblTempUsageDetail_20' ) end [2025-03-31 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800580', 'tblTempVendorCDR_20' ) start [2025-03-31 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800580', 'tblTempVendorCDR_20' ) end [2025-03-31 02:54:19] Production.INFO: ProcessCDR(1,14800580,1,1,2) [2025-03-31 02:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800580', 'tblTempUsageDetail_20' ) start [2025-03-31 02:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800580', 'tblTempUsageDetail_20' ) end [2025-03-31 02:54:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 02:54:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 02:54:23] Production.INFO: ==4209== Releasing lock... [2025-03-31 02:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 02:54:23] Production.INFO: 33.5 MB #Memory Used# [2025-03-31 02:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 23:55:06 [end_date_ymd] => 2025-03-31 02:55:06 [RateCDR] => 1 ) [2025-03-31 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-30 23:55:06' and `end` < '2025-03-31 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-31 02:55:18] Production.INFO: count ==727 [2025-03-31 02:55:18] Production.ERROR: pbx CDR StartTime 2025-03-30 23:55:06 - End Time 2025-03-31 02:55:06 [2025-03-31 02:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800585', 'tblTempUsageDetail_20' ) start [2025-03-31 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800585', 'tblTempUsageDetail_20' ) end [2025-03-31 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800585', 'tblTempVendorCDR_20' ) start [2025-03-31 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800585', 'tblTempVendorCDR_20' ) end [2025-03-31 02:55:18] Production.INFO: ProcessCDR(1,14800585,1,1,2) [2025-03-31 02:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800585', 'tblTempUsageDetail_20' ) start [2025-03-31 02:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800585', 'tblTempUsageDetail_20' ) end [2025-03-31 02:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 02:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 02:55:22] Production.INFO: ==4351== Releasing lock... [2025-03-31 02:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 02:55:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-31 02:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 23:56:05 [end_date_ymd] => 2025-03-31 02:56:05 [RateCDR] => 1 ) [2025-03-31 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-30 23:56:05' and `end` < '2025-03-31 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-31 02:56:18] Production.INFO: count ==726 [2025-03-31 02:56:18] Production.ERROR: pbx CDR StartTime 2025-03-30 23:56:05 - End Time 2025-03-31 02:56:05 [2025-03-31 02:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800590', 'tblTempUsageDetail_20' ) start [2025-03-31 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800590', 'tblTempUsageDetail_20' ) end [2025-03-31 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800590', 'tblTempVendorCDR_20' ) start [2025-03-31 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800590', 'tblTempVendorCDR_20' ) end [2025-03-31 02:56:18] Production.INFO: ProcessCDR(1,14800590,1,1,2) [2025-03-31 02:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800590', 'tblTempUsageDetail_20' ) start [2025-03-31 02:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800590', 'tblTempUsageDetail_20' ) end [2025-03-31 02:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 02:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 02:56:22] Production.INFO: ==4452== Releasing lock... [2025-03-31 02:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 02:56:22] Production.INFO: 34 MB #Memory Used# [2025-03-31 02:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 23:57:05 [end_date_ymd] => 2025-03-31 02:57:05 [RateCDR] => 1 ) [2025-03-31 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-30 23:57:05' and `end` < '2025-03-31 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-31 02:57:18] Production.INFO: count ==720 [2025-03-31 02:57:18] Production.ERROR: pbx CDR StartTime 2025-03-30 23:57:05 - End Time 2025-03-31 02:57:05 [2025-03-31 02:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800595', 'tblTempUsageDetail_20' ) start [2025-03-31 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800595', 'tblTempUsageDetail_20' ) end [2025-03-31 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800595', 'tblTempVendorCDR_20' ) start [2025-03-31 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800595', 'tblTempVendorCDR_20' ) end [2025-03-31 02:57:18] Production.INFO: ProcessCDR(1,14800595,1,1,2) [2025-03-31 02:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800595', 'tblTempUsageDetail_20' ) start [2025-03-31 02:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800595', 'tblTempUsageDetail_20' ) end [2025-03-31 02:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 02:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 02:57:22] Production.INFO: ==4553== Releasing lock... [2025-03-31 02:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 02:57:22] Production.INFO: 33 MB #Memory Used# [2025-03-31 02:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 23:58:05 [end_date_ymd] => 2025-03-31 02:58:05 [RateCDR] => 1 ) [2025-03-31 02:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 23:58:05' and `end` < '2025-03-31 02:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 02:58:18] Production.INFO: count ==726 [2025-03-31 02:58:18] Production.ERROR: pbx CDR StartTime 2025-03-30 23:58:05 - End Time 2025-03-31 02:58:05 [2025-03-31 02:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800600', 'tblTempUsageDetail_20' ) start [2025-03-31 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800600', 'tblTempUsageDetail_20' ) end [2025-03-31 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800600', 'tblTempVendorCDR_20' ) start [2025-03-31 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800600', 'tblTempVendorCDR_20' ) end [2025-03-31 02:58:18] Production.INFO: ProcessCDR(1,14800600,1,1,2) [2025-03-31 02:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800600', 'tblTempUsageDetail_20' ) start [2025-03-31 02:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800600', 'tblTempUsageDetail_20' ) end [2025-03-31 02:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 02:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 02:58:22] Production.INFO: ==4663== Releasing lock... [2025-03-31 02:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 02:58:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-31 02:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 23:59:05 [end_date_ymd] => 2025-03-31 02:59:05 [RateCDR] => 1 ) [2025-03-31 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-30 23:59:05' and `end` < '2025-03-31 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-31 02:59:18] Production.INFO: count ==721 [2025-03-31 02:59:18] Production.ERROR: pbx CDR StartTime 2025-03-30 23:59:05 - End Time 2025-03-31 02:59:05 [2025-03-31 02:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800605', 'tblTempUsageDetail_20' ) start [2025-03-31 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800605', 'tblTempUsageDetail_20' ) end [2025-03-31 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800605', 'tblTempVendorCDR_20' ) start [2025-03-31 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800605', 'tblTempVendorCDR_20' ) end [2025-03-31 02:59:18] Production.INFO: ProcessCDR(1,14800605,1,1,2) [2025-03-31 02:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 02:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 02:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800605', 'tblTempUsageDetail_20' ) start [2025-03-31 02:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800605', 'tblTempUsageDetail_20' ) end [2025-03-31 02:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 02:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 02:59:22] Production.INFO: ==4771== Releasing lock... [2025-03-31 02:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 02:59:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-31 03:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 00:00:06 [end_date_ymd] => 2025-03-31 03:00:06 [RateCDR] => 1 ) [2025-03-31 03:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 00:00:06' and `end` < '2025-03-31 03:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 03:00:18] Production.INFO: count ==720 [2025-03-31 03:00:19] Production.ERROR: pbx CDR StartTime 2025-03-31 00:00:06 - End Time 2025-03-31 03:00:06 [2025-03-31 03:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800610', 'tblTempUsageDetail_20' ) start [2025-03-31 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800610', 'tblTempUsageDetail_20' ) end [2025-03-31 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800610', 'tblTempVendorCDR_20' ) start [2025-03-31 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800610', 'tblTempVendorCDR_20' ) end [2025-03-31 03:00:19] Production.INFO: ProcessCDR(1,14800610,1,1,2) [2025-03-31 03:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800610', 'tblTempUsageDetail_20' ) start [2025-03-31 03:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800610', 'tblTempUsageDetail_20' ) end [2025-03-31 03:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 03:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 03:00:23] Production.INFO: ==4878== Releasing lock... [2025-03-31 03:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 03:00:23] Production.INFO: 33.5 MB #Memory Used# [2025-03-31 03:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 00:01:06 [end_date_ymd] => 2025-03-31 03:01:06 [RateCDR] => 1 ) [2025-03-31 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-31 00:01:06' and `end` < '2025-03-31 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-31 03:01:19] Production.INFO: count ==716 [2025-03-31 03:01:19] Production.ERROR: pbx CDR StartTime 2025-03-31 00:01:06 - End Time 2025-03-31 03:01:06 [2025-03-31 03:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 03:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800616', 'tblTempUsageDetail_20' ) start [2025-03-31 03:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800616', 'tblTempUsageDetail_20' ) end [2025-03-31 03:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800616', 'tblTempVendorCDR_20' ) start [2025-03-31 03:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800616', 'tblTempVendorCDR_20' ) end [2025-03-31 03:01:19] Production.INFO: ProcessCDR(1,14800616,1,1,2) [2025-03-31 03:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800616', 'tblTempUsageDetail_20' ) start [2025-03-31 03:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800616', 'tblTempUsageDetail_20' ) end [2025-03-31 03:01:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 03:01:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 03:01:23] Production.INFO: ==4995== Releasing lock... [2025-03-31 03:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 03:01:23] Production.INFO: 33.25 MB #Memory Used# [2025-03-31 03:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 00:02:06 [end_date_ymd] => 2025-03-31 03:02:06 [RateCDR] => 1 ) [2025-03-31 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-31 00:02:06' and `end` < '2025-03-31 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-31 03:02:18] Production.INFO: count ==708 [2025-03-31 03:02:18] Production.ERROR: pbx CDR StartTime 2025-03-31 00:02:06 - End Time 2025-03-31 03:02:06 [2025-03-31 03:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800621', 'tblTempUsageDetail_20' ) start [2025-03-31 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800621', 'tblTempUsageDetail_20' ) end [2025-03-31 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800621', 'tblTempVendorCDR_20' ) start [2025-03-31 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800621', 'tblTempVendorCDR_20' ) end [2025-03-31 03:02:18] Production.INFO: ProcessCDR(1,14800621,1,1,2) [2025-03-31 03:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800621', 'tblTempUsageDetail_20' ) start [2025-03-31 03:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800621', 'tblTempUsageDetail_20' ) end [2025-03-31 03:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 03:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 03:02:22] Production.INFO: ==5175== Releasing lock... [2025-03-31 03:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 03:02:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-31 03:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 00:03:06 [end_date_ymd] => 2025-03-31 03:03:06 [RateCDR] => 1 ) [2025-03-31 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-31 00:03:06' and `end` < '2025-03-31 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-31 03:03:18] Production.INFO: count ==709 [2025-03-31 03:03:18] Production.ERROR: pbx CDR StartTime 2025-03-31 00:03:06 - End Time 2025-03-31 03:03:06 [2025-03-31 03:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800626', 'tblTempUsageDetail_20' ) start [2025-03-31 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800626', 'tblTempUsageDetail_20' ) end [2025-03-31 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800626', 'tblTempVendorCDR_20' ) start [2025-03-31 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800626', 'tblTempVendorCDR_20' ) end [2025-03-31 03:03:19] Production.INFO: ProcessCDR(1,14800626,1,1,2) [2025-03-31 03:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800626', 'tblTempUsageDetail_20' ) start [2025-03-31 03:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800626', 'tblTempUsageDetail_20' ) end [2025-03-31 03:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 03:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 03:03:23] Production.INFO: ==5277== Releasing lock... [2025-03-31 03:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 03:03:23] Production.INFO: 33.75 MB #Memory Used# [2025-03-31 03:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 00:04:06 [end_date_ymd] => 2025-03-31 03:04:06 [RateCDR] => 1 ) [2025-03-31 03:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 00:04:06' and `end` < '2025-03-31 03:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 03:04:18] Production.INFO: count ==709 [2025-03-31 03:04:18] Production.ERROR: pbx CDR StartTime 2025-03-31 00:04:06 - End Time 2025-03-31 03:04:06 [2025-03-31 03:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800631', 'tblTempUsageDetail_20' ) start [2025-03-31 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800631', 'tblTempUsageDetail_20' ) end [2025-03-31 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800631', 'tblTempVendorCDR_20' ) start [2025-03-31 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800631', 'tblTempVendorCDR_20' ) end [2025-03-31 03:04:18] Production.INFO: ProcessCDR(1,14800631,1,1,2) [2025-03-31 03:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800631', 'tblTempUsageDetail_20' ) start [2025-03-31 03:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800631', 'tblTempUsageDetail_20' ) end [2025-03-31 03:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 03:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 03:04:22] Production.INFO: ==5378== Releasing lock... [2025-03-31 03:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 03:04:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-31 03:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 00:05:06 [end_date_ymd] => 2025-03-31 03:05:06 [RateCDR] => 1 ) [2025-03-31 03:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 00:05:06' and `end` < '2025-03-31 03:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 03:05:19] Production.INFO: count ==703 [2025-03-31 03:05:19] Production.ERROR: pbx CDR StartTime 2025-03-31 00:05:06 - End Time 2025-03-31 03:05:06 [2025-03-31 03:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 03:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800636', 'tblTempUsageDetail_20' ) start [2025-03-31 03:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800636', 'tblTempUsageDetail_20' ) end [2025-03-31 03:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800636', 'tblTempVendorCDR_20' ) start [2025-03-31 03:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800636', 'tblTempVendorCDR_20' ) end [2025-03-31 03:05:19] Production.INFO: ProcessCDR(1,14800636,1,1,2) [2025-03-31 03:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800636', 'tblTempUsageDetail_20' ) start [2025-03-31 03:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800636', 'tblTempUsageDetail_20' ) end [2025-03-31 03:05:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 03:05:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 03:05:23] Production.INFO: ==5482== Releasing lock... [2025-03-31 03:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 03:05:23] Production.INFO: 33 MB #Memory Used# [2025-03-31 03:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 00:06:05 [end_date_ymd] => 2025-03-31 03:06:05 [RateCDR] => 1 ) [2025-03-31 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-31 00:06:05' and `end` < '2025-03-31 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-31 03:06:18] Production.INFO: count ==703 [2025-03-31 03:06:18] Production.ERROR: pbx CDR StartTime 2025-03-31 00:06:05 - End Time 2025-03-31 03:06:05 [2025-03-31 03:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800641', 'tblTempUsageDetail_20' ) start [2025-03-31 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800641', 'tblTempUsageDetail_20' ) end [2025-03-31 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800641', 'tblTempVendorCDR_20' ) start [2025-03-31 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800641', 'tblTempVendorCDR_20' ) end [2025-03-31 03:06:18] Production.INFO: ProcessCDR(1,14800641,1,1,2) [2025-03-31 03:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800641', 'tblTempUsageDetail_20' ) start [2025-03-31 03:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800641', 'tblTempUsageDetail_20' ) end [2025-03-31 03:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 03:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 03:06:22] Production.INFO: ==5660== Releasing lock... [2025-03-31 03:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 03:06:22] Production.INFO: 33 MB #Memory Used# [2025-03-31 03:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 00:07:05 [end_date_ymd] => 2025-03-31 03:07:05 [RateCDR] => 1 ) [2025-03-31 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-31 00:07:05' and `end` < '2025-03-31 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-31 03:07:18] Production.INFO: count ==700 [2025-03-31 03:07:18] Production.ERROR: pbx CDR StartTime 2025-03-31 00:07:05 - End Time 2025-03-31 03:07:05 [2025-03-31 03:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800646', 'tblTempUsageDetail_20' ) start [2025-03-31 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800646', 'tblTempUsageDetail_20' ) end [2025-03-31 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800646', 'tblTempVendorCDR_20' ) start [2025-03-31 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800646', 'tblTempVendorCDR_20' ) end [2025-03-31 03:07:18] Production.INFO: ProcessCDR(1,14800646,1,1,2) [2025-03-31 03:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800646', 'tblTempUsageDetail_20' ) start [2025-03-31 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800646', 'tblTempUsageDetail_20' ) end [2025-03-31 03:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 03:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 03:07:21] Production.INFO: ==5759== Releasing lock... [2025-03-31 03:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 03:07:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-31 03:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 00:08:06 [end_date_ymd] => 2025-03-31 03:08:06 [RateCDR] => 1 ) [2025-03-31 03:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 00:08:06' and `end` < '2025-03-31 03:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 03:08:18] Production.INFO: count ==699 [2025-03-31 03:08:18] Production.ERROR: pbx CDR StartTime 2025-03-31 00:08:06 - End Time 2025-03-31 03:08:06 [2025-03-31 03:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800651', 'tblTempUsageDetail_20' ) start [2025-03-31 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800651', 'tblTempUsageDetail_20' ) end [2025-03-31 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800651', 'tblTempVendorCDR_20' ) start [2025-03-31 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800651', 'tblTempVendorCDR_20' ) end [2025-03-31 03:08:18] Production.INFO: ProcessCDR(1,14800651,1,1,2) [2025-03-31 03:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800651', 'tblTempUsageDetail_20' ) start [2025-03-31 03:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800651', 'tblTempUsageDetail_20' ) end [2025-03-31 03:08:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 03:08:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 03:08:22] Production.INFO: ==5853== Releasing lock... [2025-03-31 03:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 03:08:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-31 03:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 00:09:05 [end_date_ymd] => 2025-03-31 03:09:05 [RateCDR] => 1 ) [2025-03-31 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-31 00:09:05' and `end` < '2025-03-31 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-31 03:09:18] Production.INFO: count ==708 [2025-03-31 03:09:18] Production.ERROR: pbx CDR StartTime 2025-03-31 00:09:05 - End Time 2025-03-31 03:09:05 [2025-03-31 03:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800656', 'tblTempUsageDetail_20' ) start [2025-03-31 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800656', 'tblTempUsageDetail_20' ) end [2025-03-31 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800656', 'tblTempVendorCDR_20' ) start [2025-03-31 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800656', 'tblTempVendorCDR_20' ) end [2025-03-31 03:09:18] Production.INFO: ProcessCDR(1,14800656,1,1,2) [2025-03-31 03:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800656', 'tblTempUsageDetail_20' ) start [2025-03-31 03:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800656', 'tblTempUsageDetail_20' ) end [2025-03-31 03:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 03:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 03:09:21] Production.INFO: ==6001== Releasing lock... [2025-03-31 03:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 03:09:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-31 03:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 00:10:06 [end_date_ymd] => 2025-03-31 03:10:06 [RateCDR] => 1 ) [2025-03-31 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-31 00:10:06' and `end` < '2025-03-31 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-31 03:10:18] Production.INFO: count ==722 [2025-03-31 03:10:19] Production.ERROR: pbx CDR StartTime 2025-03-31 00:10:06 - End Time 2025-03-31 03:10:06 [2025-03-31 03:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800661', 'tblTempUsageDetail_20' ) start [2025-03-31 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800661', 'tblTempUsageDetail_20' ) end [2025-03-31 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800661', 'tblTempVendorCDR_20' ) start [2025-03-31 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800661', 'tblTempVendorCDR_20' ) end [2025-03-31 03:10:19] Production.INFO: ProcessCDR(1,14800661,1,1,2) [2025-03-31 03:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800661', 'tblTempUsageDetail_20' ) start [2025-03-31 03:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800661', 'tblTempUsageDetail_20' ) end [2025-03-31 03:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 03:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 03:10:22] Production.INFO: ==6074== Releasing lock... [2025-03-31 03:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 03:10:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-31 03:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 00:11:05 [end_date_ymd] => 2025-03-31 03:11:05 [RateCDR] => 1 ) [2025-03-31 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-31 00:11:05' and `end` < '2025-03-31 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-31 03:11:17] Production.INFO: count ==711 [2025-03-31 03:11:18] Production.ERROR: pbx CDR StartTime 2025-03-31 00:11:05 - End Time 2025-03-31 03:11:05 [2025-03-31 03:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800667', 'tblTempUsageDetail_20' ) start [2025-03-31 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800667', 'tblTempUsageDetail_20' ) end [2025-03-31 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800667', 'tblTempVendorCDR_20' ) start [2025-03-31 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800667', 'tblTempVendorCDR_20' ) end [2025-03-31 03:11:18] Production.INFO: ProcessCDR(1,14800667,1,1,2) [2025-03-31 03:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800667', 'tblTempUsageDetail_20' ) start [2025-03-31 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800667', 'tblTempUsageDetail_20' ) end [2025-03-31 03:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 03:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 03:11:21] Production.INFO: ==6187== Releasing lock... [2025-03-31 03:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 03:11:21] Production.INFO: 34 MB #Memory Used# [2025-03-31 03:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 00:12:06 [end_date_ymd] => 2025-03-31 03:12:06 [RateCDR] => 1 ) [2025-03-31 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-31 00:12:06' and `end` < '2025-03-31 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-31 03:12:18] Production.INFO: count ==711 [2025-03-31 03:12:18] Production.ERROR: pbx CDR StartTime 2025-03-31 00:12:06 - End Time 2025-03-31 03:12:06 [2025-03-31 03:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800672', 'tblTempUsageDetail_20' ) start [2025-03-31 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800672', 'tblTempUsageDetail_20' ) end [2025-03-31 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800672', 'tblTempVendorCDR_20' ) start [2025-03-31 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800672', 'tblTempVendorCDR_20' ) end [2025-03-31 03:12:18] Production.INFO: ProcessCDR(1,14800672,1,1,2) [2025-03-31 03:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800672', 'tblTempUsageDetail_20' ) start [2025-03-31 03:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800672', 'tblTempUsageDetail_20' ) end [2025-03-31 03:12:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 03:12:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 03:12:22] Production.INFO: ==6258== Releasing lock... [2025-03-31 03:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 03:12:22] Production.INFO: 34 MB #Memory Used# [2025-03-31 03:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 00:13:05 [end_date_ymd] => 2025-03-31 03:13:05 [RateCDR] => 1 ) [2025-03-31 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-31 00:13:05' and `end` < '2025-03-31 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-31 03:13:17] Production.INFO: count ==706 [2025-03-31 03:13:17] Production.ERROR: pbx CDR StartTime 2025-03-31 00:13:05 - End Time 2025-03-31 03:13:05 [2025-03-31 03:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800677', 'tblTempUsageDetail_20' ) start [2025-03-31 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800677', 'tblTempUsageDetail_20' ) end [2025-03-31 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800677', 'tblTempVendorCDR_20' ) start [2025-03-31 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800677', 'tblTempVendorCDR_20' ) end [2025-03-31 03:13:17] Production.INFO: ProcessCDR(1,14800677,1,1,2) [2025-03-31 03:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800677', 'tblTempUsageDetail_20' ) start [2025-03-31 03:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800677', 'tblTempUsageDetail_20' ) end [2025-03-31 03:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 03:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 03:13:21] Production.INFO: ==6407== Releasing lock... [2025-03-31 03:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 03:13:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-31 03:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 00:14:06 [end_date_ymd] => 2025-03-31 03:14:06 [RateCDR] => 1 ) [2025-03-31 03: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-31 00:14:06' and `end` < '2025-03-31 03: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-31 03:14:18] Production.INFO: count ==706 [2025-03-31 03:14:18] Production.ERROR: pbx CDR StartTime 2025-03-31 00:14:06 - End Time 2025-03-31 03:14:06 [2025-03-31 03:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800682', 'tblTempUsageDetail_20' ) start [2025-03-31 03:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800682', 'tblTempUsageDetail_20' ) end [2025-03-31 03:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800682', 'tblTempVendorCDR_20' ) start [2025-03-31 03:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800682', 'tblTempVendorCDR_20' ) end [2025-03-31 03:14:19] Production.INFO: ProcessCDR(1,14800682,1,1,2) [2025-03-31 03:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800682', 'tblTempUsageDetail_20' ) start [2025-03-31 03:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800682', 'tblTempUsageDetail_20' ) end [2025-03-31 03:14:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 03:14:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 03:14:22] Production.INFO: ==6478== Releasing lock... [2025-03-31 03:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 03:14:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-31 03:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 00:15:05 [end_date_ymd] => 2025-03-31 03:15:05 [RateCDR] => 1 ) [2025-03-31 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-31 00:15:05' and `end` < '2025-03-31 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-31 03:15:18] Production.INFO: count ==705 [2025-03-31 03:15:18] Production.ERROR: pbx CDR StartTime 2025-03-31 00:15:05 - End Time 2025-03-31 03:15:05 [2025-03-31 03:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800687', 'tblTempUsageDetail_20' ) start [2025-03-31 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800687', 'tblTempUsageDetail_20' ) end [2025-03-31 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800687', 'tblTempVendorCDR_20' ) start [2025-03-31 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800687', 'tblTempVendorCDR_20' ) end [2025-03-31 03:15:18] Production.INFO: ProcessCDR(1,14800687,1,1,2) [2025-03-31 03:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800687', 'tblTempUsageDetail_20' ) start [2025-03-31 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800687', 'tblTempUsageDetail_20' ) end [2025-03-31 03:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 03:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 03:15:21] Production.INFO: ==6550== Releasing lock... [2025-03-31 03:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 03:15:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-31 03:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 00:16:05 [end_date_ymd] => 2025-03-31 03:16:05 [RateCDR] => 1 ) [2025-03-31 03:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 00:16:05' and `end` < '2025-03-31 03:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 03:16:18] Production.INFO: count ==705 [2025-03-31 03:16:18] Production.ERROR: pbx CDR StartTime 2025-03-31 00:16:05 - End Time 2025-03-31 03:16:05 [2025-03-31 03:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800692', 'tblTempUsageDetail_20' ) start [2025-03-31 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800692', 'tblTempUsageDetail_20' ) end [2025-03-31 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800692', 'tblTempVendorCDR_20' ) start [2025-03-31 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800692', 'tblTempVendorCDR_20' ) end [2025-03-31 03:16:18] Production.INFO: ProcessCDR(1,14800692,1,1,2) [2025-03-31 03:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800692', 'tblTempUsageDetail_20' ) start [2025-03-31 03:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800692', 'tblTempUsageDetail_20' ) end [2025-03-31 03:16:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 03:16:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 03:16:22] Production.INFO: ==6619== Releasing lock... [2025-03-31 03:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 03:16:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-31 03:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 00:17:05 [end_date_ymd] => 2025-03-31 03:17:05 [RateCDR] => 1 ) [2025-03-31 03:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 00:17:05' and `end` < '2025-03-31 03:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 03:17:18] Production.INFO: count ==705 [2025-03-31 03:17:18] Production.ERROR: pbx CDR StartTime 2025-03-31 00:17:05 - End Time 2025-03-31 03:17:05 [2025-03-31 03:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800697', 'tblTempUsageDetail_20' ) start [2025-03-31 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800697', 'tblTempUsageDetail_20' ) end [2025-03-31 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800697', 'tblTempVendorCDR_20' ) start [2025-03-31 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800697', 'tblTempVendorCDR_20' ) end [2025-03-31 03:17:18] Production.INFO: ProcessCDR(1,14800697,1,1,2) [2025-03-31 03:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800697', 'tblTempUsageDetail_20' ) start [2025-03-31 03:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800697', 'tblTempUsageDetail_20' ) end [2025-03-31 03:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 03:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 03:17:21] Production.INFO: ==6771== Releasing lock... [2025-03-31 03:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 03:17:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-31 03:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 00:18:05 [end_date_ymd] => 2025-03-31 03:18:05 [RateCDR] => 1 ) [2025-03-31 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-31 00:18:05' and `end` < '2025-03-31 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-31 03:18:18] Production.INFO: count ==689 [2025-03-31 03:18:18] Production.ERROR: pbx CDR StartTime 2025-03-31 00:18:05 - End Time 2025-03-31 03:18:05 [2025-03-31 03:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800702', 'tblTempUsageDetail_20' ) start [2025-03-31 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800702', 'tblTempUsageDetail_20' ) end [2025-03-31 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800702', 'tblTempVendorCDR_20' ) start [2025-03-31 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800702', 'tblTempVendorCDR_20' ) end [2025-03-31 03:18:18] Production.INFO: ProcessCDR(1,14800702,1,1,2) [2025-03-31 03:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800702', 'tblTempUsageDetail_20' ) start [2025-03-31 03:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800702', 'tblTempUsageDetail_20' ) end [2025-03-31 03:18:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 03:18:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 03:18:23] Production.INFO: ==6868== Releasing lock... [2025-03-31 03:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 03:18:23] Production.INFO: 33.75 MB #Memory Used# [2025-03-31 03:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 00:19:05 [end_date_ymd] => 2025-03-31 03:19:05 [RateCDR] => 1 ) [2025-03-31 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-31 00:19:05' and `end` < '2025-03-31 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-31 03:19:17] Production.INFO: count ==689 [2025-03-31 03:19:18] Production.ERROR: pbx CDR StartTime 2025-03-31 00:19:05 - End Time 2025-03-31 03:19:05 [2025-03-31 03:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800707', 'tblTempUsageDetail_20' ) start [2025-03-31 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800707', 'tblTempUsageDetail_20' ) end [2025-03-31 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800707', 'tblTempVendorCDR_20' ) start [2025-03-31 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800707', 'tblTempVendorCDR_20' ) end [2025-03-31 03:19:18] Production.INFO: ProcessCDR(1,14800707,1,1,2) [2025-03-31 03:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800707', 'tblTempUsageDetail_20' ) start [2025-03-31 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800707', 'tblTempUsageDetail_20' ) end [2025-03-31 03:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 03:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 03:19:21] Production.INFO: ==6973== Releasing lock... [2025-03-31 03:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 03:19:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-31 03:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 00:20:06 [end_date_ymd] => 2025-03-31 03:20:06 [RateCDR] => 1 ) [2025-03-31 03:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 00:20:06' and `end` < '2025-03-31 03:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 03:20:19] Production.INFO: count ==689 [2025-03-31 03:20:19] Production.ERROR: pbx CDR StartTime 2025-03-31 00:20:06 - End Time 2025-03-31 03:20:06 [2025-03-31 03:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800713', 'tblTempUsageDetail_20' ) start [2025-03-31 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800713', 'tblTempUsageDetail_20' ) end [2025-03-31 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800713', 'tblTempVendorCDR_20' ) start [2025-03-31 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800713', 'tblTempVendorCDR_20' ) end [2025-03-31 03:20:19] Production.INFO: ProcessCDR(1,14800713,1,1,2) [2025-03-31 03:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800713', 'tblTempUsageDetail_20' ) start [2025-03-31 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800713', 'tblTempUsageDetail_20' ) end [2025-03-31 03:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 03:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 03:20:22] Production.INFO: ==7048== Releasing lock... [2025-03-31 03:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 03:20:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-31 03:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 00:21:06 [end_date_ymd] => 2025-03-31 03:21:06 [RateCDR] => 1 ) [2025-03-31 03:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 00:21:06' and `end` < '2025-03-31 03:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 03:21:18] Production.INFO: count ==660 [2025-03-31 03:21:18] Production.ERROR: pbx CDR StartTime 2025-03-31 00:21:06 - End Time 2025-03-31 03:21:06 [2025-03-31 03:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800718', 'tblTempUsageDetail_20' ) start [2025-03-31 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800718', 'tblTempUsageDetail_20' ) end [2025-03-31 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800718', 'tblTempVendorCDR_20' ) start [2025-03-31 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800718', 'tblTempVendorCDR_20' ) end [2025-03-31 03:21:18] Production.INFO: ProcessCDR(1,14800718,1,1,2) [2025-03-31 03:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800718', 'tblTempUsageDetail_20' ) start [2025-03-31 03:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800718', 'tblTempUsageDetail_20' ) end [2025-03-31 03:21:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 03:21:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 03:21:23] Production.INFO: ==7123== Releasing lock... [2025-03-31 03:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 03:21:23] Production.INFO: 33.25 MB #Memory Used# [2025-03-31 03:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 00:22:06 [end_date_ymd] => 2025-03-31 03:22:06 [RateCDR] => 1 ) [2025-03-31 03:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 00:22:06' and `end` < '2025-03-31 03:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 03:22:18] Production.INFO: count ==659 [2025-03-31 03:22:18] Production.ERROR: pbx CDR StartTime 2025-03-31 00:22:06 - End Time 2025-03-31 03:22:06 [2025-03-31 03:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800723', 'tblTempUsageDetail_20' ) start [2025-03-31 03:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800723', 'tblTempUsageDetail_20' ) end [2025-03-31 03:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800723', 'tblTempVendorCDR_20' ) start [2025-03-31 03:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800723', 'tblTempVendorCDR_20' ) end [2025-03-31 03:22:19] Production.INFO: ProcessCDR(1,14800723,1,1,2) [2025-03-31 03:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800723', 'tblTempUsageDetail_20' ) start [2025-03-31 03:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800723', 'tblTempUsageDetail_20' ) end [2025-03-31 03:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 03:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 03:22:22] Production.INFO: ==7197== Releasing lock... [2025-03-31 03:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 03:22:22] Production.INFO: 33 MB #Memory Used# [2025-03-31 03:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 00:23:06 [end_date_ymd] => 2025-03-31 03:23:06 [RateCDR] => 1 ) [2025-03-31 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-31 00:23:06' and `end` < '2025-03-31 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-31 03:23:18] Production.INFO: count ==625 [2025-03-31 03:23:19] Production.ERROR: pbx CDR StartTime 2025-03-31 00:23:06 - End Time 2025-03-31 03:23:06 [2025-03-31 03:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 03:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800728', 'tblTempUsageDetail_20' ) start [2025-03-31 03:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800728', 'tblTempUsageDetail_20' ) end [2025-03-31 03:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800728', 'tblTempVendorCDR_20' ) start [2025-03-31 03:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800728', 'tblTempVendorCDR_20' ) end [2025-03-31 03:23:19] Production.INFO: ProcessCDR(1,14800728,1,1,2) [2025-03-31 03:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800728', 'tblTempUsageDetail_20' ) start [2025-03-31 03:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800728', 'tblTempUsageDetail_20' ) end [2025-03-31 03:23:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 03:23:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 03:23:22] Production.INFO: ==7276== Releasing lock... [2025-03-31 03:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 03:23:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-31 03:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 00:24:05 [end_date_ymd] => 2025-03-31 03:24:05 [RateCDR] => 1 ) [2025-03-31 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-31 00:24:05' and `end` < '2025-03-31 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-31 03:24:18] Production.INFO: count ==625 [2025-03-31 03:24:18] Production.ERROR: pbx CDR StartTime 2025-03-31 00:24:05 - End Time 2025-03-31 03:24:05 [2025-03-31 03:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800733', 'tblTempUsageDetail_20' ) start [2025-03-31 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800733', 'tblTempUsageDetail_20' ) end [2025-03-31 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800733', 'tblTempVendorCDR_20' ) start [2025-03-31 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800733', 'tblTempVendorCDR_20' ) end [2025-03-31 03:24:18] Production.INFO: ProcessCDR(1,14800733,1,1,2) [2025-03-31 03:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800733', 'tblTempUsageDetail_20' ) start [2025-03-31 03:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800733', 'tblTempUsageDetail_20' ) end [2025-03-31 03:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 03:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 03:24:21] Production.INFO: ==7358== Releasing lock... [2025-03-31 03:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 03:24:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-31 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 00:25:05 [end_date_ymd] => 2025-03-31 03:25:05 [RateCDR] => 1 ) [2025-03-31 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-31 00:25:05' and `end` < '2025-03-31 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-31 03:25:18] Production.INFO: count ==624 [2025-03-31 03:25:18] Production.ERROR: pbx CDR StartTime 2025-03-31 00:25:05 - End Time 2025-03-31 03:25:05 [2025-03-31 03:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800738', 'tblTempUsageDetail_20' ) start [2025-03-31 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800738', 'tblTempUsageDetail_20' ) end [2025-03-31 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800738', 'tblTempVendorCDR_20' ) start [2025-03-31 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800738', 'tblTempVendorCDR_20' ) end [2025-03-31 03:25:18] Production.INFO: ProcessCDR(1,14800738,1,1,2) [2025-03-31 03:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800738', 'tblTempUsageDetail_20' ) start [2025-03-31 03:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800738', 'tblTempUsageDetail_20' ) end [2025-03-31 03:25:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 03:25:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 03:25:22] Production.INFO: ==7434== Releasing lock... [2025-03-31 03:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 03:25:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-31 03:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 00:26:05 [end_date_ymd] => 2025-03-31 03:26:05 [RateCDR] => 1 ) [2025-03-31 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-31 00:26:05' and `end` < '2025-03-31 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-31 03:26:17] Production.INFO: count ==612 [2025-03-31 03:26:18] Production.ERROR: pbx CDR StartTime 2025-03-31 00:26:05 - End Time 2025-03-31 03:26:05 [2025-03-31 03:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800743', 'tblTempUsageDetail_20' ) start [2025-03-31 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800743', 'tblTempUsageDetail_20' ) end [2025-03-31 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800743', 'tblTempVendorCDR_20' ) start [2025-03-31 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800743', 'tblTempVendorCDR_20' ) end [2025-03-31 03:26:18] Production.INFO: ProcessCDR(1,14800743,1,1,2) [2025-03-31 03:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800743', 'tblTempUsageDetail_20' ) start [2025-03-31 03:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800743', 'tblTempUsageDetail_20' ) end [2025-03-31 03:26:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 03:26:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 03:26:23] Production.INFO: ==7509== Releasing lock... [2025-03-31 03:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 03:26:23] Production.INFO: 33.5 MB #Memory Used# [2025-03-31 03:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 00:27:05 [end_date_ymd] => 2025-03-31 03:27:05 [RateCDR] => 1 ) [2025-03-31 03:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 00:27:05' and `end` < '2025-03-31 03:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 03:27:18] Production.INFO: count ==610 [2025-03-31 03:27:18] Production.ERROR: pbx CDR StartTime 2025-03-31 00:27:05 - End Time 2025-03-31 03:27:05 [2025-03-31 03:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800748', 'tblTempUsageDetail_20' ) start [2025-03-31 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800748', 'tblTempUsageDetail_20' ) end [2025-03-31 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800748', 'tblTempVendorCDR_20' ) start [2025-03-31 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800748', 'tblTempVendorCDR_20' ) end [2025-03-31 03:27:18] Production.INFO: ProcessCDR(1,14800748,1,1,2) [2025-03-31 03:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800748', 'tblTempUsageDetail_20' ) start [2025-03-31 03:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800748', 'tblTempUsageDetail_20' ) end [2025-03-31 03:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 03:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 03:27:21] Production.INFO: ==7582== Releasing lock... [2025-03-31 03:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 03:27:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-31 03:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 00:28:05 [end_date_ymd] => 2025-03-31 03:28:05 [RateCDR] => 1 ) [2025-03-31 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-31 00:28:05' and `end` < '2025-03-31 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-31 03:28:17] Production.INFO: count ==608 [2025-03-31 03:28:17] Production.ERROR: pbx CDR StartTime 2025-03-31 00:28:05 - End Time 2025-03-31 03:28:05 [2025-03-31 03:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800753', 'tblTempUsageDetail_20' ) start [2025-03-31 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800753', 'tblTempUsageDetail_20' ) end [2025-03-31 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800753', 'tblTempVendorCDR_20' ) start [2025-03-31 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800753', 'tblTempVendorCDR_20' ) end [2025-03-31 03:28:18] Production.INFO: ProcessCDR(1,14800753,1,1,2) [2025-03-31 03:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800753', 'tblTempUsageDetail_20' ) start [2025-03-31 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800753', 'tblTempUsageDetail_20' ) end [2025-03-31 03:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 03:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 03:28:21] Production.INFO: ==7693== Releasing lock... [2025-03-31 03:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 03:28:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-31 03:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 00:29:05 [end_date_ymd] => 2025-03-31 03:29:05 [RateCDR] => 1 ) [2025-03-31 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-31 00:29:05' and `end` < '2025-03-31 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-31 03:29:18] Production.INFO: count ==608 [2025-03-31 03:29:18] Production.ERROR: pbx CDR StartTime 2025-03-31 00:29:05 - End Time 2025-03-31 03:29:05 [2025-03-31 03:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800758', 'tblTempUsageDetail_20' ) start [2025-03-31 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800758', 'tblTempUsageDetail_20' ) end [2025-03-31 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800758', 'tblTempVendorCDR_20' ) start [2025-03-31 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800758', 'tblTempVendorCDR_20' ) end [2025-03-31 03:29:18] Production.INFO: ProcessCDR(1,14800758,1,1,2) [2025-03-31 03:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800758', 'tblTempUsageDetail_20' ) start [2025-03-31 03:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800758', 'tblTempUsageDetail_20' ) end [2025-03-31 03:29:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 03:29:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 03:29:22] Production.INFO: ==7761== Releasing lock... [2025-03-31 03:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 03:29:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-31 03:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 00:30:06 [end_date_ymd] => 2025-03-31 03:30:06 [RateCDR] => 1 ) [2025-03-31 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-31 00:30:06' and `end` < '2025-03-31 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-31 03:30:18] Production.INFO: count ==616 [2025-03-31 03:30:19] Production.ERROR: pbx CDR StartTime 2025-03-31 00:30:06 - End Time 2025-03-31 03:30:06 [2025-03-31 03:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800764', 'tblTempUsageDetail_20' ) start [2025-03-31 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800764', 'tblTempUsageDetail_20' ) end [2025-03-31 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800764', 'tblTempVendorCDR_20' ) start [2025-03-31 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800764', 'tblTempVendorCDR_20' ) end [2025-03-31 03:30:19] Production.INFO: ProcessCDR(1,14800764,1,1,2) [2025-03-31 03:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800764', 'tblTempUsageDetail_20' ) start [2025-03-31 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800764', 'tblTempUsageDetail_20' ) end [2025-03-31 03:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 03:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 03:30:22] Production.INFO: ==7839== Releasing lock... [2025-03-31 03:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 03:30:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-31 03:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 00:31:06 [end_date_ymd] => 2025-03-31 03:31:06 [RateCDR] => 1 ) [2025-03-31 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-31 00:31:06' and `end` < '2025-03-31 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-31 03:31:19] Production.INFO: count ==618 [2025-03-31 03:31:19] Production.ERROR: pbx CDR StartTime 2025-03-31 00:31:06 - End Time 2025-03-31 03:31:06 [2025-03-31 03:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 03:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800769', 'tblTempUsageDetail_20' ) start [2025-03-31 03:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800769', 'tblTempUsageDetail_20' ) end [2025-03-31 03:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800769', 'tblTempVendorCDR_20' ) start [2025-03-31 03:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800769', 'tblTempVendorCDR_20' ) end [2025-03-31 03:31:19] Production.INFO: ProcessCDR(1,14800769,1,1,2) [2025-03-31 03:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800769', 'tblTempUsageDetail_20' ) start [2025-03-31 03:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800769', 'tblTempUsageDetail_20' ) end [2025-03-31 03:31:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 03:31:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 03:31:23] Production.INFO: ==7920== Releasing lock... [2025-03-31 03:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 03:31:23] Production.INFO: 33.25 MB #Memory Used# [2025-03-31 03:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 00:32:06 [end_date_ymd] => 2025-03-31 03:32:06 [RateCDR] => 1 ) [2025-03-31 03:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 00:32:06' and `end` < '2025-03-31 03:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 03:32:18] Production.INFO: count ==614 [2025-03-31 03:32:18] Production.ERROR: pbx CDR StartTime 2025-03-31 00:32:06 - End Time 2025-03-31 03:32:06 [2025-03-31 03:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800774', 'tblTempUsageDetail_20' ) start [2025-03-31 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800774', 'tblTempUsageDetail_20' ) end [2025-03-31 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800774', 'tblTempVendorCDR_20' ) start [2025-03-31 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800774', 'tblTempVendorCDR_20' ) end [2025-03-31 03:32:19] Production.INFO: ProcessCDR(1,14800774,1,1,2) [2025-03-31 03:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800774', 'tblTempUsageDetail_20' ) start [2025-03-31 03:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800774', 'tblTempUsageDetail_20' ) end [2025-03-31 03:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 03:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 03:32:22] Production.INFO: ==7994== Releasing lock... [2025-03-31 03:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 03:32:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-31 03:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 00:33:06 [end_date_ymd] => 2025-03-31 03:33:06 [RateCDR] => 1 ) [2025-03-31 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-31 00:33:06' and `end` < '2025-03-31 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-31 03:33:18] Production.INFO: count ==616 [2025-03-31 03:33:19] Production.ERROR: pbx CDR StartTime 2025-03-31 00:33:06 - End Time 2025-03-31 03:33:06 [2025-03-31 03:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 03:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800779', 'tblTempUsageDetail_20' ) start [2025-03-31 03:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800779', 'tblTempUsageDetail_20' ) end [2025-03-31 03:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800779', 'tblTempVendorCDR_20' ) start [2025-03-31 03:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800779', 'tblTempVendorCDR_20' ) end [2025-03-31 03:33:19] Production.INFO: ProcessCDR(1,14800779,1,1,2) [2025-03-31 03:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800779', 'tblTempUsageDetail_20' ) start [2025-03-31 03:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800779', 'tblTempUsageDetail_20' ) end [2025-03-31 03:33:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 03:33:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 03:33:22] Production.INFO: ==8065== Releasing lock... [2025-03-31 03:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 03:33:22] Production.INFO: 33 MB #Memory Used# [2025-03-31 03:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 00:34:05 [end_date_ymd] => 2025-03-31 03:34:05 [RateCDR] => 1 ) [2025-03-31 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-31 00:34:05' and `end` < '2025-03-31 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-31 03:34:18] Production.INFO: count ==604 [2025-03-31 03:34:18] Production.ERROR: pbx CDR StartTime 2025-03-31 00:34:05 - End Time 2025-03-31 03:34:05 [2025-03-31 03:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800784', 'tblTempUsageDetail_20' ) start [2025-03-31 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800784', 'tblTempUsageDetail_20' ) end [2025-03-31 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800784', 'tblTempVendorCDR_20' ) start [2025-03-31 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800784', 'tblTempVendorCDR_20' ) end [2025-03-31 03:34:18] Production.INFO: ProcessCDR(1,14800784,1,1,2) [2025-03-31 03:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800784', 'tblTempUsageDetail_20' ) start [2025-03-31 03:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800784', 'tblTempUsageDetail_20' ) end [2025-03-31 03:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 03:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 03:34:22] Production.INFO: ==8136== Releasing lock... [2025-03-31 03:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 03:34:22] Production.INFO: 33 MB #Memory Used# [2025-03-31 03:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 00:35:05 [end_date_ymd] => 2025-03-31 03:35:05 [RateCDR] => 1 ) [2025-03-31 03:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 00:35:05' and `end` < '2025-03-31 03:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 03:35:18] Production.INFO: count ==604 [2025-03-31 03:35:18] Production.ERROR: pbx CDR StartTime 2025-03-31 00:35:05 - End Time 2025-03-31 03:35:05 [2025-03-31 03:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800789', 'tblTempUsageDetail_20' ) start [2025-03-31 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800789', 'tblTempUsageDetail_20' ) end [2025-03-31 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800789', 'tblTempVendorCDR_20' ) start [2025-03-31 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800789', 'tblTempVendorCDR_20' ) end [2025-03-31 03:35:18] Production.INFO: ProcessCDR(1,14800789,1,1,2) [2025-03-31 03:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800789', 'tblTempUsageDetail_20' ) start [2025-03-31 03:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800789', 'tblTempUsageDetail_20' ) end [2025-03-31 03:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 03:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 03:35:22] Production.INFO: ==8205== Releasing lock... [2025-03-31 03:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 03:35:22] Production.INFO: 33 MB #Memory Used# [2025-03-31 03:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 00:36:05 [end_date_ymd] => 2025-03-31 03:36:05 [RateCDR] => 1 ) [2025-03-31 03:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 00:36:05' and `end` < '2025-03-31 03:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 03:36:18] Production.INFO: count ==603 [2025-03-31 03:36:18] Production.ERROR: pbx CDR StartTime 2025-03-31 00:36:05 - End Time 2025-03-31 03:36:05 [2025-03-31 03:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800794', 'tblTempUsageDetail_20' ) start [2025-03-31 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800794', 'tblTempUsageDetail_20' ) end [2025-03-31 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800794', 'tblTempVendorCDR_20' ) start [2025-03-31 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800794', 'tblTempVendorCDR_20' ) end [2025-03-31 03:36:18] Production.INFO: ProcessCDR(1,14800794,1,1,2) [2025-03-31 03:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800794', 'tblTempUsageDetail_20' ) start [2025-03-31 03:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800794', 'tblTempUsageDetail_20' ) end [2025-03-31 03:36:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 03:36:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 03:36:22] Production.INFO: ==8280== Releasing lock... [2025-03-31 03:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 03:36:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-31 03:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 00:37:06 [end_date_ymd] => 2025-03-31 03:37:06 [RateCDR] => 1 ) [2025-03-31 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-31 00:37:06' and `end` < '2025-03-31 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-31 03:37:18] Production.INFO: count ==603 [2025-03-31 03:37:18] Production.ERROR: pbx CDR StartTime 2025-03-31 00:37:06 - End Time 2025-03-31 03:37:06 [2025-03-31 03:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800799', 'tblTempUsageDetail_20' ) start [2025-03-31 03:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800799', 'tblTempUsageDetail_20' ) end [2025-03-31 03:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800799', 'tblTempVendorCDR_20' ) start [2025-03-31 03:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800799', 'tblTempVendorCDR_20' ) end [2025-03-31 03:37:19] Production.INFO: ProcessCDR(1,14800799,1,1,2) [2025-03-31 03:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800799', 'tblTempUsageDetail_20' ) start [2025-03-31 03:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800799', 'tblTempUsageDetail_20' ) end [2025-03-31 03:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 03:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 03:37:22] Production.INFO: ==8356== Releasing lock... [2025-03-31 03:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 03:37:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-31 03:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 00:38:06 [end_date_ymd] => 2025-03-31 03:38:06 [RateCDR] => 1 ) [2025-03-31 03:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 00:38:06' and `end` < '2025-03-31 03:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 03:38:18] Production.INFO: count ==602 [2025-03-31 03:38:18] Production.ERROR: pbx CDR StartTime 2025-03-31 00:38:06 - End Time 2025-03-31 03:38:06 [2025-03-31 03:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800804', 'tblTempUsageDetail_20' ) start [2025-03-31 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800804', 'tblTempUsageDetail_20' ) end [2025-03-31 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800804', 'tblTempVendorCDR_20' ) start [2025-03-31 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800804', 'tblTempVendorCDR_20' ) end [2025-03-31 03:38:18] Production.INFO: ProcessCDR(1,14800804,1,1,2) [2025-03-31 03:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800804', 'tblTempUsageDetail_20' ) start [2025-03-31 03:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800804', 'tblTempUsageDetail_20' ) end [2025-03-31 03:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 03:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 03:38:22] Production.INFO: ==8426== Releasing lock... [2025-03-31 03:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 03:38:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-31 03:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 00:39:06 [end_date_ymd] => 2025-03-31 03:39:06 [RateCDR] => 1 ) [2025-03-31 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-31 00:39:06' and `end` < '2025-03-31 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-31 03:39:19] Production.INFO: count ==602 [2025-03-31 03:39:19] Production.ERROR: pbx CDR StartTime 2025-03-31 00:39:06 - End Time 2025-03-31 03:39:06 [2025-03-31 03:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800809', 'tblTempUsageDetail_20' ) start [2025-03-31 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800809', 'tblTempUsageDetail_20' ) end [2025-03-31 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800809', 'tblTempVendorCDR_20' ) start [2025-03-31 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800809', 'tblTempVendorCDR_20' ) end [2025-03-31 03:39:19] Production.INFO: ProcessCDR(1,14800809,1,1,2) [2025-03-31 03:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800809', 'tblTempUsageDetail_20' ) start [2025-03-31 03:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800809', 'tblTempUsageDetail_20' ) end [2025-03-31 03:39:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 03:39:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 03:39:23] Production.INFO: ==8498== Releasing lock... [2025-03-31 03:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 03:39:23] Production.INFO: 33.25 MB #Memory Used# [2025-03-31 03:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 00:40:06 [end_date_ymd] => 2025-03-31 03:40:06 [RateCDR] => 1 ) [2025-03-31 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-31 00:40:06' and `end` < '2025-03-31 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-31 03:40:19] Production.INFO: count ==601 [2025-03-31 03:40:19] Production.ERROR: pbx CDR StartTime 2025-03-31 00:40:06 - End Time 2025-03-31 03:40:06 [2025-03-31 03:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800815', 'tblTempUsageDetail_20' ) start [2025-03-31 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800815', 'tblTempUsageDetail_20' ) end [2025-03-31 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800815', 'tblTempVendorCDR_20' ) start [2025-03-31 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800815', 'tblTempVendorCDR_20' ) end [2025-03-31 03:40:19] Production.INFO: ProcessCDR(1,14800815,1,1,2) [2025-03-31 03:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800815', 'tblTempUsageDetail_20' ) start [2025-03-31 03:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800815', 'tblTempUsageDetail_20' ) end [2025-03-31 03:40:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 03:40:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 03:40:23] Production.INFO: ==8577== Releasing lock... [2025-03-31 03:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 03:40:23] Production.INFO: 33.25 MB #Memory Used# [2025-03-31 03:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 00:41:06 [end_date_ymd] => 2025-03-31 03:41:06 [RateCDR] => 1 ) [2025-03-31 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-31 00:41:06' and `end` < '2025-03-31 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-31 03:41:18] Production.INFO: count ==582 [2025-03-31 03:41:18] Production.ERROR: pbx CDR StartTime 2025-03-31 00:41:06 - End Time 2025-03-31 03:41:06 [2025-03-31 03:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800820', 'tblTempUsageDetail_20' ) start [2025-03-31 03:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800820', 'tblTempUsageDetail_20' ) end [2025-03-31 03:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800820', 'tblTempVendorCDR_20' ) start [2025-03-31 03:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800820', 'tblTempVendorCDR_20' ) end [2025-03-31 03:41:19] Production.INFO: ProcessCDR(1,14800820,1,1,2) [2025-03-31 03:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800820', 'tblTempUsageDetail_20' ) start [2025-03-31 03:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800820', 'tblTempUsageDetail_20' ) end [2025-03-31 03:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 03:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 03:41:22] Production.INFO: ==8656== Releasing lock... [2025-03-31 03:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 03:41:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-31 03:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 00:42:06 [end_date_ymd] => 2025-03-31 03:42:06 [RateCDR] => 1 ) [2025-03-31 03:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 00:42:06' and `end` < '2025-03-31 03:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 03:42:18] Production.INFO: count ==580 [2025-03-31 03:42:18] Production.ERROR: pbx CDR StartTime 2025-03-31 00:42:06 - End Time 2025-03-31 03:42:06 [2025-03-31 03:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800825', 'tblTempUsageDetail_20' ) start [2025-03-31 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800825', 'tblTempUsageDetail_20' ) end [2025-03-31 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800825', 'tblTempVendorCDR_20' ) start [2025-03-31 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800825', 'tblTempVendorCDR_20' ) end [2025-03-31 03:42:18] Production.INFO: ProcessCDR(1,14800825,1,1,2) [2025-03-31 03:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800825', 'tblTempUsageDetail_20' ) start [2025-03-31 03:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800825', 'tblTempUsageDetail_20' ) end [2025-03-31 03:42:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 03:42:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 03:42:24] Production.INFO: ==8728== Releasing lock... [2025-03-31 03:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 03:42:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-31 03:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 00:43:06 [end_date_ymd] => 2025-03-31 03:43:06 [RateCDR] => 1 ) [2025-03-31 03: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-31 00:43:06' and `end` < '2025-03-31 03: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-31 03:43:19] Production.INFO: count ==580 [2025-03-31 03:43:19] Production.ERROR: pbx CDR StartTime 2025-03-31 00:43:06 - End Time 2025-03-31 03:43:06 [2025-03-31 03:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 03:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800830', 'tblTempUsageDetail_20' ) start [2025-03-31 03:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800830', 'tblTempUsageDetail_20' ) end [2025-03-31 03:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800830', 'tblTempVendorCDR_20' ) start [2025-03-31 03:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800830', 'tblTempVendorCDR_20' ) end [2025-03-31 03:43:19] Production.INFO: ProcessCDR(1,14800830,1,1,2) [2025-03-31 03:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800830', 'tblTempUsageDetail_20' ) start [2025-03-31 03:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800830', 'tblTempUsageDetail_20' ) end [2025-03-31 03:43:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 03:43:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 03:43:23] Production.INFO: ==8839== Releasing lock... [2025-03-31 03:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 03:43:23] Production.INFO: 33.25 MB #Memory Used# [2025-03-31 03:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 00:44:05 [end_date_ymd] => 2025-03-31 03:44:05 [RateCDR] => 1 ) [2025-03-31 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-31 00:44:05' and `end` < '2025-03-31 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-31 03:44:18] Production.INFO: count ==580 [2025-03-31 03:44:18] Production.ERROR: pbx CDR StartTime 2025-03-31 00:44:05 - End Time 2025-03-31 03:44:05 [2025-03-31 03:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800835', 'tblTempUsageDetail_20' ) start [2025-03-31 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800835', 'tblTempUsageDetail_20' ) end [2025-03-31 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800835', 'tblTempVendorCDR_20' ) start [2025-03-31 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800835', 'tblTempVendorCDR_20' ) end [2025-03-31 03:44:18] Production.INFO: ProcessCDR(1,14800835,1,1,2) [2025-03-31 03:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800835', 'tblTempUsageDetail_20' ) start [2025-03-31 03:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800835', 'tblTempUsageDetail_20' ) end [2025-03-31 03:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 03:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 03:44:22] Production.INFO: ==8908== Releasing lock... [2025-03-31 03:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 03:44:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-31 03:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 00:45:06 [end_date_ymd] => 2025-03-31 03:45:06 [RateCDR] => 1 ) [2025-03-31 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-31 00:45:06' and `end` < '2025-03-31 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-31 03:45:18] Production.INFO: count ==580 [2025-03-31 03:45:18] Production.ERROR: pbx CDR StartTime 2025-03-31 00:45:06 - End Time 2025-03-31 03:45:06 [2025-03-31 03:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800840', 'tblTempUsageDetail_20' ) start [2025-03-31 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800840', 'tblTempUsageDetail_20' ) end [2025-03-31 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800840', 'tblTempVendorCDR_20' ) start [2025-03-31 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800840', 'tblTempVendorCDR_20' ) end [2025-03-31 03:45:18] Production.INFO: ProcessCDR(1,14800840,1,1,2) [2025-03-31 03:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800840', 'tblTempUsageDetail_20' ) start [2025-03-31 03:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800840', 'tblTempUsageDetail_20' ) end [2025-03-31 03:45:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 03:45:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 03:45:22] Production.INFO: ==8982== Releasing lock... [2025-03-31 03:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 03:45:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-31 03:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 00:46:05 [end_date_ymd] => 2025-03-31 03:46:05 [RateCDR] => 1 ) [2025-03-31 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-31 00:46:05' and `end` < '2025-03-31 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-31 03:46:18] Production.INFO: count ==580 [2025-03-31 03:46:18] Production.ERROR: pbx CDR StartTime 2025-03-31 00:46:05 - End Time 2025-03-31 03:46:05 [2025-03-31 03:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800845', 'tblTempUsageDetail_20' ) start [2025-03-31 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800845', 'tblTempUsageDetail_20' ) end [2025-03-31 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800845', 'tblTempVendorCDR_20' ) start [2025-03-31 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800845', 'tblTempVendorCDR_20' ) end [2025-03-31 03:46:18] Production.INFO: ProcessCDR(1,14800845,1,1,2) [2025-03-31 03:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800845', 'tblTempUsageDetail_20' ) start [2025-03-31 03:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800845', 'tblTempUsageDetail_20' ) end [2025-03-31 03:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 03:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 03:46:22] Production.INFO: ==9053== Releasing lock... [2025-03-31 03:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 03:46:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-31 03:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 00:47:05 [end_date_ymd] => 2025-03-31 03:47:05 [RateCDR] => 1 ) [2025-03-31 03:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 00:47:05' and `end` < '2025-03-31 03:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 03:47:18] Production.INFO: count ==580 [2025-03-31 03:47:18] Production.ERROR: pbx CDR StartTime 2025-03-31 00:47:05 - End Time 2025-03-31 03:47:05 [2025-03-31 03:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800850', 'tblTempUsageDetail_20' ) start [2025-03-31 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800850', 'tblTempUsageDetail_20' ) end [2025-03-31 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800850', 'tblTempVendorCDR_20' ) start [2025-03-31 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800850', 'tblTempVendorCDR_20' ) end [2025-03-31 03:47:18] Production.INFO: ProcessCDR(1,14800850,1,1,2) [2025-03-31 03:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800850', 'tblTempUsageDetail_20' ) start [2025-03-31 03:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800850', 'tblTempUsageDetail_20' ) end [2025-03-31 03:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 03:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 03:47:22] Production.INFO: ==9124== Releasing lock... [2025-03-31 03:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 03:47:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-31 03:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 00:48:05 [end_date_ymd] => 2025-03-31 03:48:05 [RateCDR] => 1 ) [2025-03-31 03:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 00:48:05' and `end` < '2025-03-31 03:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 03:48:18] Production.INFO: count ==580 [2025-03-31 03:48:18] Production.ERROR: pbx CDR StartTime 2025-03-31 00:48:05 - End Time 2025-03-31 03:48:05 [2025-03-31 03:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800855', 'tblTempUsageDetail_20' ) start [2025-03-31 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800855', 'tblTempUsageDetail_20' ) end [2025-03-31 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800855', 'tblTempVendorCDR_20' ) start [2025-03-31 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800855', 'tblTempVendorCDR_20' ) end [2025-03-31 03:48:18] Production.INFO: ProcessCDR(1,14800855,1,1,2) [2025-03-31 03:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800855', 'tblTempUsageDetail_20' ) start [2025-03-31 03:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800855', 'tblTempUsageDetail_20' ) end [2025-03-31 03:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 03:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 03:48:22] Production.INFO: ==9194== Releasing lock... [2025-03-31 03:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 03:48:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-31 03:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 00:49:06 [end_date_ymd] => 2025-03-31 03:49:06 [RateCDR] => 1 ) [2025-03-31 03:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 00:49:06' and `end` < '2025-03-31 03:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 03:49:19] Production.INFO: count ==580 [2025-03-31 03:49:19] Production.ERROR: pbx CDR StartTime 2025-03-31 00:49:06 - End Time 2025-03-31 03:49:06 [2025-03-31 03:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 03:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800860', 'tblTempUsageDetail_20' ) start [2025-03-31 03:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800860', 'tblTempUsageDetail_20' ) end [2025-03-31 03:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800860', 'tblTempVendorCDR_20' ) start [2025-03-31 03:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800860', 'tblTempVendorCDR_20' ) end [2025-03-31 03:49:19] Production.INFO: ProcessCDR(1,14800860,1,1,2) [2025-03-31 03:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800860', 'tblTempUsageDetail_20' ) start [2025-03-31 03:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800860', 'tblTempUsageDetail_20' ) end [2025-03-31 03:49:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 03:49:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 03:49:23] Production.INFO: ==9267== Releasing lock... [2025-03-31 03:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 03:49:23] Production.INFO: 33.25 MB #Memory Used# [2025-03-31 03:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 00:50:06 [end_date_ymd] => 2025-03-31 03:50:06 [RateCDR] => 1 ) [2025-03-31 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-31 00:50:06' and `end` < '2025-03-31 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-31 03:50:19] Production.INFO: count ==566 [2025-03-31 03:50:19] Production.ERROR: pbx CDR StartTime 2025-03-31 00:50:06 - End Time 2025-03-31 03:50:06 [2025-03-31 03:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800866', 'tblTempUsageDetail_20' ) start [2025-03-31 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800866', 'tblTempUsageDetail_20' ) end [2025-03-31 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800866', 'tblTempVendorCDR_20' ) start [2025-03-31 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800866', 'tblTempVendorCDR_20' ) end [2025-03-31 03:50:19] Production.INFO: ProcessCDR(1,14800866,1,1,2) [2025-03-31 03:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800866', 'tblTempUsageDetail_20' ) start [2025-03-31 03:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800866', 'tblTempUsageDetail_20' ) end [2025-03-31 03:50:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 03:50:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 03:50:23] Production.INFO: ==9339== Releasing lock... [2025-03-31 03:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 03:50:23] Production.INFO: 33 MB #Memory Used# [2025-03-31 03:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 00:51:06 [end_date_ymd] => 2025-03-31 03:51:06 [RateCDR] => 1 ) [2025-03-31 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-31 00:51:06' and `end` < '2025-03-31 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-31 03:51:18] Production.INFO: count ==565 [2025-03-31 03:51:19] Production.ERROR: pbx CDR StartTime 2025-03-31 00:51:06 - End Time 2025-03-31 03:51:06 [2025-03-31 03:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800871', 'tblTempUsageDetail_20' ) start [2025-03-31 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800871', 'tblTempUsageDetail_20' ) end [2025-03-31 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800871', 'tblTempVendorCDR_20' ) start [2025-03-31 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800871', 'tblTempVendorCDR_20' ) end [2025-03-31 03:51:19] Production.INFO: ProcessCDR(1,14800871,1,1,2) [2025-03-31 03:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800871', 'tblTempUsageDetail_20' ) start [2025-03-31 03:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800871', 'tblTempUsageDetail_20' ) end [2025-03-31 03:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 03:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 03:51:22] Production.INFO: ==9412== Releasing lock... [2025-03-31 03:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 03:51:22] Production.INFO: 33 MB #Memory Used# [2025-03-31 03:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 00:52:05 [end_date_ymd] => 2025-03-31 03:52:05 [RateCDR] => 1 ) [2025-03-31 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-31 00:52:05' and `end` < '2025-03-31 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-31 03:52:18] Production.INFO: count ==566 [2025-03-31 03:52:18] Production.ERROR: pbx CDR StartTime 2025-03-31 00:52:05 - End Time 2025-03-31 03:52:05 [2025-03-31 03:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800876', 'tblTempUsageDetail_20' ) start [2025-03-31 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800876', 'tblTempUsageDetail_20' ) end [2025-03-31 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800876', 'tblTempVendorCDR_20' ) start [2025-03-31 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800876', 'tblTempVendorCDR_20' ) end [2025-03-31 03:52:18] Production.INFO: ProcessCDR(1,14800876,1,1,2) [2025-03-31 03:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800876', 'tblTempUsageDetail_20' ) start [2025-03-31 03:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800876', 'tblTempUsageDetail_20' ) end [2025-03-31 03:52:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 03:52:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 03:52:23] Production.INFO: ==9484== Releasing lock... [2025-03-31 03:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 03:52:23] Production.INFO: 33 MB #Memory Used# [2025-03-31 03:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 00:53:06 [end_date_ymd] => 2025-03-31 03:53:06 [RateCDR] => 1 ) [2025-03-31 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-31 00:53:06' and `end` < '2025-03-31 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-31 03:53:19] Production.INFO: count ==566 [2025-03-31 03:53:19] Production.ERROR: pbx CDR StartTime 2025-03-31 00:53:06 - End Time 2025-03-31 03:53:06 [2025-03-31 03:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800881', 'tblTempUsageDetail_20' ) start [2025-03-31 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800881', 'tblTempUsageDetail_20' ) end [2025-03-31 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800881', 'tblTempVendorCDR_20' ) start [2025-03-31 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800881', 'tblTempVendorCDR_20' ) end [2025-03-31 03:53:19] Production.INFO: ProcessCDR(1,14800881,1,1,2) [2025-03-31 03:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800881', 'tblTempUsageDetail_20' ) start [2025-03-31 03:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800881', 'tblTempUsageDetail_20' ) end [2025-03-31 03:53:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 03:53:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 03:53:23] Production.INFO: ==9566== Releasing lock... [2025-03-31 03:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 03:53:23] Production.INFO: 33 MB #Memory Used# [2025-03-31 03:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 00:54:05 [end_date_ymd] => 2025-03-31 03:54:05 [RateCDR] => 1 ) [2025-03-31 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-31 00:54:05' and `end` < '2025-03-31 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-31 03:54:18] Production.INFO: count ==566 [2025-03-31 03:54:18] Production.ERROR: pbx CDR StartTime 2025-03-31 00:54:05 - End Time 2025-03-31 03:54:05 [2025-03-31 03:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800886', 'tblTempUsageDetail_20' ) start [2025-03-31 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800886', 'tblTempUsageDetail_20' ) end [2025-03-31 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800886', 'tblTempVendorCDR_20' ) start [2025-03-31 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800886', 'tblTempVendorCDR_20' ) end [2025-03-31 03:54:18] Production.INFO: ProcessCDR(1,14800886,1,1,2) [2025-03-31 03:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800886', 'tblTempUsageDetail_20' ) start [2025-03-31 03:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800886', 'tblTempUsageDetail_20' ) end [2025-03-31 03:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 03:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 03:54:22] Production.INFO: ==9635== Releasing lock... [2025-03-31 03:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 03:54:22] Production.INFO: 33 MB #Memory Used# [2025-03-31 03:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 00:55:06 [end_date_ymd] => 2025-03-31 03:55:06 [RateCDR] => 1 ) [2025-03-31 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-31 00:55:06' and `end` < '2025-03-31 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-31 03:55:18] Production.INFO: count ==559 [2025-03-31 03:55:18] Production.ERROR: pbx CDR StartTime 2025-03-31 00:55:06 - End Time 2025-03-31 03:55:06 [2025-03-31 03:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800891', 'tblTempUsageDetail_20' ) start [2025-03-31 03:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800891', 'tblTempUsageDetail_20' ) end [2025-03-31 03:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800891', 'tblTempVendorCDR_20' ) start [2025-03-31 03:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800891', 'tblTempVendorCDR_20' ) end [2025-03-31 03:55:19] Production.INFO: ProcessCDR(1,14800891,1,1,2) [2025-03-31 03:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800891', 'tblTempUsageDetail_20' ) start [2025-03-31 03:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800891', 'tblTempUsageDetail_20' ) end [2025-03-31 03:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 03:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 03:55:22] Production.INFO: ==9708== Releasing lock... [2025-03-31 03:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 03:55:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-31 03:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 00:56:05 [end_date_ymd] => 2025-03-31 03:56:05 [RateCDR] => 1 ) [2025-03-31 03:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 00:56:05' and `end` < '2025-03-31 03:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 03:56:18] Production.INFO: count ==563 [2025-03-31 03:56:18] Production.ERROR: pbx CDR StartTime 2025-03-31 00:56:05 - End Time 2025-03-31 03:56:05 [2025-03-31 03:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800896', 'tblTempUsageDetail_20' ) start [2025-03-31 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800896', 'tblTempUsageDetail_20' ) end [2025-03-31 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800896', 'tblTempVendorCDR_20' ) start [2025-03-31 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800896', 'tblTempVendorCDR_20' ) end [2025-03-31 03:56:18] Production.INFO: ProcessCDR(1,14800896,1,1,2) [2025-03-31 03:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800896', 'tblTempUsageDetail_20' ) start [2025-03-31 03:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800896', 'tblTempUsageDetail_20' ) end [2025-03-31 03:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 03:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 03:56:22] Production.INFO: ==9779== Releasing lock... [2025-03-31 03:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 03:56:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-31 03:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 00:57:06 [end_date_ymd] => 2025-03-31 03:57:06 [RateCDR] => 1 ) [2025-03-31 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-31 00:57:06' and `end` < '2025-03-31 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-31 03:57:18] Production.INFO: count ==559 [2025-03-31 03:57:18] Production.ERROR: pbx CDR StartTime 2025-03-31 00:57:06 - End Time 2025-03-31 03:57:06 [2025-03-31 03:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800901', 'tblTempUsageDetail_20' ) start [2025-03-31 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800901', 'tblTempUsageDetail_20' ) end [2025-03-31 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800901', 'tblTempVendorCDR_20' ) start [2025-03-31 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800901', 'tblTempVendorCDR_20' ) end [2025-03-31 03:57:18] Production.INFO: ProcessCDR(1,14800901,1,1,2) [2025-03-31 03:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800901', 'tblTempUsageDetail_20' ) start [2025-03-31 03:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800901', 'tblTempUsageDetail_20' ) end [2025-03-31 03:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 03:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 03:57:22] Production.INFO: ==9848== Releasing lock... [2025-03-31 03:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 03:57:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-31 03:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 00:58:05 [end_date_ymd] => 2025-03-31 03:58:05 [RateCDR] => 1 ) [2025-03-31 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-31 00:58:05' and `end` < '2025-03-31 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-31 03:58:17] Production.INFO: count ==559 [2025-03-31 03:58:17] Production.ERROR: pbx CDR StartTime 2025-03-31 00:58:05 - End Time 2025-03-31 03:58:05 [2025-03-31 03:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 03:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800906', 'tblTempUsageDetail_20' ) start [2025-03-31 03:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800906', 'tblTempUsageDetail_20' ) end [2025-03-31 03:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800906', 'tblTempVendorCDR_20' ) start [2025-03-31 03:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800906', 'tblTempVendorCDR_20' ) end [2025-03-31 03:58:17] Production.INFO: ProcessCDR(1,14800906,1,1,2) [2025-03-31 03:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800906', 'tblTempUsageDetail_20' ) start [2025-03-31 03:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800906', 'tblTempUsageDetail_20' ) end [2025-03-31 03:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 03:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 03:58:21] Production.INFO: ==9923== Releasing lock... [2025-03-31 03:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 03:58:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-31 03:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 00:59:06 [end_date_ymd] => 2025-03-31 03:59:06 [RateCDR] => 1 ) [2025-03-31 03:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 00:59:06' and `end` < '2025-03-31 03:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 03:59:18] Production.INFO: count ==559 [2025-03-31 03:59:19] Production.ERROR: pbx CDR StartTime 2025-03-31 00:59:06 - End Time 2025-03-31 03:59:06 [2025-03-31 03:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 03:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800911', 'tblTempUsageDetail_20' ) start [2025-03-31 03:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800911', 'tblTempUsageDetail_20' ) end [2025-03-31 03:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800911', 'tblTempVendorCDR_20' ) start [2025-03-31 03:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800911', 'tblTempVendorCDR_20' ) end [2025-03-31 03:59:19] Production.INFO: ProcessCDR(1,14800911,1,1,2) [2025-03-31 03:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 03:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 03:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800911', 'tblTempUsageDetail_20' ) start [2025-03-31 03:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800911', 'tblTempUsageDetail_20' ) end [2025-03-31 03:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 03:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 03:59:22] Production.INFO: ==10036== Releasing lock... [2025-03-31 03:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 03:59:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-31 04:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 01:00:07 [end_date_ymd] => 2025-03-31 04:00:07 [RateCDR] => 1 ) [2025-03-31 04: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-31 01:00:07' and `end` < '2025-03-31 04: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-31 04:00:19] Production.INFO: count ==549 [2025-03-31 04:00:20] Production.ERROR: pbx CDR StartTime 2025-03-31 01:00:07 - End Time 2025-03-31 04:00:07 [2025-03-31 04:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 04:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800916', 'tblTempUsageDetail_20' ) start [2025-03-31 04:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800916', 'tblTempUsageDetail_20' ) end [2025-03-31 04:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800916', 'tblTempVendorCDR_20' ) start [2025-03-31 04:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800916', 'tblTempVendorCDR_20' ) end [2025-03-31 04:00:20] Production.INFO: ProcessCDR(1,14800916,1,1,2) [2025-03-31 04:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800916', 'tblTempUsageDetail_20' ) start [2025-03-31 04:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800916', 'tblTempUsageDetail_20' ) end [2025-03-31 04:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 04:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 04:00:23] Production.INFO: ==10115== Releasing lock... [2025-03-31 04:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 04:00:23] Production.INFO: 32.75 MB #Memory Used# [2025-03-31 04:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 01:01:06 [end_date_ymd] => 2025-03-31 04:01:06 [RateCDR] => 1 ) [2025-03-31 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-31 01:01:06' and `end` < '2025-03-31 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-31 04:01:18] Production.INFO: count ==545 [2025-03-31 04:01:19] Production.ERROR: pbx CDR StartTime 2025-03-31 01:01:06 - End Time 2025-03-31 04:01:06 [2025-03-31 04:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800923', 'tblTempUsageDetail_20' ) start [2025-03-31 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800923', 'tblTempUsageDetail_20' ) end [2025-03-31 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800923', 'tblTempVendorCDR_20' ) start [2025-03-31 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800923', 'tblTempVendorCDR_20' ) end [2025-03-31 04:01:19] Production.INFO: ProcessCDR(1,14800923,1,1,2) [2025-03-31 04:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800923', 'tblTempUsageDetail_20' ) start [2025-03-31 04:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800923', 'tblTempUsageDetail_20' ) end [2025-03-31 04:01:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 04:01:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 04:01:23] Production.INFO: ==10203== Releasing lock... [2025-03-31 04:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 04:01:23] Production.INFO: 32.75 MB #Memory Used# [2025-03-31 04:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 01:02:06 [end_date_ymd] => 2025-03-31 04:02:06 [RateCDR] => 1 ) [2025-03-31 04: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-31 01:02:06' and `end` < '2025-03-31 04: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-31 04:02:18] Production.INFO: count ==545 [2025-03-31 04:02:18] Production.ERROR: pbx CDR StartTime 2025-03-31 01:02:06 - End Time 2025-03-31 04:02:06 [2025-03-31 04:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800928', 'tblTempUsageDetail_20' ) start [2025-03-31 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800928', 'tblTempUsageDetail_20' ) end [2025-03-31 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800928', 'tblTempVendorCDR_20' ) start [2025-03-31 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800928', 'tblTempVendorCDR_20' ) end [2025-03-31 04:02:18] Production.INFO: ProcessCDR(1,14800928,1,1,2) [2025-03-31 04:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800928', 'tblTempUsageDetail_20' ) start [2025-03-31 04:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800928', 'tblTempUsageDetail_20' ) end [2025-03-31 04:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 04:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 04:02:22] Production.INFO: ==10275== Releasing lock... [2025-03-31 04:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 04:02:22] Production.INFO: 33 MB #Memory Used# [2025-03-31 04:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 01:03:05 [end_date_ymd] => 2025-03-31 04:03:05 [RateCDR] => 1 ) [2025-03-31 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-31 01:03:05' and `end` < '2025-03-31 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-31 04:03:18] Production.INFO: count ==542 [2025-03-31 04:03:18] Production.ERROR: pbx CDR StartTime 2025-03-31 01:03:05 - End Time 2025-03-31 04:03:05 [2025-03-31 04:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800933', 'tblTempUsageDetail_20' ) start [2025-03-31 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800933', 'tblTempUsageDetail_20' ) end [2025-03-31 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800933', 'tblTempVendorCDR_20' ) start [2025-03-31 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800933', 'tblTempVendorCDR_20' ) end [2025-03-31 04:03:18] Production.INFO: ProcessCDR(1,14800933,1,1,2) [2025-03-31 04:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800933', 'tblTempUsageDetail_20' ) start [2025-03-31 04:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800933', 'tblTempUsageDetail_20' ) end [2025-03-31 04:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 04:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 04:03:22] Production.INFO: ==10346== Releasing lock... [2025-03-31 04:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 04:03:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-31 04:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 01:04:05 [end_date_ymd] => 2025-03-31 04:04:05 [RateCDR] => 1 ) [2025-03-31 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-31 01:04:05' and `end` < '2025-03-31 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-31 04:04:18] Production.INFO: count ==539 [2025-03-31 04:04:18] Production.ERROR: pbx CDR StartTime 2025-03-31 01:04:05 - End Time 2025-03-31 04:04:05 [2025-03-31 04:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800938', 'tblTempUsageDetail_20' ) start [2025-03-31 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800938', 'tblTempUsageDetail_20' ) end [2025-03-31 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800938', 'tblTempVendorCDR_20' ) start [2025-03-31 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800938', 'tblTempVendorCDR_20' ) end [2025-03-31 04:04:18] Production.INFO: ProcessCDR(1,14800938,1,1,2) [2025-03-31 04:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800938', 'tblTempUsageDetail_20' ) start [2025-03-31 04:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800938', 'tblTempUsageDetail_20' ) end [2025-03-31 04:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 04:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 04:04:22] Production.INFO: ==10423== Releasing lock... [2025-03-31 04:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 04:04:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-31 04:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 01:05:05 [end_date_ymd] => 2025-03-31 04:05:05 [RateCDR] => 1 ) [2025-03-31 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-31 01:05:05' and `end` < '2025-03-31 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-31 04:05:18] Production.INFO: count ==541 [2025-03-31 04:05:18] Production.ERROR: pbx CDR StartTime 2025-03-31 01:05:05 - End Time 2025-03-31 04:05:05 [2025-03-31 04:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800943', 'tblTempUsageDetail_20' ) start [2025-03-31 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800943', 'tblTempUsageDetail_20' ) end [2025-03-31 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800943', 'tblTempVendorCDR_20' ) start [2025-03-31 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800943', 'tblTempVendorCDR_20' ) end [2025-03-31 04:05:18] Production.INFO: ProcessCDR(1,14800943,1,1,2) [2025-03-31 04:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800943', 'tblTempUsageDetail_20' ) start [2025-03-31 04:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800943', 'tblTempUsageDetail_20' ) end [2025-03-31 04:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 04:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 04:05:22] Production.INFO: ==10496== Releasing lock... [2025-03-31 04:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 04:05:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-31 04:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 01:06:05 [end_date_ymd] => 2025-03-31 04:06:05 [RateCDR] => 1 ) [2025-03-31 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-31 01:06:05' and `end` < '2025-03-31 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-31 04:06:17] Production.INFO: count ==542 [2025-03-31 04:06:17] Production.ERROR: pbx CDR StartTime 2025-03-31 01:06:05 - End Time 2025-03-31 04:06:05 [2025-03-31 04:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800948', 'tblTempUsageDetail_20' ) start [2025-03-31 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800948', 'tblTempUsageDetail_20' ) end [2025-03-31 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800948', 'tblTempVendorCDR_20' ) start [2025-03-31 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800948', 'tblTempVendorCDR_20' ) end [2025-03-31 04:06:17] Production.INFO: ProcessCDR(1,14800948,1,1,2) [2025-03-31 04:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800948', 'tblTempUsageDetail_20' ) start [2025-03-31 04:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800948', 'tblTempUsageDetail_20' ) end [2025-03-31 04:06:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 04:06:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 04:06:23] Production.INFO: ==10566== Releasing lock... [2025-03-31 04:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 04:06:23] Production.INFO: 32.75 MB #Memory Used# [2025-03-31 04:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 01:07:06 [end_date_ymd] => 2025-03-31 04:07:06 [RateCDR] => 1 ) [2025-03-31 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-31 01:07:06' and `end` < '2025-03-31 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-31 04:07:18] Production.INFO: count ==542 [2025-03-31 04:07:18] Production.ERROR: pbx CDR StartTime 2025-03-31 01:07:06 - End Time 2025-03-31 04:07:06 [2025-03-31 04:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800953', 'tblTempUsageDetail_20' ) start [2025-03-31 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800953', 'tblTempUsageDetail_20' ) end [2025-03-31 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800953', 'tblTempVendorCDR_20' ) start [2025-03-31 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800953', 'tblTempVendorCDR_20' ) end [2025-03-31 04:07:18] Production.INFO: ProcessCDR(1,14800953,1,1,2) [2025-03-31 04:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800953', 'tblTempUsageDetail_20' ) start [2025-03-31 04:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800953', 'tblTempUsageDetail_20' ) end [2025-03-31 04:07:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 04:07:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 04:07:22] Production.INFO: ==10640== Releasing lock... [2025-03-31 04:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 04:07:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-31 04:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 01:08:06 [end_date_ymd] => 2025-03-31 04:08:06 [RateCDR] => 1 ) [2025-03-31 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-31 01:08:06' and `end` < '2025-03-31 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-31 04:08:18] Production.INFO: count ==538 [2025-03-31 04:08:18] Production.ERROR: pbx CDR StartTime 2025-03-31 01:08:06 - End Time 2025-03-31 04:08:06 [2025-03-31 04:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800958', 'tblTempUsageDetail_20' ) start [2025-03-31 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800958', 'tblTempUsageDetail_20' ) end [2025-03-31 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800958', 'tblTempVendorCDR_20' ) start [2025-03-31 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800958', 'tblTempVendorCDR_20' ) end [2025-03-31 04:08:18] Production.INFO: ProcessCDR(1,14800958,1,1,2) [2025-03-31 04:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800958', 'tblTempUsageDetail_20' ) start [2025-03-31 04:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800958', 'tblTempUsageDetail_20' ) end [2025-03-31 04:08:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 04:08:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 04:08:22] Production.INFO: ==10714== Releasing lock... [2025-03-31 04:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 04:08:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-31 04:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 01:09:06 [end_date_ymd] => 2025-03-31 04:09:06 [RateCDR] => 1 ) [2025-03-31 04:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 01:09:06' and `end` < '2025-03-31 04:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 04:09:18] Production.INFO: count ==542 [2025-03-31 04:09:18] Production.ERROR: pbx CDR StartTime 2025-03-31 01:09:06 - End Time 2025-03-31 04:09:06 [2025-03-31 04:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800963', 'tblTempUsageDetail_20' ) start [2025-03-31 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800963', 'tblTempUsageDetail_20' ) end [2025-03-31 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800963', 'tblTempVendorCDR_20' ) start [2025-03-31 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800963', 'tblTempVendorCDR_20' ) end [2025-03-31 04:09:18] Production.INFO: ProcessCDR(1,14800963,1,1,2) [2025-03-31 04:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800963', 'tblTempUsageDetail_20' ) start [2025-03-31 04:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800963', 'tblTempUsageDetail_20' ) end [2025-03-31 04:09:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 04:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 04:09:22] Production.INFO: ==10784== Releasing lock... [2025-03-31 04:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 04:09:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-31 04:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 01:10:06 [end_date_ymd] => 2025-03-31 04:10:06 [RateCDR] => 1 ) [2025-03-31 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-31 01:10:06' and `end` < '2025-03-31 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-31 04:10:19] Production.INFO: count ==540 [2025-03-31 04:10:19] Production.ERROR: pbx CDR StartTime 2025-03-31 01:10:06 - End Time 2025-03-31 04:10:06 [2025-03-31 04:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800969', 'tblTempUsageDetail_20' ) start [2025-03-31 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800969', 'tblTempUsageDetail_20' ) end [2025-03-31 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800969', 'tblTempVendorCDR_20' ) start [2025-03-31 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800969', 'tblTempVendorCDR_20' ) end [2025-03-31 04:10:19] Production.INFO: ProcessCDR(1,14800969,1,1,2) [2025-03-31 04:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800969', 'tblTempUsageDetail_20' ) start [2025-03-31 04:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800969', 'tblTempUsageDetail_20' ) end [2025-03-31 04:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 04:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 04:10:22] Production.INFO: ==10858== Releasing lock... [2025-03-31 04:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 04:10:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-31 04:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 01:11:05 [end_date_ymd] => 2025-03-31 04:11:05 [RateCDR] => 1 ) [2025-03-31 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-31 01:11:05' and `end` < '2025-03-31 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-31 04:11:18] Production.INFO: count ==537 [2025-03-31 04:11:18] Production.ERROR: pbx CDR StartTime 2025-03-31 01:11:05 - End Time 2025-03-31 04:11:05 [2025-03-31 04:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800974', 'tblTempUsageDetail_20' ) start [2025-03-31 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800974', 'tblTempUsageDetail_20' ) end [2025-03-31 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800974', 'tblTempVendorCDR_20' ) start [2025-03-31 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800974', 'tblTempVendorCDR_20' ) end [2025-03-31 04:11:18] Production.INFO: ProcessCDR(1,14800974,1,1,2) [2025-03-31 04:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800974', 'tblTempUsageDetail_20' ) start [2025-03-31 04:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800974', 'tblTempUsageDetail_20' ) end [2025-03-31 04:11:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 04:11:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 04:11:22] Production.INFO: ==10936== Releasing lock... [2025-03-31 04:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 04:11:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-31 04:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 01:12:05 [end_date_ymd] => 2025-03-31 04:12:05 [RateCDR] => 1 ) [2025-03-31 04:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 01:12:05' and `end` < '2025-03-31 04:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 04:12:18] Production.INFO: count ==518 [2025-03-31 04:12:18] Production.ERROR: pbx CDR StartTime 2025-03-31 01:12:05 - End Time 2025-03-31 04:12:05 [2025-03-31 04:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800979', 'tblTempUsageDetail_20' ) start [2025-03-31 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800979', 'tblTempUsageDetail_20' ) end [2025-03-31 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800979', 'tblTempVendorCDR_20' ) start [2025-03-31 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800979', 'tblTempVendorCDR_20' ) end [2025-03-31 04:12:18] Production.INFO: ProcessCDR(1,14800979,1,1,2) [2025-03-31 04:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800979', 'tblTempUsageDetail_20' ) start [2025-03-31 04:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800979', 'tblTempUsageDetail_20' ) end [2025-03-31 04:12:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 04:12:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 04:12:23] Production.INFO: ==11010== Releasing lock... [2025-03-31 04:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 04:12:23] Production.INFO: 32.5 MB #Memory Used# [2025-03-31 04:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 01:13:05 [end_date_ymd] => 2025-03-31 04:13:05 [RateCDR] => 1 ) [2025-03-31 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-31 01:13:05' and `end` < '2025-03-31 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-31 04:13:18] Production.INFO: count ==516 [2025-03-31 04:13:18] Production.ERROR: pbx CDR StartTime 2025-03-31 01:13:05 - End Time 2025-03-31 04:13:05 [2025-03-31 04:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800984', 'tblTempUsageDetail_20' ) start [2025-03-31 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800984', 'tblTempUsageDetail_20' ) end [2025-03-31 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800984', 'tblTempVendorCDR_20' ) start [2025-03-31 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800984', 'tblTempVendorCDR_20' ) end [2025-03-31 04:13:18] Production.INFO: ProcessCDR(1,14800984,1,1,2) [2025-03-31 04:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800984', 'tblTempUsageDetail_20' ) start [2025-03-31 04:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800984', 'tblTempUsageDetail_20' ) end [2025-03-31 04:13:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 04:13:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 04:13:23] Production.INFO: ==11083== Releasing lock... [2025-03-31 04:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 04:13:23] Production.INFO: 32.5 MB #Memory Used# [2025-03-31 04:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 01:14:05 [end_date_ymd] => 2025-03-31 04:14:05 [RateCDR] => 1 ) [2025-03-31 04:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 01:14:05' and `end` < '2025-03-31 04:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 04:14:18] Production.INFO: count ==514 [2025-03-31 04:14:18] Production.ERROR: pbx CDR StartTime 2025-03-31 01:14:05 - End Time 2025-03-31 04:14:05 [2025-03-31 04:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800989', 'tblTempUsageDetail_20' ) start [2025-03-31 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800989', 'tblTempUsageDetail_20' ) end [2025-03-31 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800989', 'tblTempVendorCDR_20' ) start [2025-03-31 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800989', 'tblTempVendorCDR_20' ) end [2025-03-31 04:14:18] Production.INFO: ProcessCDR(1,14800989,1,1,2) [2025-03-31 04:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800989', 'tblTempUsageDetail_20' ) start [2025-03-31 04:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800989', 'tblTempUsageDetail_20' ) end [2025-03-31 04:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 04:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 04:14:21] Production.INFO: ==11197== Releasing lock... [2025-03-31 04:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 04:14:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-31 04:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 01:15:05 [end_date_ymd] => 2025-03-31 04:15:05 [RateCDR] => 1 ) [2025-03-31 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-31 01:15:05' and `end` < '2025-03-31 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-31 04:15:18] Production.INFO: count ==510 [2025-03-31 04:15:18] Production.ERROR: pbx CDR StartTime 2025-03-31 01:15:05 - End Time 2025-03-31 04:15:05 [2025-03-31 04:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800994', 'tblTempUsageDetail_20' ) start [2025-03-31 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800994', 'tblTempUsageDetail_20' ) end [2025-03-31 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800994', 'tblTempVendorCDR_20' ) start [2025-03-31 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800994', 'tblTempVendorCDR_20' ) end [2025-03-31 04:15:18] Production.INFO: ProcessCDR(1,14800994,1,1,2) [2025-03-31 04:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800994', 'tblTempUsageDetail_20' ) start [2025-03-31 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800994', 'tblTempUsageDetail_20' ) end [2025-03-31 04:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 04:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 04:15:21] Production.INFO: ==11270== Releasing lock... [2025-03-31 04:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 04:15:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-31 04:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 01:16:06 [end_date_ymd] => 2025-03-31 04:16:06 [RateCDR] => 1 ) [2025-03-31 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-31 01:16:06' and `end` < '2025-03-31 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-31 04:16:19] Production.INFO: count ==510 [2025-03-31 04:16:19] Production.ERROR: pbx CDR StartTime 2025-03-31 01:16:06 - End Time 2025-03-31 04:16:06 [2025-03-31 04:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 04:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800999', 'tblTempUsageDetail_20' ) start [2025-03-31 04:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14800999', 'tblTempUsageDetail_20' ) end [2025-03-31 04:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800999', 'tblTempVendorCDR_20' ) start [2025-03-31 04:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14800999', 'tblTempVendorCDR_20' ) end [2025-03-31 04:16:19] Production.INFO: ProcessCDR(1,14800999,1,1,2) [2025-03-31 04:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14800999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14800999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14800999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14800999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800999', 'tblTempUsageDetail_20' ) start [2025-03-31 04:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14800999', 'tblTempUsageDetail_20' ) end [2025-03-31 04:16:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 04:16:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 04:16:22] Production.INFO: ==11339== Releasing lock... [2025-03-31 04:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 04:16:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-31 04:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 01:17:05 [end_date_ymd] => 2025-03-31 04:17:05 [RateCDR] => 1 ) [2025-03-31 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-31 01:17:05' and `end` < '2025-03-31 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-31 04:17:18] Production.INFO: count ==507 [2025-03-31 04:17:18] Production.ERROR: pbx CDR StartTime 2025-03-31 01:17:05 - End Time 2025-03-31 04:17:05 [2025-03-31 04:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801004', 'tblTempUsageDetail_20' ) start [2025-03-31 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801004', 'tblTempUsageDetail_20' ) end [2025-03-31 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801004', 'tblTempVendorCDR_20' ) start [2025-03-31 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801004', 'tblTempVendorCDR_20' ) end [2025-03-31 04:17:18] Production.INFO: ProcessCDR(1,14801004,1,1,2) [2025-03-31 04:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801004', 'tblTempUsageDetail_20' ) start [2025-03-31 04:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801004', 'tblTempUsageDetail_20' ) end [2025-03-31 04:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 04:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 04:17:22] Production.INFO: ==11412== Releasing lock... [2025-03-31 04:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 04:17:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-31 04:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 01:18:05 [end_date_ymd] => 2025-03-31 04:18:05 [RateCDR] => 1 ) [2025-03-31 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-31 01:18:05' and `end` < '2025-03-31 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-31 04:18:18] Production.INFO: count ==507 [2025-03-31 04:18:18] Production.ERROR: pbx CDR StartTime 2025-03-31 01:18:05 - End Time 2025-03-31 04:18:05 [2025-03-31 04:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801009', 'tblTempUsageDetail_20' ) start [2025-03-31 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801009', 'tblTempUsageDetail_20' ) end [2025-03-31 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801009', 'tblTempVendorCDR_20' ) start [2025-03-31 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801009', 'tblTempVendorCDR_20' ) end [2025-03-31 04:18:18] Production.INFO: ProcessCDR(1,14801009,1,1,2) [2025-03-31 04:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801009', 'tblTempUsageDetail_20' ) start [2025-03-31 04:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801009', 'tblTempUsageDetail_20' ) end [2025-03-31 04:18:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 04:18:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 04:18:22] Production.INFO: ==11485== Releasing lock... [2025-03-31 04:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 04:18:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-31 04:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 01:19:05 [end_date_ymd] => 2025-03-31 04:19:05 [RateCDR] => 1 ) [2025-03-31 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-31 01:19:05' and `end` < '2025-03-31 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-31 04:19:18] Production.INFO: count ==507 [2025-03-31 04:19:18] Production.ERROR: pbx CDR StartTime 2025-03-31 01:19:05 - End Time 2025-03-31 04:19:05 [2025-03-31 04:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801014', 'tblTempUsageDetail_20' ) start [2025-03-31 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801014', 'tblTempUsageDetail_20' ) end [2025-03-31 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801014', 'tblTempVendorCDR_20' ) start [2025-03-31 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801014', 'tblTempVendorCDR_20' ) end [2025-03-31 04:19:18] Production.INFO: ProcessCDR(1,14801014,1,1,2) [2025-03-31 04:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801014', 'tblTempUsageDetail_20' ) start [2025-03-31 04:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801014', 'tblTempUsageDetail_20' ) end [2025-03-31 04:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 04:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 04:19:21] Production.INFO: ==11566== Releasing lock... [2025-03-31 04:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 04:19:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-31 04:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 01:20:06 [end_date_ymd] => 2025-03-31 04:20:06 [RateCDR] => 1 ) [2025-03-31 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-31 01:20:06' and `end` < '2025-03-31 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-31 04:20:19] Production.INFO: count ==515 [2025-03-31 04:20:19] Production.ERROR: pbx CDR StartTime 2025-03-31 01:20:06 - End Time 2025-03-31 04:20:06 [2025-03-31 04:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801019', 'tblTempUsageDetail_20' ) start [2025-03-31 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801019', 'tblTempUsageDetail_20' ) end [2025-03-31 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801019', 'tblTempVendorCDR_20' ) start [2025-03-31 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801019', 'tblTempVendorCDR_20' ) end [2025-03-31 04:20:19] Production.INFO: ProcessCDR(1,14801019,1,1,2) [2025-03-31 04:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801019', 'tblTempUsageDetail_20' ) start [2025-03-31 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801019', 'tblTempUsageDetail_20' ) end [2025-03-31 04:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 04:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 04:20:22] Production.INFO: ==11658== Releasing lock... [2025-03-31 04:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 04:20:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-31 04:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 01:21:05 [end_date_ymd] => 2025-03-31 04:21:05 [RateCDR] => 1 ) [2025-03-31 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-31 01:21:05' and `end` < '2025-03-31 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-31 04:21:18] Production.INFO: count ==515 [2025-03-31 04:21:18] Production.ERROR: pbx CDR StartTime 2025-03-31 01:21:05 - End Time 2025-03-31 04:21:05 [2025-03-31 04:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801025', 'tblTempUsageDetail_20' ) start [2025-03-31 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801025', 'tblTempUsageDetail_20' ) end [2025-03-31 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801025', 'tblTempVendorCDR_20' ) start [2025-03-31 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801025', 'tblTempVendorCDR_20' ) end [2025-03-31 04:21:18] Production.INFO: ProcessCDR(1,14801025,1,1,2) [2025-03-31 04:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801025', 'tblTempUsageDetail_20' ) start [2025-03-31 04:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801025', 'tblTempUsageDetail_20' ) end [2025-03-31 04:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 04:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 04:21:21] Production.INFO: ==11732== Releasing lock... [2025-03-31 04:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 04:21:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-31 04:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 01:22:05 [end_date_ymd] => 2025-03-31 04:22:05 [RateCDR] => 1 ) [2025-03-31 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-31 01:22:05' and `end` < '2025-03-31 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-31 04:22:18] Production.INFO: count ==513 [2025-03-31 04:22:18] Production.ERROR: pbx CDR StartTime 2025-03-31 01:22:05 - End Time 2025-03-31 04:22:05 [2025-03-31 04:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801030', 'tblTempUsageDetail_20' ) start [2025-03-31 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801030', 'tblTempUsageDetail_20' ) end [2025-03-31 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801030', 'tblTempVendorCDR_20' ) start [2025-03-31 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801030', 'tblTempVendorCDR_20' ) end [2025-03-31 04:22:18] Production.INFO: ProcessCDR(1,14801030,1,1,2) [2025-03-31 04:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801030', 'tblTempUsageDetail_20' ) start [2025-03-31 04:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801030', 'tblTempUsageDetail_20' ) end [2025-03-31 04:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 04:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 04:22:22] Production.INFO: ==11804== Releasing lock... [2025-03-31 04:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 04:22:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-31 04:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 01:23:05 [end_date_ymd] => 2025-03-31 04:23:05 [RateCDR] => 1 ) [2025-03-31 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-31 01:23:05' and `end` < '2025-03-31 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-31 04:23:18] Production.INFO: count ==509 [2025-03-31 04:23:18] Production.ERROR: pbx CDR StartTime 2025-03-31 01:23:05 - End Time 2025-03-31 04:23:05 [2025-03-31 04:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801035', 'tblTempUsageDetail_20' ) start [2025-03-31 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801035', 'tblTempUsageDetail_20' ) end [2025-03-31 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801035', 'tblTempVendorCDR_20' ) start [2025-03-31 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801035', 'tblTempVendorCDR_20' ) end [2025-03-31 04:23:18] Production.INFO: ProcessCDR(1,14801035,1,1,2) [2025-03-31 04:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801035', 'tblTempUsageDetail_20' ) start [2025-03-31 04:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801035', 'tblTempUsageDetail_20' ) end [2025-03-31 04:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 04:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 04:23:21] Production.INFO: ==11877== Releasing lock... [2025-03-31 04:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 04:23:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-31 04:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 01:24:06 [end_date_ymd] => 2025-03-31 04:24:06 [RateCDR] => 1 ) [2025-03-31 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-31 01:24:06' and `end` < '2025-03-31 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-31 04:24:19] Production.INFO: count ==509 [2025-03-31 04:24:19] Production.ERROR: pbx CDR StartTime 2025-03-31 01:24:06 - End Time 2025-03-31 04:24:06 [2025-03-31 04:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 04:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801040', 'tblTempUsageDetail_20' ) start [2025-03-31 04:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801040', 'tblTempUsageDetail_20' ) end [2025-03-31 04:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801040', 'tblTempVendorCDR_20' ) start [2025-03-31 04:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801040', 'tblTempVendorCDR_20' ) end [2025-03-31 04:24:19] Production.INFO: ProcessCDR(1,14801040,1,1,2) [2025-03-31 04:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801040', 'tblTempUsageDetail_20' ) start [2025-03-31 04:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801040', 'tblTempUsageDetail_20' ) end [2025-03-31 04:24:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 04:24:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 04:24:22] Production.INFO: ==11952== Releasing lock... [2025-03-31 04:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 04:24:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-31 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 01:25:05 [end_date_ymd] => 2025-03-31 04:25:05 [RateCDR] => 1 ) [2025-03-31 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-31 01:25:05' and `end` < '2025-03-31 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-31 04:25:18] Production.INFO: count ==510 [2025-03-31 04:25:18] Production.ERROR: pbx CDR StartTime 2025-03-31 01:25:05 - End Time 2025-03-31 04:25:05 [2025-03-31 04:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801045', 'tblTempUsageDetail_20' ) start [2025-03-31 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801045', 'tblTempUsageDetail_20' ) end [2025-03-31 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801045', 'tblTempVendorCDR_20' ) start [2025-03-31 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801045', 'tblTempVendorCDR_20' ) end [2025-03-31 04:25:18] Production.INFO: ProcessCDR(1,14801045,1,1,2) [2025-03-31 04:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801045', 'tblTempUsageDetail_20' ) start [2025-03-31 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801045', 'tblTempUsageDetail_20' ) end [2025-03-31 04:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 04:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 04:25:21] Production.INFO: ==12022== Releasing lock... [2025-03-31 04:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 04:25:21] Production.INFO: 32 MB #Memory Used# [2025-03-31 04:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 01:26:05 [end_date_ymd] => 2025-03-31 04:26:05 [RateCDR] => 1 ) [2025-03-31 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-31 01:26:05' and `end` < '2025-03-31 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-31 04:26:18] Production.INFO: count ==509 [2025-03-31 04:26:18] Production.ERROR: pbx CDR StartTime 2025-03-31 01:26:05 - End Time 2025-03-31 04:26:05 [2025-03-31 04:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801050', 'tblTempUsageDetail_20' ) start [2025-03-31 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801050', 'tblTempUsageDetail_20' ) end [2025-03-31 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801050', 'tblTempVendorCDR_20' ) start [2025-03-31 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801050', 'tblTempVendorCDR_20' ) end [2025-03-31 04:26:18] Production.INFO: ProcessCDR(1,14801050,1,1,2) [2025-03-31 04:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801050', 'tblTempUsageDetail_20' ) start [2025-03-31 04:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801050', 'tblTempUsageDetail_20' ) end [2025-03-31 04:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 04:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 04:26:21] Production.INFO: ==12096== Releasing lock... [2025-03-31 04:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 04:26:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-31 04:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 01:27:05 [end_date_ymd] => 2025-03-31 04:27:05 [RateCDR] => 1 ) [2025-03-31 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-31 01:27:05' and `end` < '2025-03-31 04:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 04:27:18] Production.INFO: count ==495 [2025-03-31 04:27:18] Production.ERROR: pbx CDR StartTime 2025-03-31 01:27:05 - End Time 2025-03-31 04:27:05 [2025-03-31 04:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801055', 'tblTempUsageDetail_20' ) start [2025-03-31 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801055', 'tblTempUsageDetail_20' ) end [2025-03-31 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801055', 'tblTempVendorCDR_20' ) start [2025-03-31 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801055', 'tblTempVendorCDR_20' ) end [2025-03-31 04:27:18] Production.INFO: ProcessCDR(1,14801055,1,1,2) [2025-03-31 04:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801055', 'tblTempUsageDetail_20' ) start [2025-03-31 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801055', 'tblTempUsageDetail_20' ) end [2025-03-31 04:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 04:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 04:27:21] Production.INFO: ==12167== Releasing lock... [2025-03-31 04:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 04:27:21] Production.INFO: 32 MB #Memory Used# [2025-03-31 04:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 01:28:06 [end_date_ymd] => 2025-03-31 04:28:06 [RateCDR] => 1 ) [2025-03-31 04: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-31 01:28:06' and `end` < '2025-03-31 04: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-31 04:28:18] Production.INFO: count ==492 [2025-03-31 04:28:19] Production.ERROR: pbx CDR StartTime 2025-03-31 01:28:06 - End Time 2025-03-31 04:28:06 [2025-03-31 04:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 04:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801060', 'tblTempUsageDetail_20' ) start [2025-03-31 04:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801060', 'tblTempUsageDetail_20' ) end [2025-03-31 04:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801060', 'tblTempVendorCDR_20' ) start [2025-03-31 04:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801060', 'tblTempVendorCDR_20' ) end [2025-03-31 04:28:19] Production.INFO: ProcessCDR(1,14801060,1,1,2) [2025-03-31 04:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801060', 'tblTempUsageDetail_20' ) start [2025-03-31 04:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801060', 'tblTempUsageDetail_20' ) end [2025-03-31 04:28:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 04:28:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 04:28:22] Production.INFO: ==12239== Releasing lock... [2025-03-31 04:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 04:28:22] Production.INFO: 32 MB #Memory Used# [2025-03-31 04:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 01:29:05 [end_date_ymd] => 2025-03-31 04:29:05 [RateCDR] => 1 ) [2025-03-31 04:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 01:29:05' and `end` < '2025-03-31 04:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 04:29:17] Production.INFO: count ==490 [2025-03-31 04:29:18] Production.ERROR: pbx CDR StartTime 2025-03-31 01:29:05 - End Time 2025-03-31 04:29:05 [2025-03-31 04:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801065', 'tblTempUsageDetail_20' ) start [2025-03-31 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801065', 'tblTempUsageDetail_20' ) end [2025-03-31 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801065', 'tblTempVendorCDR_20' ) start [2025-03-31 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801065', 'tblTempVendorCDR_20' ) end [2025-03-31 04:29:18] Production.INFO: ProcessCDR(1,14801065,1,1,2) [2025-03-31 04:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801065', 'tblTempUsageDetail_20' ) start [2025-03-31 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801065', 'tblTempUsageDetail_20' ) end [2025-03-31 04:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 04:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 04:29:21] Production.INFO: ==12349== Releasing lock... [2025-03-31 04:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 04:29:21] Production.INFO: 32 MB #Memory Used# [2025-03-31 04:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 01:30:07 [end_date_ymd] => 2025-03-31 04:30:07 [RateCDR] => 1 ) [2025-03-31 04:30:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 01:30:07' and `end` < '2025-03-31 04:30:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 04:30:19] Production.INFO: count ==492 [2025-03-31 04:30:20] Production.ERROR: pbx CDR StartTime 2025-03-31 01:30:07 - End Time 2025-03-31 04:30:07 [2025-03-31 04:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 04:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801072', 'tblTempUsageDetail_20' ) start [2025-03-31 04:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801072', 'tblTempUsageDetail_20' ) end [2025-03-31 04:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801072', 'tblTempVendorCDR_20' ) start [2025-03-31 04:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801072', 'tblTempVendorCDR_20' ) end [2025-03-31 04:30:20] Production.INFO: ProcessCDR(1,14801072,1,1,2) [2025-03-31 04:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801072', 'tblTempUsageDetail_20' ) start [2025-03-31 04:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801072', 'tblTempUsageDetail_20' ) end [2025-03-31 04:30:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 04:30:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 04:30:24] Production.INFO: ==12429== Releasing lock... [2025-03-31 04:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 04:30:24] Production.INFO: 32 MB #Memory Used# [2025-03-31 04:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 01:31:05 [end_date_ymd] => 2025-03-31 04:31:05 [RateCDR] => 1 ) [2025-03-31 04:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 01:31:05' and `end` < '2025-03-31 04:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 04:31:17] Production.INFO: count ==493 [2025-03-31 04:31:18] Production.ERROR: pbx CDR StartTime 2025-03-31 01:31:05 - End Time 2025-03-31 04:31:05 [2025-03-31 04:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801077', 'tblTempUsageDetail_20' ) start [2025-03-31 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801077', 'tblTempUsageDetail_20' ) end [2025-03-31 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801077', 'tblTempVendorCDR_20' ) start [2025-03-31 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801077', 'tblTempVendorCDR_20' ) end [2025-03-31 04:31:18] Production.INFO: ProcessCDR(1,14801077,1,1,2) [2025-03-31 04:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801077', 'tblTempUsageDetail_20' ) start [2025-03-31 04:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801077', 'tblTempUsageDetail_20' ) end [2025-03-31 04:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 04:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 04:31:21] Production.INFO: ==12532== Releasing lock... [2025-03-31 04:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 04:31:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-31 04:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 01:32:06 [end_date_ymd] => 2025-03-31 04:32:06 [RateCDR] => 1 ) [2025-03-31 04:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 01:32:06' and `end` < '2025-03-31 04:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 04:32:18] Production.INFO: count ==480 [2025-03-31 04:32:19] Production.ERROR: pbx CDR StartTime 2025-03-31 01:32:06 - End Time 2025-03-31 04:32:06 [2025-03-31 04:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 04:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801082', 'tblTempUsageDetail_20' ) start [2025-03-31 04:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801082', 'tblTempUsageDetail_20' ) end [2025-03-31 04:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801082', 'tblTempVendorCDR_20' ) start [2025-03-31 04:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801082', 'tblTempVendorCDR_20' ) end [2025-03-31 04:32:19] Production.INFO: ProcessCDR(1,14801082,1,1,2) [2025-03-31 04:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801082', 'tblTempUsageDetail_20' ) start [2025-03-31 04:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801082', 'tblTempUsageDetail_20' ) end [2025-03-31 04:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 04:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 04:32:22] Production.INFO: ==12608== Releasing lock... [2025-03-31 04:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 04:32:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-31 04:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 01:33:05 [end_date_ymd] => 2025-03-31 04:33:05 [RateCDR] => 1 ) [2025-03-31 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-31 01:33:05' and `end` < '2025-03-31 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-31 04:33:18] Production.INFO: count ==480 [2025-03-31 04:33:18] Production.ERROR: pbx CDR StartTime 2025-03-31 01:33:05 - End Time 2025-03-31 04:33:05 [2025-03-31 04:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801087', 'tblTempUsageDetail_20' ) start [2025-03-31 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801087', 'tblTempUsageDetail_20' ) end [2025-03-31 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801087', 'tblTempVendorCDR_20' ) start [2025-03-31 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801087', 'tblTempVendorCDR_20' ) end [2025-03-31 04:33:18] Production.INFO: ProcessCDR(1,14801087,1,1,2) [2025-03-31 04:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801087', 'tblTempUsageDetail_20' ) start [2025-03-31 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801087', 'tblTempUsageDetail_20' ) end [2025-03-31 04:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 04:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 04:33:21] Production.INFO: ==12684== Releasing lock... [2025-03-31 04:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 04:33:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-31 04:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 01:34:06 [end_date_ymd] => 2025-03-31 04:34:06 [RateCDR] => 1 ) [2025-03-31 04: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-31 01:34:06' and `end` < '2025-03-31 04: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-31 04:34:18] Production.INFO: count ==480 [2025-03-31 04:34:19] Production.ERROR: pbx CDR StartTime 2025-03-31 01:34:06 - End Time 2025-03-31 04:34:06 [2025-03-31 04:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 04:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801092', 'tblTempUsageDetail_20' ) start [2025-03-31 04:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801092', 'tblTempUsageDetail_20' ) end [2025-03-31 04:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801092', 'tblTempVendorCDR_20' ) start [2025-03-31 04:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801092', 'tblTempVendorCDR_20' ) end [2025-03-31 04:34:19] Production.INFO: ProcessCDR(1,14801092,1,1,2) [2025-03-31 04:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801092', 'tblTempUsageDetail_20' ) start [2025-03-31 04:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801092', 'tblTempUsageDetail_20' ) end [2025-03-31 04:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 04:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 04:34:22] Production.INFO: ==12757== Releasing lock... [2025-03-31 04:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 04:34:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-31 04:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 01:35:05 [end_date_ymd] => 2025-03-31 04:35:05 [RateCDR] => 1 ) [2025-03-31 04:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 01:35:05' and `end` < '2025-03-31 04:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 04:35:18] Production.INFO: count ==477 [2025-03-31 04:35:18] Production.ERROR: pbx CDR StartTime 2025-03-31 01:35:05 - End Time 2025-03-31 04:35:05 [2025-03-31 04:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801097', 'tblTempUsageDetail_20' ) start [2025-03-31 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801097', 'tblTempUsageDetail_20' ) end [2025-03-31 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801097', 'tblTempVendorCDR_20' ) start [2025-03-31 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801097', 'tblTempVendorCDR_20' ) end [2025-03-31 04:35:18] Production.INFO: ProcessCDR(1,14801097,1,1,2) [2025-03-31 04:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801097', 'tblTempUsageDetail_20' ) start [2025-03-31 04:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801097', 'tblTempUsageDetail_20' ) end [2025-03-31 04:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 04:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 04:35:21] Production.INFO: ==12832== Releasing lock... [2025-03-31 04:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 04:35:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-31 04:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 01:36:06 [end_date_ymd] => 2025-03-31 04:36:06 [RateCDR] => 1 ) [2025-03-31 04: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-31 01:36:06' and `end` < '2025-03-31 04: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-31 04:36:18] Production.INFO: count ==474 [2025-03-31 04:36:18] Production.ERROR: pbx CDR StartTime 2025-03-31 01:36:06 - End Time 2025-03-31 04:36:06 [2025-03-31 04:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801102', 'tblTempUsageDetail_20' ) start [2025-03-31 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801102', 'tblTempUsageDetail_20' ) end [2025-03-31 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801102', 'tblTempVendorCDR_20' ) start [2025-03-31 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801102', 'tblTempVendorCDR_20' ) end [2025-03-31 04:36:18] Production.INFO: ProcessCDR(1,14801102,1,1,2) [2025-03-31 04:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801102', 'tblTempUsageDetail_20' ) start [2025-03-31 04:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801102', 'tblTempUsageDetail_20' ) end [2025-03-31 04:36:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 04:36:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 04:36:22] Production.INFO: ==12904== Releasing lock... [2025-03-31 04:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 04:36:22] Production.INFO: 32 MB #Memory Used# [2025-03-31 04:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 01:37:04 [end_date_ymd] => 2025-03-31 04:37:04 [RateCDR] => 1 ) [2025-03-31 04: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-31 01:37:04' and `end` < '2025-03-31 04: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-31 04:37:17] Production.INFO: count ==460 [2025-03-31 04:37:17] Production.ERROR: pbx CDR StartTime 2025-03-31 01:37:04 - End Time 2025-03-31 04:37:04 [2025-03-31 04:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801107', 'tblTempUsageDetail_20' ) start [2025-03-31 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801107', 'tblTempUsageDetail_20' ) end [2025-03-31 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801107', 'tblTempVendorCDR_20' ) start [2025-03-31 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801107', 'tblTempVendorCDR_20' ) end [2025-03-31 04:37:17] Production.INFO: ProcessCDR(1,14801107,1,1,2) [2025-03-31 04:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801107', 'tblTempUsageDetail_20' ) start [2025-03-31 04:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801107', 'tblTempUsageDetail_20' ) end [2025-03-31 04:37:20] Production.ERROR: pbx prc_insertCDR start [2025-03-31 04:37:20] Production.ERROR: pbx prc_insertCDR end [2025-03-31 04:37:20] Production.INFO: ==12978== Releasing lock... [2025-03-31 04:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 04:37:20] Production.INFO: 32 MB #Memory Used# [2025-03-31 04:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 01:38:06 [end_date_ymd] => 2025-03-31 04:38:06 [RateCDR] => 1 ) [2025-03-31 04: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-31 01:38:06' and `end` < '2025-03-31 04: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-31 04:38:18] Production.INFO: count ==459 [2025-03-31 04:38:18] Production.ERROR: pbx CDR StartTime 2025-03-31 01:38:06 - End Time 2025-03-31 04:38:06 [2025-03-31 04:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801112', 'tblTempUsageDetail_20' ) start [2025-03-31 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801112', 'tblTempUsageDetail_20' ) end [2025-03-31 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801112', 'tblTempVendorCDR_20' ) start [2025-03-31 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801112', 'tblTempVendorCDR_20' ) end [2025-03-31 04:38:18] Production.INFO: ProcessCDR(1,14801112,1,1,2) [2025-03-31 04:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801112', 'tblTempUsageDetail_20' ) start [2025-03-31 04:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801112', 'tblTempUsageDetail_20' ) end [2025-03-31 04:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 04:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 04:38:22] Production.INFO: ==13050== Releasing lock... [2025-03-31 04:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 04:38:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-31 04:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 01:39:05 [end_date_ymd] => 2025-03-31 04:39:05 [RateCDR] => 1 ) [2025-03-31 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-31 01:39:05' and `end` < '2025-03-31 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-31 04:39:17] Production.INFO: count ==458 [2025-03-31 04:39:17] Production.ERROR: pbx CDR StartTime 2025-03-31 01:39:05 - End Time 2025-03-31 04:39:05 [2025-03-31 04:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801117', 'tblTempUsageDetail_20' ) start [2025-03-31 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801117', 'tblTempUsageDetail_20' ) end [2025-03-31 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801117', 'tblTempVendorCDR_20' ) start [2025-03-31 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801117', 'tblTempVendorCDR_20' ) end [2025-03-31 04:39:17] Production.INFO: ProcessCDR(1,14801117,1,1,2) [2025-03-31 04:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801117', 'tblTempUsageDetail_20' ) start [2025-03-31 04:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801117', 'tblTempUsageDetail_20' ) end [2025-03-31 04:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 04:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 04:39:21] Production.INFO: ==13127== Releasing lock... [2025-03-31 04:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 04:39:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-31 04:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 01:40:06 [end_date_ymd] => 2025-03-31 04:40:06 [RateCDR] => 1 ) [2025-03-31 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-31 01:40:06' and `end` < '2025-03-31 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-31 04:40:18] Production.INFO: count ==450 [2025-03-31 04:40:18] Production.ERROR: pbx CDR StartTime 2025-03-31 01:40:06 - End Time 2025-03-31 04:40:06 [2025-03-31 04:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801122', 'tblTempUsageDetail_20' ) start [2025-03-31 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801122', 'tblTempUsageDetail_20' ) end [2025-03-31 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801122', 'tblTempVendorCDR_20' ) start [2025-03-31 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801122', 'tblTempVendorCDR_20' ) end [2025-03-31 04:40:18] Production.INFO: ProcessCDR(1,14801122,1,1,2) [2025-03-31 04:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801122', 'tblTempUsageDetail_20' ) start [2025-03-31 04:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801122', 'tblTempUsageDetail_20' ) end [2025-03-31 04:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 04:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 04:40:22] Production.INFO: ==13201== Releasing lock... [2025-03-31 04:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 04:40:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-31 04:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 01:41:05 [end_date_ymd] => 2025-03-31 04:41:05 [RateCDR] => 1 ) [2025-03-31 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-31 01:41:05' and `end` < '2025-03-31 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-31 04:41:17] Production.INFO: count ==450 [2025-03-31 04:41:17] Production.ERROR: pbx CDR StartTime 2025-03-31 01:41:05 - End Time 2025-03-31 04:41:05 [2025-03-31 04:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801128', 'tblTempUsageDetail_20' ) start [2025-03-31 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801128', 'tblTempUsageDetail_20' ) end [2025-03-31 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801128', 'tblTempVendorCDR_20' ) start [2025-03-31 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801128', 'tblTempVendorCDR_20' ) end [2025-03-31 04:41:17] Production.INFO: ProcessCDR(1,14801128,1,1,2) [2025-03-31 04:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801128', 'tblTempUsageDetail_20' ) start [2025-03-31 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801128', 'tblTempUsageDetail_20' ) end [2025-03-31 04:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 04:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 04:41:21] Production.INFO: ==13274== Releasing lock... [2025-03-31 04:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 04:41:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-31 04:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 01:42:05 [end_date_ymd] => 2025-03-31 04:42:05 [RateCDR] => 1 ) [2025-03-31 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-31 01:42:05' and `end` < '2025-03-31 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-31 04:42:18] Production.INFO: count ==435 [2025-03-31 04:42:18] Production.ERROR: pbx CDR StartTime 2025-03-31 01:42:05 - End Time 2025-03-31 04:42:05 [2025-03-31 04:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801133', 'tblTempUsageDetail_20' ) start [2025-03-31 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801133', 'tblTempUsageDetail_20' ) end [2025-03-31 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801133', 'tblTempVendorCDR_20' ) start [2025-03-31 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801133', 'tblTempVendorCDR_20' ) end [2025-03-31 04:42:18] Production.INFO: ProcessCDR(1,14801133,1,1,2) [2025-03-31 04:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801133', 'tblTempUsageDetail_20' ) start [2025-03-31 04:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801133', 'tblTempUsageDetail_20' ) end [2025-03-31 04:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 04:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 04:42:22] Production.INFO: ==13347== Releasing lock... [2025-03-31 04:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 04:42:22] Production.INFO: 32 MB #Memory Used# [2025-03-31 04:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 01:43:05 [end_date_ymd] => 2025-03-31 04:43:05 [RateCDR] => 1 ) [2025-03-31 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-31 01:43:05' and `end` < '2025-03-31 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-31 04:43:18] Production.INFO: count ==435 [2025-03-31 04:43:18] Production.ERROR: pbx CDR StartTime 2025-03-31 01:43:05 - End Time 2025-03-31 04:43:05 [2025-03-31 04:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801138', 'tblTempUsageDetail_20' ) start [2025-03-31 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801138', 'tblTempUsageDetail_20' ) end [2025-03-31 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801138', 'tblTempVendorCDR_20' ) start [2025-03-31 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801138', 'tblTempVendorCDR_20' ) end [2025-03-31 04:43:18] Production.INFO: ProcessCDR(1,14801138,1,1,2) [2025-03-31 04:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801138', 'tblTempUsageDetail_20' ) start [2025-03-31 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801138', 'tblTempUsageDetail_20' ) end [2025-03-31 04:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 04:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 04:43:21] Production.INFO: ==13420== Releasing lock... [2025-03-31 04:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 04:43:21] Production.INFO: 32 MB #Memory Used# [2025-03-31 04:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 01:44:06 [end_date_ymd] => 2025-03-31 04:44:06 [RateCDR] => 1 ) [2025-03-31 04: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-31 01:44:06' and `end` < '2025-03-31 04: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-31 04:44:19] Production.INFO: count ==426 [2025-03-31 04:44:19] Production.ERROR: pbx CDR StartTime 2025-03-31 01:44:06 - End Time 2025-03-31 04:44:06 [2025-03-31 04:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 04:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801143', 'tblTempUsageDetail_20' ) start [2025-03-31 04:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801143', 'tblTempUsageDetail_20' ) end [2025-03-31 04:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801143', 'tblTempVendorCDR_20' ) start [2025-03-31 04:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801143', 'tblTempVendorCDR_20' ) end [2025-03-31 04:44:19] Production.INFO: ProcessCDR(1,14801143,1,1,2) [2025-03-31 04:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801143', 'tblTempUsageDetail_20' ) start [2025-03-31 04:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801143', 'tblTempUsageDetail_20' ) end [2025-03-31 04:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 04:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 04:44:22] Production.INFO: ==13490== Releasing lock... [2025-03-31 04:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 04:44:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-31 04:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 01:45:05 [end_date_ymd] => 2025-03-31 04:45:05 [RateCDR] => 1 ) [2025-03-31 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-31 01:45:05' and `end` < '2025-03-31 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-31 04:45:18] Production.INFO: count ==426 [2025-03-31 04:45:18] Production.ERROR: pbx CDR StartTime 2025-03-31 01:45:05 - End Time 2025-03-31 04:45:05 [2025-03-31 04:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801148', 'tblTempUsageDetail_20' ) start [2025-03-31 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801148', 'tblTempUsageDetail_20' ) end [2025-03-31 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801148', 'tblTempVendorCDR_20' ) start [2025-03-31 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801148', 'tblTempVendorCDR_20' ) end [2025-03-31 04:45:18] Production.INFO: ProcessCDR(1,14801148,1,1,2) [2025-03-31 04:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801148', 'tblTempUsageDetail_20' ) start [2025-03-31 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801148', 'tblTempUsageDetail_20' ) end [2025-03-31 04:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 04:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 04:45:21] Production.INFO: ==13600== Releasing lock... [2025-03-31 04:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 04:45:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-31 04:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 01:46:05 [end_date_ymd] => 2025-03-31 04:46:05 [RateCDR] => 1 ) [2025-03-31 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-31 01:46:05' and `end` < '2025-03-31 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-31 04:46:19] Production.INFO: count ==427 [2025-03-31 04:46:19] Production.ERROR: pbx CDR StartTime 2025-03-31 01:46:05 - End Time 2025-03-31 04:46:05 [2025-03-31 04:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 04:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801153', 'tblTempUsageDetail_20' ) start [2025-03-31 04:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801153', 'tblTempUsageDetail_20' ) end [2025-03-31 04:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801153', 'tblTempVendorCDR_20' ) start [2025-03-31 04:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801153', 'tblTempVendorCDR_20' ) end [2025-03-31 04:46:19] Production.INFO: ProcessCDR(1,14801153,1,1,2) [2025-03-31 04:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801153', 'tblTempUsageDetail_20' ) start [2025-03-31 04:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801153', 'tblTempUsageDetail_20' ) end [2025-03-31 04:46:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 04:46:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 04:46:23] Production.INFO: ==13673== Releasing lock... [2025-03-31 04:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 04:46:23] Production.INFO: 31.5 MB #Memory Used# [2025-03-31 04:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 01:47:05 [end_date_ymd] => 2025-03-31 04:47:05 [RateCDR] => 1 ) [2025-03-31 04:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 01:47:05' and `end` < '2025-03-31 04:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 04:47:18] Production.INFO: count ==427 [2025-03-31 04:47:18] Production.ERROR: pbx CDR StartTime 2025-03-31 01:47:05 - End Time 2025-03-31 04:47:05 [2025-03-31 04:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801158', 'tblTempUsageDetail_20' ) start [2025-03-31 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801158', 'tblTempUsageDetail_20' ) end [2025-03-31 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801158', 'tblTempVendorCDR_20' ) start [2025-03-31 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801158', 'tblTempVendorCDR_20' ) end [2025-03-31 04:47:18] Production.INFO: ProcessCDR(1,14801158,1,1,2) [2025-03-31 04:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801158', 'tblTempUsageDetail_20' ) start [2025-03-31 04:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801158', 'tblTempUsageDetail_20' ) end [2025-03-31 04:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 04:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 04:47:21] Production.INFO: ==13746== Releasing lock... [2025-03-31 04:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 04:47:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-31 04:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 01:48:05 [end_date_ymd] => 2025-03-31 04:48:05 [RateCDR] => 1 ) [2025-03-31 04:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 01:48:05' and `end` < '2025-03-31 04:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 04:48:19] Production.INFO: count ==427 [2025-03-31 04:48:19] Production.ERROR: pbx CDR StartTime 2025-03-31 01:48:05 - End Time 2025-03-31 04:48:05 [2025-03-31 04:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801163', 'tblTempUsageDetail_20' ) start [2025-03-31 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801163', 'tblTempUsageDetail_20' ) end [2025-03-31 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801163', 'tblTempVendorCDR_20' ) start [2025-03-31 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801163', 'tblTempVendorCDR_20' ) end [2025-03-31 04:48:19] Production.INFO: ProcessCDR(1,14801163,1,1,2) [2025-03-31 04:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801163', 'tblTempUsageDetail_20' ) start [2025-03-31 04:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801163', 'tblTempUsageDetail_20' ) end [2025-03-31 04:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 04:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 04:48:22] Production.INFO: ==13818== Releasing lock... [2025-03-31 04:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 04:48:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-31 04:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 01:49:05 [end_date_ymd] => 2025-03-31 04:49:05 [RateCDR] => 1 ) [2025-03-31 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-31 01:49:05' and `end` < '2025-03-31 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-31 04:49:18] Production.INFO: count ==427 [2025-03-31 04:49:18] Production.ERROR: pbx CDR StartTime 2025-03-31 01:49:05 - End Time 2025-03-31 04:49:05 [2025-03-31 04:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801168', 'tblTempUsageDetail_20' ) start [2025-03-31 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801168', 'tblTempUsageDetail_20' ) end [2025-03-31 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801168', 'tblTempVendorCDR_20' ) start [2025-03-31 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801168', 'tblTempVendorCDR_20' ) end [2025-03-31 04:49:18] Production.INFO: ProcessCDR(1,14801168,1,1,2) [2025-03-31 04:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801168', 'tblTempUsageDetail_20' ) start [2025-03-31 04:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801168', 'tblTempUsageDetail_20' ) end [2025-03-31 04:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 04:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 04:49:21] Production.INFO: ==13893== Releasing lock... [2025-03-31 04:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 04:49:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-31 04:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 01:50:06 [end_date_ymd] => 2025-03-31 04:50:06 [RateCDR] => 1 ) [2025-03-31 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-31 01:50:06' and `end` < '2025-03-31 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-31 04:50:19] Production.INFO: count ==388 [2025-03-31 04:50:19] Production.ERROR: pbx CDR StartTime 2025-03-31 01:50:06 - End Time 2025-03-31 04:50:06 [2025-03-31 04:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801174', 'tblTempUsageDetail_20' ) start [2025-03-31 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801174', 'tblTempUsageDetail_20' ) end [2025-03-31 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801174', 'tblTempVendorCDR_20' ) start [2025-03-31 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801174', 'tblTempVendorCDR_20' ) end [2025-03-31 04:50:19] Production.INFO: ProcessCDR(1,14801174,1,1,2) [2025-03-31 04:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801174', 'tblTempUsageDetail_20' ) start [2025-03-31 04:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801174', 'tblTempUsageDetail_20' ) end [2025-03-31 04:50:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 04:50:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 04:50:23] Production.INFO: ==13969== Releasing lock... [2025-03-31 04:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 04:50:23] Production.INFO: 31.5 MB #Memory Used# [2025-03-31 04:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 01:51:05 [end_date_ymd] => 2025-03-31 04:51:05 [RateCDR] => 1 ) [2025-03-31 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-31 01:51:05' and `end` < '2025-03-31 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-31 04:51:18] Production.INFO: count ==379 [2025-03-31 04:51:18] Production.ERROR: pbx CDR StartTime 2025-03-31 01:51:05 - End Time 2025-03-31 04:51:05 [2025-03-31 04:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801179', 'tblTempUsageDetail_20' ) start [2025-03-31 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801179', 'tblTempUsageDetail_20' ) end [2025-03-31 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801179', 'tblTempVendorCDR_20' ) start [2025-03-31 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801179', 'tblTempVendorCDR_20' ) end [2025-03-31 04:51:18] Production.INFO: ProcessCDR(1,14801179,1,1,2) [2025-03-31 04:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801179', 'tblTempUsageDetail_20' ) start [2025-03-31 04:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801179', 'tblTempUsageDetail_20' ) end [2025-03-31 04:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 04:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 04:51:22] Production.INFO: ==14044== Releasing lock... [2025-03-31 04:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 04:51:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-31 04:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 01:52:06 [end_date_ymd] => 2025-03-31 04:52:06 [RateCDR] => 1 ) [2025-03-31 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-31 01:52:06' and `end` < '2025-03-31 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-31 04:52:19] Production.INFO: count ==383 [2025-03-31 04:52:19] Production.ERROR: pbx CDR StartTime 2025-03-31 01:52:06 - End Time 2025-03-31 04:52:06 [2025-03-31 04:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 04:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801184', 'tblTempUsageDetail_20' ) start [2025-03-31 04:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801184', 'tblTempUsageDetail_20' ) end [2025-03-31 04:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801184', 'tblTempVendorCDR_20' ) start [2025-03-31 04:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801184', 'tblTempVendorCDR_20' ) end [2025-03-31 04:52:20] Production.INFO: ProcessCDR(1,14801184,1,1,2) [2025-03-31 04:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801184', 'tblTempUsageDetail_20' ) start [2025-03-31 04:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801184', 'tblTempUsageDetail_20' ) end [2025-03-31 04:52:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 04:52:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 04:52:23] Production.INFO: ==14120== Releasing lock... [2025-03-31 04:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 04:52:23] Production.INFO: 31.25 MB #Memory Used# [2025-03-31 04:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 01:53:05 [end_date_ymd] => 2025-03-31 04:53:05 [RateCDR] => 1 ) [2025-03-31 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-31 01:53:05' and `end` < '2025-03-31 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-31 04:53:20] Production.INFO: count ==383 [2025-03-31 04:53:20] Production.ERROR: pbx CDR StartTime 2025-03-31 01:53:05 - End Time 2025-03-31 04:53:05 [2025-03-31 04:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 04:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801189', 'tblTempUsageDetail_20' ) start [2025-03-31 04:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801189', 'tblTempUsageDetail_20' ) end [2025-03-31 04:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801189', 'tblTempVendorCDR_20' ) start [2025-03-31 04:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801189', 'tblTempVendorCDR_20' ) end [2025-03-31 04:53:20] Production.INFO: ProcessCDR(1,14801189,1,1,2) [2025-03-31 04:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801189', 'tblTempUsageDetail_20' ) start [2025-03-31 04:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801189', 'tblTempUsageDetail_20' ) end [2025-03-31 04:53:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 04:53:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 04:53:23] Production.INFO: ==14207== Releasing lock... [2025-03-31 04:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 04:53:23] Production.INFO: 31.25 MB #Memory Used# [2025-03-31 04:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 01:54:06 [end_date_ymd] => 2025-03-31 04:54:06 [RateCDR] => 1 ) [2025-03-31 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-31 01:54:06' and `end` < '2025-03-31 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-31 04:54:19] Production.INFO: count ==381 [2025-03-31 04:54:19] Production.ERROR: pbx CDR StartTime 2025-03-31 01:54:06 - End Time 2025-03-31 04:54:06 [2025-03-31 04:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801194', 'tblTempUsageDetail_20' ) start [2025-03-31 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801194', 'tblTempUsageDetail_20' ) end [2025-03-31 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801194', 'tblTempVendorCDR_20' ) start [2025-03-31 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801194', 'tblTempVendorCDR_20' ) end [2025-03-31 04:54:19] Production.INFO: ProcessCDR(1,14801194,1,1,2) [2025-03-31 04:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801194', 'tblTempUsageDetail_20' ) start [2025-03-31 04:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801194', 'tblTempUsageDetail_20' ) end [2025-03-31 04:54:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 04:54:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 04:54:23] Production.INFO: ==14279== Releasing lock... [2025-03-31 04:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 04:54:23] Production.INFO: 31.25 MB #Memory Used# [2025-03-31 04:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 01:55:05 [end_date_ymd] => 2025-03-31 04:55:05 [RateCDR] => 1 ) [2025-03-31 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-31 01:55:05' and `end` < '2025-03-31 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-31 04:55:20] Production.INFO: count ==386 [2025-03-31 04:55:20] Production.ERROR: pbx CDR StartTime 2025-03-31 01:55:05 - End Time 2025-03-31 04:55:05 [2025-03-31 04:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 04:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801199', 'tblTempUsageDetail_20' ) start [2025-03-31 04:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801199', 'tblTempUsageDetail_20' ) end [2025-03-31 04:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801199', 'tblTempVendorCDR_20' ) start [2025-03-31 04:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801199', 'tblTempVendorCDR_20' ) end [2025-03-31 04:55:20] Production.INFO: ProcessCDR(1,14801199,1,1,2) [2025-03-31 04:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801199', 'tblTempUsageDetail_20' ) start [2025-03-31 04:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801199', 'tblTempUsageDetail_20' ) end [2025-03-31 04:55:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 04:55:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 04:55:24] Production.INFO: ==14351== Releasing lock... [2025-03-31 04:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 04:55:24] Production.INFO: 31.5 MB #Memory Used# [2025-03-31 04:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 01:56:06 [end_date_ymd] => 2025-03-31 04:56:06 [RateCDR] => 1 ) [2025-03-31 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-31 01:56:06' and `end` < '2025-03-31 04: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-31 04:56:20] Production.INFO: count ==392 [2025-03-31 04:56:20] Production.ERROR: pbx CDR StartTime 2025-03-31 01:56:06 - End Time 2025-03-31 04:56:06 [2025-03-31 04:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801204', 'tblTempUsageDetail_20' ) start [2025-03-31 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801204', 'tblTempUsageDetail_20' ) end [2025-03-31 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801204', 'tblTempVendorCDR_20' ) start [2025-03-31 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801204', 'tblTempVendorCDR_20' ) end [2025-03-31 04:56:20] Production.INFO: ProcessCDR(1,14801204,1,1,2) [2025-03-31 04:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801204', 'tblTempUsageDetail_20' ) start [2025-03-31 04:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801204', 'tblTempUsageDetail_20' ) end [2025-03-31 04:56:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 04:56:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 04:56:24] Production.INFO: ==14423== Releasing lock... [2025-03-31 04:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 04:56:24] Production.INFO: 31.5 MB #Memory Used# [2025-03-31 04:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 01:57:05 [end_date_ymd] => 2025-03-31 04:57:05 [RateCDR] => 1 ) [2025-03-31 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-31 01:57:05' and `end` < '2025-03-31 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-31 04:57:18] Production.INFO: count ==391 [2025-03-31 04:57:18] Production.ERROR: pbx CDR StartTime 2025-03-31 01:57:05 - End Time 2025-03-31 04:57:05 [2025-03-31 04:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801209', 'tblTempUsageDetail_20' ) start [2025-03-31 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801209', 'tblTempUsageDetail_20' ) end [2025-03-31 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801209', 'tblTempVendorCDR_20' ) start [2025-03-31 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801209', 'tblTempVendorCDR_20' ) end [2025-03-31 04:57:18] Production.INFO: ProcessCDR(1,14801209,1,1,2) [2025-03-31 04:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801209', 'tblTempUsageDetail_20' ) start [2025-03-31 04:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801209', 'tblTempUsageDetail_20' ) end [2025-03-31 04:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 04:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 04:57:21] Production.INFO: ==14496== Releasing lock... [2025-03-31 04:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 04:57:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-31 04:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 01:58:05 [end_date_ymd] => 2025-03-31 04:58:05 [RateCDR] => 1 ) [2025-03-31 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-31 01:58:05' and `end` < '2025-03-31 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-31 04:58:19] Production.INFO: count ==390 [2025-03-31 04:58:19] Production.ERROR: pbx CDR StartTime 2025-03-31 01:58:05 - End Time 2025-03-31 04:58:05 [2025-03-31 04:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801214', 'tblTempUsageDetail_20' ) start [2025-03-31 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801214', 'tblTempUsageDetail_20' ) end [2025-03-31 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801214', 'tblTempVendorCDR_20' ) start [2025-03-31 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801214', 'tblTempVendorCDR_20' ) end [2025-03-31 04:58:19] Production.INFO: ProcessCDR(1,14801214,1,1,2) [2025-03-31 04:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801214', 'tblTempUsageDetail_20' ) start [2025-03-31 04:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801214', 'tblTempUsageDetail_20' ) end [2025-03-31 04:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 04:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 04:58:22] Production.INFO: ==14573== Releasing lock... [2025-03-31 04:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 04:58:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-31 04:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 01:59:05 [end_date_ymd] => 2025-03-31 04:59:05 [RateCDR] => 1 ) [2025-03-31 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-31 01:59:05' and `end` < '2025-03-31 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-31 04:59:18] Production.INFO: count ==389 [2025-03-31 04:59:18] Production.ERROR: pbx CDR StartTime 2025-03-31 01:59:05 - End Time 2025-03-31 04:59:05 [2025-03-31 04:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801219', 'tblTempUsageDetail_20' ) start [2025-03-31 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801219', 'tblTempUsageDetail_20' ) end [2025-03-31 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801219', 'tblTempVendorCDR_20' ) start [2025-03-31 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801219', 'tblTempVendorCDR_20' ) end [2025-03-31 04:59:18] Production.INFO: ProcessCDR(1,14801219,1,1,2) [2025-03-31 04:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 04:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 04:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801219', 'tblTempUsageDetail_20' ) start [2025-03-31 04:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801219', 'tblTempUsageDetail_20' ) end [2025-03-31 04:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 04:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 04:59:22] Production.INFO: ==14645== Releasing lock... [2025-03-31 04:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 04:59:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-31 05:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 02:00:06 [end_date_ymd] => 2025-03-31 05:00:06 [RateCDR] => 1 ) [2025-03-31 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-31 02:00:06' and `end` < '2025-03-31 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-31 05:00:20] Production.INFO: count ==378 [2025-03-31 05:00:21] Production.ERROR: pbx CDR StartTime 2025-03-31 02:00:06 - End Time 2025-03-31 05:00:06 [2025-03-31 05:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 05:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801225', 'tblTempUsageDetail_20' ) start [2025-03-31 05:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801225', 'tblTempUsageDetail_20' ) end [2025-03-31 05:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801225', 'tblTempVendorCDR_20' ) start [2025-03-31 05:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801225', 'tblTempVendorCDR_20' ) end [2025-03-31 05:00:21] Production.INFO: ProcessCDR(1,14801225,1,1,2) [2025-03-31 05:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801225', 'tblTempUsageDetail_20' ) start [2025-03-31 05:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801225', 'tblTempUsageDetail_20' ) end [2025-03-31 05:00:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 05:00:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 05:00:24] Production.INFO: ==14764== Releasing lock... [2025-03-31 05:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 05:00:24] Production.INFO: 32 MB #Memory Used# [2025-03-31 05:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 02:01:05 [end_date_ymd] => 2025-03-31 05:01:05 [RateCDR] => 1 ) [2025-03-31 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-31 02:01:05' and `end` < '2025-03-31 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-31 05:01:18] Production.INFO: count ==374 [2025-03-31 05:01:18] Production.ERROR: pbx CDR StartTime 2025-03-31 02:01:05 - End Time 2025-03-31 05:01:05 [2025-03-31 05:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801230', 'tblTempUsageDetail_20' ) start [2025-03-31 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801230', 'tblTempUsageDetail_20' ) end [2025-03-31 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801230', 'tblTempVendorCDR_20' ) start [2025-03-31 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801230', 'tblTempVendorCDR_20' ) end [2025-03-31 05:01:18] Production.INFO: ProcessCDR(1,14801230,1,1,2) [2025-03-31 05:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801230', 'tblTempUsageDetail_20' ) start [2025-03-31 05:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801230', 'tblTempUsageDetail_20' ) end [2025-03-31 05:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 05:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 05:01:21] Production.INFO: ==14858== Releasing lock... [2025-03-31 05:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 05:01:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-31 05:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 02:02:06 [end_date_ymd] => 2025-03-31 05:02:06 [RateCDR] => 1 ) [2025-03-31 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-31 02:02:06' and `end` < '2025-03-31 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-31 05:02:19] Production.INFO: count ==374 [2025-03-31 05:02:19] Production.ERROR: pbx CDR StartTime 2025-03-31 02:02:06 - End Time 2025-03-31 05:02:06 [2025-03-31 05:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801235', 'tblTempUsageDetail_20' ) start [2025-03-31 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801235', 'tblTempUsageDetail_20' ) end [2025-03-31 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801235', 'tblTempVendorCDR_20' ) start [2025-03-31 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801235', 'tblTempVendorCDR_20' ) end [2025-03-31 05:02:19] Production.INFO: ProcessCDR(1,14801235,1,1,2) [2025-03-31 05:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801235', 'tblTempUsageDetail_20' ) start [2025-03-31 05:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801235', 'tblTempUsageDetail_20' ) end [2025-03-31 05:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 05:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 05:02:22] Production.INFO: ==14933== Releasing lock... [2025-03-31 05:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 05:02:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-31 05:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 02:03:05 [end_date_ymd] => 2025-03-31 05:03:05 [RateCDR] => 1 ) [2025-03-31 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-31 02:03:05' and `end` < '2025-03-31 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-31 05:03:18] Production.INFO: count ==370 [2025-03-31 05:03:18] Production.ERROR: pbx CDR StartTime 2025-03-31 02:03:05 - End Time 2025-03-31 05:03:05 [2025-03-31 05:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801240', 'tblTempUsageDetail_20' ) start [2025-03-31 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801240', 'tblTempUsageDetail_20' ) end [2025-03-31 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801240', 'tblTempVendorCDR_20' ) start [2025-03-31 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801240', 'tblTempVendorCDR_20' ) end [2025-03-31 05:03:18] Production.INFO: ProcessCDR(1,14801240,1,1,2) [2025-03-31 05:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801240', 'tblTempUsageDetail_20' ) start [2025-03-31 05:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801240', 'tblTempUsageDetail_20' ) end [2025-03-31 05:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 05:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 05:03:21] Production.INFO: ==15007== Releasing lock... [2025-03-31 05:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 05:03:21] Production.INFO: 31 MB #Memory Used# [2025-03-31 05:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 02:04:05 [end_date_ymd] => 2025-03-31 05:04:05 [RateCDR] => 1 ) [2025-03-31 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-31 02:04:05' and `end` < '2025-03-31 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-31 05:04:18] Production.INFO: count ==370 [2025-03-31 05:04:18] Production.ERROR: pbx CDR StartTime 2025-03-31 02:04:05 - End Time 2025-03-31 05:04:05 [2025-03-31 05:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801245', 'tblTempUsageDetail_20' ) start [2025-03-31 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801245', 'tblTempUsageDetail_20' ) end [2025-03-31 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801245', 'tblTempVendorCDR_20' ) start [2025-03-31 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801245', 'tblTempVendorCDR_20' ) end [2025-03-31 05:04:18] Production.INFO: ProcessCDR(1,14801245,1,1,2) [2025-03-31 05:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801245', 'tblTempUsageDetail_20' ) start [2025-03-31 05:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801245', 'tblTempUsageDetail_20' ) end [2025-03-31 05:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 05:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 05:04:22] Production.INFO: ==15081== Releasing lock... [2025-03-31 05:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 05:04:22] Production.INFO: 31 MB #Memory Used# [2025-03-31 05:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 02:05:05 [end_date_ymd] => 2025-03-31 05:05:05 [RateCDR] => 1 ) [2025-03-31 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-31 02:05:05' and `end` < '2025-03-31 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-31 05:05:18] Production.INFO: count ==370 [2025-03-31 05:05:18] Production.ERROR: pbx CDR StartTime 2025-03-31 02:05:05 - End Time 2025-03-31 05:05:05 [2025-03-31 05:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801250', 'tblTempUsageDetail_20' ) start [2025-03-31 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801250', 'tblTempUsageDetail_20' ) end [2025-03-31 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801250', 'tblTempVendorCDR_20' ) start [2025-03-31 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801250', 'tblTempVendorCDR_20' ) end [2025-03-31 05:05:18] Production.INFO: ProcessCDR(1,14801250,1,1,2) [2025-03-31 05:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801250', 'tblTempUsageDetail_20' ) start [2025-03-31 05:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801250', 'tblTempUsageDetail_20' ) end [2025-03-31 05:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 05:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 05:05:21] Production.INFO: ==15152== Releasing lock... [2025-03-31 05:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 05:05:21] Production.INFO: 31 MB #Memory Used# [2025-03-31 05:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 02:06:05 [end_date_ymd] => 2025-03-31 05:06:05 [RateCDR] => 1 ) [2025-03-31 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-31 02:06:05' and `end` < '2025-03-31 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-31 05:06:18] Production.INFO: count ==363 [2025-03-31 05:06:18] Production.ERROR: pbx CDR StartTime 2025-03-31 02:06:05 - End Time 2025-03-31 05:06:05 [2025-03-31 05:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801255', 'tblTempUsageDetail_20' ) start [2025-03-31 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801255', 'tblTempUsageDetail_20' ) end [2025-03-31 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801255', 'tblTempVendorCDR_20' ) start [2025-03-31 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801255', 'tblTempVendorCDR_20' ) end [2025-03-31 05:06:18] Production.INFO: ProcessCDR(1,14801255,1,1,2) [2025-03-31 05:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801255', 'tblTempUsageDetail_20' ) start [2025-03-31 05:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801255', 'tblTempUsageDetail_20' ) end [2025-03-31 05:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 05:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 05:06:21] Production.INFO: ==15223== Releasing lock... [2025-03-31 05:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 05:06:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-31 05:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 02:07:05 [end_date_ymd] => 2025-03-31 05:07:05 [RateCDR] => 1 ) [2025-03-31 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-31 02:07:05' and `end` < '2025-03-31 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-31 05:07:18] Production.INFO: count ==354 [2025-03-31 05:07:18] Production.ERROR: pbx CDR StartTime 2025-03-31 02:07:05 - End Time 2025-03-31 05:07:05 [2025-03-31 05:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801260', 'tblTempUsageDetail_20' ) start [2025-03-31 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801260', 'tblTempUsageDetail_20' ) end [2025-03-31 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801260', 'tblTempVendorCDR_20' ) start [2025-03-31 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801260', 'tblTempVendorCDR_20' ) end [2025-03-31 05:07:18] Production.INFO: ProcessCDR(1,14801260,1,1,2) [2025-03-31 05:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801260', 'tblTempUsageDetail_20' ) start [2025-03-31 05:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801260', 'tblTempUsageDetail_20' ) end [2025-03-31 05:07:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 05:07:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 05:07:22] Production.INFO: ==15301== Releasing lock... [2025-03-31 05:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 05:07:22] Production.INFO: 31 MB #Memory Used# [2025-03-31 05:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 02:08:05 [end_date_ymd] => 2025-03-31 05:08:05 [RateCDR] => 1 ) [2025-03-31 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-31 02:08:05' and `end` < '2025-03-31 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-31 05:08:18] Production.INFO: count ==354 [2025-03-31 05:08:18] Production.ERROR: pbx CDR StartTime 2025-03-31 02:08:05 - End Time 2025-03-31 05:08:05 [2025-03-31 05:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801265', 'tblTempUsageDetail_20' ) start [2025-03-31 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801265', 'tblTempUsageDetail_20' ) end [2025-03-31 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801265', 'tblTempVendorCDR_20' ) start [2025-03-31 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801265', 'tblTempVendorCDR_20' ) end [2025-03-31 05:08:18] Production.INFO: ProcessCDR(1,14801265,1,1,2) [2025-03-31 05:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801265', 'tblTempUsageDetail_20' ) start [2025-03-31 05:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801265', 'tblTempUsageDetail_20' ) end [2025-03-31 05:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 05:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 05:08:21] Production.INFO: ==15380== Releasing lock... [2025-03-31 05:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 05:08:21] Production.INFO: 31 MB #Memory Used# [2025-03-31 05:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 02:09:05 [end_date_ymd] => 2025-03-31 05:09:05 [RateCDR] => 1 ) [2025-03-31 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-31 02:09:05' and `end` < '2025-03-31 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-31 05:09:17] Production.INFO: count ==354 [2025-03-31 05:09:17] Production.ERROR: pbx CDR StartTime 2025-03-31 02:09:05 - End Time 2025-03-31 05:09:05 [2025-03-31 05:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801270', 'tblTempUsageDetail_20' ) start [2025-03-31 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801270', 'tblTempUsageDetail_20' ) end [2025-03-31 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801270', 'tblTempVendorCDR_20' ) start [2025-03-31 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801270', 'tblTempVendorCDR_20' ) end [2025-03-31 05:09:17] Production.INFO: ProcessCDR(1,14801270,1,1,2) [2025-03-31 05:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801270', 'tblTempUsageDetail_20' ) start [2025-03-31 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801270', 'tblTempUsageDetail_20' ) end [2025-03-31 05:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 05:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 05:09:21] Production.INFO: ==15455== Releasing lock... [2025-03-31 05:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 05:09:21] Production.INFO: 31 MB #Memory Used# [2025-03-31 05:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 02:10:07 [end_date_ymd] => 2025-03-31 05:10:07 [RateCDR] => 1 ) [2025-03-31 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-31 02:10:07' and `end` < '2025-03-31 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-31 05:10:19] Production.INFO: count ==340 [2025-03-31 05:10:19] Production.ERROR: pbx CDR StartTime 2025-03-31 02:10:07 - End Time 2025-03-31 05:10:07 [2025-03-31 05:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801276', 'tblTempUsageDetail_20' ) start [2025-03-31 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801276', 'tblTempUsageDetail_20' ) end [2025-03-31 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801276', 'tblTempVendorCDR_20' ) start [2025-03-31 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801276', 'tblTempVendorCDR_20' ) end [2025-03-31 05:10:19] Production.INFO: ProcessCDR(1,14801276,1,1,2) [2025-03-31 05:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801276', 'tblTempUsageDetail_20' ) start [2025-03-31 05:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801276', 'tblTempUsageDetail_20' ) end [2025-03-31 05:10:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 05:10:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 05:10:23] Production.INFO: ==15531== Releasing lock... [2025-03-31 05:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 05:10:23] Production.INFO: 31 MB #Memory Used# [2025-03-31 05:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 02:11:05 [end_date_ymd] => 2025-03-31 05:11:05 [RateCDR] => 1 ) [2025-03-31 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-31 02:11:05' and `end` < '2025-03-31 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-31 05:11:17] Production.INFO: count ==339 [2025-03-31 05:11:18] Production.ERROR: pbx CDR StartTime 2025-03-31 02:11:05 - End Time 2025-03-31 05:11:05 [2025-03-31 05:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801281', 'tblTempUsageDetail_20' ) start [2025-03-31 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801281', 'tblTempUsageDetail_20' ) end [2025-03-31 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801281', 'tblTempVendorCDR_20' ) start [2025-03-31 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801281', 'tblTempVendorCDR_20' ) end [2025-03-31 05:11:18] Production.INFO: ProcessCDR(1,14801281,1,1,2) [2025-03-31 05:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801281', 'tblTempUsageDetail_20' ) start [2025-03-31 05:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801281', 'tblTempUsageDetail_20' ) end [2025-03-31 05:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 05:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 05:11:21] Production.INFO: ==15607== Releasing lock... [2025-03-31 05:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 05:11:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-31 05:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 02:12:05 [end_date_ymd] => 2025-03-31 05:12:05 [RateCDR] => 1 ) [2025-03-31 05:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 02:12:05' and `end` < '2025-03-31 05:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 05:12:18] Production.INFO: count ==323 [2025-03-31 05:12:18] Production.ERROR: pbx CDR StartTime 2025-03-31 02:12:05 - End Time 2025-03-31 05:12:05 [2025-03-31 05:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801286', 'tblTempUsageDetail_20' ) start [2025-03-31 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801286', 'tblTempUsageDetail_20' ) end [2025-03-31 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801286', 'tblTempVendorCDR_20' ) start [2025-03-31 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801286', 'tblTempVendorCDR_20' ) end [2025-03-31 05:12:18] Production.INFO: ProcessCDR(1,14801286,1,1,2) [2025-03-31 05:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801286', 'tblTempUsageDetail_20' ) start [2025-03-31 05:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801286', 'tblTempUsageDetail_20' ) end [2025-03-31 05:12:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 05:12:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 05:12:22] Production.INFO: ==15678== Releasing lock... [2025-03-31 05:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 05:12:22] Production.INFO: 31 MB #Memory Used# [2025-03-31 05:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 02:13:05 [end_date_ymd] => 2025-03-31 05:13:05 [RateCDR] => 1 ) [2025-03-31 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-31 02:13:05' and `end` < '2025-03-31 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-31 05:13:17] Production.INFO: count ==323 [2025-03-31 05:13:17] Production.ERROR: pbx CDR StartTime 2025-03-31 02:13:05 - End Time 2025-03-31 05:13:05 [2025-03-31 05:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801291', 'tblTempUsageDetail_20' ) start [2025-03-31 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801291', 'tblTempUsageDetail_20' ) end [2025-03-31 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801291', 'tblTempVendorCDR_20' ) start [2025-03-31 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801291', 'tblTempVendorCDR_20' ) end [2025-03-31 05:13:17] Production.INFO: ProcessCDR(1,14801291,1,1,2) [2025-03-31 05:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801291', 'tblTempUsageDetail_20' ) start [2025-03-31 05:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801291', 'tblTempUsageDetail_20' ) end [2025-03-31 05:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 05:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 05:13:21] Production.INFO: ==15750== Releasing lock... [2025-03-31 05:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 05:13:21] Production.INFO: 31 MB #Memory Used# [2025-03-31 05:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 02:14:05 [end_date_ymd] => 2025-03-31 05:14:05 [RateCDR] => 1 ) [2025-03-31 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-31 02:14:05' and `end` < '2025-03-31 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-31 05:14:18] Production.INFO: count ==320 [2025-03-31 05:14:18] Production.ERROR: pbx CDR StartTime 2025-03-31 02:14:05 - End Time 2025-03-31 05:14:05 [2025-03-31 05:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801296', 'tblTempUsageDetail_20' ) start [2025-03-31 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801296', 'tblTempUsageDetail_20' ) end [2025-03-31 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801296', 'tblTempVendorCDR_20' ) start [2025-03-31 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801296', 'tblTempVendorCDR_20' ) end [2025-03-31 05:14:18] Production.INFO: ProcessCDR(1,14801296,1,1,2) [2025-03-31 05:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801296', 'tblTempUsageDetail_20' ) start [2025-03-31 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801296', 'tblTempUsageDetail_20' ) end [2025-03-31 05:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 05:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 05:14:21] Production.INFO: ==15826== Releasing lock... [2025-03-31 05:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 05:14:21] Production.INFO: 31 MB #Memory Used# [2025-03-31 05:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 02:15:05 [end_date_ymd] => 2025-03-31 05:15:05 [RateCDR] => 1 ) [2025-03-31 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-31 02:15:05' and `end` < '2025-03-31 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-31 05:15:17] Production.INFO: count ==316 [2025-03-31 05:15:18] Production.ERROR: pbx CDR StartTime 2025-03-31 02:15:05 - End Time 2025-03-31 05:15:05 [2025-03-31 05:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801301', 'tblTempUsageDetail_20' ) start [2025-03-31 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801301', 'tblTempUsageDetail_20' ) end [2025-03-31 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801301', 'tblTempVendorCDR_20' ) start [2025-03-31 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801301', 'tblTempVendorCDR_20' ) end [2025-03-31 05:15:18] Production.INFO: ProcessCDR(1,14801301,1,1,2) [2025-03-31 05:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801301', 'tblTempUsageDetail_20' ) start [2025-03-31 05:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801301', 'tblTempUsageDetail_20' ) end [2025-03-31 05:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 05:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 05:15:21] Production.INFO: ==15897== Releasing lock... [2025-03-31 05:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 05:15:21] Production.INFO: 31 MB #Memory Used# [2025-03-31 05:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 02:16:05 [end_date_ymd] => 2025-03-31 05:16:05 [RateCDR] => 1 ) [2025-03-31 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-31 02:16:05' and `end` < '2025-03-31 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-31 05:16:18] Production.INFO: count ==316 [2025-03-31 05:16:18] Production.ERROR: pbx CDR StartTime 2025-03-31 02:16:05 - End Time 2025-03-31 05:16:05 [2025-03-31 05:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801306', 'tblTempUsageDetail_20' ) start [2025-03-31 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801306', 'tblTempUsageDetail_20' ) end [2025-03-31 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801306', 'tblTempVendorCDR_20' ) start [2025-03-31 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801306', 'tblTempVendorCDR_20' ) end [2025-03-31 05:16:18] Production.INFO: ProcessCDR(1,14801306,1,1,2) [2025-03-31 05:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801306', 'tblTempUsageDetail_20' ) start [2025-03-31 05:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801306', 'tblTempUsageDetail_20' ) end [2025-03-31 05:16:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 05:16:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 05:16:22] Production.INFO: ==16012== Releasing lock... [2025-03-31 05:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 05:16:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-31 05:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 02:17:05 [end_date_ymd] => 2025-03-31 05:17:05 [RateCDR] => 1 ) [2025-03-31 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-31 02:17:05' and `end` < '2025-03-31 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-31 05:17:17] Production.INFO: count ==308 [2025-03-31 05:17:17] Production.ERROR: pbx CDR StartTime 2025-03-31 02:17:05 - End Time 2025-03-31 05:17:05 [2025-03-31 05:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801311', 'tblTempUsageDetail_20' ) start [2025-03-31 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801311', 'tblTempUsageDetail_20' ) end [2025-03-31 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801311', 'tblTempVendorCDR_20' ) start [2025-03-31 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801311', 'tblTempVendorCDR_20' ) end [2025-03-31 05:17:18] Production.INFO: ProcessCDR(1,14801311,1,1,2) [2025-03-31 05:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801311', 'tblTempUsageDetail_20' ) start [2025-03-31 05:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801311', 'tblTempUsageDetail_20' ) end [2025-03-31 05:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 05:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 05:17:21] Production.INFO: ==16085== Releasing lock... [2025-03-31 05:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 05:17:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-31 05:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 02:18:05 [end_date_ymd] => 2025-03-31 05:18:05 [RateCDR] => 1 ) [2025-03-31 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-31 02:18:05' and `end` < '2025-03-31 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-31 05:18:18] Production.INFO: count ==308 [2025-03-31 05:18:18] Production.ERROR: pbx CDR StartTime 2025-03-31 02:18:05 - End Time 2025-03-31 05:18:05 [2025-03-31 05:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801316', 'tblTempUsageDetail_20' ) start [2025-03-31 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801316', 'tblTempUsageDetail_20' ) end [2025-03-31 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801316', 'tblTempVendorCDR_20' ) start [2025-03-31 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801316', 'tblTempVendorCDR_20' ) end [2025-03-31 05:18:18] Production.INFO: ProcessCDR(1,14801316,1,1,2) [2025-03-31 05:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801316', 'tblTempUsageDetail_20' ) start [2025-03-31 05:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801316', 'tblTempUsageDetail_20' ) end [2025-03-31 05:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 05:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 05:18:21] Production.INFO: ==16171== Releasing lock... [2025-03-31 05:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 05:18:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-31 05:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 02:19:05 [end_date_ymd] => 2025-03-31 05:19:05 [RateCDR] => 1 ) [2025-03-31 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-31 02:19:05' and `end` < '2025-03-31 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-31 05:19:17] Production.INFO: count ==308 [2025-03-31 05:19:17] Production.ERROR: pbx CDR StartTime 2025-03-31 02:19:05 - End Time 2025-03-31 05:19:05 [2025-03-31 05:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801321', 'tblTempUsageDetail_20' ) start [2025-03-31 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801321', 'tblTempUsageDetail_20' ) end [2025-03-31 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801321', 'tblTempVendorCDR_20' ) start [2025-03-31 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801321', 'tblTempVendorCDR_20' ) end [2025-03-31 05:19:17] Production.INFO: ProcessCDR(1,14801321,1,1,2) [2025-03-31 05:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801321', 'tblTempUsageDetail_20' ) start [2025-03-31 05:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801321', 'tblTempUsageDetail_20' ) end [2025-03-31 05:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 05:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 05:19:21] Production.INFO: ==16246== Releasing lock... [2025-03-31 05:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 05:19:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-31 05:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 02:20:06 [end_date_ymd] => 2025-03-31 05:20:06 [RateCDR] => 1 ) [2025-03-31 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-31 02:20:06' and `end` < '2025-03-31 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-31 05:20:19] Production.INFO: count ==308 [2025-03-31 05:20:19] Production.ERROR: pbx CDR StartTime 2025-03-31 02:20:06 - End Time 2025-03-31 05:20:06 [2025-03-31 05:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801327', 'tblTempUsageDetail_20' ) start [2025-03-31 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801327', 'tblTempUsageDetail_20' ) end [2025-03-31 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801327', 'tblTempVendorCDR_20' ) start [2025-03-31 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801327', 'tblTempVendorCDR_20' ) end [2025-03-31 05:20:19] Production.INFO: ProcessCDR(1,14801327,1,1,2) [2025-03-31 05:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801327', 'tblTempUsageDetail_20' ) start [2025-03-31 05:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801327', 'tblTempUsageDetail_20' ) end [2025-03-31 05:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 05:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 05:20:22] Production.INFO: ==16321== Releasing lock... [2025-03-31 05:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 05:20:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-31 05:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 02:21:05 [end_date_ymd] => 2025-03-31 05:21:05 [RateCDR] => 1 ) [2025-03-31 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-31 02:21:05' and `end` < '2025-03-31 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-31 05:21:18] Production.INFO: count ==307 [2025-03-31 05:21:18] Production.ERROR: pbx CDR StartTime 2025-03-31 02:21:05 - End Time 2025-03-31 05:21:05 [2025-03-31 05:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801332', 'tblTempUsageDetail_20' ) start [2025-03-31 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801332', 'tblTempUsageDetail_20' ) end [2025-03-31 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801332', 'tblTempVendorCDR_20' ) start [2025-03-31 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801332', 'tblTempVendorCDR_20' ) end [2025-03-31 05:21:18] Production.INFO: ProcessCDR(1,14801332,1,1,2) [2025-03-31 05:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801332', 'tblTempUsageDetail_20' ) start [2025-03-31 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801332', 'tblTempUsageDetail_20' ) end [2025-03-31 05:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 05:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 05:21:21] Production.INFO: ==16396== Releasing lock... [2025-03-31 05:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 05:21:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-31 05:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 02:22:05 [end_date_ymd] => 2025-03-31 05:22:05 [RateCDR] => 1 ) [2025-03-31 05:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 02:22:05' and `end` < '2025-03-31 05:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 05:22:17] Production.INFO: count ==306 [2025-03-31 05:22:17] Production.ERROR: pbx CDR StartTime 2025-03-31 02:22:05 - End Time 2025-03-31 05:22:05 [2025-03-31 05:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801337', 'tblTempUsageDetail_20' ) start [2025-03-31 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801337', 'tblTempUsageDetail_20' ) end [2025-03-31 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801337', 'tblTempVendorCDR_20' ) start [2025-03-31 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801337', 'tblTempVendorCDR_20' ) end [2025-03-31 05:22:17] Production.INFO: ProcessCDR(1,14801337,1,1,2) [2025-03-31 05:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801337', 'tblTempUsageDetail_20' ) start [2025-03-31 05:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801337', 'tblTempUsageDetail_20' ) end [2025-03-31 05:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 05:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 05:22:21] Production.INFO: ==16478== Releasing lock... [2025-03-31 05:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 05:22:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-31 05:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 02:23:05 [end_date_ymd] => 2025-03-31 05:23:05 [RateCDR] => 1 ) [2025-03-31 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-31 02:23:05' and `end` < '2025-03-31 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-31 05:23:18] Production.INFO: count ==305 [2025-03-31 05:23:18] Production.ERROR: pbx CDR StartTime 2025-03-31 02:23:05 - End Time 2025-03-31 05:23:05 [2025-03-31 05:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801342', 'tblTempUsageDetail_20' ) start [2025-03-31 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801342', 'tblTempUsageDetail_20' ) end [2025-03-31 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801342', 'tblTempVendorCDR_20' ) start [2025-03-31 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801342', 'tblTempVendorCDR_20' ) end [2025-03-31 05:23:18] Production.INFO: ProcessCDR(1,14801342,1,1,2) [2025-03-31 05:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801342', 'tblTempUsageDetail_20' ) start [2025-03-31 05:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801342', 'tblTempUsageDetail_20' ) end [2025-03-31 05:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 05:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 05:23:21] Production.INFO: ==16560== Releasing lock... [2025-03-31 05:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 05:23:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-31 05:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 02:24:05 [end_date_ymd] => 2025-03-31 05:24:05 [RateCDR] => 1 ) [2025-03-31 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-31 02:24:05' and `end` < '2025-03-31 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-31 05:24:18] Production.INFO: count ==305 [2025-03-31 05:24:18] Production.ERROR: pbx CDR StartTime 2025-03-31 02:24:05 - End Time 2025-03-31 05:24:05 [2025-03-31 05:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801347', 'tblTempUsageDetail_20' ) start [2025-03-31 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801347', 'tblTempUsageDetail_20' ) end [2025-03-31 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801347', 'tblTempVendorCDR_20' ) start [2025-03-31 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801347', 'tblTempVendorCDR_20' ) end [2025-03-31 05:24:18] Production.INFO: ProcessCDR(1,14801347,1,1,2) [2025-03-31 05:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801347', 'tblTempUsageDetail_20' ) start [2025-03-31 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801347', 'tblTempUsageDetail_20' ) end [2025-03-31 05:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 05:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 05:24:21] Production.INFO: ==16633== Releasing lock... [2025-03-31 05:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 05:24:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-31 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 02:25:05 [end_date_ymd] => 2025-03-31 05:25:05 [RateCDR] => 1 ) [2025-03-31 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-31 02:25:05' and `end` < '2025-03-31 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-31 05:25:18] Production.INFO: count ==297 [2025-03-31 05:25:18] Production.ERROR: pbx CDR StartTime 2025-03-31 02:25:05 - End Time 2025-03-31 05:25:05 [2025-03-31 05:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801352', 'tblTempUsageDetail_20' ) start [2025-03-31 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801352', 'tblTempUsageDetail_20' ) end [2025-03-31 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801352', 'tblTempVendorCDR_20' ) start [2025-03-31 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801352', 'tblTempVendorCDR_20' ) end [2025-03-31 05:25:18] Production.INFO: ProcessCDR(1,14801352,1,1,2) [2025-03-31 05:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801352', 'tblTempUsageDetail_20' ) start [2025-03-31 05:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801352', 'tblTempUsageDetail_20' ) end [2025-03-31 05:25:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 05:25:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 05:25:22] Production.INFO: ==16708== Releasing lock... [2025-03-31 05:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 05:25:22] Production.INFO: 31 MB #Memory Used# [2025-03-31 05:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 02:26:05 [end_date_ymd] => 2025-03-31 05:26:05 [RateCDR] => 1 ) [2025-03-31 05:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 02:26:05' and `end` < '2025-03-31 05:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 05:26:18] Production.INFO: count ==290 [2025-03-31 05:26:18] Production.ERROR: pbx CDR StartTime 2025-03-31 02:26:05 - End Time 2025-03-31 05:26:05 [2025-03-31 05:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801357', 'tblTempUsageDetail_20' ) start [2025-03-31 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801357', 'tblTempUsageDetail_20' ) end [2025-03-31 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801357', 'tblTempVendorCDR_20' ) start [2025-03-31 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801357', 'tblTempVendorCDR_20' ) end [2025-03-31 05:26:18] Production.INFO: ProcessCDR(1,14801357,1,1,2) [2025-03-31 05:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801357', 'tblTempUsageDetail_20' ) start [2025-03-31 05:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801357', 'tblTempUsageDetail_20' ) end [2025-03-31 05:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 05:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 05:26:21] Production.INFO: ==16788== Releasing lock... [2025-03-31 05:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 05:26:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-31 05:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 02:27:05 [end_date_ymd] => 2025-03-31 05:27:05 [RateCDR] => 1 ) [2025-03-31 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-31 02:27:05' and `end` < '2025-03-31 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-31 05:27:18] Production.INFO: count ==290 [2025-03-31 05:27:18] Production.ERROR: pbx CDR StartTime 2025-03-31 02:27:05 - End Time 2025-03-31 05:27:05 [2025-03-31 05:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801362', 'tblTempUsageDetail_20' ) start [2025-03-31 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801362', 'tblTempUsageDetail_20' ) end [2025-03-31 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801362', 'tblTempVendorCDR_20' ) start [2025-03-31 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801362', 'tblTempVendorCDR_20' ) end [2025-03-31 05:27:18] Production.INFO: ProcessCDR(1,14801362,1,1,2) [2025-03-31 05:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801362', 'tblTempUsageDetail_20' ) start [2025-03-31 05:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801362', 'tblTempUsageDetail_20' ) end [2025-03-31 05:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 05:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 05:27:21] Production.INFO: ==16868== Releasing lock... [2025-03-31 05:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 05:27:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-31 05:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 02:28:05 [end_date_ymd] => 2025-03-31 05:28:05 [RateCDR] => 1 ) [2025-03-31 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-31 02:28:05' and `end` < '2025-03-31 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-31 05:28:17] Production.INFO: count ==290 [2025-03-31 05:28:17] Production.ERROR: pbx CDR StartTime 2025-03-31 02:28:05 - End Time 2025-03-31 05:28:05 [2025-03-31 05:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801367', 'tblTempUsageDetail_20' ) start [2025-03-31 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801367', 'tblTempUsageDetail_20' ) end [2025-03-31 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801367', 'tblTempVendorCDR_20' ) start [2025-03-31 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801367', 'tblTempVendorCDR_20' ) end [2025-03-31 05:28:18] Production.INFO: ProcessCDR(1,14801367,1,1,2) [2025-03-31 05:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801367', 'tblTempUsageDetail_20' ) start [2025-03-31 05:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801367', 'tblTempUsageDetail_20' ) end [2025-03-31 05:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 05:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 05:28:21] Production.INFO: ==16953== Releasing lock... [2025-03-31 05:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 05:28:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-31 05:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 02:29:06 [end_date_ymd] => 2025-03-31 05:29:06 [RateCDR] => 1 ) [2025-03-31 05:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 02:29:06' and `end` < '2025-03-31 05:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 05:29:19] Production.INFO: count ==290 [2025-03-31 05:29:19] Production.ERROR: pbx CDR StartTime 2025-03-31 02:29:06 - End Time 2025-03-31 05:29:06 [2025-03-31 05:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 05:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801372', 'tblTempUsageDetail_20' ) start [2025-03-31 05:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801372', 'tblTempUsageDetail_20' ) end [2025-03-31 05:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801372', 'tblTempVendorCDR_20' ) start [2025-03-31 05:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801372', 'tblTempVendorCDR_20' ) end [2025-03-31 05:29:19] Production.INFO: ProcessCDR(1,14801372,1,1,2) [2025-03-31 05:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801372', 'tblTempUsageDetail_20' ) start [2025-03-31 05:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801372', 'tblTempUsageDetail_20' ) end [2025-03-31 05:29:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 05:29:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 05:29:22] Production.INFO: ==17035== Releasing lock... [2025-03-31 05:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 05:29:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-31 05:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 02:30:06 [end_date_ymd] => 2025-03-31 05:30:06 [RateCDR] => 1 ) [2025-03-31 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-31 02:30:06' and `end` < '2025-03-31 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-31 05:30:18] Production.INFO: count ==296 [2025-03-31 05:30:18] Production.ERROR: pbx CDR StartTime 2025-03-31 02:30:06 - End Time 2025-03-31 05:30:06 [2025-03-31 05:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801378', 'tblTempUsageDetail_20' ) start [2025-03-31 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801378', 'tblTempUsageDetail_20' ) end [2025-03-31 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801378', 'tblTempVendorCDR_20' ) start [2025-03-31 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801378', 'tblTempVendorCDR_20' ) end [2025-03-31 05:30:18] Production.INFO: ProcessCDR(1,14801378,1,1,2) [2025-03-31 05:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801378', 'tblTempUsageDetail_20' ) start [2025-03-31 05:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801378', 'tblTempUsageDetail_20' ) end [2025-03-31 05:30:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 05:30:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 05:30:21] Production.INFO: ==17122== Releasing lock... [2025-03-31 05:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 05:30:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-31 05:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 02:31:05 [end_date_ymd] => 2025-03-31 05:31:05 [RateCDR] => 1 ) [2025-03-31 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-31 02:31:05' and `end` < '2025-03-31 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-31 05:31:18] Production.INFO: count ==297 [2025-03-31 05:31:18] Production.ERROR: pbx CDR StartTime 2025-03-31 02:31:05 - End Time 2025-03-31 05:31:05 [2025-03-31 05:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801383', 'tblTempUsageDetail_20' ) start [2025-03-31 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801383', 'tblTempUsageDetail_20' ) end [2025-03-31 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801383', 'tblTempVendorCDR_20' ) start [2025-03-31 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801383', 'tblTempVendorCDR_20' ) end [2025-03-31 05:31:18] Production.INFO: ProcessCDR(1,14801383,1,1,2) [2025-03-31 05:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801383', 'tblTempUsageDetail_20' ) start [2025-03-31 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801383', 'tblTempUsageDetail_20' ) end [2025-03-31 05:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 05:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 05:31:21] Production.INFO: ==17248== Releasing lock... [2025-03-31 05:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 05:31:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-31 05:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 02:32:05 [end_date_ymd] => 2025-03-31 05:32:05 [RateCDR] => 1 ) [2025-03-31 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-31 02:32:05' and `end` < '2025-03-31 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-31 05:32:17] Production.INFO: count ==297 [2025-03-31 05:32:17] Production.ERROR: pbx CDR StartTime 2025-03-31 02:32:05 - End Time 2025-03-31 05:32:05 [2025-03-31 05:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801388', 'tblTempUsageDetail_20' ) start [2025-03-31 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801388', 'tblTempUsageDetail_20' ) end [2025-03-31 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801388', 'tblTempVendorCDR_20' ) start [2025-03-31 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801388', 'tblTempVendorCDR_20' ) end [2025-03-31 05:32:17] Production.INFO: ProcessCDR(1,14801388,1,1,2) [2025-03-31 05:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801388', 'tblTempUsageDetail_20' ) start [2025-03-31 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801388', 'tblTempUsageDetail_20' ) end [2025-03-31 05:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 05:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 05:32:21] Production.INFO: ==17333== Releasing lock... [2025-03-31 05:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 05:32:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-31 05:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 02:33:05 [end_date_ymd] => 2025-03-31 05:33:05 [RateCDR] => 1 ) [2025-03-31 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-31 02:33:05' and `end` < '2025-03-31 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-31 05:33:17] Production.INFO: count ==297 [2025-03-31 05:33:18] Production.ERROR: pbx CDR StartTime 2025-03-31 02:33:05 - End Time 2025-03-31 05:33:05 [2025-03-31 05:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801393', 'tblTempUsageDetail_20' ) start [2025-03-31 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801393', 'tblTempUsageDetail_20' ) end [2025-03-31 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801393', 'tblTempVendorCDR_20' ) start [2025-03-31 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801393', 'tblTempVendorCDR_20' ) end [2025-03-31 05:33:18] Production.INFO: ProcessCDR(1,14801393,1,1,2) [2025-03-31 05:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801393', 'tblTempUsageDetail_20' ) start [2025-03-31 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801393', 'tblTempUsageDetail_20' ) end [2025-03-31 05:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 05:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 05:33:21] Production.INFO: ==17422== Releasing lock... [2025-03-31 05:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 05:33:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-31 05:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 02:34:06 [end_date_ymd] => 2025-03-31 05:34:06 [RateCDR] => 1 ) [2025-03-31 05: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-31 02:34:06' and `end` < '2025-03-31 05: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-31 05:34:18] Production.INFO: count ==297 [2025-03-31 05:34:18] Production.ERROR: pbx CDR StartTime 2025-03-31 02:34:06 - End Time 2025-03-31 05:34:06 [2025-03-31 05:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801398', 'tblTempUsageDetail_20' ) start [2025-03-31 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801398', 'tblTempUsageDetail_20' ) end [2025-03-31 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801398', 'tblTempVendorCDR_20' ) start [2025-03-31 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801398', 'tblTempVendorCDR_20' ) end [2025-03-31 05:34:18] Production.INFO: ProcessCDR(1,14801398,1,1,2) [2025-03-31 05:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801398', 'tblTempUsageDetail_20' ) start [2025-03-31 05:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801398', 'tblTempUsageDetail_20' ) end [2025-03-31 05:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 05:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 05:34:22] Production.INFO: ==17501== Releasing lock... [2025-03-31 05:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 05:34:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-31 05:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 02:35:05 [end_date_ymd] => 2025-03-31 05:35:05 [RateCDR] => 1 ) [2025-03-31 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-31 02:35:05' and `end` < '2025-03-31 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-31 05:35:17] Production.INFO: count ==298 [2025-03-31 05:35:17] Production.ERROR: pbx CDR StartTime 2025-03-31 02:35:05 - End Time 2025-03-31 05:35:05 [2025-03-31 05:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801403', 'tblTempUsageDetail_20' ) start [2025-03-31 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801403', 'tblTempUsageDetail_20' ) end [2025-03-31 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801403', 'tblTempVendorCDR_20' ) start [2025-03-31 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801403', 'tblTempVendorCDR_20' ) end [2025-03-31 05:35:17] Production.INFO: ProcessCDR(1,14801403,1,1,2) [2025-03-31 05:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801403', 'tblTempUsageDetail_20' ) start [2025-03-31 05:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801403', 'tblTempUsageDetail_20' ) end [2025-03-31 05:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 05:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 05:35:22] Production.INFO: ==17592== Releasing lock... [2025-03-31 05:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 05:35:22] Production.INFO: 31 MB #Memory Used# [2025-03-31 05:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 02:36:05 [end_date_ymd] => 2025-03-31 05:36:05 [RateCDR] => 1 ) [2025-03-31 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-31 02:36:05' and `end` < '2025-03-31 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-31 05:36:18] Production.INFO: count ==296 [2025-03-31 05:36:18] Production.ERROR: pbx CDR StartTime 2025-03-31 02:36:05 - End Time 2025-03-31 05:36:05 [2025-03-31 05:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801408', 'tblTempUsageDetail_20' ) start [2025-03-31 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801408', 'tblTempUsageDetail_20' ) end [2025-03-31 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801408', 'tblTempVendorCDR_20' ) start [2025-03-31 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801408', 'tblTempVendorCDR_20' ) end [2025-03-31 05:36:18] Production.INFO: ProcessCDR(1,14801408,1,1,2) [2025-03-31 05:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801408', 'tblTempUsageDetail_20' ) start [2025-03-31 05:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801408', 'tblTempUsageDetail_20' ) end [2025-03-31 05:36:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 05:36:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 05:36:23] Production.INFO: ==17680== Releasing lock... [2025-03-31 05:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 05:36:23] Production.INFO: 30.5 MB #Memory Used# [2025-03-31 05:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 02:37:05 [end_date_ymd] => 2025-03-31 05:37:05 [RateCDR] => 1 ) [2025-03-31 05:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 02:37:05' and `end` < '2025-03-31 05:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 05:37:18] Production.INFO: count ==289 [2025-03-31 05:37:18] Production.ERROR: pbx CDR StartTime 2025-03-31 02:37:05 - End Time 2025-03-31 05:37:05 [2025-03-31 05:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801413', 'tblTempUsageDetail_20' ) start [2025-03-31 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801413', 'tblTempUsageDetail_20' ) end [2025-03-31 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801413', 'tblTempVendorCDR_20' ) start [2025-03-31 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801413', 'tblTempVendorCDR_20' ) end [2025-03-31 05:37:18] Production.INFO: ProcessCDR(1,14801413,1,1,2) [2025-03-31 05:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801413', 'tblTempUsageDetail_20' ) start [2025-03-31 05:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801413', 'tblTempUsageDetail_20' ) end [2025-03-31 05:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 05:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 05:37:21] Production.INFO: ==17770== Releasing lock... [2025-03-31 05:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 05:37:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-31 05:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 02:38:06 [end_date_ymd] => 2025-03-31 05:38:06 [RateCDR] => 1 ) [2025-03-31 05: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-31 02:38:06' and `end` < '2025-03-31 05: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-31 05:38:18] Production.INFO: count ==289 [2025-03-31 05:38:18] Production.ERROR: pbx CDR StartTime 2025-03-31 02:38:06 - End Time 2025-03-31 05:38:06 [2025-03-31 05:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801418', 'tblTempUsageDetail_20' ) start [2025-03-31 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801418', 'tblTempUsageDetail_20' ) end [2025-03-31 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801418', 'tblTempVendorCDR_20' ) start [2025-03-31 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801418', 'tblTempVendorCDR_20' ) end [2025-03-31 05:38:18] Production.INFO: ProcessCDR(1,14801418,1,1,2) [2025-03-31 05:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801418', 'tblTempUsageDetail_20' ) start [2025-03-31 05:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801418', 'tblTempUsageDetail_20' ) end [2025-03-31 05:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 05:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 05:38:22] Production.INFO: ==17857== Releasing lock... [2025-03-31 05:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 05:38:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-31 05:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 02:39:05 [end_date_ymd] => 2025-03-31 05:39:05 [RateCDR] => 1 ) [2025-03-31 05:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 02:39:05' and `end` < '2025-03-31 05:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 05:39:18] Production.INFO: count ==289 [2025-03-31 05:39:18] Production.ERROR: pbx CDR StartTime 2025-03-31 02:39:05 - End Time 2025-03-31 05:39:05 [2025-03-31 05:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801423', 'tblTempUsageDetail_20' ) start [2025-03-31 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801423', 'tblTempUsageDetail_20' ) end [2025-03-31 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801423', 'tblTempVendorCDR_20' ) start [2025-03-31 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801423', 'tblTempVendorCDR_20' ) end [2025-03-31 05:39:18] Production.INFO: ProcessCDR(1,14801423,1,1,2) [2025-03-31 05:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801423', 'tblTempUsageDetail_20' ) start [2025-03-31 05:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801423', 'tblTempUsageDetail_20' ) end [2025-03-31 05:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 05:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 05:39:21] Production.INFO: ==17941== Releasing lock... [2025-03-31 05:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 05:39:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-31 05:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 02:40:06 [end_date_ymd] => 2025-03-31 05:40:06 [RateCDR] => 1 ) [2025-03-31 05:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 02:40:06' and `end` < '2025-03-31 05:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 05:40:19] Production.INFO: count ==279 [2025-03-31 05:40:19] Production.ERROR: pbx CDR StartTime 2025-03-31 02:40:06 - End Time 2025-03-31 05:40:06 [2025-03-31 05:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801429', 'tblTempUsageDetail_20' ) start [2025-03-31 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801429', 'tblTempUsageDetail_20' ) end [2025-03-31 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801429', 'tblTempVendorCDR_20' ) start [2025-03-31 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801429', 'tblTempVendorCDR_20' ) end [2025-03-31 05:40:19] Production.INFO: ProcessCDR(1,14801429,1,1,2) [2025-03-31 05:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801429', 'tblTempUsageDetail_20' ) start [2025-03-31 05:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801429', 'tblTempUsageDetail_20' ) end [2025-03-31 05:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 05:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 05:40:22] Production.INFO: ==18029== Releasing lock... [2025-03-31 05:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 05:40:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-31 05:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 02:41:05 [end_date_ymd] => 2025-03-31 05:41:05 [RateCDR] => 1 ) [2025-03-31 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-31 02:41:05' and `end` < '2025-03-31 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-31 05:41:17] Production.INFO: count ==267 [2025-03-31 05:41:18] Production.ERROR: pbx CDR StartTime 2025-03-31 02:41:05 - End Time 2025-03-31 05:41:05 [2025-03-31 05:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801434', 'tblTempUsageDetail_20' ) start [2025-03-31 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801434', 'tblTempUsageDetail_20' ) end [2025-03-31 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801434', 'tblTempVendorCDR_20' ) start [2025-03-31 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801434', 'tblTempVendorCDR_20' ) end [2025-03-31 05:41:18] Production.INFO: ProcessCDR(1,14801434,1,1,2) [2025-03-31 05:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801434', 'tblTempUsageDetail_20' ) start [2025-03-31 05:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801434', 'tblTempUsageDetail_20' ) end [2025-03-31 05:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 05:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 05:41:21] Production.INFO: ==18122== Releasing lock... [2025-03-31 05:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 05:41:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-31 05:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 02:42:05 [end_date_ymd] => 2025-03-31 05:42:05 [RateCDR] => 1 ) [2025-03-31 05:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 02:42:05' and `end` < '2025-03-31 05:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 05:42:18] Production.INFO: count ==245 [2025-03-31 05:42:18] Production.ERROR: pbx CDR StartTime 2025-03-31 02:42:05 - End Time 2025-03-31 05:42:05 [2025-03-31 05:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801439', 'tblTempUsageDetail_20' ) start [2025-03-31 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801439', 'tblTempUsageDetail_20' ) end [2025-03-31 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801439', 'tblTempVendorCDR_20' ) start [2025-03-31 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801439', 'tblTempVendorCDR_20' ) end [2025-03-31 05:42:18] Production.INFO: ProcessCDR(1,14801439,1,1,2) [2025-03-31 05:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801439', 'tblTempUsageDetail_20' ) start [2025-03-31 05:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801439', 'tblTempUsageDetail_20' ) end [2025-03-31 05:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 05:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 05:42:21] Production.INFO: ==18211== Releasing lock... [2025-03-31 05:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 05:42:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-31 05:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 02:43:05 [end_date_ymd] => 2025-03-31 05:43:05 [RateCDR] => 1 ) [2025-03-31 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-31 02:43:05' and `end` < '2025-03-31 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-31 05:43:17] Production.INFO: count ==241 [2025-03-31 05:43:17] Production.ERROR: pbx CDR StartTime 2025-03-31 02:43:05 - End Time 2025-03-31 05:43:05 [2025-03-31 05:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801444', 'tblTempUsageDetail_20' ) start [2025-03-31 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801444', 'tblTempUsageDetail_20' ) end [2025-03-31 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801444', 'tblTempVendorCDR_20' ) start [2025-03-31 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801444', 'tblTempVendorCDR_20' ) end [2025-03-31 05:43:17] Production.INFO: ProcessCDR(1,14801444,1,1,2) [2025-03-31 05:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801444', 'tblTempUsageDetail_20' ) start [2025-03-31 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801444', 'tblTempUsageDetail_20' ) end [2025-03-31 05:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 05:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 05:43:21] Production.INFO: ==18301== Releasing lock... [2025-03-31 05:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 05:43:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-31 05:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 02:44:05 [end_date_ymd] => 2025-03-31 05:44:05 [RateCDR] => 1 ) [2025-03-31 05:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 02:44:05' and `end` < '2025-03-31 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-31 05:44:18] Production.INFO: count ==234 [2025-03-31 05:44:18] Production.ERROR: pbx CDR StartTime 2025-03-31 02:44:05 - End Time 2025-03-31 05:44:05 [2025-03-31 05:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801449', 'tblTempUsageDetail_20' ) start [2025-03-31 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801449', 'tblTempUsageDetail_20' ) end [2025-03-31 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801449', 'tblTempVendorCDR_20' ) start [2025-03-31 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801449', 'tblTempVendorCDR_20' ) end [2025-03-31 05:44:18] Production.INFO: ProcessCDR(1,14801449,1,1,2) [2025-03-31 05:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801449', 'tblTempUsageDetail_20' ) start [2025-03-31 05:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801449', 'tblTempUsageDetail_20' ) end [2025-03-31 05:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 05:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 05:44:22] Production.INFO: ==18388== Releasing lock... [2025-03-31 05:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 05:44:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-31 05:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 02:45:05 [end_date_ymd] => 2025-03-31 05:45:05 [RateCDR] => 1 ) [2025-03-31 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-31 02:45:05' and `end` < '2025-03-31 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-31 05:45:18] Production.INFO: count ==234 [2025-03-31 05:45:18] Production.ERROR: pbx CDR StartTime 2025-03-31 02:45:05 - End Time 2025-03-31 05:45:05 [2025-03-31 05:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801454', 'tblTempUsageDetail_20' ) start [2025-03-31 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801454', 'tblTempUsageDetail_20' ) end [2025-03-31 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801454', 'tblTempVendorCDR_20' ) start [2025-03-31 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801454', 'tblTempVendorCDR_20' ) end [2025-03-31 05:45:18] Production.INFO: ProcessCDR(1,14801454,1,1,2) [2025-03-31 05:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801454', 'tblTempUsageDetail_20' ) start [2025-03-31 05:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801454', 'tblTempUsageDetail_20' ) end [2025-03-31 05:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 05:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 05:45:22] Production.INFO: ==18475== Releasing lock... [2025-03-31 05:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 05:45:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-31 05:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 02:46:05 [end_date_ymd] => 2025-03-31 05:46:05 [RateCDR] => 1 ) [2025-03-31 05:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 02:46:05' and `end` < '2025-03-31 05:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 05:46:18] Production.INFO: count ==234 [2025-03-31 05:46:18] Production.ERROR: pbx CDR StartTime 2025-03-31 02:46:05 - End Time 2025-03-31 05:46:05 [2025-03-31 05:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801459', 'tblTempUsageDetail_20' ) start [2025-03-31 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801459', 'tblTempUsageDetail_20' ) end [2025-03-31 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801459', 'tblTempVendorCDR_20' ) start [2025-03-31 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801459', 'tblTempVendorCDR_20' ) end [2025-03-31 05:46:18] Production.INFO: ProcessCDR(1,14801459,1,1,2) [2025-03-31 05:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801459', 'tblTempUsageDetail_20' ) start [2025-03-31 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801459', 'tblTempUsageDetail_20' ) end [2025-03-31 05:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 05:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 05:46:21] Production.INFO: ==18560== Releasing lock... [2025-03-31 05:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 05:46:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-31 05:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 02:47:05 [end_date_ymd] => 2025-03-31 05:47:05 [RateCDR] => 1 ) [2025-03-31 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-31 02:47:05' and `end` < '2025-03-31 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-31 05:47:17] Production.INFO: count ==230 [2025-03-31 05:47:17] Production.ERROR: pbx CDR StartTime 2025-03-31 02:47:05 - End Time 2025-03-31 05:47:05 [2025-03-31 05:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801464', 'tblTempUsageDetail_20' ) start [2025-03-31 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801464', 'tblTempUsageDetail_20' ) end [2025-03-31 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801464', 'tblTempVendorCDR_20' ) start [2025-03-31 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801464', 'tblTempVendorCDR_20' ) end [2025-03-31 05:47:18] Production.INFO: ProcessCDR(1,14801464,1,1,2) [2025-03-31 05:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801464', 'tblTempUsageDetail_20' ) start [2025-03-31 05:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801464', 'tblTempUsageDetail_20' ) end [2025-03-31 05:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 05:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 05:47:21] Production.INFO: ==18685== Releasing lock... [2025-03-31 05:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 05:47:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-31 05:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 02:48:05 [end_date_ymd] => 2025-03-31 05:48:05 [RateCDR] => 1 ) [2025-03-31 05:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 02:48:05' and `end` < '2025-03-31 05:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 05:48:18] Production.INFO: count ==230 [2025-03-31 05:48:18] Production.ERROR: pbx CDR StartTime 2025-03-31 02:48:05 - End Time 2025-03-31 05:48:05 [2025-03-31 05:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801469', 'tblTempUsageDetail_20' ) start [2025-03-31 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801469', 'tblTempUsageDetail_20' ) end [2025-03-31 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801469', 'tblTempVendorCDR_20' ) start [2025-03-31 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801469', 'tblTempVendorCDR_20' ) end [2025-03-31 05:48:18] Production.INFO: ProcessCDR(1,14801469,1,1,2) [2025-03-31 05:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801469', 'tblTempUsageDetail_20' ) start [2025-03-31 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801469', 'tblTempUsageDetail_20' ) end [2025-03-31 05:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 05:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 05:48:21] Production.INFO: ==18777== Releasing lock... [2025-03-31 05:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 05:48:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-31 05:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 02:49:05 [end_date_ymd] => 2025-03-31 05:49:05 [RateCDR] => 1 ) [2025-03-31 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-31 02:49:05' and `end` < '2025-03-31 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-31 05:49:17] Production.INFO: count ==230 [2025-03-31 05:49:17] Production.ERROR: pbx CDR StartTime 2025-03-31 02:49:05 - End Time 2025-03-31 05:49:05 [2025-03-31 05:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801474', 'tblTempUsageDetail_20' ) start [2025-03-31 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801474', 'tblTempUsageDetail_20' ) end [2025-03-31 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801474', 'tblTempVendorCDR_20' ) start [2025-03-31 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801474', 'tblTempVendorCDR_20' ) end [2025-03-31 05:49:17] Production.INFO: ProcessCDR(1,14801474,1,1,2) [2025-03-31 05:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801474', 'tblTempUsageDetail_20' ) start [2025-03-31 05:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801474', 'tblTempUsageDetail_20' ) end [2025-03-31 05:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 05:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 05:49:21] Production.INFO: ==18860== Releasing lock... [2025-03-31 05:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 05:49:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-31 05:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 02:50:06 [end_date_ymd] => 2025-03-31 05:50:06 [RateCDR] => 1 ) [2025-03-31 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-31 02:50:06' and `end` < '2025-03-31 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-31 05:50:18] Production.INFO: count ==234 [2025-03-31 05:50:18] Production.ERROR: pbx CDR StartTime 2025-03-31 02:50:06 - End Time 2025-03-31 05:50:06 [2025-03-31 05:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801479', 'tblTempUsageDetail_20' ) start [2025-03-31 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801479', 'tblTempUsageDetail_20' ) end [2025-03-31 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801479', 'tblTempVendorCDR_20' ) start [2025-03-31 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801479', 'tblTempVendorCDR_20' ) end [2025-03-31 05:50:18] Production.INFO: ProcessCDR(1,14801479,1,1,2) [2025-03-31 05:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801479', 'tblTempUsageDetail_20' ) start [2025-03-31 05:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801479', 'tblTempUsageDetail_20' ) end [2025-03-31 05:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 05:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 05:50:22] Production.INFO: ==18947== Releasing lock... [2025-03-31 05:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 05:50:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-31 05:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 02:51:05 [end_date_ymd] => 2025-03-31 05:51:05 [RateCDR] => 1 ) [2025-03-31 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-31 02:51:05' and `end` < '2025-03-31 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-31 05:51:18] Production.INFO: count ==234 [2025-03-31 05:51:18] Production.ERROR: pbx CDR StartTime 2025-03-31 02:51:05 - End Time 2025-03-31 05:51:05 [2025-03-31 05:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801485', 'tblTempUsageDetail_20' ) start [2025-03-31 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801485', 'tblTempUsageDetail_20' ) end [2025-03-31 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801485', 'tblTempVendorCDR_20' ) start [2025-03-31 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801485', 'tblTempVendorCDR_20' ) end [2025-03-31 05:51:18] Production.INFO: ProcessCDR(1,14801485,1,1,2) [2025-03-31 05:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801485', 'tblTempUsageDetail_20' ) start [2025-03-31 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801485', 'tblTempUsageDetail_20' ) end [2025-03-31 05:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 05:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 05:51:21] Production.INFO: ==19040== Releasing lock... [2025-03-31 05:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 05:51:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-31 05:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 02:52:05 [end_date_ymd] => 2025-03-31 05:52:05 [RateCDR] => 1 ) [2025-03-31 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-31 02:52:05' and `end` < '2025-03-31 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-31 05:52:18] Production.INFO: count ==234 [2025-03-31 05:52:18] Production.ERROR: pbx CDR StartTime 2025-03-31 02:52:05 - End Time 2025-03-31 05:52:05 [2025-03-31 05:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801490', 'tblTempUsageDetail_20' ) start [2025-03-31 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801490', 'tblTempUsageDetail_20' ) end [2025-03-31 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801490', 'tblTempVendorCDR_20' ) start [2025-03-31 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801490', 'tblTempVendorCDR_20' ) end [2025-03-31 05:52:18] Production.INFO: ProcessCDR(1,14801490,1,1,2) [2025-03-31 05:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801490', 'tblTempUsageDetail_20' ) start [2025-03-31 05:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801490', 'tblTempUsageDetail_20' ) end [2025-03-31 05:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 05:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 05:52:22] Production.INFO: ==19124== Releasing lock... [2025-03-31 05:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 05:52:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-31 05:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 02:53:06 [end_date_ymd] => 2025-03-31 05:53:06 [RateCDR] => 1 ) [2025-03-31 05: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-31 02:53:06' and `end` < '2025-03-31 05: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-31 05:53:18] Production.INFO: count ==230 [2025-03-31 05:53:18] Production.ERROR: pbx CDR StartTime 2025-03-31 02:53:06 - End Time 2025-03-31 05:53:06 [2025-03-31 05:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801495', 'tblTempUsageDetail_20' ) start [2025-03-31 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801495', 'tblTempUsageDetail_20' ) end [2025-03-31 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801495', 'tblTempVendorCDR_20' ) start [2025-03-31 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801495', 'tblTempVendorCDR_20' ) end [2025-03-31 05:53:18] Production.INFO: ProcessCDR(1,14801495,1,1,2) [2025-03-31 05:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801495', 'tblTempUsageDetail_20' ) start [2025-03-31 05:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801495', 'tblTempUsageDetail_20' ) end [2025-03-31 05:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 05:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 05:53:22] Production.INFO: ==19210== Releasing lock... [2025-03-31 05:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 05:53:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-31 05:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 02:54:05 [end_date_ymd] => 2025-03-31 05:54:05 [RateCDR] => 1 ) [2025-03-31 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-31 02:54:05' and `end` < '2025-03-31 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-31 05:54:18] Production.INFO: count ==230 [2025-03-31 05:54:18] Production.ERROR: pbx CDR StartTime 2025-03-31 02:54:05 - End Time 2025-03-31 05:54:05 [2025-03-31 05:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801500', 'tblTempUsageDetail_20' ) start [2025-03-31 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801500', 'tblTempUsageDetail_20' ) end [2025-03-31 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801500', 'tblTempVendorCDR_20' ) start [2025-03-31 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801500', 'tblTempVendorCDR_20' ) end [2025-03-31 05:54:18] Production.INFO: ProcessCDR(1,14801500,1,1,2) [2025-03-31 05:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801500', 'tblTempUsageDetail_20' ) start [2025-03-31 05:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801500', 'tblTempUsageDetail_20' ) end [2025-03-31 05:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 05:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 05:54:21] Production.INFO: ==19297== Releasing lock... [2025-03-31 05:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 05:54:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-31 05:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 02:55:06 [end_date_ymd] => 2025-03-31 05:55:06 [RateCDR] => 1 ) [2025-03-31 05:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 02:55:06' and `end` < '2025-03-31 05:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 05:55:18] Production.INFO: count ==230 [2025-03-31 05:55:19] Production.ERROR: pbx CDR StartTime 2025-03-31 02:55:06 - End Time 2025-03-31 05:55:06 [2025-03-31 05:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 05:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801505', 'tblTempUsageDetail_20' ) start [2025-03-31 05:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801505', 'tblTempUsageDetail_20' ) end [2025-03-31 05:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801505', 'tblTempVendorCDR_20' ) start [2025-03-31 05:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801505', 'tblTempVendorCDR_20' ) end [2025-03-31 05:55:19] Production.INFO: ProcessCDR(1,14801505,1,1,2) [2025-03-31 05:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801505', 'tblTempUsageDetail_20' ) start [2025-03-31 05:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801505', 'tblTempUsageDetail_20' ) end [2025-03-31 05:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 05:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 05:55:22] Production.INFO: ==19378== Releasing lock... [2025-03-31 05:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 05:55:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-31 05:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 02:56:05 [end_date_ymd] => 2025-03-31 05:56:05 [RateCDR] => 1 ) [2025-03-31 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-31 02:56:05' and `end` < '2025-03-31 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-31 05:56:18] Production.INFO: count ==230 [2025-03-31 05:56:18] Production.ERROR: pbx CDR StartTime 2025-03-31 02:56:05 - End Time 2025-03-31 05:56:05 [2025-03-31 05:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801510', 'tblTempUsageDetail_20' ) start [2025-03-31 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801510', 'tblTempUsageDetail_20' ) end [2025-03-31 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801510', 'tblTempVendorCDR_20' ) start [2025-03-31 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801510', 'tblTempVendorCDR_20' ) end [2025-03-31 05:56:18] Production.INFO: ProcessCDR(1,14801510,1,1,2) [2025-03-31 05:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801510', 'tblTempUsageDetail_20' ) start [2025-03-31 05:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801510', 'tblTempUsageDetail_20' ) end [2025-03-31 05:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 05:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 05:56:21] Production.INFO: ==19459== Releasing lock... [2025-03-31 05:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 05:56:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-31 05:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 02:57:06 [end_date_ymd] => 2025-03-31 05:57:06 [RateCDR] => 1 ) [2025-03-31 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-31 02:57:06' and `end` < '2025-03-31 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-31 05:57:18] Production.INFO: count ==213 [2025-03-31 05:57:18] Production.ERROR: pbx CDR StartTime 2025-03-31 02:57:06 - End Time 2025-03-31 05:57:06 [2025-03-31 05:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801515', 'tblTempUsageDetail_20' ) start [2025-03-31 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801515', 'tblTempUsageDetail_20' ) end [2025-03-31 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801515', 'tblTempVendorCDR_20' ) start [2025-03-31 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801515', 'tblTempVendorCDR_20' ) end [2025-03-31 05:57:18] Production.INFO: ProcessCDR(1,14801515,1,1,2) [2025-03-31 05:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801515', 'tblTempUsageDetail_20' ) start [2025-03-31 05:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801515', 'tblTempUsageDetail_20' ) end [2025-03-31 05:57:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 05:57:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 05:57:23] Production.INFO: ==19548== Releasing lock... [2025-03-31 05:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 05:57:23] Production.INFO: 29.75 MB #Memory Used# [2025-03-31 05:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 02:58:05 [end_date_ymd] => 2025-03-31 05:58:05 [RateCDR] => 1 ) [2025-03-31 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-31 02:58:05' and `end` < '2025-03-31 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-31 05:58:17] Production.INFO: count ==212 [2025-03-31 05:58:17] Production.ERROR: pbx CDR StartTime 2025-03-31 02:58:05 - End Time 2025-03-31 05:58:05 [2025-03-31 05:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801520', 'tblTempUsageDetail_20' ) start [2025-03-31 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801520', 'tblTempUsageDetail_20' ) end [2025-03-31 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801520', 'tblTempVendorCDR_20' ) start [2025-03-31 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801520', 'tblTempVendorCDR_20' ) end [2025-03-31 05:58:17] Production.INFO: ProcessCDR(1,14801520,1,1,2) [2025-03-31 05:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801520', 'tblTempUsageDetail_20' ) start [2025-03-31 05:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801520', 'tblTempUsageDetail_20' ) end [2025-03-31 05:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 05:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 05:58:21] Production.INFO: ==19628== Releasing lock... [2025-03-31 05:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 05:58:21] Production.INFO: 30 MB #Memory Used# [2025-03-31 05:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 02:59:05 [end_date_ymd] => 2025-03-31 05:59:05 [RateCDR] => 1 ) [2025-03-31 05:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 02:59:05' and `end` < '2025-03-31 05:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 05:59:18] Production.INFO: count ==213 [2025-03-31 05:59:18] Production.ERROR: pbx CDR StartTime 2025-03-31 02:59:05 - End Time 2025-03-31 05:59:05 [2025-03-31 05:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801525', 'tblTempUsageDetail_20' ) start [2025-03-31 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801525', 'tblTempUsageDetail_20' ) end [2025-03-31 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801525', 'tblTempVendorCDR_20' ) start [2025-03-31 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801525', 'tblTempVendorCDR_20' ) end [2025-03-31 05:59:18] Production.INFO: ProcessCDR(1,14801525,1,1,2) [2025-03-31 05:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 05:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 05:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801525', 'tblTempUsageDetail_20' ) start [2025-03-31 05:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801525', 'tblTempUsageDetail_20' ) end [2025-03-31 05:59:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 05:59:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 05:59:23] Production.INFO: ==19704== Releasing lock... [2025-03-31 05:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 05:59:23] Production.INFO: 29.75 MB #Memory Used# [2025-03-31 06:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 03:00:06 [end_date_ymd] => 2025-03-31 06:00:06 [RateCDR] => 1 ) [2025-03-31 06:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 03:00:06' and `end` < '2025-03-31 06:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 06:00:19] Production.INFO: count ==213 [2025-03-31 06:00:19] Production.ERROR: pbx CDR StartTime 2025-03-31 03:00:06 - End Time 2025-03-31 06:00:06 [2025-03-31 06:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801531', 'tblTempUsageDetail_20' ) start [2025-03-31 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801531', 'tblTempUsageDetail_20' ) end [2025-03-31 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801531', 'tblTempVendorCDR_20' ) start [2025-03-31 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801531', 'tblTempVendorCDR_20' ) end [2025-03-31 06:00:19] Production.INFO: ProcessCDR(1,14801531,1,1,2) [2025-03-31 06:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801531', 'tblTempUsageDetail_20' ) start [2025-03-31 06:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801531', 'tblTempUsageDetail_20' ) end [2025-03-31 06:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 06:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 06:00:22] Production.INFO: ==19788== Releasing lock... [2025-03-31 06:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 06:00:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-31 06:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 03:01:06 [end_date_ymd] => 2025-03-31 06:01:06 [RateCDR] => 1 ) [2025-03-31 06: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-31 03:01:06' and `end` < '2025-03-31 06: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-31 06:01:18] Production.INFO: count ==213 [2025-03-31 06:01:18] Production.ERROR: pbx CDR StartTime 2025-03-31 03:01:06 - End Time 2025-03-31 06:01:06 [2025-03-31 06:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801536', 'tblTempUsageDetail_20' ) start [2025-03-31 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801536', 'tblTempUsageDetail_20' ) end [2025-03-31 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801536', 'tblTempVendorCDR_20' ) start [2025-03-31 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801536', 'tblTempVendorCDR_20' ) end [2025-03-31 06:01:18] Production.INFO: ProcessCDR(1,14801536,1,1,2) [2025-03-31 06:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801536', 'tblTempUsageDetail_20' ) start [2025-03-31 06:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801536', 'tblTempUsageDetail_20' ) end [2025-03-31 06:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 06:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 06:01:21] Production.INFO: ==19881== Releasing lock... [2025-03-31 06:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 06:01:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-31 06:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 03:02:05 [end_date_ymd] => 2025-03-31 06:02:05 [RateCDR] => 1 ) [2025-03-31 06:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 03:02:05' and `end` < '2025-03-31 06:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 06:02:18] Production.INFO: count ==213 [2025-03-31 06:02:18] Production.ERROR: pbx CDR StartTime 2025-03-31 03:02:05 - End Time 2025-03-31 06:02:05 [2025-03-31 06:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801541', 'tblTempUsageDetail_20' ) start [2025-03-31 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801541', 'tblTempUsageDetail_20' ) end [2025-03-31 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801541', 'tblTempVendorCDR_20' ) start [2025-03-31 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801541', 'tblTempVendorCDR_20' ) end [2025-03-31 06:02:18] Production.INFO: ProcessCDR(1,14801541,1,1,2) [2025-03-31 06:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801541', 'tblTempUsageDetail_20' ) start [2025-03-31 06:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801541', 'tblTempUsageDetail_20' ) end [2025-03-31 06:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 06:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 06:02:21] Production.INFO: ==19994== Releasing lock... [2025-03-31 06:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 06:02:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-31 06:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 03:03:05 [end_date_ymd] => 2025-03-31 06:03:05 [RateCDR] => 1 ) [2025-03-31 06:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 03:03:05' and `end` < '2025-03-31 06:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 06:03:18] Production.INFO: count ==209 [2025-03-31 06:03:18] Production.ERROR: pbx CDR StartTime 2025-03-31 03:03:05 - End Time 2025-03-31 06:03:05 [2025-03-31 06:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801546', 'tblTempUsageDetail_20' ) start [2025-03-31 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801546', 'tblTempUsageDetail_20' ) end [2025-03-31 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801546', 'tblTempVendorCDR_20' ) start [2025-03-31 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801546', 'tblTempVendorCDR_20' ) end [2025-03-31 06:03:18] Production.INFO: ProcessCDR(1,14801546,1,1,2) [2025-03-31 06:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801546', 'tblTempUsageDetail_20' ) start [2025-03-31 06:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801546', 'tblTempUsageDetail_20' ) end [2025-03-31 06:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 06:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 06:03:21] Production.INFO: ==20075== Releasing lock... [2025-03-31 06:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 06:03:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-31 06:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 03:04:06 [end_date_ymd] => 2025-03-31 06:04:06 [RateCDR] => 1 ) [2025-03-31 06: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-31 03:04:06' and `end` < '2025-03-31 06: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-31 06:04:19] Production.INFO: count ==209 [2025-03-31 06:04:19] Production.ERROR: pbx CDR StartTime 2025-03-31 03:04:06 - End Time 2025-03-31 06:04:06 [2025-03-31 06:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 06:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801551', 'tblTempUsageDetail_20' ) start [2025-03-31 06:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801551', 'tblTempUsageDetail_20' ) end [2025-03-31 06:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801551', 'tblTempVendorCDR_20' ) start [2025-03-31 06:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801551', 'tblTempVendorCDR_20' ) end [2025-03-31 06:04:19] Production.INFO: ProcessCDR(1,14801551,1,1,2) [2025-03-31 06:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801551', 'tblTempUsageDetail_20' ) start [2025-03-31 06:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801551', 'tblTempUsageDetail_20' ) end [2025-03-31 06:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 06:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 06:04:22] Production.INFO: ==20155== Releasing lock... [2025-03-31 06:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 06:04:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-31 06:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 03:05:05 [end_date_ymd] => 2025-03-31 06:05:05 [RateCDR] => 1 ) [2025-03-31 06:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 03:05:05' and `end` < '2025-03-31 06:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 06:05:18] Production.INFO: count ==209 [2025-03-31 06:05:18] Production.ERROR: pbx CDR StartTime 2025-03-31 03:05:05 - End Time 2025-03-31 06:05:05 [2025-03-31 06:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801556', 'tblTempUsageDetail_20' ) start [2025-03-31 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801556', 'tblTempUsageDetail_20' ) end [2025-03-31 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801556', 'tblTempVendorCDR_20' ) start [2025-03-31 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801556', 'tblTempVendorCDR_20' ) end [2025-03-31 06:05:18] Production.INFO: ProcessCDR(1,14801556,1,1,2) [2025-03-31 06:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801556', 'tblTempUsageDetail_20' ) start [2025-03-31 06:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801556', 'tblTempUsageDetail_20' ) end [2025-03-31 06:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 06:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 06:05:22] Production.INFO: ==20229== Releasing lock... [2025-03-31 06:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 06:05:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-31 06:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 03:06:05 [end_date_ymd] => 2025-03-31 06:06:05 [RateCDR] => 1 ) [2025-03-31 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-31 03:06:05' and `end` < '2025-03-31 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-31 06:06:17] Production.INFO: count ==209 [2025-03-31 06:06:17] Production.ERROR: pbx CDR StartTime 2025-03-31 03:06:05 - End Time 2025-03-31 06:06:05 [2025-03-31 06:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801561', 'tblTempUsageDetail_20' ) start [2025-03-31 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801561', 'tblTempUsageDetail_20' ) end [2025-03-31 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801561', 'tblTempVendorCDR_20' ) start [2025-03-31 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801561', 'tblTempVendorCDR_20' ) end [2025-03-31 06:06:17] Production.INFO: ProcessCDR(1,14801561,1,1,2) [2025-03-31 06:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801561', 'tblTempUsageDetail_20' ) start [2025-03-31 06:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801561', 'tblTempUsageDetail_20' ) end [2025-03-31 06:06:20] Production.ERROR: pbx prc_insertCDR start [2025-03-31 06:06:20] Production.ERROR: pbx prc_insertCDR end [2025-03-31 06:06:20] Production.INFO: ==20305== Releasing lock... [2025-03-31 06:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 06:06:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-31 06:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 03:07:05 [end_date_ymd] => 2025-03-31 06:07:05 [RateCDR] => 1 ) [2025-03-31 06:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 03:07:05' and `end` < '2025-03-31 06:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 06:07:18] Production.INFO: count ==209 [2025-03-31 06:07:18] Production.ERROR: pbx CDR StartTime 2025-03-31 03:07:05 - End Time 2025-03-31 06:07:05 [2025-03-31 06:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801566', 'tblTempUsageDetail_20' ) start [2025-03-31 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801566', 'tblTempUsageDetail_20' ) end [2025-03-31 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801566', 'tblTempVendorCDR_20' ) start [2025-03-31 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801566', 'tblTempVendorCDR_20' ) end [2025-03-31 06:07:18] Production.INFO: ProcessCDR(1,14801566,1,1,2) [2025-03-31 06:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801566', 'tblTempUsageDetail_20' ) start [2025-03-31 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801566', 'tblTempUsageDetail_20' ) end [2025-03-31 06:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 06:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 06:07:21] Production.INFO: ==20387== Releasing lock... [2025-03-31 06:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 06:07:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-31 06:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 03:08:06 [end_date_ymd] => 2025-03-31 06:08:06 [RateCDR] => 1 ) [2025-03-31 06: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-31 03:08:06' and `end` < '2025-03-31 06: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-31 06:08:19] Production.INFO: count ==209 [2025-03-31 06:08:19] Production.ERROR: pbx CDR StartTime 2025-03-31 03:08:06 - End Time 2025-03-31 06:08:06 [2025-03-31 06:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 06:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801571', 'tblTempUsageDetail_20' ) start [2025-03-31 06:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801571', 'tblTempUsageDetail_20' ) end [2025-03-31 06:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801571', 'tblTempVendorCDR_20' ) start [2025-03-31 06:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801571', 'tblTempVendorCDR_20' ) end [2025-03-31 06:08:19] Production.INFO: ProcessCDR(1,14801571,1,1,2) [2025-03-31 06:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801571', 'tblTempUsageDetail_20' ) start [2025-03-31 06:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801571', 'tblTempUsageDetail_20' ) end [2025-03-31 06:08:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 06:08:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 06:08:22] Production.INFO: ==20466== Releasing lock... [2025-03-31 06:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 06:08:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-31 06:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 03:09:05 [end_date_ymd] => 2025-03-31 06:09:05 [RateCDR] => 1 ) [2025-03-31 06: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-31 03:09:05' and `end` < '2025-03-31 06: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-31 06:09:18] Production.INFO: count ==194 [2025-03-31 06:09:18] Production.ERROR: pbx CDR StartTime 2025-03-31 03:09:05 - End Time 2025-03-31 06:09:05 [2025-03-31 06:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801576', 'tblTempUsageDetail_20' ) start [2025-03-31 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801576', 'tblTempUsageDetail_20' ) end [2025-03-31 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801576', 'tblTempVendorCDR_20' ) start [2025-03-31 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801576', 'tblTempVendorCDR_20' ) end [2025-03-31 06:09:18] Production.INFO: ProcessCDR(1,14801576,1,1,2) [2025-03-31 06:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801576', 'tblTempUsageDetail_20' ) start [2025-03-31 06:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801576', 'tblTempUsageDetail_20' ) end [2025-03-31 06:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 06:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 06:09:21] Production.INFO: ==20544== Releasing lock... [2025-03-31 06:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 06:09:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-31 06:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 03:10:06 [end_date_ymd] => 2025-03-31 06:10:06 [RateCDR] => 1 ) [2025-03-31 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-31 03:10:06' and `end` < '2025-03-31 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-31 06:10:19] Production.INFO: count ==175 [2025-03-31 06:10:19] Production.ERROR: pbx CDR StartTime 2025-03-31 03:10:06 - End Time 2025-03-31 06:10:06 [2025-03-31 06:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801582', 'tblTempUsageDetail_20' ) start [2025-03-31 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801582', 'tblTempUsageDetail_20' ) end [2025-03-31 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801582', 'tblTempVendorCDR_20' ) start [2025-03-31 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801582', 'tblTempVendorCDR_20' ) end [2025-03-31 06:10:19] Production.INFO: ProcessCDR(1,14801582,1,1,2) [2025-03-31 06:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801582', 'tblTempUsageDetail_20' ) start [2025-03-31 06:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801582', 'tblTempUsageDetail_20' ) end [2025-03-31 06:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 06:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 06:10:22] Production.INFO: ==20626== Releasing lock... [2025-03-31 06:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 06:10:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-31 06:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 03:11:05 [end_date_ymd] => 2025-03-31 06:11:05 [RateCDR] => 1 ) [2025-03-31 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-31 03:11:05' and `end` < '2025-03-31 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-31 06:11:18] Production.INFO: count ==173 [2025-03-31 06:11:18] Production.ERROR: pbx CDR StartTime 2025-03-31 03:11:05 - End Time 2025-03-31 06:11:05 [2025-03-31 06:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801587', 'tblTempUsageDetail_20' ) start [2025-03-31 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801587', 'tblTempUsageDetail_20' ) end [2025-03-31 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801587', 'tblTempVendorCDR_20' ) start [2025-03-31 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801587', 'tblTempVendorCDR_20' ) end [2025-03-31 06:11:18] Production.INFO: ProcessCDR(1,14801587,1,1,2) [2025-03-31 06:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801587', 'tblTempUsageDetail_20' ) start [2025-03-31 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801587', 'tblTempUsageDetail_20' ) end [2025-03-31 06:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 06:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 06:11:21] Production.INFO: ==20706== Releasing lock... [2025-03-31 06:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 06:11:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-31 06:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 03:12:05 [end_date_ymd] => 2025-03-31 06:12:05 [RateCDR] => 1 ) [2025-03-31 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-31 03:12:05' and `end` < '2025-03-31 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-31 06:12:18] Production.INFO: count ==173 [2025-03-31 06:12:18] Production.ERROR: pbx CDR StartTime 2025-03-31 03:12:05 - End Time 2025-03-31 06:12:05 [2025-03-31 06:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801592', 'tblTempUsageDetail_20' ) start [2025-03-31 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801592', 'tblTempUsageDetail_20' ) end [2025-03-31 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801592', 'tblTempVendorCDR_20' ) start [2025-03-31 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801592', 'tblTempVendorCDR_20' ) end [2025-03-31 06:12:18] Production.INFO: ProcessCDR(1,14801592,1,1,2) [2025-03-31 06:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801592', 'tblTempUsageDetail_20' ) start [2025-03-31 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801592', 'tblTempUsageDetail_20' ) end [2025-03-31 06:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 06:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 06:12:21] Production.INFO: ==20787== Releasing lock... [2025-03-31 06:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 06:12:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-31 06:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 03:13:05 [end_date_ymd] => 2025-03-31 06:13:05 [RateCDR] => 1 ) [2025-03-31 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-31 03:13:05' and `end` < '2025-03-31 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-31 06:13:17] Production.INFO: count ==173 [2025-03-31 06:13:17] Production.ERROR: pbx CDR StartTime 2025-03-31 03:13:05 - End Time 2025-03-31 06:13:05 [2025-03-31 06:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801597', 'tblTempUsageDetail_20' ) start [2025-03-31 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801597', 'tblTempUsageDetail_20' ) end [2025-03-31 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801597', 'tblTempVendorCDR_20' ) start [2025-03-31 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801597', 'tblTempVendorCDR_20' ) end [2025-03-31 06:13:17] Production.INFO: ProcessCDR(1,14801597,1,1,2) [2025-03-31 06:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801597', 'tblTempUsageDetail_20' ) start [2025-03-31 06:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801597', 'tblTempUsageDetail_20' ) end [2025-03-31 06:13:20] Production.ERROR: pbx prc_insertCDR start [2025-03-31 06:13:20] Production.ERROR: pbx prc_insertCDR end [2025-03-31 06:13:20] Production.INFO: ==20865== Releasing lock... [2025-03-31 06:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 06:13:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-31 06:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 03:14:05 [end_date_ymd] => 2025-03-31 06:14:05 [RateCDR] => 1 ) [2025-03-31 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-31 03:14:05' and `end` < '2025-03-31 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-31 06:14:17] Production.INFO: count ==173 [2025-03-31 06:14:18] Production.ERROR: pbx CDR StartTime 2025-03-31 03:14:05 - End Time 2025-03-31 06:14:05 [2025-03-31 06:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801602', 'tblTempUsageDetail_20' ) start [2025-03-31 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801602', 'tblTempUsageDetail_20' ) end [2025-03-31 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801602', 'tblTempVendorCDR_20' ) start [2025-03-31 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801602', 'tblTempVendorCDR_20' ) end [2025-03-31 06:14:18] Production.INFO: ProcessCDR(1,14801602,1,1,2) [2025-03-31 06:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801602', 'tblTempUsageDetail_20' ) start [2025-03-31 06:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801602', 'tblTempUsageDetail_20' ) end [2025-03-31 06:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 06:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 06:14:21] Production.INFO: ==20937== Releasing lock... [2025-03-31 06:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 06:14:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-31 06:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 03:15:04 [end_date_ymd] => 2025-03-31 06:15:04 [RateCDR] => 1 ) [2025-03-31 06:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 03:15:04' and `end` < '2025-03-31 06:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 06:15:17] Production.INFO: count ==173 [2025-03-31 06:15:17] Production.ERROR: pbx CDR StartTime 2025-03-31 03:15:04 - End Time 2025-03-31 06:15:04 [2025-03-31 06:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801607', 'tblTempUsageDetail_20' ) start [2025-03-31 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801607', 'tblTempUsageDetail_20' ) end [2025-03-31 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801607', 'tblTempVendorCDR_20' ) start [2025-03-31 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801607', 'tblTempVendorCDR_20' ) end [2025-03-31 06:15:17] Production.INFO: ProcessCDR(1,14801607,1,1,2) [2025-03-31 06:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801607', 'tblTempUsageDetail_20' ) start [2025-03-31 06:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801607', 'tblTempUsageDetail_20' ) end [2025-03-31 06:15:20] Production.ERROR: pbx prc_insertCDR start [2025-03-31 06:15:20] Production.ERROR: pbx prc_insertCDR end [2025-03-31 06:15:20] Production.INFO: ==21011== Releasing lock... [2025-03-31 06:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 06:15:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-31 06:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 03:16:05 [end_date_ymd] => 2025-03-31 06:16:05 [RateCDR] => 1 ) [2025-03-31 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-31 03:16:05' and `end` < '2025-03-31 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-31 06:16:17] Production.INFO: count ==174 [2025-03-31 06:16:17] Production.ERROR: pbx CDR StartTime 2025-03-31 03:16:05 - End Time 2025-03-31 06:16:05 [2025-03-31 06:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801612', 'tblTempUsageDetail_20' ) start [2025-03-31 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801612', 'tblTempUsageDetail_20' ) end [2025-03-31 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801612', 'tblTempVendorCDR_20' ) start [2025-03-31 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801612', 'tblTempVendorCDR_20' ) end [2025-03-31 06:16:17] Production.INFO: ProcessCDR(1,14801612,1,1,2) [2025-03-31 06:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801612', 'tblTempUsageDetail_20' ) start [2025-03-31 06:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801612', 'tblTempUsageDetail_20' ) end [2025-03-31 06:16:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 06:16:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 06:16:23] Production.INFO: ==21093== Releasing lock... [2025-03-31 06:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 06:16:23] Production.INFO: 29.5 MB #Memory Used# [2025-03-31 06:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 03:17:05 [end_date_ymd] => 2025-03-31 06:17:05 [RateCDR] => 1 ) [2025-03-31 06:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 03:17:05' and `end` < '2025-03-31 06:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 06:17:17] Production.INFO: count ==174 [2025-03-31 06:17:17] Production.ERROR: pbx CDR StartTime 2025-03-31 03:17:05 - End Time 2025-03-31 06:17:05 [2025-03-31 06:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801617', 'tblTempUsageDetail_20' ) start [2025-03-31 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801617', 'tblTempUsageDetail_20' ) end [2025-03-31 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801617', 'tblTempVendorCDR_20' ) start [2025-03-31 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801617', 'tblTempVendorCDR_20' ) end [2025-03-31 06:17:17] Production.INFO: ProcessCDR(1,14801617,1,1,2) [2025-03-31 06:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801617', 'tblTempUsageDetail_20' ) start [2025-03-31 06:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801617', 'tblTempUsageDetail_20' ) end [2025-03-31 06:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 06:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 06:17:21] Production.INFO: ==21210== Releasing lock... [2025-03-31 06:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 06:17:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-31 06:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 03:18:05 [end_date_ymd] => 2025-03-31 06:18:05 [RateCDR] => 1 ) [2025-03-31 06:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 03:18:05' and `end` < '2025-03-31 06:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 06:18:18] Production.INFO: count ==173 [2025-03-31 06:18:18] Production.ERROR: pbx CDR StartTime 2025-03-31 03:18:05 - End Time 2025-03-31 06:18:05 [2025-03-31 06:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801622', 'tblTempUsageDetail_20' ) start [2025-03-31 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801622', 'tblTempUsageDetail_20' ) end [2025-03-31 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801622', 'tblTempVendorCDR_20' ) start [2025-03-31 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801622', 'tblTempVendorCDR_20' ) end [2025-03-31 06:18:18] Production.INFO: ProcessCDR(1,14801622,1,1,2) [2025-03-31 06:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801622', 'tblTempUsageDetail_20' ) start [2025-03-31 06:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801622', 'tblTempUsageDetail_20' ) end [2025-03-31 06:18:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 06:18:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 06:18:22] Production.INFO: ==21282== Releasing lock... [2025-03-31 06:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 06:18:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-31 06:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 03:19:06 [end_date_ymd] => 2025-03-31 06:19:06 [RateCDR] => 1 ) [2025-03-31 06: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-31 03:19:06' and `end` < '2025-03-31 06: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-31 06:19:18] Production.INFO: count ==173 [2025-03-31 06:19:18] Production.ERROR: pbx CDR StartTime 2025-03-31 03:19:06 - End Time 2025-03-31 06:19:06 [2025-03-31 06:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801627', 'tblTempUsageDetail_20' ) start [2025-03-31 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801627', 'tblTempUsageDetail_20' ) end [2025-03-31 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801627', 'tblTempVendorCDR_20' ) start [2025-03-31 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801627', 'tblTempVendorCDR_20' ) end [2025-03-31 06:19:18] Production.INFO: ProcessCDR(1,14801627,1,1,2) [2025-03-31 06:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801627', 'tblTempUsageDetail_20' ) start [2025-03-31 06:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801627', 'tblTempUsageDetail_20' ) end [2025-03-31 06:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 06:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 06:19:22] Production.INFO: ==21357== Releasing lock... [2025-03-31 06:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 06:19:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-31 06:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 03:20:06 [end_date_ymd] => 2025-03-31 06:20:06 [RateCDR] => 1 ) [2025-03-31 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-31 03:20:06' and `end` < '2025-03-31 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-31 06:20:19] Production.INFO: count ==165 [2025-03-31 06:20:19] Production.ERROR: pbx CDR StartTime 2025-03-31 03:20:06 - End Time 2025-03-31 06:20:06 [2025-03-31 06:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801633', 'tblTempUsageDetail_20' ) start [2025-03-31 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801633', 'tblTempUsageDetail_20' ) end [2025-03-31 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801633', 'tblTempVendorCDR_20' ) start [2025-03-31 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801633', 'tblTempVendorCDR_20' ) end [2025-03-31 06:20:19] Production.INFO: ProcessCDR(1,14801633,1,1,2) [2025-03-31 06:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801633', 'tblTempUsageDetail_20' ) start [2025-03-31 06:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801633', 'tblTempUsageDetail_20' ) end [2025-03-31 06:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 06:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 06:20:22] Production.INFO: ==21435== Releasing lock... [2025-03-31 06:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 06:20:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-31 06:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 03:21:06 [end_date_ymd] => 2025-03-31 06:21:06 [RateCDR] => 1 ) [2025-03-31 06: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-31 03:21:06' and `end` < '2025-03-31 06: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-31 06:21:18] Production.INFO: count ==164 [2025-03-31 06:21:18] Production.ERROR: pbx CDR StartTime 2025-03-31 03:21:06 - End Time 2025-03-31 06:21:06 [2025-03-31 06:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801638', 'tblTempUsageDetail_20' ) start [2025-03-31 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801638', 'tblTempUsageDetail_20' ) end [2025-03-31 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801638', 'tblTempVendorCDR_20' ) start [2025-03-31 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801638', 'tblTempVendorCDR_20' ) end [2025-03-31 06:21:18] Production.INFO: ProcessCDR(1,14801638,1,1,2) [2025-03-31 06:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801638', 'tblTempUsageDetail_20' ) start [2025-03-31 06:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801638', 'tblTempUsageDetail_20' ) end [2025-03-31 06:21:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 06:21:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 06:21:22] Production.INFO: ==21518== Releasing lock... [2025-03-31 06:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 06:21:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-31 06:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 03:22:05 [end_date_ymd] => 2025-03-31 06:22:05 [RateCDR] => 1 ) [2025-03-31 06:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 03:22:05' and `end` < '2025-03-31 06:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 06:22:18] Production.INFO: count ==168 [2025-03-31 06:22:18] Production.ERROR: pbx CDR StartTime 2025-03-31 03:22:05 - End Time 2025-03-31 06:22:05 [2025-03-31 06:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801643', 'tblTempUsageDetail_20' ) start [2025-03-31 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801643', 'tblTempUsageDetail_20' ) end [2025-03-31 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801643', 'tblTempVendorCDR_20' ) start [2025-03-31 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801643', 'tblTempVendorCDR_20' ) end [2025-03-31 06:22:18] Production.INFO: ProcessCDR(1,14801643,1,1,2) [2025-03-31 06:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801643', 'tblTempUsageDetail_20' ) start [2025-03-31 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801643', 'tblTempUsageDetail_20' ) end [2025-03-31 06:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 06:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 06:22:21] Production.INFO: ==21594== Releasing lock... [2025-03-31 06:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 06:22:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-31 06:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 03:23:06 [end_date_ymd] => 2025-03-31 06:23:06 [RateCDR] => 1 ) [2025-03-31 06:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 03:23:06' and `end` < '2025-03-31 06:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 06:23:18] Production.INFO: count ==168 [2025-03-31 06:23:18] Production.ERROR: pbx CDR StartTime 2025-03-31 03:23:06 - End Time 2025-03-31 06:23:06 [2025-03-31 06:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801648', 'tblTempUsageDetail_20' ) start [2025-03-31 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801648', 'tblTempUsageDetail_20' ) end [2025-03-31 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801648', 'tblTempVendorCDR_20' ) start [2025-03-31 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801648', 'tblTempVendorCDR_20' ) end [2025-03-31 06:23:18] Production.INFO: ProcessCDR(1,14801648,1,1,2) [2025-03-31 06:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801648', 'tblTempUsageDetail_20' ) start [2025-03-31 06:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801648', 'tblTempUsageDetail_20' ) end [2025-03-31 06:23:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 06:23:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 06:23:22] Production.INFO: ==21671== Releasing lock... [2025-03-31 06:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 06:23:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-31 06:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 03:24:05 [end_date_ymd] => 2025-03-31 06:24:05 [RateCDR] => 1 ) [2025-03-31 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-31 03:24:05' and `end` < '2025-03-31 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-31 06:24:17] Production.INFO: count ==168 [2025-03-31 06:24:17] Production.ERROR: pbx CDR StartTime 2025-03-31 03:24:05 - End Time 2025-03-31 06:24:05 [2025-03-31 06:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801653', 'tblTempUsageDetail_20' ) start [2025-03-31 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801653', 'tblTempUsageDetail_20' ) end [2025-03-31 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801653', 'tblTempVendorCDR_20' ) start [2025-03-31 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801653', 'tblTempVendorCDR_20' ) end [2025-03-31 06:24:17] Production.INFO: ProcessCDR(1,14801653,1,1,2) [2025-03-31 06:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801653', 'tblTempUsageDetail_20' ) start [2025-03-31 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801653', 'tblTempUsageDetail_20' ) end [2025-03-31 06:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 06:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 06:24:21] Production.INFO: ==21740== Releasing lock... [2025-03-31 06:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 06:24:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-31 06:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 03:25:06 [end_date_ymd] => 2025-03-31 06:25:06 [RateCDR] => 1 ) [2025-03-31 06: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-31 03:25:06' and `end` < '2025-03-31 06: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-31 06:25:18] Production.INFO: count ==168 [2025-03-31 06:25:18] Production.ERROR: pbx CDR StartTime 2025-03-31 03:25:06 - End Time 2025-03-31 06:25:06 [2025-03-31 06:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801658', 'tblTempUsageDetail_20' ) start [2025-03-31 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801658', 'tblTempUsageDetail_20' ) end [2025-03-31 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801658', 'tblTempVendorCDR_20' ) start [2025-03-31 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801658', 'tblTempVendorCDR_20' ) end [2025-03-31 06:25:18] Production.INFO: ProcessCDR(1,14801658,1,1,2) [2025-03-31 06:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801658', 'tblTempUsageDetail_20' ) start [2025-03-31 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801658', 'tblTempUsageDetail_20' ) end [2025-03-31 06:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 06:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 06:25:21] Production.INFO: ==21819== Releasing lock... [2025-03-31 06:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 06:25:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-31 06:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 03:26:05 [end_date_ymd] => 2025-03-31 06:26:05 [RateCDR] => 1 ) [2025-03-31 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-31 03:26:05' and `end` < '2025-03-31 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-31 06:26:17] Production.INFO: count ==171 [2025-03-31 06:26:17] Production.ERROR: pbx CDR StartTime 2025-03-31 03:26:05 - End Time 2025-03-31 06:26:05 [2025-03-31 06:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801663', 'tblTempUsageDetail_20' ) start [2025-03-31 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801663', 'tblTempUsageDetail_20' ) end [2025-03-31 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801663', 'tblTempVendorCDR_20' ) start [2025-03-31 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801663', 'tblTempVendorCDR_20' ) end [2025-03-31 06:26:17] Production.INFO: ProcessCDR(1,14801663,1,1,2) [2025-03-31 06:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801663', 'tblTempUsageDetail_20' ) start [2025-03-31 06:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801663', 'tblTempUsageDetail_20' ) end [2025-03-31 06:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 06:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 06:26:21] Production.INFO: ==21893== Releasing lock... [2025-03-31 06:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 06:26:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-31 06:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 03:27:05 [end_date_ymd] => 2025-03-31 06:27:05 [RateCDR] => 1 ) [2025-03-31 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-31 03:27:05' and `end` < '2025-03-31 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-31 06:27:18] Production.INFO: count ==175 [2025-03-31 06:27:18] Production.ERROR: pbx CDR StartTime 2025-03-31 03:27:05 - End Time 2025-03-31 06:27:05 [2025-03-31 06:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801668', 'tblTempUsageDetail_20' ) start [2025-03-31 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801668', 'tblTempUsageDetail_20' ) end [2025-03-31 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801668', 'tblTempVendorCDR_20' ) start [2025-03-31 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801668', 'tblTempVendorCDR_20' ) end [2025-03-31 06:27:18] Production.INFO: ProcessCDR(1,14801668,1,1,2) [2025-03-31 06:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801668', 'tblTempUsageDetail_20' ) start [2025-03-31 06:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801668', 'tblTempUsageDetail_20' ) end [2025-03-31 06:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 06:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 06:27:21] Production.INFO: ==21966== Releasing lock... [2025-03-31 06:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 06:27:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-31 06:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 03:28:05 [end_date_ymd] => 2025-03-31 06:28:05 [RateCDR] => 1 ) [2025-03-31 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-31 03:28:05' and `end` < '2025-03-31 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-31 06:28:17] Production.INFO: count ==174 [2025-03-31 06:28:17] Production.ERROR: pbx CDR StartTime 2025-03-31 03:28:05 - End Time 2025-03-31 06:28:05 [2025-03-31 06:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801673', 'tblTempUsageDetail_20' ) start [2025-03-31 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801673', 'tblTempUsageDetail_20' ) end [2025-03-31 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801673', 'tblTempVendorCDR_20' ) start [2025-03-31 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801673', 'tblTempVendorCDR_20' ) end [2025-03-31 06:28:17] Production.INFO: ProcessCDR(1,14801673,1,1,2) [2025-03-31 06:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801673', 'tblTempUsageDetail_20' ) start [2025-03-31 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801673', 'tblTempUsageDetail_20' ) end [2025-03-31 06:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 06:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 06:28:21] Production.INFO: ==22039== Releasing lock... [2025-03-31 06:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 06:28:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-31 06:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 03:29:05 [end_date_ymd] => 2025-03-31 06:29:05 [RateCDR] => 1 ) [2025-03-31 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-31 03:29:05' and `end` < '2025-03-31 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-31 06:29:18] Production.INFO: count ==174 [2025-03-31 06:29:18] Production.ERROR: pbx CDR StartTime 2025-03-31 03:29:05 - End Time 2025-03-31 06:29:05 [2025-03-31 06:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801678', 'tblTempUsageDetail_20' ) start [2025-03-31 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801678', 'tblTempUsageDetail_20' ) end [2025-03-31 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801678', 'tblTempVendorCDR_20' ) start [2025-03-31 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801678', 'tblTempVendorCDR_20' ) end [2025-03-31 06:29:18] Production.INFO: ProcessCDR(1,14801678,1,1,2) [2025-03-31 06:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801678', 'tblTempUsageDetail_20' ) start [2025-03-31 06:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801678', 'tblTempUsageDetail_20' ) end [2025-03-31 06:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 06:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 06:29:21] Production.INFO: ==22113== Releasing lock... [2025-03-31 06:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 06:29:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-31 06:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 03:30:06 [end_date_ymd] => 2025-03-31 06:30:06 [RateCDR] => 1 ) [2025-03-31 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-31 03:30:06' and `end` < '2025-03-31 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-31 06:30:19] Production.INFO: count ==174 [2025-03-31 06:30:19] Production.ERROR: pbx CDR StartTime 2025-03-31 03:30:06 - End Time 2025-03-31 06:30:06 [2025-03-31 06:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801683', 'tblTempUsageDetail_20' ) start [2025-03-31 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801683', 'tblTempUsageDetail_20' ) end [2025-03-31 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801683', 'tblTempVendorCDR_20' ) start [2025-03-31 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801683', 'tblTempVendorCDR_20' ) end [2025-03-31 06:30:19] Production.INFO: ProcessCDR(1,14801683,1,1,2) [2025-03-31 06:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801683', 'tblTempUsageDetail_20' ) start [2025-03-31 06:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801683', 'tblTempUsageDetail_20' ) end [2025-03-31 06:30:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 06:30:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 06:30:23] Production.INFO: ==22193== Releasing lock... [2025-03-31 06:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 06:30:23] Production.INFO: 29.25 MB #Memory Used# [2025-03-31 06:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 03:31:06 [end_date_ymd] => 2025-03-31 06:31:06 [RateCDR] => 1 ) [2025-03-31 06: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-31 03:31:06' and `end` < '2025-03-31 06: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-31 06:31:18] Production.INFO: count ==178 [2025-03-31 06:31:18] Production.ERROR: pbx CDR StartTime 2025-03-31 03:31:06 - End Time 2025-03-31 06:31:06 [2025-03-31 06:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801689', 'tblTempUsageDetail_20' ) start [2025-03-31 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801689', 'tblTempUsageDetail_20' ) end [2025-03-31 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801689', 'tblTempVendorCDR_20' ) start [2025-03-31 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801689', 'tblTempVendorCDR_20' ) end [2025-03-31 06:31:18] Production.INFO: ProcessCDR(1,14801689,1,1,2) [2025-03-31 06:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801689', 'tblTempUsageDetail_20' ) start [2025-03-31 06:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801689', 'tblTempUsageDetail_20' ) end [2025-03-31 06:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 06:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 06:31:22] Production.INFO: ==22273== Releasing lock... [2025-03-31 06:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 06:31:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-31 06:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 03:32:05 [end_date_ymd] => 2025-03-31 06:32:05 [RateCDR] => 1 ) [2025-03-31 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-31 03:32:05' and `end` < '2025-03-31 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-31 06:32:18] Production.INFO: count ==178 [2025-03-31 06:32:18] Production.ERROR: pbx CDR StartTime 2025-03-31 03:32:05 - End Time 2025-03-31 06:32:05 [2025-03-31 06:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801694', 'tblTempUsageDetail_20' ) start [2025-03-31 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801694', 'tblTempUsageDetail_20' ) end [2025-03-31 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801694', 'tblTempVendorCDR_20' ) start [2025-03-31 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801694', 'tblTempVendorCDR_20' ) end [2025-03-31 06:32:18] Production.INFO: ProcessCDR(1,14801694,1,1,2) [2025-03-31 06:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801694', 'tblTempUsageDetail_20' ) start [2025-03-31 06:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801694', 'tblTempUsageDetail_20' ) end [2025-03-31 06:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 06:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 06:32:22] Production.INFO: ==22344== Releasing lock... [2025-03-31 06:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 06:32:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-31 06:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 03:33:05 [end_date_ymd] => 2025-03-31 06:33:05 [RateCDR] => 1 ) [2025-03-31 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-31 03:33:05' and `end` < '2025-03-31 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-31 06:33:18] Production.INFO: count ==175 [2025-03-31 06:33:18] Production.ERROR: pbx CDR StartTime 2025-03-31 03:33:05 - End Time 2025-03-31 06:33:05 [2025-03-31 06:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801699', 'tblTempUsageDetail_20' ) start [2025-03-31 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801699', 'tblTempUsageDetail_20' ) end [2025-03-31 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801699', 'tblTempVendorCDR_20' ) start [2025-03-31 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801699', 'tblTempVendorCDR_20' ) end [2025-03-31 06:33:18] Production.INFO: ProcessCDR(1,14801699,1,1,2) [2025-03-31 06:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801699', 'tblTempUsageDetail_20' ) start [2025-03-31 06:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801699', 'tblTempUsageDetail_20' ) end [2025-03-31 06:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 06:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 06:33:21] Production.INFO: ==22457== Releasing lock... [2025-03-31 06:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 06:33:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-31 06:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 03:34:06 [end_date_ymd] => 2025-03-31 06:34:06 [RateCDR] => 1 ) [2025-03-31 06: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-31 03:34:06' and `end` < '2025-03-31 06: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-31 06:34:18] Production.INFO: count ==174 [2025-03-31 06:34:18] Production.ERROR: pbx CDR StartTime 2025-03-31 03:34:06 - End Time 2025-03-31 06:34:06 [2025-03-31 06:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801704', 'tblTempUsageDetail_20' ) start [2025-03-31 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801704', 'tblTempUsageDetail_20' ) end [2025-03-31 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801704', 'tblTempVendorCDR_20' ) start [2025-03-31 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801704', 'tblTempVendorCDR_20' ) end [2025-03-31 06:34:18] Production.INFO: ProcessCDR(1,14801704,1,1,2) [2025-03-31 06:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801704', 'tblTempUsageDetail_20' ) start [2025-03-31 06:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801704', 'tblTempUsageDetail_20' ) end [2025-03-31 06:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 06:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 06:34:22] Production.INFO: ==22538== Releasing lock... [2025-03-31 06:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 06:34:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-31 06:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 03:35:05 [end_date_ymd] => 2025-03-31 06:35:05 [RateCDR] => 1 ) [2025-03-31 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-31 03:35:05' and `end` < '2025-03-31 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-31 06:35:18] Production.INFO: count ==174 [2025-03-31 06:35:18] Production.ERROR: pbx CDR StartTime 2025-03-31 03:35:05 - End Time 2025-03-31 06:35:05 [2025-03-31 06:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801709', 'tblTempUsageDetail_20' ) start [2025-03-31 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801709', 'tblTempUsageDetail_20' ) end [2025-03-31 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801709', 'tblTempVendorCDR_20' ) start [2025-03-31 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801709', 'tblTempVendorCDR_20' ) end [2025-03-31 06:35:18] Production.INFO: ProcessCDR(1,14801709,1,1,2) [2025-03-31 06:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801709', 'tblTempUsageDetail_20' ) start [2025-03-31 06:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801709', 'tblTempUsageDetail_20' ) end [2025-03-31 06:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 06:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 06:35:21] Production.INFO: ==22616== Releasing lock... [2025-03-31 06:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 06:35:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-31 06:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 03:36:05 [end_date_ymd] => 2025-03-31 06:36:05 [RateCDR] => 1 ) [2025-03-31 06:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 03:36:05' and `end` < '2025-03-31 06:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 06:36:18] Production.INFO: count ==174 [2025-03-31 06:36:18] Production.ERROR: pbx CDR StartTime 2025-03-31 03:36:05 - End Time 2025-03-31 06:36:05 [2025-03-31 06:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801714', 'tblTempUsageDetail_20' ) start [2025-03-31 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801714', 'tblTempUsageDetail_20' ) end [2025-03-31 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801714', 'tblTempVendorCDR_20' ) start [2025-03-31 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801714', 'tblTempVendorCDR_20' ) end [2025-03-31 06:36:18] Production.INFO: ProcessCDR(1,14801714,1,1,2) [2025-03-31 06:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801714', 'tblTempUsageDetail_20' ) start [2025-03-31 06:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801714', 'tblTempUsageDetail_20' ) end [2025-03-31 06:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 06:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 06:36:21] Production.INFO: ==22693== Releasing lock... [2025-03-31 06:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 06:36:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-31 06:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 03:37:05 [end_date_ymd] => 2025-03-31 06:37:05 [RateCDR] => 1 ) [2025-03-31 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-31 03:37:05' and `end` < '2025-03-31 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-31 06:37:17] Production.INFO: count ==174 [2025-03-31 06:37:17] Production.ERROR: pbx CDR StartTime 2025-03-31 03:37:05 - End Time 2025-03-31 06:37:05 [2025-03-31 06:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801719', 'tblTempUsageDetail_20' ) start [2025-03-31 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801719', 'tblTempUsageDetail_20' ) end [2025-03-31 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801719', 'tblTempVendorCDR_20' ) start [2025-03-31 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801719', 'tblTempVendorCDR_20' ) end [2025-03-31 06:37:17] Production.INFO: ProcessCDR(1,14801719,1,1,2) [2025-03-31 06:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801719', 'tblTempUsageDetail_20' ) start [2025-03-31 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801719', 'tblTempUsageDetail_20' ) end [2025-03-31 06:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 06:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 06:37:21] Production.INFO: ==22765== Releasing lock... [2025-03-31 06:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 06:37:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-31 06:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 03:38:06 [end_date_ymd] => 2025-03-31 06:38:06 [RateCDR] => 1 ) [2025-03-31 06: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-31 03:38:06' and `end` < '2025-03-31 06: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-31 06:38:18] Production.INFO: count ==176 [2025-03-31 06:38:18] Production.ERROR: pbx CDR StartTime 2025-03-31 03:38:06 - End Time 2025-03-31 06:38:06 [2025-03-31 06:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801724', 'tblTempUsageDetail_20' ) start [2025-03-31 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801724', 'tblTempUsageDetail_20' ) end [2025-03-31 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801724', 'tblTempVendorCDR_20' ) start [2025-03-31 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801724', 'tblTempVendorCDR_20' ) end [2025-03-31 06:38:18] Production.INFO: ProcessCDR(1,14801724,1,1,2) [2025-03-31 06:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801724', 'tblTempUsageDetail_20' ) start [2025-03-31 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801724', 'tblTempUsageDetail_20' ) end [2025-03-31 06:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 06:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 06:38:21] Production.INFO: ==22843== Releasing lock... [2025-03-31 06:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 06:38:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-31 06:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 03:39:05 [end_date_ymd] => 2025-03-31 06:39:05 [RateCDR] => 1 ) [2025-03-31 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-31 03:39:05' and `end` < '2025-03-31 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-31 06:39:17] Production.INFO: count ==176 [2025-03-31 06:39:17] Production.ERROR: pbx CDR StartTime 2025-03-31 03:39:05 - End Time 2025-03-31 06:39:05 [2025-03-31 06:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801729', 'tblTempUsageDetail_20' ) start [2025-03-31 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801729', 'tblTempUsageDetail_20' ) end [2025-03-31 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801729', 'tblTempVendorCDR_20' ) start [2025-03-31 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801729', 'tblTempVendorCDR_20' ) end [2025-03-31 06:39:17] Production.INFO: ProcessCDR(1,14801729,1,1,2) [2025-03-31 06:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801729', 'tblTempUsageDetail_20' ) start [2025-03-31 06:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801729', 'tblTempUsageDetail_20' ) end [2025-03-31 06:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 06:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 06:39:21] Production.INFO: ==22925== Releasing lock... [2025-03-31 06:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 06:39:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-31 06:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 03:40:05 [end_date_ymd] => 2025-03-31 06:40:05 [RateCDR] => 1 ) [2025-03-31 06: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-31 03:40:05' and `end` < '2025-03-31 06: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-31 06:40:18] Production.INFO: count ==168 [2025-03-31 06:40:18] Production.ERROR: pbx CDR StartTime 2025-03-31 03:40:05 - End Time 2025-03-31 06:40:05 [2025-03-31 06:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801734', 'tblTempUsageDetail_20' ) start [2025-03-31 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801734', 'tblTempUsageDetail_20' ) end [2025-03-31 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801734', 'tblTempVendorCDR_20' ) start [2025-03-31 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801734', 'tblTempVendorCDR_20' ) end [2025-03-31 06:40:18] Production.INFO: ProcessCDR(1,14801734,1,1,2) [2025-03-31 06:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801734', 'tblTempUsageDetail_20' ) start [2025-03-31 06:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801734', 'tblTempUsageDetail_20' ) end [2025-03-31 06:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 06:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 06:40:22] Production.INFO: ==23003== Releasing lock... [2025-03-31 06:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 06:40:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-31 06:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 03:41:05 [end_date_ymd] => 2025-03-31 06:41:05 [RateCDR] => 1 ) [2025-03-31 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-31 03:41:05' and `end` < '2025-03-31 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-31 06:41:17] Production.INFO: count ==159 [2025-03-31 06:41:17] Production.ERROR: pbx CDR StartTime 2025-03-31 03:41:05 - End Time 2025-03-31 06:41:05 [2025-03-31 06:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801740', 'tblTempUsageDetail_20' ) start [2025-03-31 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801740', 'tblTempUsageDetail_20' ) end [2025-03-31 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801740', 'tblTempVendorCDR_20' ) start [2025-03-31 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801740', 'tblTempVendorCDR_20' ) end [2025-03-31 06:41:17] Production.INFO: ProcessCDR(1,14801740,1,1,2) [2025-03-31 06:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801740', 'tblTempUsageDetail_20' ) start [2025-03-31 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801740', 'tblTempUsageDetail_20' ) end [2025-03-31 06:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 06:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 06:41:21] Production.INFO: ==23083== Releasing lock... [2025-03-31 06:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 06:41:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-31 06:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 03:42:06 [end_date_ymd] => 2025-03-31 06:42:06 [RateCDR] => 1 ) [2025-03-31 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-31 03:42:06' and `end` < '2025-03-31 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-31 06:42:18] Production.INFO: count ==161 [2025-03-31 06:42:18] Production.ERROR: pbx CDR StartTime 2025-03-31 03:42:06 - End Time 2025-03-31 06:42:06 [2025-03-31 06:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801745', 'tblTempUsageDetail_20' ) start [2025-03-31 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801745', 'tblTempUsageDetail_20' ) end [2025-03-31 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801745', 'tblTempVendorCDR_20' ) start [2025-03-31 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801745', 'tblTempVendorCDR_20' ) end [2025-03-31 06:42:18] Production.INFO: ProcessCDR(1,14801745,1,1,2) [2025-03-31 06:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801745', 'tblTempUsageDetail_20' ) start [2025-03-31 06:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801745', 'tblTempUsageDetail_20' ) end [2025-03-31 06:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 06:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 06:42:22] Production.INFO: ==23164== Releasing lock... [2025-03-31 06:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 06:42:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-31 06:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 03:43:05 [end_date_ymd] => 2025-03-31 06:43:05 [RateCDR] => 1 ) [2025-03-31 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-31 03:43:05' and `end` < '2025-03-31 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-31 06:43:18] Production.INFO: count ==161 [2025-03-31 06:43:18] Production.ERROR: pbx CDR StartTime 2025-03-31 03:43:05 - End Time 2025-03-31 06:43:05 [2025-03-31 06:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801750', 'tblTempUsageDetail_20' ) start [2025-03-31 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801750', 'tblTempUsageDetail_20' ) end [2025-03-31 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801750', 'tblTempVendorCDR_20' ) start [2025-03-31 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801750', 'tblTempVendorCDR_20' ) end [2025-03-31 06:43:18] Production.INFO: ProcessCDR(1,14801750,1,1,2) [2025-03-31 06:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801750', 'tblTempUsageDetail_20' ) start [2025-03-31 06:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801750', 'tblTempUsageDetail_20' ) end [2025-03-31 06:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 06:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 06:43:22] Production.INFO: ==23238== Releasing lock... [2025-03-31 06:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 06:43:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-31 06:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 03:44:05 [end_date_ymd] => 2025-03-31 06:44:05 [RateCDR] => 1 ) [2025-03-31 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-31 03:44:05' and `end` < '2025-03-31 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-31 06:44:18] Production.INFO: count ==161 [2025-03-31 06:44:18] Production.ERROR: pbx CDR StartTime 2025-03-31 03:44:05 - End Time 2025-03-31 06:44:05 [2025-03-31 06:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801755', 'tblTempUsageDetail_20' ) start [2025-03-31 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801755', 'tblTempUsageDetail_20' ) end [2025-03-31 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801755', 'tblTempVendorCDR_20' ) start [2025-03-31 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801755', 'tblTempVendorCDR_20' ) end [2025-03-31 06:44:18] Production.INFO: ProcessCDR(1,14801755,1,1,2) [2025-03-31 06:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801755', 'tblTempUsageDetail_20' ) start [2025-03-31 06:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801755', 'tblTempUsageDetail_20' ) end [2025-03-31 06:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 06:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 06:44:21] Production.INFO: ==23325== Releasing lock... [2025-03-31 06:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 06:44:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-31 06:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 03:45:05 [end_date_ymd] => 2025-03-31 06:45:05 [RateCDR] => 1 ) [2025-03-31 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-31 03:45:05' and `end` < '2025-03-31 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-31 06:45:17] Production.INFO: count ==161 [2025-03-31 06:45:17] Production.ERROR: pbx CDR StartTime 2025-03-31 03:45:05 - End Time 2025-03-31 06:45:05 [2025-03-31 06:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801760', 'tblTempUsageDetail_20' ) start [2025-03-31 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801760', 'tblTempUsageDetail_20' ) end [2025-03-31 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801760', 'tblTempVendorCDR_20' ) start [2025-03-31 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801760', 'tblTempVendorCDR_20' ) end [2025-03-31 06:45:17] Production.INFO: ProcessCDR(1,14801760,1,1,2) [2025-03-31 06:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801760', 'tblTempUsageDetail_20' ) start [2025-03-31 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801760', 'tblTempUsageDetail_20' ) end [2025-03-31 06:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 06:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 06:45:21] Production.INFO: ==23404== Releasing lock... [2025-03-31 06:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 06:45:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-31 06:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 03:46:05 [end_date_ymd] => 2025-03-31 06:46:05 [RateCDR] => 1 ) [2025-03-31 06:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 03:46:05' and `end` < '2025-03-31 06:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 06:46:18] Production.INFO: count ==161 [2025-03-31 06:46:18] Production.ERROR: pbx CDR StartTime 2025-03-31 03:46:05 - End Time 2025-03-31 06:46:05 [2025-03-31 06:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801765', 'tblTempUsageDetail_20' ) start [2025-03-31 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801765', 'tblTempUsageDetail_20' ) end [2025-03-31 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801765', 'tblTempVendorCDR_20' ) start [2025-03-31 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801765', 'tblTempVendorCDR_20' ) end [2025-03-31 06:46:18] Production.INFO: ProcessCDR(1,14801765,1,1,2) [2025-03-31 06:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801765', 'tblTempUsageDetail_20' ) start [2025-03-31 06:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801765', 'tblTempUsageDetail_20' ) end [2025-03-31 06:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 06:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 06:46:22] Production.INFO: ==23479== Releasing lock... [2025-03-31 06:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 06:46:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-31 06:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 03:47:05 [end_date_ymd] => 2025-03-31 06:47:05 [RateCDR] => 1 ) [2025-03-31 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-31 03:47:05' and `end` < '2025-03-31 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-31 06:47:17] Production.INFO: count ==161 [2025-03-31 06:47:17] Production.ERROR: pbx CDR StartTime 2025-03-31 03:47:05 - End Time 2025-03-31 06:47:05 [2025-03-31 06:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801770', 'tblTempUsageDetail_20' ) start [2025-03-31 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801770', 'tblTempUsageDetail_20' ) end [2025-03-31 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801770', 'tblTempVendorCDR_20' ) start [2025-03-31 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801770', 'tblTempVendorCDR_20' ) end [2025-03-31 06:47:17] Production.INFO: ProcessCDR(1,14801770,1,1,2) [2025-03-31 06:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801770', 'tblTempUsageDetail_20' ) start [2025-03-31 06:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801770', 'tblTempUsageDetail_20' ) end [2025-03-31 06:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 06:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 06:47:21] Production.INFO: ==23558== Releasing lock... [2025-03-31 06:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 06:47:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-31 06:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 03:48:05 [end_date_ymd] => 2025-03-31 06:48:05 [RateCDR] => 1 ) [2025-03-31 06:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 03:48:05' and `end` < '2025-03-31 06:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 06:48:18] Production.INFO: count ==161 [2025-03-31 06:48:18] Production.ERROR: pbx CDR StartTime 2025-03-31 03:48:05 - End Time 2025-03-31 06:48:05 [2025-03-31 06:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801775', 'tblTempUsageDetail_20' ) start [2025-03-31 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801775', 'tblTempUsageDetail_20' ) end [2025-03-31 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801775', 'tblTempVendorCDR_20' ) start [2025-03-31 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801775', 'tblTempVendorCDR_20' ) end [2025-03-31 06:48:18] Production.INFO: ProcessCDR(1,14801775,1,1,2) [2025-03-31 06:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801775', 'tblTempUsageDetail_20' ) start [2025-03-31 06:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801775', 'tblTempUsageDetail_20' ) end [2025-03-31 06:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 06:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 06:48:21] Production.INFO: ==23683== Releasing lock... [2025-03-31 06:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 06:48:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-31 06:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 03:49:05 [end_date_ymd] => 2025-03-31 06:49:05 [RateCDR] => 1 ) [2025-03-31 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-31 03:49:05' and `end` < '2025-03-31 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-31 06:49:17] Production.INFO: count ==161 [2025-03-31 06:49:17] Production.ERROR: pbx CDR StartTime 2025-03-31 03:49:05 - End Time 2025-03-31 06:49:05 [2025-03-31 06:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801780', 'tblTempUsageDetail_20' ) start [2025-03-31 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801780', 'tblTempUsageDetail_20' ) end [2025-03-31 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801780', 'tblTempVendorCDR_20' ) start [2025-03-31 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801780', 'tblTempVendorCDR_20' ) end [2025-03-31 06:49:17] Production.INFO: ProcessCDR(1,14801780,1,1,2) [2025-03-31 06:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801780', 'tblTempUsageDetail_20' ) start [2025-03-31 06:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801780', 'tblTempUsageDetail_20' ) end [2025-03-31 06:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 06:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 06:49:21] Production.INFO: ==23756== Releasing lock... [2025-03-31 06:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 06:49:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-31 06:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 03:50:06 [end_date_ymd] => 2025-03-31 06:50:06 [RateCDR] => 1 ) [2025-03-31 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-31 03:50:06' and `end` < '2025-03-31 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-31 06:50:19] Production.INFO: count ==153 [2025-03-31 06:50:19] Production.ERROR: pbx CDR StartTime 2025-03-31 03:50:06 - End Time 2025-03-31 06:50:06 [2025-03-31 06:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801786', 'tblTempUsageDetail_20' ) start [2025-03-31 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801786', 'tblTempUsageDetail_20' ) end [2025-03-31 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801786', 'tblTempVendorCDR_20' ) start [2025-03-31 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801786', 'tblTempVendorCDR_20' ) end [2025-03-31 06:50:19] Production.INFO: ProcessCDR(1,14801786,1,1,2) [2025-03-31 06:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801786', 'tblTempUsageDetail_20' ) start [2025-03-31 06:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801786', 'tblTempUsageDetail_20' ) end [2025-03-31 06:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 06:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 06:50:22] Production.INFO: ==23843== Releasing lock... [2025-03-31 06:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 06:50:22] Production.INFO: 29 MB #Memory Used# [2025-03-31 06:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 03:51:05 [end_date_ymd] => 2025-03-31 06:51:05 [RateCDR] => 1 ) [2025-03-31 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-31 03:51:05' and `end` < '2025-03-31 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-31 06:51:17] Production.INFO: count ==153 [2025-03-31 06:51:17] Production.ERROR: pbx CDR StartTime 2025-03-31 03:51:05 - End Time 2025-03-31 06:51:05 [2025-03-31 06:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801791', 'tblTempUsageDetail_20' ) start [2025-03-31 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801791', 'tblTempUsageDetail_20' ) end [2025-03-31 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801791', 'tblTempVendorCDR_20' ) start [2025-03-31 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801791', 'tblTempVendorCDR_20' ) end [2025-03-31 06:51:17] Production.INFO: ProcessCDR(1,14801791,1,1,2) [2025-03-31 06:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801791', 'tblTempUsageDetail_20' ) start [2025-03-31 06:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801791', 'tblTempUsageDetail_20' ) end [2025-03-31 06:51:20] Production.ERROR: pbx prc_insertCDR start [2025-03-31 06:51:20] Production.ERROR: pbx prc_insertCDR end [2025-03-31 06:51:20] Production.INFO: ==23924== Releasing lock... [2025-03-31 06:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 06:51:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-31 06:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 03:52:05 [end_date_ymd] => 2025-03-31 06:52:05 [RateCDR] => 1 ) [2025-03-31 06:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 03:52:05' and `end` < '2025-03-31 06:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 06:52:18] Production.INFO: count ==152 [2025-03-31 06:52:18] Production.ERROR: pbx CDR StartTime 2025-03-31 03:52:05 - End Time 2025-03-31 06:52:05 [2025-03-31 06:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801796', 'tblTempUsageDetail_20' ) start [2025-03-31 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801796', 'tblTempUsageDetail_20' ) end [2025-03-31 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801796', 'tblTempVendorCDR_20' ) start [2025-03-31 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801796', 'tblTempVendorCDR_20' ) end [2025-03-31 06:52:18] Production.INFO: ProcessCDR(1,14801796,1,1,2) [2025-03-31 06:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801796', 'tblTempUsageDetail_20' ) start [2025-03-31 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801796', 'tblTempUsageDetail_20' ) end [2025-03-31 06:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 06:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 06:52:21] Production.INFO: ==24001== Releasing lock... [2025-03-31 06:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 06:52:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-31 06:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 03:53:06 [end_date_ymd] => 2025-03-31 06:53:06 [RateCDR] => 1 ) [2025-03-31 06: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-31 03:53:06' and `end` < '2025-03-31 06: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-31 06:53:19] Production.INFO: count ==154 [2025-03-31 06:53:19] Production.ERROR: pbx CDR StartTime 2025-03-31 03:53:06 - End Time 2025-03-31 06:53:06 [2025-03-31 06:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 06:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801801', 'tblTempUsageDetail_20' ) start [2025-03-31 06:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801801', 'tblTempUsageDetail_20' ) end [2025-03-31 06:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801801', 'tblTempVendorCDR_20' ) start [2025-03-31 06:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801801', 'tblTempVendorCDR_20' ) end [2025-03-31 06:53:19] Production.INFO: ProcessCDR(1,14801801,1,1,2) [2025-03-31 06:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801801', 'tblTempUsageDetail_20' ) start [2025-03-31 06:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801801', 'tblTempUsageDetail_20' ) end [2025-03-31 06:53:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 06:53:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 06:53:23] Production.INFO: ==24078== Releasing lock... [2025-03-31 06:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 06:53:23] Production.INFO: 29 MB #Memory Used# [2025-03-31 06:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 03:54:05 [end_date_ymd] => 2025-03-31 06:54:05 [RateCDR] => 1 ) [2025-03-31 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-31 03:54:05' and `end` < '2025-03-31 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-31 06:54:18] Production.INFO: count ==154 [2025-03-31 06:54:18] Production.ERROR: pbx CDR StartTime 2025-03-31 03:54:05 - End Time 2025-03-31 06:54:05 [2025-03-31 06:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801806', 'tblTempUsageDetail_20' ) start [2025-03-31 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801806', 'tblTempUsageDetail_20' ) end [2025-03-31 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801806', 'tblTempVendorCDR_20' ) start [2025-03-31 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801806', 'tblTempVendorCDR_20' ) end [2025-03-31 06:54:18] Production.INFO: ProcessCDR(1,14801806,1,1,2) [2025-03-31 06:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801806', 'tblTempUsageDetail_20' ) start [2025-03-31 06:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801806', 'tblTempUsageDetail_20' ) end [2025-03-31 06:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 06:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 06:54:21] Production.INFO: ==24156== Releasing lock... [2025-03-31 06:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 06:54:21] Production.INFO: 29 MB #Memory Used# [2025-03-31 06:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 03:55:05 [end_date_ymd] => 2025-03-31 06:55:05 [RateCDR] => 1 ) [2025-03-31 06:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 03:55:05' and `end` < '2025-03-31 06:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 06:55:18] Production.INFO: count ==160 [2025-03-31 06:55:18] Production.ERROR: pbx CDR StartTime 2025-03-31 03:55:05 - End Time 2025-03-31 06:55:05 [2025-03-31 06:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801811', 'tblTempUsageDetail_20' ) start [2025-03-31 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801811', 'tblTempUsageDetail_20' ) end [2025-03-31 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801811', 'tblTempVendorCDR_20' ) start [2025-03-31 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801811', 'tblTempVendorCDR_20' ) end [2025-03-31 06:55:18] Production.INFO: ProcessCDR(1,14801811,1,1,2) [2025-03-31 06:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801811', 'tblTempUsageDetail_20' ) start [2025-03-31 06:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801811', 'tblTempUsageDetail_20' ) end [2025-03-31 06:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 06:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 06:55:22] Production.INFO: ==24238== Releasing lock... [2025-03-31 06:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 06:55:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-31 06:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 03:56:05 [end_date_ymd] => 2025-03-31 06:56:05 [RateCDR] => 1 ) [2025-03-31 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-31 03:56:05' and `end` < '2025-03-31 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-31 06:56:18] Production.INFO: count ==158 [2025-03-31 06:56:18] Production.ERROR: pbx CDR StartTime 2025-03-31 03:56:05 - End Time 2025-03-31 06:56:05 [2025-03-31 06:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801816', 'tblTempUsageDetail_20' ) start [2025-03-31 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801816', 'tblTempUsageDetail_20' ) end [2025-03-31 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801816', 'tblTempVendorCDR_20' ) start [2025-03-31 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801816', 'tblTempVendorCDR_20' ) end [2025-03-31 06:56:18] Production.INFO: ProcessCDR(1,14801816,1,1,2) [2025-03-31 06:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801816', 'tblTempUsageDetail_20' ) start [2025-03-31 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801816', 'tblTempUsageDetail_20' ) end [2025-03-31 06:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 06:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 06:56:21] Production.INFO: ==24318== Releasing lock... [2025-03-31 06:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 06:56:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-31 06:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 03:57:06 [end_date_ymd] => 2025-03-31 06:57:06 [RateCDR] => 1 ) [2025-03-31 06: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-31 03:57:06' and `end` < '2025-03-31 06: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-31 06:57:19] Production.INFO: count ==158 [2025-03-31 06:57:19] Production.ERROR: pbx CDR StartTime 2025-03-31 03:57:06 - End Time 2025-03-31 06:57:06 [2025-03-31 06:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 06:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801821', 'tblTempUsageDetail_20' ) start [2025-03-31 06:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801821', 'tblTempUsageDetail_20' ) end [2025-03-31 06:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801821', 'tblTempVendorCDR_20' ) start [2025-03-31 06:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801821', 'tblTempVendorCDR_20' ) end [2025-03-31 06:57:19] Production.INFO: ProcessCDR(1,14801821,1,1,2) [2025-03-31 06:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801821', 'tblTempUsageDetail_20' ) start [2025-03-31 06:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801821', 'tblTempUsageDetail_20' ) end [2025-03-31 06:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 06:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 06:57:22] Production.INFO: ==24399== Releasing lock... [2025-03-31 06:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 06:57:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-31 06:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 03:58:05 [end_date_ymd] => 2025-03-31 06:58:05 [RateCDR] => 1 ) [2025-03-31 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-31 03:58:05' and `end` < '2025-03-31 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-31 06:58:18] Production.INFO: count ==158 [2025-03-31 06:58:18] Production.ERROR: pbx CDR StartTime 2025-03-31 03:58:05 - End Time 2025-03-31 06:58:05 [2025-03-31 06:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801826', 'tblTempUsageDetail_20' ) start [2025-03-31 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801826', 'tblTempUsageDetail_20' ) end [2025-03-31 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801826', 'tblTempVendorCDR_20' ) start [2025-03-31 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801826', 'tblTempVendorCDR_20' ) end [2025-03-31 06:58:18] Production.INFO: ProcessCDR(1,14801826,1,1,2) [2025-03-31 06:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801826', 'tblTempUsageDetail_20' ) start [2025-03-31 06:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801826', 'tblTempUsageDetail_20' ) end [2025-03-31 06:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 06:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 06:58:21] Production.INFO: ==24477== Releasing lock... [2025-03-31 06:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 06:58:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-31 06:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 03:59:05 [end_date_ymd] => 2025-03-31 06:59:05 [RateCDR] => 1 ) [2025-03-31 06:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 03:59:05' and `end` < '2025-03-31 06:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 06:59:18] Production.INFO: count ==158 [2025-03-31 06:59:18] Production.ERROR: pbx CDR StartTime 2025-03-31 03:59:05 - End Time 2025-03-31 06:59:05 [2025-03-31 06:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801831', 'tblTempUsageDetail_20' ) start [2025-03-31 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801831', 'tblTempUsageDetail_20' ) end [2025-03-31 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801831', 'tblTempVendorCDR_20' ) start [2025-03-31 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801831', 'tblTempVendorCDR_20' ) end [2025-03-31 06:59:18] Production.INFO: ProcessCDR(1,14801831,1,1,2) [2025-03-31 06:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 06:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 06:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801831', 'tblTempUsageDetail_20' ) start [2025-03-31 06:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801831', 'tblTempUsageDetail_20' ) end [2025-03-31 06:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 06:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 06:59:21] Production.INFO: ==24552== Releasing lock... [2025-03-31 06:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 06:59:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-31 07:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 04:00:06 [end_date_ymd] => 2025-03-31 07:00:06 [RateCDR] => 1 ) [2025-03-31 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-31 04:00:06' and `end` < '2025-03-31 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-31 07:00:18] Production.INFO: count ==158 [2025-03-31 07:00:18] Production.ERROR: pbx CDR StartTime 2025-03-31 04:00:06 - End Time 2025-03-31 07:00:06 [2025-03-31 07:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801836', 'tblTempUsageDetail_20' ) start [2025-03-31 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801836', 'tblTempUsageDetail_20' ) end [2025-03-31 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801836', 'tblTempVendorCDR_20' ) start [2025-03-31 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801836', 'tblTempVendorCDR_20' ) end [2025-03-31 07:00:18] Production.INFO: ProcessCDR(1,14801836,1,1,2) [2025-03-31 07:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801836', 'tblTempUsageDetail_20' ) start [2025-03-31 07:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801836', 'tblTempUsageDetail_20' ) end [2025-03-31 07:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 07:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 07:00:22] Production.INFO: ==24632== Releasing lock... [2025-03-31 07:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 07:00:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-31 07:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 04:01:06 [end_date_ymd] => 2025-03-31 07:01:06 [RateCDR] => 1 ) [2025-03-31 07:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 04:01:06' and `end` < '2025-03-31 07:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 07:01:18] Production.INFO: count ==158 [2025-03-31 07:01:18] Production.ERROR: pbx CDR StartTime 2025-03-31 04:01:06 - End Time 2025-03-31 07:01:06 [2025-03-31 07:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801842', 'tblTempUsageDetail_20' ) start [2025-03-31 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801842', 'tblTempUsageDetail_20' ) end [2025-03-31 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801842', 'tblTempVendorCDR_20' ) start [2025-03-31 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801842', 'tblTempVendorCDR_20' ) end [2025-03-31 07:01:18] Production.INFO: ProcessCDR(1,14801842,1,1,2) [2025-03-31 07:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801842', 'tblTempUsageDetail_20' ) start [2025-03-31 07:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801842', 'tblTempUsageDetail_20' ) end [2025-03-31 07:01:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 07:01:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 07:01:22] Production.INFO: ==24804== Releasing lock... [2025-03-31 07:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 07:01:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-31 07:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 04:02:06 [end_date_ymd] => 2025-03-31 07:02:06 [RateCDR] => 1 ) [2025-03-31 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-31 04:02:06' and `end` < '2025-03-31 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-31 07:02:19] Production.INFO: count ==154 [2025-03-31 07:02:19] Production.ERROR: pbx CDR StartTime 2025-03-31 04:02:06 - End Time 2025-03-31 07:02:06 [2025-03-31 07:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801847', 'tblTempUsageDetail_20' ) start [2025-03-31 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801847', 'tblTempUsageDetail_20' ) end [2025-03-31 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801847', 'tblTempVendorCDR_20' ) start [2025-03-31 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801847', 'tblTempVendorCDR_20' ) end [2025-03-31 07:02:19] Production.INFO: ProcessCDR(1,14801847,1,1,2) [2025-03-31 07:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801847', 'tblTempUsageDetail_20' ) start [2025-03-31 07:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801847', 'tblTempUsageDetail_20' ) end [2025-03-31 07:02:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 07:02:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 07:02:23] Production.INFO: ==24883== Releasing lock... [2025-03-31 07:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 07:02:23] Production.INFO: 29 MB #Memory Used# [2025-03-31 07:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 04:03:06 [end_date_ymd] => 2025-03-31 07:03:06 [RateCDR] => 1 ) [2025-03-31 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-31 04:03:06' and `end` < '2025-03-31 07: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-31 07:03:20] Production.INFO: count ==155 [2025-03-31 07:03:20] Production.ERROR: pbx CDR StartTime 2025-03-31 04:03:06 - End Time 2025-03-31 07:03:06 [2025-03-31 07:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 07:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801852', 'tblTempUsageDetail_20' ) start [2025-03-31 07:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801852', 'tblTempUsageDetail_20' ) end [2025-03-31 07:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801852', 'tblTempVendorCDR_20' ) start [2025-03-31 07:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801852', 'tblTempVendorCDR_20' ) end [2025-03-31 07:03:20] Production.INFO: ProcessCDR(1,14801852,1,1,2) [2025-03-31 07:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801852', 'tblTempUsageDetail_20' ) start [2025-03-31 07:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801852', 'tblTempUsageDetail_20' ) end [2025-03-31 07:03:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 07:03:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 07:03:24] Production.INFO: ==24963== Releasing lock... [2025-03-31 07:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 07:03:24] Production.INFO: 29.25 MB #Memory Used# [2025-03-31 07:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 04:04:05 [end_date_ymd] => 2025-03-31 07:04:05 [RateCDR] => 1 ) [2025-03-31 07:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 04:04:05' and `end` < '2025-03-31 07:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 07:04:19] Production.INFO: count ==159 [2025-03-31 07:04:19] Production.ERROR: pbx CDR StartTime 2025-03-31 04:04:05 - End Time 2025-03-31 07:04:05 [2025-03-31 07:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801857', 'tblTempUsageDetail_20' ) start [2025-03-31 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801857', 'tblTempUsageDetail_20' ) end [2025-03-31 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801857', 'tblTempVendorCDR_20' ) start [2025-03-31 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801857', 'tblTempVendorCDR_20' ) end [2025-03-31 07:04:19] Production.INFO: ProcessCDR(1,14801857,1,1,2) [2025-03-31 07:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801857', 'tblTempUsageDetail_20' ) start [2025-03-31 07:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801857', 'tblTempUsageDetail_20' ) end [2025-03-31 07:04:25] Production.ERROR: pbx prc_insertCDR start [2025-03-31 07:04:25] Production.ERROR: pbx prc_insertCDR end [2025-03-31 07:04:25] Production.INFO: ==25079== Releasing lock... [2025-03-31 07:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 07:04:25] Production.INFO: 29.5 MB #Memory Used# [2025-03-31 07:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 04:05:06 [end_date_ymd] => 2025-03-31 07:05:06 [RateCDR] => 1 ) [2025-03-31 07: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-31 04:05:06' and `end` < '2025-03-31 07: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-31 07:05:19] Production.INFO: count ==155 [2025-03-31 07:05:19] Production.ERROR: pbx CDR StartTime 2025-03-31 04:05:06 - End Time 2025-03-31 07:05:06 [2025-03-31 07:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801862', 'tblTempUsageDetail_20' ) start [2025-03-31 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801862', 'tblTempUsageDetail_20' ) end [2025-03-31 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801862', 'tblTempVendorCDR_20' ) start [2025-03-31 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801862', 'tblTempVendorCDR_20' ) end [2025-03-31 07:05:19] Production.INFO: ProcessCDR(1,14801862,1,1,2) [2025-03-31 07:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801862', 'tblTempUsageDetail_20' ) start [2025-03-31 07:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801862', 'tblTempUsageDetail_20' ) end [2025-03-31 07:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 07:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 07:05:22] Production.INFO: ==25234== Releasing lock... [2025-03-31 07:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 07:05:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-31 07:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 04:06:05 [end_date_ymd] => 2025-03-31 07:06:05 [RateCDR] => 1 ) [2025-03-31 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-31 04:06:05' and `end` < '2025-03-31 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-31 07:06:18] Production.INFO: count ==154 [2025-03-31 07:06:18] Production.ERROR: pbx CDR StartTime 2025-03-31 04:06:05 - End Time 2025-03-31 07:06:05 [2025-03-31 07:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801867', 'tblTempUsageDetail_20' ) start [2025-03-31 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801867', 'tblTempUsageDetail_20' ) end [2025-03-31 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801867', 'tblTempVendorCDR_20' ) start [2025-03-31 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801867', 'tblTempVendorCDR_20' ) end [2025-03-31 07:06:18] Production.INFO: ProcessCDR(1,14801867,1,1,2) [2025-03-31 07:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801867', 'tblTempUsageDetail_20' ) start [2025-03-31 07:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801867', 'tblTempUsageDetail_20' ) end [2025-03-31 07:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 07:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 07:06:22] Production.INFO: ==25313== Releasing lock... [2025-03-31 07:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 07:06:22] Production.INFO: 29 MB #Memory Used# [2025-03-31 07:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 04:07:06 [end_date_ymd] => 2025-03-31 07:07:06 [RateCDR] => 1 ) [2025-03-31 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-31 04:07:06' and `end` < '2025-03-31 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-31 07:07:18] Production.INFO: count ==154 [2025-03-31 07:07:18] Production.ERROR: pbx CDR StartTime 2025-03-31 04:07:06 - End Time 2025-03-31 07:07:06 [2025-03-31 07:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801872', 'tblTempUsageDetail_20' ) start [2025-03-31 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801872', 'tblTempUsageDetail_20' ) end [2025-03-31 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801872', 'tblTempVendorCDR_20' ) start [2025-03-31 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801872', 'tblTempVendorCDR_20' ) end [2025-03-31 07:07:18] Production.INFO: ProcessCDR(1,14801872,1,1,2) [2025-03-31 07:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801872', 'tblTempUsageDetail_20' ) start [2025-03-31 07:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801872', 'tblTempUsageDetail_20' ) end [2025-03-31 07:07:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 07:07:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 07:07:22] Production.INFO: ==25391== Releasing lock... [2025-03-31 07:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 07:07:22] Production.INFO: 29 MB #Memory Used# [2025-03-31 07:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 04:08:05 [end_date_ymd] => 2025-03-31 07:08:05 [RateCDR] => 1 ) [2025-03-31 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-31 04:08:05' and `end` < '2025-03-31 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-31 07:08:18] Production.INFO: count ==154 [2025-03-31 07:08:18] Production.ERROR: pbx CDR StartTime 2025-03-31 04:08:05 - End Time 2025-03-31 07:08:05 [2025-03-31 07:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801877', 'tblTempUsageDetail_20' ) start [2025-03-31 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801877', 'tblTempUsageDetail_20' ) end [2025-03-31 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801877', 'tblTempVendorCDR_20' ) start [2025-03-31 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801877', 'tblTempVendorCDR_20' ) end [2025-03-31 07:08:18] Production.INFO: ProcessCDR(1,14801877,1,1,2) [2025-03-31 07:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801877', 'tblTempUsageDetail_20' ) start [2025-03-31 07:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801877', 'tblTempUsageDetail_20' ) end [2025-03-31 07:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 07:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 07:08:21] Production.INFO: ==25544== Releasing lock... [2025-03-31 07:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 07:08:21] Production.INFO: 29 MB #Memory Used# [2025-03-31 07:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 04:09:05 [end_date_ymd] => 2025-03-31 07:09:05 [RateCDR] => 1 ) [2025-03-31 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-31 04:09:05' and `end` < '2025-03-31 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-31 07:09:18] Production.INFO: count ==150 [2025-03-31 07:09:18] Production.ERROR: pbx CDR StartTime 2025-03-31 04:09:05 - End Time 2025-03-31 07:09:05 [2025-03-31 07:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801882', 'tblTempUsageDetail_20' ) start [2025-03-31 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801882', 'tblTempUsageDetail_20' ) end [2025-03-31 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801882', 'tblTempVendorCDR_20' ) start [2025-03-31 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801882', 'tblTempVendorCDR_20' ) end [2025-03-31 07:09:18] Production.INFO: ProcessCDR(1,14801882,1,1,2) [2025-03-31 07:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801882', 'tblTempUsageDetail_20' ) start [2025-03-31 07:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801882', 'tblTempUsageDetail_20' ) end [2025-03-31 07:09:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 07:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 07:09:22] Production.INFO: ==25622== Releasing lock... [2025-03-31 07:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 07:09:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-31 07:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 04:10:06 [end_date_ymd] => 2025-03-31 07:10:06 [RateCDR] => 1 ) [2025-03-31 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-31 04:10:06' and `end` < '2025-03-31 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-31 07:10:19] Production.INFO: count ==150 [2025-03-31 07:10:19] Production.ERROR: pbx CDR StartTime 2025-03-31 04:10:06 - End Time 2025-03-31 07:10:06 [2025-03-31 07:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801888', 'tblTempUsageDetail_20' ) start [2025-03-31 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801888', 'tblTempUsageDetail_20' ) end [2025-03-31 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801888', 'tblTempVendorCDR_20' ) start [2025-03-31 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801888', 'tblTempVendorCDR_20' ) end [2025-03-31 07:10:19] Production.INFO: ProcessCDR(1,14801888,1,1,2) [2025-03-31 07:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801888', 'tblTempUsageDetail_20' ) start [2025-03-31 07:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801888', 'tblTempUsageDetail_20' ) end [2025-03-31 07:10:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 07:10:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 07:10:23] Production.INFO: ==25701== Releasing lock... [2025-03-31 07:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 07:10:23] Production.INFO: 29.5 MB #Memory Used# [2025-03-31 07:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 04:11:05 [end_date_ymd] => 2025-03-31 07:11:05 [RateCDR] => 1 ) [2025-03-31 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-31 04:11:05' and `end` < '2025-03-31 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-31 07:11:18] Production.INFO: count ==152 [2025-03-31 07:11:18] Production.ERROR: pbx CDR StartTime 2025-03-31 04:11:05 - End Time 2025-03-31 07:11:05 [2025-03-31 07:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801893', 'tblTempUsageDetail_20' ) start [2025-03-31 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801893', 'tblTempUsageDetail_20' ) end [2025-03-31 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801893', 'tblTempVendorCDR_20' ) start [2025-03-31 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801893', 'tblTempVendorCDR_20' ) end [2025-03-31 07:11:18] Production.INFO: ProcessCDR(1,14801893,1,1,2) [2025-03-31 07:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801893', 'tblTempUsageDetail_20' ) start [2025-03-31 07:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801893', 'tblTempUsageDetail_20' ) end [2025-03-31 07:11:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 07:11:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 07:11:22] Production.INFO: ==25778== Releasing lock... [2025-03-31 07:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 07:11:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-31 07:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 04:12:06 [end_date_ymd] => 2025-03-31 07:12:06 [RateCDR] => 1 ) [2025-03-31 07: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-31 04:12:06' and `end` < '2025-03-31 07: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-31 07:12:19] Production.INFO: count ==151 [2025-03-31 07:12:19] Production.ERROR: pbx CDR StartTime 2025-03-31 04:12:06 - End Time 2025-03-31 07:12:06 [2025-03-31 07:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801898', 'tblTempUsageDetail_20' ) start [2025-03-31 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801898', 'tblTempUsageDetail_20' ) end [2025-03-31 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801898', 'tblTempVendorCDR_20' ) start [2025-03-31 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801898', 'tblTempVendorCDR_20' ) end [2025-03-31 07:12:19] Production.INFO: ProcessCDR(1,14801898,1,1,2) [2025-03-31 07:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801898', 'tblTempUsageDetail_20' ) start [2025-03-31 07:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801898', 'tblTempUsageDetail_20' ) end [2025-03-31 07:12:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 07:12:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 07:12:22] Production.INFO: ==25931== Releasing lock... [2025-03-31 07:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 07:12:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-31 07:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 04:13:05 [end_date_ymd] => 2025-03-31 07:13:05 [RateCDR] => 1 ) [2025-03-31 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-31 04:13:05' and `end` < '2025-03-31 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-31 07:13:18] Production.INFO: count ==152 [2025-03-31 07:13:18] Production.ERROR: pbx CDR StartTime 2025-03-31 04:13:05 - End Time 2025-03-31 07:13:05 [2025-03-31 07:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801903', 'tblTempUsageDetail_20' ) start [2025-03-31 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801903', 'tblTempUsageDetail_20' ) end [2025-03-31 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801903', 'tblTempVendorCDR_20' ) start [2025-03-31 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801903', 'tblTempVendorCDR_20' ) end [2025-03-31 07:13:18] Production.INFO: ProcessCDR(1,14801903,1,1,2) [2025-03-31 07:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801903', 'tblTempUsageDetail_20' ) start [2025-03-31 07:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801903', 'tblTempUsageDetail_20' ) end [2025-03-31 07:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 07:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 07:13:21] Production.INFO: ==26011== Releasing lock... [2025-03-31 07:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 07:13:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-31 07:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 04:14:05 [end_date_ymd] => 2025-03-31 07:14:05 [RateCDR] => 1 ) [2025-03-31 07:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 04:14:05' and `end` < '2025-03-31 07:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 07:14:18] Production.INFO: count ==152 [2025-03-31 07:14:18] Production.ERROR: pbx CDR StartTime 2025-03-31 04:14:05 - End Time 2025-03-31 07:14:05 [2025-03-31 07:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801908', 'tblTempUsageDetail_20' ) start [2025-03-31 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801908', 'tblTempUsageDetail_20' ) end [2025-03-31 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801908', 'tblTempVendorCDR_20' ) start [2025-03-31 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801908', 'tblTempVendorCDR_20' ) end [2025-03-31 07:14:18] Production.INFO: ProcessCDR(1,14801908,1,1,2) [2025-03-31 07:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801908', 'tblTempUsageDetail_20' ) start [2025-03-31 07:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801908', 'tblTempUsageDetail_20' ) end [2025-03-31 07:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 07:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 07:14:21] Production.INFO: ==26093== Releasing lock... [2025-03-31 07:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 07:14:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-31 07:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 04:15:06 [end_date_ymd] => 2025-03-31 07:15:06 [RateCDR] => 1 ) [2025-03-31 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-31 04:15:06' and `end` < '2025-03-31 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-31 07:15:18] Production.INFO: count ==152 [2025-03-31 07:15:18] Production.ERROR: pbx CDR StartTime 2025-03-31 04:15:06 - End Time 2025-03-31 07:15:06 [2025-03-31 07:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801913', 'tblTempUsageDetail_20' ) start [2025-03-31 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801913', 'tblTempUsageDetail_20' ) end [2025-03-31 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801913', 'tblTempVendorCDR_20' ) start [2025-03-31 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801913', 'tblTempVendorCDR_20' ) end [2025-03-31 07:15:18] Production.INFO: ProcessCDR(1,14801913,1,1,2) [2025-03-31 07:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801913', 'tblTempUsageDetail_20' ) start [2025-03-31 07:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801913', 'tblTempUsageDetail_20' ) end [2025-03-31 07:15:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 07:15:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 07:15:22] Production.INFO: ==26258== Releasing lock... [2025-03-31 07:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 07:15:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-31 07:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 04:16:05 [end_date_ymd] => 2025-03-31 07:16:05 [RateCDR] => 1 ) [2025-03-31 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-31 04:16:05' and `end` < '2025-03-31 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-31 07:16:18] Production.INFO: count ==152 [2025-03-31 07:16:18] Production.ERROR: pbx CDR StartTime 2025-03-31 04:16:05 - End Time 2025-03-31 07:16:05 [2025-03-31 07:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801918', 'tblTempUsageDetail_20' ) start [2025-03-31 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801918', 'tblTempUsageDetail_20' ) end [2025-03-31 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801918', 'tblTempVendorCDR_20' ) start [2025-03-31 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801918', 'tblTempVendorCDR_20' ) end [2025-03-31 07:16:18] Production.INFO: ProcessCDR(1,14801918,1,1,2) [2025-03-31 07:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801918', 'tblTempUsageDetail_20' ) start [2025-03-31 07:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801918', 'tblTempUsageDetail_20' ) end [2025-03-31 07:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 07:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 07:16:21] Production.INFO: ==26332== Releasing lock... [2025-03-31 07:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 07:16:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-31 07:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 04:17:06 [end_date_ymd] => 2025-03-31 07:17:06 [RateCDR] => 1 ) [2025-03-31 07:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 04:17:06' and `end` < '2025-03-31 07: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-31 07:17:19] Production.INFO: count ==152 [2025-03-31 07:17:19] Production.ERROR: pbx CDR StartTime 2025-03-31 04:17:06 - End Time 2025-03-31 07:17:06 [2025-03-31 07:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801923', 'tblTempUsageDetail_20' ) start [2025-03-31 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801923', 'tblTempUsageDetail_20' ) end [2025-03-31 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801923', 'tblTempVendorCDR_20' ) start [2025-03-31 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801923', 'tblTempVendorCDR_20' ) end [2025-03-31 07:17:19] Production.INFO: ProcessCDR(1,14801923,1,1,2) [2025-03-31 07:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801923', 'tblTempUsageDetail_20' ) start [2025-03-31 07:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801923', 'tblTempUsageDetail_20' ) end [2025-03-31 07:17:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 07:17:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 07:17:23] Production.INFO: ==26405== Releasing lock... [2025-03-31 07:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 07:17:23] Production.INFO: 29.5 MB #Memory Used# [2025-03-31 07:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 04:18:05 [end_date_ymd] => 2025-03-31 07:18:05 [RateCDR] => 1 ) [2025-03-31 07:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 04:18:05' and `end` < '2025-03-31 07:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 07:18:18] Production.INFO: count ==152 [2025-03-31 07:18:18] Production.ERROR: pbx CDR StartTime 2025-03-31 04:18:05 - End Time 2025-03-31 07:18:05 [2025-03-31 07:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801928', 'tblTempUsageDetail_20' ) start [2025-03-31 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801928', 'tblTempUsageDetail_20' ) end [2025-03-31 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801928', 'tblTempVendorCDR_20' ) start [2025-03-31 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801928', 'tblTempVendorCDR_20' ) end [2025-03-31 07:18:18] Production.INFO: ProcessCDR(1,14801928,1,1,2) [2025-03-31 07:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801928', 'tblTempUsageDetail_20' ) start [2025-03-31 07:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801928', 'tblTempUsageDetail_20' ) end [2025-03-31 07:18:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 07:18:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 07:18:22] Production.INFO: ==26480== Releasing lock... [2025-03-31 07:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 07:18:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-31 07:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 04:19:06 [end_date_ymd] => 2025-03-31 07:19:06 [RateCDR] => 1 ) [2025-03-31 07:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 04:19:06' and `end` < '2025-03-31 07:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 07:19:19] Production.INFO: count ==152 [2025-03-31 07:19:19] Production.ERROR: pbx CDR StartTime 2025-03-31 04:19:06 - End Time 2025-03-31 07:19:06 [2025-03-31 07:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 07:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801933', 'tblTempUsageDetail_20' ) start [2025-03-31 07:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801933', 'tblTempUsageDetail_20' ) end [2025-03-31 07:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801933', 'tblTempVendorCDR_20' ) start [2025-03-31 07:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801933', 'tblTempVendorCDR_20' ) end [2025-03-31 07:19:19] Production.INFO: ProcessCDR(1,14801933,1,1,2) [2025-03-31 07:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801933', 'tblTempUsageDetail_20' ) start [2025-03-31 07:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801933', 'tblTempUsageDetail_20' ) end [2025-03-31 07:19:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 07:19:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 07:19:23] Production.INFO: ==26596== Releasing lock... [2025-03-31 07:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 07:19:23] Production.INFO: 29.5 MB #Memory Used# [2025-03-31 07:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 04:20:07 [end_date_ymd] => 2025-03-31 07:20:07 [RateCDR] => 1 ) [2025-03-31 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-31 04:20:07' and `end` < '2025-03-31 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-31 07:20:19] Production.INFO: count ==144 [2025-03-31 07:20:19] Production.ERROR: pbx CDR StartTime 2025-03-31 04:20:07 - End Time 2025-03-31 07:20:07 [2025-03-31 07:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801939', 'tblTempUsageDetail_20' ) start [2025-03-31 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801939', 'tblTempUsageDetail_20' ) end [2025-03-31 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801939', 'tblTempVendorCDR_20' ) start [2025-03-31 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801939', 'tblTempVendorCDR_20' ) end [2025-03-31 07:20:19] Production.INFO: ProcessCDR(1,14801939,1,1,2) [2025-03-31 07:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801939', 'tblTempUsageDetail_20' ) start [2025-03-31 07:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801939', 'tblTempUsageDetail_20' ) end [2025-03-31 07:20:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 07:20:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 07:20:23] Production.INFO: ==26670== Releasing lock... [2025-03-31 07:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 07:20:23] Production.INFO: 29.5 MB #Memory Used# [2025-03-31 07:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 04:21:06 [end_date_ymd] => 2025-03-31 07:21:06 [RateCDR] => 1 ) [2025-03-31 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-31 04:21:06' and `end` < '2025-03-31 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-31 07:21:19] Production.INFO: count ==129 [2025-03-31 07:21:19] Production.ERROR: pbx CDR StartTime 2025-03-31 04:21:06 - End Time 2025-03-31 07:21:06 [2025-03-31 07:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 07:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801944', 'tblTempUsageDetail_20' ) start [2025-03-31 07:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801944', 'tblTempUsageDetail_20' ) end [2025-03-31 07:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801944', 'tblTempVendorCDR_20' ) start [2025-03-31 07:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801944', 'tblTempVendorCDR_20' ) end [2025-03-31 07:21:19] Production.INFO: ProcessCDR(1,14801944,1,1,2) [2025-03-31 07:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801944', 'tblTempUsageDetail_20' ) start [2025-03-31 07:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801944', 'tblTempUsageDetail_20' ) end [2025-03-31 07:21:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 07:21:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 07:21:23] Production.INFO: ==26747== Releasing lock... [2025-03-31 07:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 07:21:23] Production.INFO: 29.25 MB #Memory Used# [2025-03-31 07:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 04:22:05 [end_date_ymd] => 2025-03-31 07:22:05 [RateCDR] => 1 ) [2025-03-31 07:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 04:22:05' and `end` < '2025-03-31 07:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 07:22:18] Production.INFO: count ==129 [2025-03-31 07:22:18] Production.ERROR: pbx CDR StartTime 2025-03-31 04:22:05 - End Time 2025-03-31 07:22:05 [2025-03-31 07:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801949', 'tblTempUsageDetail_20' ) start [2025-03-31 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801949', 'tblTempUsageDetail_20' ) end [2025-03-31 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801949', 'tblTempVendorCDR_20' ) start [2025-03-31 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801949', 'tblTempVendorCDR_20' ) end [2025-03-31 07:22:18] Production.INFO: ProcessCDR(1,14801949,1,1,2) [2025-03-31 07:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801949', 'tblTempUsageDetail_20' ) start [2025-03-31 07:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801949', 'tblTempUsageDetail_20' ) end [2025-03-31 07:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 07:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 07:22:22] Production.INFO: ==26822== Releasing lock... [2025-03-31 07:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 07:22:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-31 07:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 04:23:06 [end_date_ymd] => 2025-03-31 07:23:06 [RateCDR] => 1 ) [2025-03-31 07: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-31 04:23:06' and `end` < '2025-03-31 07: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-31 07:23:19] Production.INFO: count ==132 [2025-03-31 07:23:19] Production.ERROR: pbx CDR StartTime 2025-03-31 04:23:06 - End Time 2025-03-31 07:23:06 [2025-03-31 07:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 07:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801954', 'tblTempUsageDetail_20' ) start [2025-03-31 07:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801954', 'tblTempUsageDetail_20' ) end [2025-03-31 07:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801954', 'tblTempVendorCDR_20' ) start [2025-03-31 07:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801954', 'tblTempVendorCDR_20' ) end [2025-03-31 07:23:19] Production.INFO: ProcessCDR(1,14801954,1,1,2) [2025-03-31 07:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801954', 'tblTempUsageDetail_20' ) start [2025-03-31 07:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801954', 'tblTempUsageDetail_20' ) end [2025-03-31 07:23:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 07:23:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 07:23:23] Production.INFO: ==26896== Releasing lock... [2025-03-31 07:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 07:23:23] Production.INFO: 29.25 MB #Memory Used# [2025-03-31 07:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 04:24:05 [end_date_ymd] => 2025-03-31 07:24:05 [RateCDR] => 1 ) [2025-03-31 07: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-31 04:24:05' and `end` < '2025-03-31 07: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-31 07:24:18] Production.INFO: count ==136 [2025-03-31 07:24:18] Production.ERROR: pbx CDR StartTime 2025-03-31 04:24:05 - End Time 2025-03-31 07:24:05 [2025-03-31 07:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801959', 'tblTempUsageDetail_20' ) start [2025-03-31 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801959', 'tblTempUsageDetail_20' ) end [2025-03-31 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801959', 'tblTempVendorCDR_20' ) start [2025-03-31 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801959', 'tblTempVendorCDR_20' ) end [2025-03-31 07:24:18] Production.INFO: ProcessCDR(1,14801959,1,1,2) [2025-03-31 07:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801959', 'tblTempUsageDetail_20' ) start [2025-03-31 07:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801959', 'tblTempUsageDetail_20' ) end [2025-03-31 07:24:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 07:24:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 07:24:24] Production.INFO: ==26967== Releasing lock... [2025-03-31 07:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 07:24:24] Production.INFO: 29.25 MB #Memory Used# [2025-03-31 07:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 04:25:06 [end_date_ymd] => 2025-03-31 07:25:06 [RateCDR] => 1 ) [2025-03-31 07: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-31 04:25:06' and `end` < '2025-03-31 07: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-31 07:25:18] Production.INFO: count ==134 [2025-03-31 07:25:18] Production.ERROR: pbx CDR StartTime 2025-03-31 04:25:06 - End Time 2025-03-31 07:25:06 [2025-03-31 07:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801964', 'tblTempUsageDetail_20' ) start [2025-03-31 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801964', 'tblTempUsageDetail_20' ) end [2025-03-31 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801964', 'tblTempVendorCDR_20' ) start [2025-03-31 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801964', 'tblTempVendorCDR_20' ) end [2025-03-31 07:25:18] Production.INFO: ProcessCDR(1,14801964,1,1,2) [2025-03-31 07:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801964', 'tblTempUsageDetail_20' ) start [2025-03-31 07:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801964', 'tblTempUsageDetail_20' ) end [2025-03-31 07:25:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 07:25:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 07:25:22] Production.INFO: ==27042== Releasing lock... [2025-03-31 07:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 07:25:22] Production.INFO: 29 MB #Memory Used# [2025-03-31 07:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 04:26:05 [end_date_ymd] => 2025-03-31 07:26:05 [RateCDR] => 1 ) [2025-03-31 07:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 04:26:05' and `end` < '2025-03-31 07:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 07:26:18] Production.INFO: count ==135 [2025-03-31 07:26:18] Production.ERROR: pbx CDR StartTime 2025-03-31 04:26:05 - End Time 2025-03-31 07:26:05 [2025-03-31 07:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801969', 'tblTempUsageDetail_20' ) start [2025-03-31 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801969', 'tblTempUsageDetail_20' ) end [2025-03-31 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801969', 'tblTempVendorCDR_20' ) start [2025-03-31 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801969', 'tblTempVendorCDR_20' ) end [2025-03-31 07:26:18] Production.INFO: ProcessCDR(1,14801969,1,1,2) [2025-03-31 07:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801969', 'tblTempUsageDetail_20' ) start [2025-03-31 07:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801969', 'tblTempUsageDetail_20' ) end [2025-03-31 07:26:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 07:26:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 07:26:22] Production.INFO: ==27115== Releasing lock... [2025-03-31 07:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 07:26:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-31 07:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 04:27:06 [end_date_ymd] => 2025-03-31 07:27:06 [RateCDR] => 1 ) [2025-03-31 07: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-31 04:27:06' and `end` < '2025-03-31 07: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-31 07:27:19] Production.INFO: count ==139 [2025-03-31 07:27:19] Production.ERROR: pbx CDR StartTime 2025-03-31 04:27:06 - End Time 2025-03-31 07:27:06 [2025-03-31 07:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 07:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801974', 'tblTempUsageDetail_20' ) start [2025-03-31 07:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801974', 'tblTempUsageDetail_20' ) end [2025-03-31 07:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801974', 'tblTempVendorCDR_20' ) start [2025-03-31 07:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801974', 'tblTempVendorCDR_20' ) end [2025-03-31 07:27:19] Production.INFO: ProcessCDR(1,14801974,1,1,2) [2025-03-31 07:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801974', 'tblTempUsageDetail_20' ) start [2025-03-31 07:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801974', 'tblTempUsageDetail_20' ) end [2025-03-31 07:27:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 07:27:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 07:27:23] Production.INFO: ==27185== Releasing lock... [2025-03-31 07:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 07:27:23] Production.INFO: 29.5 MB #Memory Used# [2025-03-31 07:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 04:28:06 [end_date_ymd] => 2025-03-31 07:28:06 [RateCDR] => 1 ) [2025-03-31 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-31 04:28:06' and `end` < '2025-03-31 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-31 07:28:18] Production.INFO: count ==140 [2025-03-31 07:28:18] Production.ERROR: pbx CDR StartTime 2025-03-31 04:28:06 - End Time 2025-03-31 07:28:06 [2025-03-31 07:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801979', 'tblTempUsageDetail_20' ) start [2025-03-31 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801979', 'tblTempUsageDetail_20' ) end [2025-03-31 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801979', 'tblTempVendorCDR_20' ) start [2025-03-31 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801979', 'tblTempVendorCDR_20' ) end [2025-03-31 07:28:18] Production.INFO: ProcessCDR(1,14801979,1,1,2) [2025-03-31 07:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801979', 'tblTempUsageDetail_20' ) start [2025-03-31 07:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801979', 'tblTempUsageDetail_20' ) end [2025-03-31 07:28:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 07:28:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 07:28:22] Production.INFO: ==27263== Releasing lock... [2025-03-31 07:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 07:28:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-31 07:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 04:29:06 [end_date_ymd] => 2025-03-31 07:29:06 [RateCDR] => 1 ) [2025-03-31 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-31 04:29:06' and `end` < '2025-03-31 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-31 07:29:18] Production.INFO: count ==149 [2025-03-31 07:29:18] Production.ERROR: pbx CDR StartTime 2025-03-31 04:29:06 - End Time 2025-03-31 07:29:06 [2025-03-31 07:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801984', 'tblTempUsageDetail_20' ) start [2025-03-31 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801984', 'tblTempUsageDetail_20' ) end [2025-03-31 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801984', 'tblTempVendorCDR_20' ) start [2025-03-31 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801984', 'tblTempVendorCDR_20' ) end [2025-03-31 07:29:18] Production.INFO: ProcessCDR(1,14801984,1,1,2) [2025-03-31 07:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801984', 'tblTempUsageDetail_20' ) start [2025-03-31 07:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801984', 'tblTempUsageDetail_20' ) end [2025-03-31 07:29:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 07:29:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 07:29:22] Production.INFO: ==27344== Releasing lock... [2025-03-31 07:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 07:29:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-31 07:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 04:30:06 [end_date_ymd] => 2025-03-31 07:30:06 [RateCDR] => 1 ) [2025-03-31 07:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 04:30:06' and `end` < '2025-03-31 07:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 07:30:18] Production.INFO: count ==157 [2025-03-31 07:30:19] Production.ERROR: pbx CDR StartTime 2025-03-31 04:30:06 - End Time 2025-03-31 07:30:06 [2025-03-31 07:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801989', 'tblTempUsageDetail_20' ) start [2025-03-31 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801989', 'tblTempUsageDetail_20' ) end [2025-03-31 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801989', 'tblTempVendorCDR_20' ) start [2025-03-31 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801989', 'tblTempVendorCDR_20' ) end [2025-03-31 07:30:19] Production.INFO: ProcessCDR(1,14801989,1,1,2) [2025-03-31 07:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801989', 'tblTempUsageDetail_20' ) start [2025-03-31 07:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801989', 'tblTempUsageDetail_20' ) end [2025-03-31 07:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 07:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 07:30:23] Production.INFO: ==27417== Releasing lock... [2025-03-31 07:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 07:30:23] Production.INFO: 29.75 MB #Memory Used# [2025-03-31 07:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 04:31:06 [end_date_ymd] => 2025-03-31 07:31:06 [RateCDR] => 1 ) [2025-03-31 07:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 04:31:06' and `end` < '2025-03-31 07:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 07:31:19] Production.INFO: count ==154 [2025-03-31 07:31:19] Production.ERROR: pbx CDR StartTime 2025-03-31 04:31:06 - End Time 2025-03-31 07:31:06 [2025-03-31 07:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 07:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801995', 'tblTempUsageDetail_20' ) start [2025-03-31 07:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14801995', 'tblTempUsageDetail_20' ) end [2025-03-31 07:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801995', 'tblTempVendorCDR_20' ) start [2025-03-31 07:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14801995', 'tblTempVendorCDR_20' ) end [2025-03-31 07:31:19] Production.INFO: ProcessCDR(1,14801995,1,1,2) [2025-03-31 07:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14801995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14801995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14801995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14801995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801995', 'tblTempUsageDetail_20' ) start [2025-03-31 07:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14801995', 'tblTempUsageDetail_20' ) end [2025-03-31 07:31:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 07:31:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 07:31:23] Production.INFO: ==27491== Releasing lock... [2025-03-31 07:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 07:31:23] Production.INFO: 29.25 MB #Memory Used# [2025-03-31 07:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 04:32:06 [end_date_ymd] => 2025-03-31 07:32:06 [RateCDR] => 1 ) [2025-03-31 07:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 04:32:06' and `end` < '2025-03-31 07:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 07:32:18] Production.INFO: count ==157 [2025-03-31 07:32:18] Production.ERROR: pbx CDR StartTime 2025-03-31 04:32:06 - End Time 2025-03-31 07:32:06 [2025-03-31 07:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802000', 'tblTempUsageDetail_20' ) start [2025-03-31 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802000', 'tblTempUsageDetail_20' ) end [2025-03-31 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802000', 'tblTempVendorCDR_20' ) start [2025-03-31 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802000', 'tblTempVendorCDR_20' ) end [2025-03-31 07:32:18] Production.INFO: ProcessCDR(1,14802000,1,1,2) [2025-03-31 07:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802000', 'tblTempUsageDetail_20' ) start [2025-03-31 07:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802000', 'tblTempUsageDetail_20' ) end [2025-03-31 07:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 07:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 07:32:22] Production.INFO: ==27564== Releasing lock... [2025-03-31 07:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 07:32:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-31 07:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 04:33:06 [end_date_ymd] => 2025-03-31 07:33:06 [RateCDR] => 1 ) [2025-03-31 07: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-31 04:33:06' and `end` < '2025-03-31 07: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-31 07:33:19] Production.INFO: count ==157 [2025-03-31 07:33:19] Production.ERROR: pbx CDR StartTime 2025-03-31 04:33:06 - End Time 2025-03-31 07:33:06 [2025-03-31 07:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 07:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802005', 'tblTempUsageDetail_20' ) start [2025-03-31 07:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802005', 'tblTempUsageDetail_20' ) end [2025-03-31 07:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802005', 'tblTempVendorCDR_20' ) start [2025-03-31 07:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802005', 'tblTempVendorCDR_20' ) end [2025-03-31 07:33:19] Production.INFO: ProcessCDR(1,14802005,1,1,2) [2025-03-31 07:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802005', 'tblTempUsageDetail_20' ) start [2025-03-31 07:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802005', 'tblTempUsageDetail_20' ) end [2025-03-31 07:33:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 07:33:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 07:33:23] Production.INFO: ==27642== Releasing lock... [2025-03-31 07:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 07:33:23] Production.INFO: 29.75 MB #Memory Used# [2025-03-31 07:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 04:34:06 [end_date_ymd] => 2025-03-31 07:34:06 [RateCDR] => 1 ) [2025-03-31 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-31 04:34:06' and `end` < '2025-03-31 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-31 07:34:18] Production.INFO: count ==157 [2025-03-31 07:34:18] Production.ERROR: pbx CDR StartTime 2025-03-31 04:34:06 - End Time 2025-03-31 07:34:06 [2025-03-31 07:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802010', 'tblTempUsageDetail_20' ) start [2025-03-31 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802010', 'tblTempUsageDetail_20' ) end [2025-03-31 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802010', 'tblTempVendorCDR_20' ) start [2025-03-31 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802010', 'tblTempVendorCDR_20' ) end [2025-03-31 07:34:18] Production.INFO: ProcessCDR(1,14802010,1,1,2) [2025-03-31 07:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802010', 'tblTempUsageDetail_20' ) start [2025-03-31 07:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802010', 'tblTempUsageDetail_20' ) end [2025-03-31 07:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 07:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 07:34:22] Production.INFO: ==27718== Releasing lock... [2025-03-31 07:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 07:34:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-31 07:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 04:35:06 [end_date_ymd] => 2025-03-31 07:35:06 [RateCDR] => 1 ) [2025-03-31 07: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-31 04:35:06' and `end` < '2025-03-31 07: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-31 07:35:19] Production.INFO: count ==158 [2025-03-31 07:35:19] Production.ERROR: pbx CDR StartTime 2025-03-31 04:35:06 - End Time 2025-03-31 07:35:06 [2025-03-31 07:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 07:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802015', 'tblTempUsageDetail_20' ) start [2025-03-31 07:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802015', 'tblTempUsageDetail_20' ) end [2025-03-31 07:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802015', 'tblTempVendorCDR_20' ) start [2025-03-31 07:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802015', 'tblTempVendorCDR_20' ) end [2025-03-31 07:35:19] Production.INFO: ProcessCDR(1,14802015,1,1,2) [2025-03-31 07:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802015', 'tblTempUsageDetail_20' ) start [2025-03-31 07:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802015', 'tblTempUsageDetail_20' ) end [2025-03-31 07:35:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 07:35:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 07:35:24] Production.INFO: ==27829== Releasing lock... [2025-03-31 07:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 07:35:24] Production.INFO: 29.75 MB #Memory Used# [2025-03-31 07:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 04:36:05 [end_date_ymd] => 2025-03-31 07:36:05 [RateCDR] => 1 ) [2025-03-31 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-31 04:36:05' and `end` < '2025-03-31 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-31 07:36:17] Production.INFO: count ==158 [2025-03-31 07:36:17] Production.ERROR: pbx CDR StartTime 2025-03-31 04:36:05 - End Time 2025-03-31 07:36:05 [2025-03-31 07:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802020', 'tblTempUsageDetail_20' ) start [2025-03-31 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802020', 'tblTempUsageDetail_20' ) end [2025-03-31 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802020', 'tblTempVendorCDR_20' ) start [2025-03-31 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802020', 'tblTempVendorCDR_20' ) end [2025-03-31 07:36:17] Production.INFO: ProcessCDR(1,14802020,1,1,2) [2025-03-31 07:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802020', 'tblTempUsageDetail_20' ) start [2025-03-31 07:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802020', 'tblTempUsageDetail_20' ) end [2025-03-31 07:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 07:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 07:36:21] Production.INFO: ==27899== Releasing lock... [2025-03-31 07:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 07:36:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-31 07:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 04:37:06 [end_date_ymd] => 2025-03-31 07:37:06 [RateCDR] => 1 ) [2025-03-31 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-31 04:37:06' and `end` < '2025-03-31 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-31 07:37:19] Production.INFO: count ==158 [2025-03-31 07:37:19] Production.ERROR: pbx CDR StartTime 2025-03-31 04:37:06 - End Time 2025-03-31 07:37:06 [2025-03-31 07:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 07:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802025', 'tblTempUsageDetail_20' ) start [2025-03-31 07:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802025', 'tblTempUsageDetail_20' ) end [2025-03-31 07:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802025', 'tblTempVendorCDR_20' ) start [2025-03-31 07:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802025', 'tblTempVendorCDR_20' ) end [2025-03-31 07:37:19] Production.INFO: ProcessCDR(1,14802025,1,1,2) [2025-03-31 07:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802025', 'tblTempUsageDetail_20' ) start [2025-03-31 07:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802025', 'tblTempUsageDetail_20' ) end [2025-03-31 07:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 07:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 07:37:22] Production.INFO: ==27974== Releasing lock... [2025-03-31 07:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 07:37:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-31 07:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 04:38:06 [end_date_ymd] => 2025-03-31 07:38:06 [RateCDR] => 1 ) [2025-03-31 07:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 04:38:06' and `end` < '2025-03-31 07:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 07:38:18] Production.INFO: count ==159 [2025-03-31 07:38:18] Production.ERROR: pbx CDR StartTime 2025-03-31 04:38:06 - End Time 2025-03-31 07:38:06 [2025-03-31 07:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802030', 'tblTempUsageDetail_20' ) start [2025-03-31 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802030', 'tblTempUsageDetail_20' ) end [2025-03-31 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802030', 'tblTempVendorCDR_20' ) start [2025-03-31 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802030', 'tblTempVendorCDR_20' ) end [2025-03-31 07:38:18] Production.INFO: ProcessCDR(1,14802030,1,1,2) [2025-03-31 07:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802030', 'tblTempUsageDetail_20' ) start [2025-03-31 07:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802030', 'tblTempUsageDetail_20' ) end [2025-03-31 07:38:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 07:38:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 07:38:23] Production.INFO: ==28050== Releasing lock... [2025-03-31 07:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 07:38:23] Production.INFO: 29.75 MB #Memory Used# [2025-03-31 07:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 04:39:05 [end_date_ymd] => 2025-03-31 07:39:05 [RateCDR] => 1 ) [2025-03-31 07:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 04:39:05' and `end` < '2025-03-31 07:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 07:39:17] Production.INFO: count ==159 [2025-03-31 07:39:17] Production.ERROR: pbx CDR StartTime 2025-03-31 04:39:05 - End Time 2025-03-31 07:39:05 [2025-03-31 07:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802035', 'tblTempUsageDetail_20' ) start [2025-03-31 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802035', 'tblTempUsageDetail_20' ) end [2025-03-31 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802035', 'tblTempVendorCDR_20' ) start [2025-03-31 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802035', 'tblTempVendorCDR_20' ) end [2025-03-31 07:39:17] Production.INFO: ProcessCDR(1,14802035,1,1,2) [2025-03-31 07:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802035', 'tblTempUsageDetail_20' ) start [2025-03-31 07:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802035', 'tblTempUsageDetail_20' ) end [2025-03-31 07:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 07:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 07:39:21] Production.INFO: ==28120== Releasing lock... [2025-03-31 07:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 07:39:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-31 07:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 04:40:06 [end_date_ymd] => 2025-03-31 07:40:06 [RateCDR] => 1 ) [2025-03-31 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-31 04:40:06' and `end` < '2025-03-31 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-31 07:40:19] Production.INFO: count ==170 [2025-03-31 07:40:19] Production.ERROR: pbx CDR StartTime 2025-03-31 04:40:06 - End Time 2025-03-31 07:40:06 [2025-03-31 07:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802041', 'tblTempUsageDetail_20' ) start [2025-03-31 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802041', 'tblTempUsageDetail_20' ) end [2025-03-31 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802041', 'tblTempVendorCDR_20' ) start [2025-03-31 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802041', 'tblTempVendorCDR_20' ) end [2025-03-31 07:40:19] Production.INFO: ProcessCDR(1,14802041,1,1,2) [2025-03-31 07:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802041', 'tblTempUsageDetail_20' ) start [2025-03-31 07:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802041', 'tblTempUsageDetail_20' ) end [2025-03-31 07:40:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 07:40:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 07:40:24] Production.INFO: ==28197== Releasing lock... [2025-03-31 07:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 07:40:24] Production.INFO: 29.75 MB #Memory Used# [2025-03-31 07:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 04:41:06 [end_date_ymd] => 2025-03-31 07:41:06 [RateCDR] => 1 ) [2025-03-31 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-31 04:41:06' and `end` < '2025-03-31 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-31 07:41:18] Production.INFO: count ==174 [2025-03-31 07:41:18] Production.ERROR: pbx CDR StartTime 2025-03-31 04:41:06 - End Time 2025-03-31 07:41:06 [2025-03-31 07:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802046', 'tblTempUsageDetail_20' ) start [2025-03-31 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802046', 'tblTempUsageDetail_20' ) end [2025-03-31 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802046', 'tblTempVendorCDR_20' ) start [2025-03-31 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802046', 'tblTempVendorCDR_20' ) end [2025-03-31 07:41:18] Production.INFO: ProcessCDR(1,14802046,1,1,2) [2025-03-31 07:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802046', 'tblTempUsageDetail_20' ) start [2025-03-31 07:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802046', 'tblTempUsageDetail_20' ) end [2025-03-31 07:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 07:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 07:41:22] Production.INFO: ==28273== Releasing lock... [2025-03-31 07:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 07:41:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-31 07:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 04:42:05 [end_date_ymd] => 2025-03-31 07:42:05 [RateCDR] => 1 ) [2025-03-31 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-31 04:42:05' and `end` < '2025-03-31 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-31 07:42:18] Production.INFO: count ==174 [2025-03-31 07:42:18] Production.ERROR: pbx CDR StartTime 2025-03-31 04:42:05 - End Time 2025-03-31 07:42:05 [2025-03-31 07:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802051', 'tblTempUsageDetail_20' ) start [2025-03-31 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802051', 'tblTempUsageDetail_20' ) end [2025-03-31 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802051', 'tblTempVendorCDR_20' ) start [2025-03-31 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802051', 'tblTempVendorCDR_20' ) end [2025-03-31 07:42:18] Production.INFO: ProcessCDR(1,14802051,1,1,2) [2025-03-31 07:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802051', 'tblTempUsageDetail_20' ) start [2025-03-31 07:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802051', 'tblTempUsageDetail_20' ) end [2025-03-31 07:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 07:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 07:42:21] Production.INFO: ==28354== Releasing lock... [2025-03-31 07:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 07:42:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-31 07:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 04:43:06 [end_date_ymd] => 2025-03-31 07:43:06 [RateCDR] => 1 ) [2025-03-31 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-31 04:43:06' and `end` < '2025-03-31 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-31 07:43:18] Production.INFO: count ==174 [2025-03-31 07:43:19] Production.ERROR: pbx CDR StartTime 2025-03-31 04:43:06 - End Time 2025-03-31 07:43:06 [2025-03-31 07:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 07:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802056', 'tblTempUsageDetail_20' ) start [2025-03-31 07:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802056', 'tblTempUsageDetail_20' ) end [2025-03-31 07:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802056', 'tblTempVendorCDR_20' ) start [2025-03-31 07:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802056', 'tblTempVendorCDR_20' ) end [2025-03-31 07:43:19] Production.INFO: ProcessCDR(1,14802056,1,1,2) [2025-03-31 07:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802056', 'tblTempUsageDetail_20' ) start [2025-03-31 07:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802056', 'tblTempUsageDetail_20' ) end [2025-03-31 07:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 07:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 07:43:22] Production.INFO: ==28425== Releasing lock... [2025-03-31 07:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 07:43:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-31 07:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 04:44:05 [end_date_ymd] => 2025-03-31 07:44:05 [RateCDR] => 1 ) [2025-03-31 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-31 04:44:05' and `end` < '2025-03-31 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-31 07:44:18] Production.INFO: count ==179 [2025-03-31 07:44:18] Production.ERROR: pbx CDR StartTime 2025-03-31 04:44:05 - End Time 2025-03-31 07:44:05 [2025-03-31 07:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802061', 'tblTempUsageDetail_20' ) start [2025-03-31 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802061', 'tblTempUsageDetail_20' ) end [2025-03-31 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802061', 'tblTempVendorCDR_20' ) start [2025-03-31 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802061', 'tblTempVendorCDR_20' ) end [2025-03-31 07:44:18] Production.INFO: ProcessCDR(1,14802061,1,1,2) [2025-03-31 07:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802061', 'tblTempUsageDetail_20' ) start [2025-03-31 07:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802061', 'tblTempUsageDetail_20' ) end [2025-03-31 07:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 07:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 07:44:21] Production.INFO: ==28499== Releasing lock... [2025-03-31 07:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 07:44:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-31 07:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 04:45:05 [end_date_ymd] => 2025-03-31 07:45:05 [RateCDR] => 1 ) [2025-03-31 07:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 04:45:05' and `end` < '2025-03-31 07:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 07:45:18] Production.INFO: count ==179 [2025-03-31 07:45:18] Production.ERROR: pbx CDR StartTime 2025-03-31 04:45:05 - End Time 2025-03-31 07:45:05 [2025-03-31 07:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802066', 'tblTempUsageDetail_20' ) start [2025-03-31 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802066', 'tblTempUsageDetail_20' ) end [2025-03-31 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802066', 'tblTempVendorCDR_20' ) start [2025-03-31 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802066', 'tblTempVendorCDR_20' ) end [2025-03-31 07:45:18] Production.INFO: ProcessCDR(1,14802066,1,1,2) [2025-03-31 07:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802066', 'tblTempUsageDetail_20' ) start [2025-03-31 07:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802066', 'tblTempUsageDetail_20' ) end [2025-03-31 07:45:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 07:45:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 07:45:23] Production.INFO: ==28572== Releasing lock... [2025-03-31 07:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 07:45:23] Production.INFO: 29.5 MB #Memory Used# [2025-03-31 07:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 04:46:05 [end_date_ymd] => 2025-03-31 07:46:05 [RateCDR] => 1 ) [2025-03-31 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-31 04:46:05' and `end` < '2025-03-31 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-31 07:46:18] Production.INFO: count ==179 [2025-03-31 07:46:18] Production.ERROR: pbx CDR StartTime 2025-03-31 04:46:05 - End Time 2025-03-31 07:46:05 [2025-03-31 07:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802071', 'tblTempUsageDetail_20' ) start [2025-03-31 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802071', 'tblTempUsageDetail_20' ) end [2025-03-31 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802071', 'tblTempVendorCDR_20' ) start [2025-03-31 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802071', 'tblTempVendorCDR_20' ) end [2025-03-31 07:46:18] Production.INFO: ProcessCDR(1,14802071,1,1,2) [2025-03-31 07:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802071', 'tblTempUsageDetail_20' ) start [2025-03-31 07:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802071', 'tblTempUsageDetail_20' ) end [2025-03-31 07:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 07:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 07:46:21] Production.INFO: ==28641== Releasing lock... [2025-03-31 07:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 07:46:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-31 07:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 04:47:06 [end_date_ymd] => 2025-03-31 07:47:06 [RateCDR] => 1 ) [2025-03-31 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-31 04:47:06' and `end` < '2025-03-31 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-31 07:47:18] Production.INFO: count ==180 [2025-03-31 07:47:18] Production.ERROR: pbx CDR StartTime 2025-03-31 04:47:06 - End Time 2025-03-31 07:47:06 [2025-03-31 07:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802076', 'tblTempUsageDetail_20' ) start [2025-03-31 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802076', 'tblTempUsageDetail_20' ) end [2025-03-31 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802076', 'tblTempVendorCDR_20' ) start [2025-03-31 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802076', 'tblTempVendorCDR_20' ) end [2025-03-31 07:47:18] Production.INFO: ProcessCDR(1,14802076,1,1,2) [2025-03-31 07:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802076', 'tblTempUsageDetail_20' ) start [2025-03-31 07:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802076', 'tblTempUsageDetail_20' ) end [2025-03-31 07:47:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 07:47:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 07:47:24] Production.INFO: ==28716== Releasing lock... [2025-03-31 07:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 07:47:24] Production.INFO: 29.75 MB #Memory Used# [2025-03-31 07:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 04:48:05 [end_date_ymd] => 2025-03-31 07:48:05 [RateCDR] => 1 ) [2025-03-31 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-31 04:48:05' and `end` < '2025-03-31 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-31 07:48:18] Production.INFO: count ==180 [2025-03-31 07:48:18] Production.ERROR: pbx CDR StartTime 2025-03-31 04:48:05 - End Time 2025-03-31 07:48:05 [2025-03-31 07:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802081', 'tblTempUsageDetail_20' ) start [2025-03-31 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802081', 'tblTempUsageDetail_20' ) end [2025-03-31 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802081', 'tblTempVendorCDR_20' ) start [2025-03-31 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802081', 'tblTempVendorCDR_20' ) end [2025-03-31 07:48:18] Production.INFO: ProcessCDR(1,14802081,1,1,2) [2025-03-31 07:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802081', 'tblTempUsageDetail_20' ) start [2025-03-31 07:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802081', 'tblTempUsageDetail_20' ) end [2025-03-31 07:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 07:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 07:48:21] Production.INFO: ==28789== Releasing lock... [2025-03-31 07:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 07:48:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-31 07:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 04:49:05 [end_date_ymd] => 2025-03-31 07:49:05 [RateCDR] => 1 ) [2025-03-31 07: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-31 04:49:05' and `end` < '2025-03-31 07: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-31 07:49:18] Production.INFO: count ==180 [2025-03-31 07:49:18] Production.ERROR: pbx CDR StartTime 2025-03-31 04:49:05 - End Time 2025-03-31 07:49:05 [2025-03-31 07:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802086', 'tblTempUsageDetail_20' ) start [2025-03-31 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802086', 'tblTempUsageDetail_20' ) end [2025-03-31 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802086', 'tblTempVendorCDR_20' ) start [2025-03-31 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802086', 'tblTempVendorCDR_20' ) end [2025-03-31 07:49:18] Production.INFO: ProcessCDR(1,14802086,1,1,2) [2025-03-31 07:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802086', 'tblTempUsageDetail_20' ) start [2025-03-31 07:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802086', 'tblTempUsageDetail_20' ) end [2025-03-31 07:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 07:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 07:49:21] Production.INFO: ==28861== Releasing lock... [2025-03-31 07:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 07:49:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-31 07:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 04:50:06 [end_date_ymd] => 2025-03-31 07:50:06 [RateCDR] => 1 ) [2025-03-31 07:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 04:50:06' and `end` < '2025-03-31 07:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 07:50:19] Production.INFO: count ==179 [2025-03-31 07:50:19] Production.ERROR: pbx CDR StartTime 2025-03-31 04:50:06 - End Time 2025-03-31 07:50:06 [2025-03-31 07:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802092', 'tblTempUsageDetail_20' ) start [2025-03-31 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802092', 'tblTempUsageDetail_20' ) end [2025-03-31 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802092', 'tblTempVendorCDR_20' ) start [2025-03-31 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802092', 'tblTempVendorCDR_20' ) end [2025-03-31 07:50:19] Production.INFO: ProcessCDR(1,14802092,1,1,2) [2025-03-31 07:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802092', 'tblTempUsageDetail_20' ) start [2025-03-31 07:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802092', 'tblTempUsageDetail_20' ) end [2025-03-31 07:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 07:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 07:50:22] Production.INFO: ==28978== Releasing lock... [2025-03-31 07:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 07:50:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-31 07:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 04:51:05 [end_date_ymd] => 2025-03-31 07:51:05 [RateCDR] => 1 ) [2025-03-31 07:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 04:51:05' and `end` < '2025-03-31 07:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 07:51:18] Production.INFO: count ==178 [2025-03-31 07:51:18] Production.ERROR: pbx CDR StartTime 2025-03-31 04:51:05 - End Time 2025-03-31 07:51:05 [2025-03-31 07:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802097', 'tblTempUsageDetail_20' ) start [2025-03-31 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802097', 'tblTempUsageDetail_20' ) end [2025-03-31 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802097', 'tblTempVendorCDR_20' ) start [2025-03-31 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802097', 'tblTempVendorCDR_20' ) end [2025-03-31 07:51:18] Production.INFO: ProcessCDR(1,14802097,1,1,2) [2025-03-31 07:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802097', 'tblTempUsageDetail_20' ) start [2025-03-31 07:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802097', 'tblTempUsageDetail_20' ) end [2025-03-31 07:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 07:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 07:51:22] Production.INFO: ==29057== Releasing lock... [2025-03-31 07:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 07:51:22] Production.INFO: 30 MB #Memory Used# [2025-03-31 07:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 04:52:05 [end_date_ymd] => 2025-03-31 07:52:05 [RateCDR] => 1 ) [2025-03-31 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-31 04:52:05' and `end` < '2025-03-31 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-31 07:52:17] Production.INFO: count ==174 [2025-03-31 07:52:17] Production.ERROR: pbx CDR StartTime 2025-03-31 04:52:05 - End Time 2025-03-31 07:52:05 [2025-03-31 07:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802102', 'tblTempUsageDetail_20' ) start [2025-03-31 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802102', 'tblTempUsageDetail_20' ) end [2025-03-31 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802102', 'tblTempVendorCDR_20' ) start [2025-03-31 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802102', 'tblTempVendorCDR_20' ) end [2025-03-31 07:52:18] Production.INFO: ProcessCDR(1,14802102,1,1,2) [2025-03-31 07:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802102', 'tblTempUsageDetail_20' ) start [2025-03-31 07:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802102', 'tblTempUsageDetail_20' ) end [2025-03-31 07:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 07:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 07:52:21] Production.INFO: ==29128== Releasing lock... [2025-03-31 07:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 07:52:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-31 07:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 04:53:05 [end_date_ymd] => 2025-03-31 07:53:05 [RateCDR] => 1 ) [2025-03-31 07:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 04:53:05' and `end` < '2025-03-31 07:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 07:53:18] Production.INFO: count ==174 [2025-03-31 07:53:18] Production.ERROR: pbx CDR StartTime 2025-03-31 04:53:05 - End Time 2025-03-31 07:53:05 [2025-03-31 07:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802107', 'tblTempUsageDetail_20' ) start [2025-03-31 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802107', 'tblTempUsageDetail_20' ) end [2025-03-31 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802107', 'tblTempVendorCDR_20' ) start [2025-03-31 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802107', 'tblTempVendorCDR_20' ) end [2025-03-31 07:53:18] Production.INFO: ProcessCDR(1,14802107,1,1,2) [2025-03-31 07:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802107', 'tblTempUsageDetail_20' ) start [2025-03-31 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802107', 'tblTempUsageDetail_20' ) end [2025-03-31 07:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 07:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 07:53:21] Production.INFO: ==29209== Releasing lock... [2025-03-31 07:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 07:53:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-31 07:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 04:54:05 [end_date_ymd] => 2025-03-31 07:54:05 [RateCDR] => 1 ) [2025-03-31 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-31 04:54:05' and `end` < '2025-03-31 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-31 07:54:18] Production.INFO: count ==175 [2025-03-31 07:54:18] Production.ERROR: pbx CDR StartTime 2025-03-31 04:54:05 - End Time 2025-03-31 07:54:05 [2025-03-31 07:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802112', 'tblTempUsageDetail_20' ) start [2025-03-31 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802112', 'tblTempUsageDetail_20' ) end [2025-03-31 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802112', 'tblTempVendorCDR_20' ) start [2025-03-31 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802112', 'tblTempVendorCDR_20' ) end [2025-03-31 07:54:18] Production.INFO: ProcessCDR(1,14802112,1,1,2) [2025-03-31 07:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802112', 'tblTempUsageDetail_20' ) start [2025-03-31 07:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802112', 'tblTempUsageDetail_20' ) end [2025-03-31 07:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 07:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 07:54:21] Production.INFO: ==29280== Releasing lock... [2025-03-31 07:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 07:54:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-31 07:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 04:55:06 [end_date_ymd] => 2025-03-31 07:55:06 [RateCDR] => 1 ) [2025-03-31 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-31 04:55:06' and `end` < '2025-03-31 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-31 07:55:18] Production.INFO: count ==178 [2025-03-31 07:55:18] Production.ERROR: pbx CDR StartTime 2025-03-31 04:55:06 - End Time 2025-03-31 07:55:06 [2025-03-31 07:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802117', 'tblTempUsageDetail_20' ) start [2025-03-31 07:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802117', 'tblTempUsageDetail_20' ) end [2025-03-31 07:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802117', 'tblTempVendorCDR_20' ) start [2025-03-31 07:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802117', 'tblTempVendorCDR_20' ) end [2025-03-31 07:55:19] Production.INFO: ProcessCDR(1,14802117,1,1,2) [2025-03-31 07:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802117', 'tblTempUsageDetail_20' ) start [2025-03-31 07:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802117', 'tblTempUsageDetail_20' ) end [2025-03-31 07:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 07:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 07:55:22] Production.INFO: ==29354== Releasing lock... [2025-03-31 07:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 07:55:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-31 07:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 04:56:05 [end_date_ymd] => 2025-03-31 07:56:05 [RateCDR] => 1 ) [2025-03-31 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-31 04:56:05' and `end` < '2025-03-31 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-31 07:56:17] Production.INFO: count ==174 [2025-03-31 07:56:17] Production.ERROR: pbx CDR StartTime 2025-03-31 04:56:05 - End Time 2025-03-31 07:56:05 [2025-03-31 07:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802122', 'tblTempUsageDetail_20' ) start [2025-03-31 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802122', 'tblTempUsageDetail_20' ) end [2025-03-31 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802122', 'tblTempVendorCDR_20' ) start [2025-03-31 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802122', 'tblTempVendorCDR_20' ) end [2025-03-31 07:56:17] Production.INFO: ProcessCDR(1,14802122,1,1,2) [2025-03-31 07:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802122', 'tblTempUsageDetail_20' ) start [2025-03-31 07:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802122', 'tblTempUsageDetail_20' ) end [2025-03-31 07:56:20] Production.ERROR: pbx prc_insertCDR start [2025-03-31 07:56:20] Production.ERROR: pbx prc_insertCDR end [2025-03-31 07:56:20] Production.INFO: ==29430== Releasing lock... [2025-03-31 07:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 07:56:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-31 07:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 04:57:05 [end_date_ymd] => 2025-03-31 07:57:05 [RateCDR] => 1 ) [2025-03-31 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-31 04:57:05' and `end` < '2025-03-31 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-31 07:57:18] Production.INFO: count ==174 [2025-03-31 07:57:18] Production.ERROR: pbx CDR StartTime 2025-03-31 04:57:05 - End Time 2025-03-31 07:57:05 [2025-03-31 07:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802127', 'tblTempUsageDetail_20' ) start [2025-03-31 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802127', 'tblTempUsageDetail_20' ) end [2025-03-31 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802127', 'tblTempVendorCDR_20' ) start [2025-03-31 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802127', 'tblTempVendorCDR_20' ) end [2025-03-31 07:57:18] Production.INFO: ProcessCDR(1,14802127,1,1,2) [2025-03-31 07:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802127', 'tblTempUsageDetail_20' ) start [2025-03-31 07:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802127', 'tblTempUsageDetail_20' ) end [2025-03-31 07:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 07:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 07:57:21] Production.INFO: ==29505== Releasing lock... [2025-03-31 07:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 07:57:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-31 07:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 04:58:06 [end_date_ymd] => 2025-03-31 07:58:06 [RateCDR] => 1 ) [2025-03-31 07: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-31 04:58:06' and `end` < '2025-03-31 07: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-31 07:58:18] Production.INFO: count ==178 [2025-03-31 07:58:18] Production.ERROR: pbx CDR StartTime 2025-03-31 04:58:06 - End Time 2025-03-31 07:58:06 [2025-03-31 07:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802132', 'tblTempUsageDetail_20' ) start [2025-03-31 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802132', 'tblTempUsageDetail_20' ) end [2025-03-31 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802132', 'tblTempVendorCDR_20' ) start [2025-03-31 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802132', 'tblTempVendorCDR_20' ) end [2025-03-31 07:58:18] Production.INFO: ProcessCDR(1,14802132,1,1,2) [2025-03-31 07:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802132', 'tblTempUsageDetail_20' ) start [2025-03-31 07:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802132', 'tblTempUsageDetail_20' ) end [2025-03-31 07:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 07:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 07:58:22] Production.INFO: ==29579== Releasing lock... [2025-03-31 07:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 07:58:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-31 07:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 04:59:06 [end_date_ymd] => 2025-03-31 07:59:06 [RateCDR] => 1 ) [2025-03-31 07: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-31 04:59:06' and `end` < '2025-03-31 07: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-31 07:59:18] Production.INFO: count ==179 [2025-03-31 07:59:18] Production.ERROR: pbx CDR StartTime 2025-03-31 04:59:06 - End Time 2025-03-31 07:59:06 [2025-03-31 07:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802137', 'tblTempUsageDetail_20' ) start [2025-03-31 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802137', 'tblTempUsageDetail_20' ) end [2025-03-31 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802137', 'tblTempVendorCDR_20' ) start [2025-03-31 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802137', 'tblTempVendorCDR_20' ) end [2025-03-31 07:59:18] Production.INFO: ProcessCDR(1,14802137,1,1,2) [2025-03-31 07:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 07:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 07:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802137', 'tblTempUsageDetail_20' ) start [2025-03-31 07:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802137', 'tblTempUsageDetail_20' ) end [2025-03-31 07:59:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 07:59:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 07:59:24] Production.INFO: ==29652== Releasing lock... [2025-03-31 07:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 07:59:24] Production.INFO: 29.25 MB #Memory Used# [2025-03-31 08:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 05:00:06 [end_date_ymd] => 2025-03-31 08:00:06 [RateCDR] => 1 ) [2025-03-31 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-31 05:00:06' and `end` < '2025-03-31 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-31 08:00:19] Production.INFO: count ==187 [2025-03-31 08:00:19] Production.ERROR: pbx CDR StartTime 2025-03-31 05:00:06 - End Time 2025-03-31 08:00:06 [2025-03-31 08:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802143', 'tblTempUsageDetail_20' ) start [2025-03-31 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802143', 'tblTempUsageDetail_20' ) end [2025-03-31 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802143', 'tblTempVendorCDR_20' ) start [2025-03-31 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802143', 'tblTempVendorCDR_20' ) end [2025-03-31 08:00:19] Production.INFO: ProcessCDR(1,14802143,1,1,2) [2025-03-31 08:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802143', 'tblTempUsageDetail_20' ) start [2025-03-31 08:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802143', 'tblTempUsageDetail_20' ) end [2025-03-31 08:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 08:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 08:00:23] Production.INFO: ==29729== Releasing lock... [2025-03-31 08:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 08:00:23] Production.INFO: 29.75 MB #Memory Used# [2025-03-31 08:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 05:01:05 [end_date_ymd] => 2025-03-31 08:01:05 [RateCDR] => 1 ) [2025-03-31 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-31 05:01:05' and `end` < '2025-03-31 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-31 08:01:18] Production.INFO: count ==187 [2025-03-31 08:01:18] Production.ERROR: pbx CDR StartTime 2025-03-31 05:01:05 - End Time 2025-03-31 08:01:05 [2025-03-31 08:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802148', 'tblTempUsageDetail_20' ) start [2025-03-31 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802148', 'tblTempUsageDetail_20' ) end [2025-03-31 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802148', 'tblTempVendorCDR_20' ) start [2025-03-31 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802148', 'tblTempVendorCDR_20' ) end [2025-03-31 08:01:18] Production.INFO: ProcessCDR(1,14802148,1,1,2) [2025-03-31 08:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802148', 'tblTempUsageDetail_20' ) start [2025-03-31 08:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802148', 'tblTempUsageDetail_20' ) end [2025-03-31 08:01:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 08:01:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 08:01:22] Production.INFO: ==29814== Releasing lock... [2025-03-31 08:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 08:01:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-31 08:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 05:02:06 [end_date_ymd] => 2025-03-31 08:02:06 [RateCDR] => 1 ) [2025-03-31 08: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-31 05:02:06' and `end` < '2025-03-31 08: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-31 08:02:18] Production.INFO: count ==188 [2025-03-31 08:02:18] Production.ERROR: pbx CDR StartTime 2025-03-31 05:02:06 - End Time 2025-03-31 08:02:06 [2025-03-31 08:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802153', 'tblTempUsageDetail_20' ) start [2025-03-31 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802153', 'tblTempUsageDetail_20' ) end [2025-03-31 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802153', 'tblTempVendorCDR_20' ) start [2025-03-31 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802153', 'tblTempVendorCDR_20' ) end [2025-03-31 08:02:18] Production.INFO: ProcessCDR(1,14802153,1,1,2) [2025-03-31 08:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802153', 'tblTempUsageDetail_20' ) start [2025-03-31 08:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802153', 'tblTempUsageDetail_20' ) end [2025-03-31 08:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 08:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 08:02:22] Production.INFO: ==29887== Releasing lock... [2025-03-31 08:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 08:02:22] Production.INFO: 30 MB #Memory Used# [2025-03-31 08:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 05:03:05 [end_date_ymd] => 2025-03-31 08:03:05 [RateCDR] => 1 ) [2025-03-31 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-31 05:03:05' and `end` < '2025-03-31 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-31 08:03:17] Production.INFO: count ==193 [2025-03-31 08:03:17] Production.ERROR: pbx CDR StartTime 2025-03-31 05:03:05 - End Time 2025-03-31 08:03:05 [2025-03-31 08:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802158', 'tblTempUsageDetail_20' ) start [2025-03-31 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802158', 'tblTempUsageDetail_20' ) end [2025-03-31 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802158', 'tblTempVendorCDR_20' ) start [2025-03-31 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802158', 'tblTempVendorCDR_20' ) end [2025-03-31 08:03:17] Production.INFO: ProcessCDR(1,14802158,1,1,2) [2025-03-31 08:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802158', 'tblTempUsageDetail_20' ) start [2025-03-31 08:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802158', 'tblTempUsageDetail_20' ) end [2025-03-31 08:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 08:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 08:03:21] Production.INFO: ==29962== Releasing lock... [2025-03-31 08:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 08:03:21] Production.INFO: 30 MB #Memory Used# [2025-03-31 08:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 05:04:06 [end_date_ymd] => 2025-03-31 08:04:06 [RateCDR] => 1 ) [2025-03-31 08:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 05:04:06' and `end` < '2025-03-31 08:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 08:04:18] Production.INFO: count ==193 [2025-03-31 08:04:18] Production.ERROR: pbx CDR StartTime 2025-03-31 05:04:06 - End Time 2025-03-31 08:04:06 [2025-03-31 08:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802163', 'tblTempUsageDetail_20' ) start [2025-03-31 08:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802163', 'tblTempUsageDetail_20' ) end [2025-03-31 08:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802163', 'tblTempVendorCDR_20' ) start [2025-03-31 08:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802163', 'tblTempVendorCDR_20' ) end [2025-03-31 08:04:19] Production.INFO: ProcessCDR(1,14802163,1,1,2) [2025-03-31 08:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802163', 'tblTempUsageDetail_20' ) start [2025-03-31 08:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802163', 'tblTempUsageDetail_20' ) end [2025-03-31 08:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 08:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 08:04:22] Production.INFO: ==30033== Releasing lock... [2025-03-31 08:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 08:04:22] Production.INFO: 30 MB #Memory Used# [2025-03-31 08:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 05:05:06 [end_date_ymd] => 2025-03-31 08:05:06 [RateCDR] => 1 ) [2025-03-31 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-31 05:05:06' and `end` < '2025-03-31 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-31 08:05:18] Production.INFO: count ==195 [2025-03-31 08:05:18] Production.ERROR: pbx CDR StartTime 2025-03-31 05:05:06 - End Time 2025-03-31 08:05:06 [2025-03-31 08:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802168', 'tblTempUsageDetail_20' ) start [2025-03-31 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802168', 'tblTempUsageDetail_20' ) end [2025-03-31 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802168', 'tblTempVendorCDR_20' ) start [2025-03-31 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802168', 'tblTempVendorCDR_20' ) end [2025-03-31 08:05:18] Production.INFO: ProcessCDR(1,14802168,1,1,2) [2025-03-31 08:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802168', 'tblTempUsageDetail_20' ) start [2025-03-31 08:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802168', 'tblTempUsageDetail_20' ) end [2025-03-31 08:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 08:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 08:05:22] Production.INFO: ==30107== Releasing lock... [2025-03-31 08:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 08:05:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-31 08:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 05:06:05 [end_date_ymd] => 2025-03-31 08:06:05 [RateCDR] => 1 ) [2025-03-31 08:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 05:06:05' and `end` < '2025-03-31 08:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 08:06:18] Production.INFO: count ==198 [2025-03-31 08:06:18] Production.ERROR: pbx CDR StartTime 2025-03-31 05:06:05 - End Time 2025-03-31 08:06:05 [2025-03-31 08:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802170', 'tblTempUsageDetail_20' ) start [2025-03-31 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802170', 'tblTempUsageDetail_20' ) end [2025-03-31 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802170', 'tblTempVendorCDR_20' ) start [2025-03-31 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802170', 'tblTempVendorCDR_20' ) end [2025-03-31 08:06:18] Production.INFO: ProcessCDR(1,14802170,1,1,2) [2025-03-31 08:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802170', 'tblTempUsageDetail_20' ) start [2025-03-31 08:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802170', 'tblTempUsageDetail_20' ) end [2025-03-31 08:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 08:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 08:06:21] Production.INFO: ==30222== Releasing lock... [2025-03-31 08:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 08:06:21] Production.INFO: 30 MB #Memory Used# [2025-03-31 08:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 05:07:05 [end_date_ymd] => 2025-03-31 08:07:05 [RateCDR] => 1 ) [2025-03-31 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-31 05:07:05' and `end` < '2025-03-31 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-31 08:07:18] Production.INFO: count ==198 [2025-03-31 08:07:18] Production.ERROR: pbx CDR StartTime 2025-03-31 05:07:05 - End Time 2025-03-31 08:07:05 [2025-03-31 08:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802178', 'tblTempUsageDetail_20' ) start [2025-03-31 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802178', 'tblTempUsageDetail_20' ) end [2025-03-31 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802178', 'tblTempVendorCDR_20' ) start [2025-03-31 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802178', 'tblTempVendorCDR_20' ) end [2025-03-31 08:07:18] Production.INFO: ProcessCDR(1,14802178,1,1,2) [2025-03-31 08:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802178', 'tblTempUsageDetail_20' ) start [2025-03-31 08:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802178', 'tblTempUsageDetail_20' ) end [2025-03-31 08:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 08:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 08:07:21] Production.INFO: ==30294== Releasing lock... [2025-03-31 08:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 08:07:21] Production.INFO: 30 MB #Memory Used# [2025-03-31 08:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 05:08:05 [end_date_ymd] => 2025-03-31 08:08:05 [RateCDR] => 1 ) [2025-03-31 08:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 05:08:05' and `end` < '2025-03-31 08:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 08:08:18] Production.INFO: count ==198 [2025-03-31 08:08:18] Production.ERROR: pbx CDR StartTime 2025-03-31 05:08:05 - End Time 2025-03-31 08:08:05 [2025-03-31 08:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802183', 'tblTempUsageDetail_20' ) start [2025-03-31 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802183', 'tblTempUsageDetail_20' ) end [2025-03-31 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802183', 'tblTempVendorCDR_20' ) start [2025-03-31 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802183', 'tblTempVendorCDR_20' ) end [2025-03-31 08:08:18] Production.INFO: ProcessCDR(1,14802183,1,1,2) [2025-03-31 08:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802183', 'tblTempUsageDetail_20' ) start [2025-03-31 08:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802183', 'tblTempUsageDetail_20' ) end [2025-03-31 08:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 08:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 08:08:21] Production.INFO: ==30367== Releasing lock... [2025-03-31 08:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 08:08:21] Production.INFO: 30 MB #Memory Used# [2025-03-31 08:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 05:09:05 [end_date_ymd] => 2025-03-31 08:09:05 [RateCDR] => 1 ) [2025-03-31 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-31 05:09:05' and `end` < '2025-03-31 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-31 08:09:17] Production.INFO: count ==202 [2025-03-31 08:09:17] Production.ERROR: pbx CDR StartTime 2025-03-31 05:09:05 - End Time 2025-03-31 08:09:05 [2025-03-31 08:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802188', 'tblTempUsageDetail_20' ) start [2025-03-31 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802188', 'tblTempUsageDetail_20' ) end [2025-03-31 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802188', 'tblTempVendorCDR_20' ) start [2025-03-31 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802188', 'tblTempVendorCDR_20' ) end [2025-03-31 08:09:17] Production.INFO: ProcessCDR(1,14802188,1,1,2) [2025-03-31 08:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802188', 'tblTempUsageDetail_20' ) start [2025-03-31 08:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802188', 'tblTempUsageDetail_20' ) end [2025-03-31 08:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 08:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 08:09:21] Production.INFO: ==30446== Releasing lock... [2025-03-31 08:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 08:09:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-31 08:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 05:10:06 [end_date_ymd] => 2025-03-31 08:10:06 [RateCDR] => 1 ) [2025-03-31 08:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 05:10:06' and `end` < '2025-03-31 08:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 08:10:19] Production.INFO: count ==223 [2025-03-31 08:10:19] Production.ERROR: pbx CDR StartTime 2025-03-31 05:10:06 - End Time 2025-03-31 08:10:06 [2025-03-31 08:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802193', 'tblTempUsageDetail_20' ) start [2025-03-31 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802193', 'tblTempUsageDetail_20' ) end [2025-03-31 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802193', 'tblTempVendorCDR_20' ) start [2025-03-31 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802193', 'tblTempVendorCDR_20' ) end [2025-03-31 08:10:19] Production.INFO: ProcessCDR(1,14802193,1,1,2) [2025-03-31 08:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802193', 'tblTempUsageDetail_20' ) start [2025-03-31 08:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802193', 'tblTempUsageDetail_20' ) end [2025-03-31 08:10:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 08:10:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 08:10:24] Production.INFO: ==30522== Releasing lock... [2025-03-31 08:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 08:10:24] Production.INFO: 30 MB #Memory Used# [2025-03-31 08:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 05:11:05 [end_date_ymd] => 2025-03-31 08:11:05 [RateCDR] => 1 ) [2025-03-31 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-31 05:11:05' and `end` < '2025-03-31 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-31 08:11:18] Production.INFO: count ==257 [2025-03-31 08:11:18] Production.ERROR: pbx CDR StartTime 2025-03-31 05:11:05 - End Time 2025-03-31 08:11:05 [2025-03-31 08:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802199', 'tblTempUsageDetail_20' ) start [2025-03-31 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802199', 'tblTempUsageDetail_20' ) end [2025-03-31 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802199', 'tblTempVendorCDR_20' ) start [2025-03-31 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802199', 'tblTempVendorCDR_20' ) end [2025-03-31 08:11:18] Production.INFO: ProcessCDR(1,14802199,1,1,2) [2025-03-31 08:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802199', 'tblTempUsageDetail_20' ) start [2025-03-31 08:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802199', 'tblTempUsageDetail_20' ) end [2025-03-31 08:11:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 08:11:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 08:11:23] Production.INFO: ==30596== Releasing lock... [2025-03-31 08:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 08:11:23] Production.INFO: 30.25 MB #Memory Used# [2025-03-31 08:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 05:12:06 [end_date_ymd] => 2025-03-31 08:12:06 [RateCDR] => 1 ) [2025-03-31 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-31 05:12:06' and `end` < '2025-03-31 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-31 08:12:19] Production.INFO: count ==259 [2025-03-31 08:12:19] Production.ERROR: pbx CDR StartTime 2025-03-31 05:12:06 - End Time 2025-03-31 08:12:06 [2025-03-31 08:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 08:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802204', 'tblTempUsageDetail_20' ) start [2025-03-31 08:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802204', 'tblTempUsageDetail_20' ) end [2025-03-31 08:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802204', 'tblTempVendorCDR_20' ) start [2025-03-31 08:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802204', 'tblTempVendorCDR_20' ) end [2025-03-31 08:12:19] Production.INFO: ProcessCDR(1,14802204,1,1,2) [2025-03-31 08:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802204', 'tblTempUsageDetail_20' ) start [2025-03-31 08:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802204', 'tblTempUsageDetail_20' ) end [2025-03-31 08:12:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 08:12:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 08:12:24] Production.INFO: ==30677== Releasing lock... [2025-03-31 08:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 08:12:24] Production.INFO: 30.25 MB #Memory Used# [2025-03-31 08:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 05:13:05 [end_date_ymd] => 2025-03-31 08:13:05 [RateCDR] => 1 ) [2025-03-31 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-31 05:13:05' and `end` < '2025-03-31 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-31 08:13:17] Production.INFO: count ==260 [2025-03-31 08:13:17] Production.ERROR: pbx CDR StartTime 2025-03-31 05:13:05 - End Time 2025-03-31 08:13:05 [2025-03-31 08:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802209', 'tblTempUsageDetail_20' ) start [2025-03-31 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802209', 'tblTempUsageDetail_20' ) end [2025-03-31 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802209', 'tblTempVendorCDR_20' ) start [2025-03-31 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802209', 'tblTempVendorCDR_20' ) end [2025-03-31 08:13:17] Production.INFO: ProcessCDR(1,14802209,1,1,2) [2025-03-31 08:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802209', 'tblTempUsageDetail_20' ) start [2025-03-31 08:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802209', 'tblTempUsageDetail_20' ) end [2025-03-31 08:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 08:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 08:13:21] Production.INFO: ==30750== Releasing lock... [2025-03-31 08:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 08:13:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-31 08:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 05:14:05 [end_date_ymd] => 2025-03-31 08:14:05 [RateCDR] => 1 ) [2025-03-31 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-31 05:14:05' and `end` < '2025-03-31 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-31 08:14:18] Production.INFO: count ==264 [2025-03-31 08:14:18] Production.ERROR: pbx CDR StartTime 2025-03-31 05:14:05 - End Time 2025-03-31 08:14:05 [2025-03-31 08:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802214', 'tblTempUsageDetail_20' ) start [2025-03-31 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802214', 'tblTempUsageDetail_20' ) end [2025-03-31 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802214', 'tblTempVendorCDR_20' ) start [2025-03-31 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802214', 'tblTempVendorCDR_20' ) end [2025-03-31 08:14:18] Production.INFO: ProcessCDR(1,14802214,1,1,2) [2025-03-31 08:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802214', 'tblTempUsageDetail_20' ) start [2025-03-31 08:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802214', 'tblTempUsageDetail_20' ) end [2025-03-31 08:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 08:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 08:14:21] Production.INFO: ==30821== Releasing lock... [2025-03-31 08:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 08:14:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-31 08:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 05:15:05 [end_date_ymd] => 2025-03-31 08:15:05 [RateCDR] => 1 ) [2025-03-31 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-31 05:15:05' and `end` < '2025-03-31 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-31 08:15:17] Production.INFO: count ==271 [2025-03-31 08:15:17] Production.ERROR: pbx CDR StartTime 2025-03-31 05:15:05 - End Time 2025-03-31 08:15:05 [2025-03-31 08:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802219', 'tblTempUsageDetail_20' ) start [2025-03-31 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802219', 'tblTempUsageDetail_20' ) end [2025-03-31 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802219', 'tblTempVendorCDR_20' ) start [2025-03-31 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802219', 'tblTempVendorCDR_20' ) end [2025-03-31 08:15:17] Production.INFO: ProcessCDR(1,14802219,1,1,2) [2025-03-31 08:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802219', 'tblTempUsageDetail_20' ) start [2025-03-31 08:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802219', 'tblTempUsageDetail_20' ) end [2025-03-31 08:15:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 08:15:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 08:15:22] Production.INFO: ==30895== Releasing lock... [2025-03-31 08:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 08:15:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-31 08:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 05:16:05 [end_date_ymd] => 2025-03-31 08:16:05 [RateCDR] => 1 ) [2025-03-31 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-31 05:16:05' and `end` < '2025-03-31 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-31 08:16:18] Production.INFO: count ==266 [2025-03-31 08:16:18] Production.ERROR: pbx CDR StartTime 2025-03-31 05:16:05 - End Time 2025-03-31 08:16:05 [2025-03-31 08:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802224', 'tblTempUsageDetail_20' ) start [2025-03-31 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802224', 'tblTempUsageDetail_20' ) end [2025-03-31 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802224', 'tblTempVendorCDR_20' ) start [2025-03-31 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802224', 'tblTempVendorCDR_20' ) end [2025-03-31 08:16:18] Production.INFO: ProcessCDR(1,14802224,1,1,2) [2025-03-31 08:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802224', 'tblTempUsageDetail_20' ) start [2025-03-31 08:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802224', 'tblTempUsageDetail_20' ) end [2025-03-31 08:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 08:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 08:16:21] Production.INFO: ==30969== Releasing lock... [2025-03-31 08:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 08:16:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-31 08:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 05:17:05 [end_date_ymd] => 2025-03-31 08:17:05 [RateCDR] => 1 ) [2025-03-31 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-31 05:17:05' and `end` < '2025-03-31 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-31 08:17:17] Production.INFO: count ==267 [2025-03-31 08:17:17] Production.ERROR: pbx CDR StartTime 2025-03-31 05:17:05 - End Time 2025-03-31 08:17:05 [2025-03-31 08:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802229', 'tblTempUsageDetail_20' ) start [2025-03-31 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802229', 'tblTempUsageDetail_20' ) end [2025-03-31 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802229', 'tblTempVendorCDR_20' ) start [2025-03-31 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802229', 'tblTempVendorCDR_20' ) end [2025-03-31 08:17:17] Production.INFO: ProcessCDR(1,14802229,1,1,2) [2025-03-31 08:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802229', 'tblTempUsageDetail_20' ) start [2025-03-31 08:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802229', 'tblTempUsageDetail_20' ) end [2025-03-31 08:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 08:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 08:17:22] Production.INFO: ==31039== Releasing lock... [2025-03-31 08:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 08:17:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-31 08:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 05:18:06 [end_date_ymd] => 2025-03-31 08:18:06 [RateCDR] => 1 ) [2025-03-31 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-31 05:18:06' and `end` < '2025-03-31 08: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-31 08:18:18] Production.INFO: count ==280 [2025-03-31 08:18:18] Production.ERROR: pbx CDR StartTime 2025-03-31 05:18:06 - End Time 2025-03-31 08:18:06 [2025-03-31 08:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802234', 'tblTempUsageDetail_20' ) start [2025-03-31 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802234', 'tblTempUsageDetail_20' ) end [2025-03-31 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802234', 'tblTempVendorCDR_20' ) start [2025-03-31 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802234', 'tblTempVendorCDR_20' ) end [2025-03-31 08:18:18] Production.INFO: ProcessCDR(1,14802234,1,1,2) [2025-03-31 08:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802234', 'tblTempUsageDetail_20' ) start [2025-03-31 08:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802234', 'tblTempUsageDetail_20' ) end [2025-03-31 08:18:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 08:18:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 08:18:22] Production.INFO: ==31114== Releasing lock... [2025-03-31 08:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 08:18:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-31 08:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 05:19:06 [end_date_ymd] => 2025-03-31 08:19:06 [RateCDR] => 1 ) [2025-03-31 08: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-31 05:19:06' and `end` < '2025-03-31 08: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-31 08:19:18] Production.INFO: count ==286 [2025-03-31 08:19:19] Production.ERROR: pbx CDR StartTime 2025-03-31 05:19:06 - End Time 2025-03-31 08:19:06 [2025-03-31 08:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 08:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802239', 'tblTempUsageDetail_20' ) start [2025-03-31 08:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802239', 'tblTempUsageDetail_20' ) end [2025-03-31 08:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802239', 'tblTempVendorCDR_20' ) start [2025-03-31 08:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802239', 'tblTempVendorCDR_20' ) end [2025-03-31 08:19:19] Production.INFO: ProcessCDR(1,14802239,1,1,2) [2025-03-31 08:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802239', 'tblTempUsageDetail_20' ) start [2025-03-31 08:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802239', 'tblTempUsageDetail_20' ) end [2025-03-31 08:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 08:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 08:19:22] Production.INFO: ==31189== Releasing lock... [2025-03-31 08:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 08:19:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-31 08:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 05:20:06 [end_date_ymd] => 2025-03-31 08:20:06 [RateCDR] => 1 ) [2025-03-31 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-31 05:20:06' and `end` < '2025-03-31 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-31 08:20:18] Production.INFO: count ==315 [2025-03-31 08:20:18] Production.ERROR: pbx CDR StartTime 2025-03-31 05:20:06 - End Time 2025-03-31 08:20:06 [2025-03-31 08:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802245', 'tblTempUsageDetail_20' ) start [2025-03-31 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802245', 'tblTempUsageDetail_20' ) end [2025-03-31 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802245', 'tblTempVendorCDR_20' ) start [2025-03-31 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802245', 'tblTempVendorCDR_20' ) end [2025-03-31 08:20:18] Production.INFO: ProcessCDR(1,14802245,1,1,2) [2025-03-31 08:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802245', 'tblTempUsageDetail_20' ) start [2025-03-31 08:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802245', 'tblTempUsageDetail_20' ) end [2025-03-31 08:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 08:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 08:20:22] Production.INFO: ==31262== Releasing lock... [2025-03-31 08:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 08:20:22] Production.INFO: 31 MB #Memory Used# [2025-03-31 08:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 05:21:05 [end_date_ymd] => 2025-03-31 08:21:05 [RateCDR] => 1 ) [2025-03-31 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-31 05:21:05' and `end` < '2025-03-31 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-31 08:21:18] Production.INFO: count ==340 [2025-03-31 08:21:18] Production.ERROR: pbx CDR StartTime 2025-03-31 05:21:05 - End Time 2025-03-31 08:21:05 [2025-03-31 08:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802250', 'tblTempUsageDetail_20' ) start [2025-03-31 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802250', 'tblTempUsageDetail_20' ) end [2025-03-31 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802250', 'tblTempVendorCDR_20' ) start [2025-03-31 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802250', 'tblTempVendorCDR_20' ) end [2025-03-31 08:21:18] Production.INFO: ProcessCDR(1,14802250,1,1,2) [2025-03-31 08:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802250', 'tblTempUsageDetail_20' ) start [2025-03-31 08:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802250', 'tblTempUsageDetail_20' ) end [2025-03-31 08:21:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 08:21:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 08:21:22] Production.INFO: ==31382== Releasing lock... [2025-03-31 08:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 08:21:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-31 08:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 05:22:05 [end_date_ymd] => 2025-03-31 08:22:05 [RateCDR] => 1 ) [2025-03-31 08:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 05:22:05' and `end` < '2025-03-31 08:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 08:22:18] Production.INFO: count ==342 [2025-03-31 08:22:18] Production.ERROR: pbx CDR StartTime 2025-03-31 05:22:05 - End Time 2025-03-31 08:22:05 [2025-03-31 08:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802255', 'tblTempUsageDetail_20' ) start [2025-03-31 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802255', 'tblTempUsageDetail_20' ) end [2025-03-31 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802255', 'tblTempVendorCDR_20' ) start [2025-03-31 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802255', 'tblTempVendorCDR_20' ) end [2025-03-31 08:22:18] Production.INFO: ProcessCDR(1,14802255,1,1,2) [2025-03-31 08:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802255', 'tblTempUsageDetail_20' ) start [2025-03-31 08:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802255', 'tblTempUsageDetail_20' ) end [2025-03-31 08:22:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 08:22:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 08:22:23] Production.INFO: ==31458== Releasing lock... [2025-03-31 08:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 08:22:23] Production.INFO: 31.5 MB #Memory Used# [2025-03-31 08:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 05:23:05 [end_date_ymd] => 2025-03-31 08:23:05 [RateCDR] => 1 ) [2025-03-31 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-31 05:23:05' and `end` < '2025-03-31 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-31 08:23:18] Production.INFO: count ==347 [2025-03-31 08:23:18] Production.ERROR: pbx CDR StartTime 2025-03-31 05:23:05 - End Time 2025-03-31 08:23:05 [2025-03-31 08:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802260', 'tblTempUsageDetail_20' ) start [2025-03-31 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802260', 'tblTempUsageDetail_20' ) end [2025-03-31 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802260', 'tblTempVendorCDR_20' ) start [2025-03-31 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802260', 'tblTempVendorCDR_20' ) end [2025-03-31 08:23:18] Production.INFO: ProcessCDR(1,14802260,1,1,2) [2025-03-31 08:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802260', 'tblTempUsageDetail_20' ) start [2025-03-31 08:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802260', 'tblTempUsageDetail_20' ) end [2025-03-31 08:23:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 08:23:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 08:23:23] Production.INFO: ==31534== Releasing lock... [2025-03-31 08:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 08:23:23] Production.INFO: 31.5 MB #Memory Used# [2025-03-31 08:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 05:24:05 [end_date_ymd] => 2025-03-31 08:24:05 [RateCDR] => 1 ) [2025-03-31 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-31 05:24:05' and `end` < '2025-03-31 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-31 08:24:17] Production.INFO: count ==360 [2025-03-31 08:24:18] Production.ERROR: pbx CDR StartTime 2025-03-31 05:24:05 - End Time 2025-03-31 08:24:05 [2025-03-31 08:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802265', 'tblTempUsageDetail_20' ) start [2025-03-31 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802265', 'tblTempUsageDetail_20' ) end [2025-03-31 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802265', 'tblTempVendorCDR_20' ) start [2025-03-31 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802265', 'tblTempVendorCDR_20' ) end [2025-03-31 08:24:18] Production.INFO: ProcessCDR(1,14802265,1,1,2) [2025-03-31 08:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802265', 'tblTempUsageDetail_20' ) start [2025-03-31 08:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802265', 'tblTempUsageDetail_20' ) end [2025-03-31 08:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 08:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 08:24:21] Production.INFO: ==31608== Releasing lock... [2025-03-31 08:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 08:24:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-31 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 05:25:05 [end_date_ymd] => 2025-03-31 08:25:05 [RateCDR] => 1 ) [2025-03-31 08:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 05:25:05' and `end` < '2025-03-31 08:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 08:25:17] Production.INFO: count ==365 [2025-03-31 08:25:18] Production.ERROR: pbx CDR StartTime 2025-03-31 05:25:05 - End Time 2025-03-31 08:25:05 [2025-03-31 08:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802270', 'tblTempUsageDetail_20' ) start [2025-03-31 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802270', 'tblTempUsageDetail_20' ) end [2025-03-31 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802270', 'tblTempVendorCDR_20' ) start [2025-03-31 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802270', 'tblTempVendorCDR_20' ) end [2025-03-31 08:25:18] Production.INFO: ProcessCDR(1,14802270,1,1,2) [2025-03-31 08:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802270', 'tblTempUsageDetail_20' ) start [2025-03-31 08:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802270', 'tblTempUsageDetail_20' ) end [2025-03-31 08:25:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 08:25:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 08:25:22] Production.INFO: ==31683== Releasing lock... [2025-03-31 08:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 08:25:22] Production.INFO: 31 MB #Memory Used# [2025-03-31 08:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 05:26:05 [end_date_ymd] => 2025-03-31 08:26:05 [RateCDR] => 1 ) [2025-03-31 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-31 05:26:05' and `end` < '2025-03-31 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-31 08:26:17] Production.INFO: count ==378 [2025-03-31 08:26:18] Production.ERROR: pbx CDR StartTime 2025-03-31 05:26:05 - End Time 2025-03-31 08:26:05 [2025-03-31 08:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802275', 'tblTempUsageDetail_20' ) start [2025-03-31 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802275', 'tblTempUsageDetail_20' ) end [2025-03-31 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802275', 'tblTempVendorCDR_20' ) start [2025-03-31 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802275', 'tblTempVendorCDR_20' ) end [2025-03-31 08:26:18] Production.INFO: ProcessCDR(1,14802275,1,1,2) [2025-03-31 08:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802275', 'tblTempUsageDetail_20' ) start [2025-03-31 08:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802275', 'tblTempUsageDetail_20' ) end [2025-03-31 08:26:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 08:26:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 08:26:24] Production.INFO: ==31754== Releasing lock... [2025-03-31 08:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 08:26:24] Production.INFO: 31 MB #Memory Used# [2025-03-31 08:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 05:27:06 [end_date_ymd] => 2025-03-31 08:27:06 [RateCDR] => 1 ) [2025-03-31 08:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 05:27:06' and `end` < '2025-03-31 08:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 08:27:19] Production.INFO: count ==384 [2025-03-31 08:27:19] Production.ERROR: pbx CDR StartTime 2025-03-31 05:27:06 - End Time 2025-03-31 08:27:06 [2025-03-31 08:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 08:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802280', 'tblTempUsageDetail_20' ) start [2025-03-31 08:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802280', 'tblTempUsageDetail_20' ) end [2025-03-31 08:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802280', 'tblTempVendorCDR_20' ) start [2025-03-31 08:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802280', 'tblTempVendorCDR_20' ) end [2025-03-31 08:27:19] Production.INFO: ProcessCDR(1,14802280,1,1,2) [2025-03-31 08:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802280', 'tblTempUsageDetail_20' ) start [2025-03-31 08:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802280', 'tblTempUsageDetail_20' ) end [2025-03-31 08:27:25] Production.ERROR: pbx prc_insertCDR start [2025-03-31 08:27:25] Production.ERROR: pbx prc_insertCDR end [2025-03-31 08:27:25] Production.INFO: ==31827== Releasing lock... [2025-03-31 08:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 08:27:25] Production.INFO: 31.25 MB #Memory Used# [2025-03-31 08:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 05:28:05 [end_date_ymd] => 2025-03-31 08:28:05 [RateCDR] => 1 ) [2025-03-31 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-31 05:28:05' and `end` < '2025-03-31 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-31 08:28:18] Production.INFO: count ==404 [2025-03-31 08:28:18] Production.ERROR: pbx CDR StartTime 2025-03-31 05:28:05 - End Time 2025-03-31 08:28:05 [2025-03-31 08:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802285', 'tblTempUsageDetail_20' ) start [2025-03-31 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802285', 'tblTempUsageDetail_20' ) end [2025-03-31 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802285', 'tblTempVendorCDR_20' ) start [2025-03-31 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802285', 'tblTempVendorCDR_20' ) end [2025-03-31 08:28:18] Production.INFO: ProcessCDR(1,14802285,1,1,2) [2025-03-31 08:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802285', 'tblTempUsageDetail_20' ) start [2025-03-31 08:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802285', 'tblTempUsageDetail_20' ) end [2025-03-31 08:28:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 08:28:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 08:28:22] Production.INFO: ==31906== Releasing lock... [2025-03-31 08:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 08:28:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-31 08:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 05:29:05 [end_date_ymd] => 2025-03-31 08:29:05 [RateCDR] => 1 ) [2025-03-31 08:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 05:29:05' and `end` < '2025-03-31 08:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 08:29:18] Production.INFO: count ==417 [2025-03-31 08:29:18] Production.ERROR: pbx CDR StartTime 2025-03-31 05:29:05 - End Time 2025-03-31 08:29:05 [2025-03-31 08:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802290', 'tblTempUsageDetail_20' ) start [2025-03-31 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802290', 'tblTempUsageDetail_20' ) end [2025-03-31 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802290', 'tblTempVendorCDR_20' ) start [2025-03-31 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802290', 'tblTempVendorCDR_20' ) end [2025-03-31 08:29:18] Production.INFO: ProcessCDR(1,14802290,1,1,2) [2025-03-31 08:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802290', 'tblTempUsageDetail_20' ) start [2025-03-31 08:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802290', 'tblTempUsageDetail_20' ) end [2025-03-31 08:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 08:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 08:29:21] Production.INFO: ==31980== Releasing lock... [2025-03-31 08:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 08:29:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-31 08:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 05:30:06 [end_date_ymd] => 2025-03-31 08:30:06 [RateCDR] => 1 ) [2025-03-31 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-31 05:30:06' and `end` < '2025-03-31 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-31 08:30:19] Production.INFO: count ==439 [2025-03-31 08:30:19] Production.ERROR: pbx CDR StartTime 2025-03-31 05:30:06 - End Time 2025-03-31 08:30:06 [2025-03-31 08:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802296', 'tblTempUsageDetail_20' ) start [2025-03-31 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802296', 'tblTempUsageDetail_20' ) end [2025-03-31 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802296', 'tblTempVendorCDR_20' ) start [2025-03-31 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802296', 'tblTempVendorCDR_20' ) end [2025-03-31 08:30:19] Production.INFO: ProcessCDR(1,14802296,1,1,2) [2025-03-31 08:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802296', 'tblTempUsageDetail_20' ) start [2025-03-31 08:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802296', 'tblTempUsageDetail_20' ) end [2025-03-31 08:30:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 08:30:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 08:30:23] Production.INFO: ==32057== Releasing lock... [2025-03-31 08:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 08:30:23] Production.INFO: 31.75 MB #Memory Used# [2025-03-31 08:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 05:31:06 [end_date_ymd] => 2025-03-31 08:31:06 [RateCDR] => 1 ) [2025-03-31 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-31 05:31:06' and `end` < '2025-03-31 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-31 08:31:18] Production.INFO: count ==465 [2025-03-31 08:31:18] Production.ERROR: pbx CDR StartTime 2025-03-31 05:31:06 - End Time 2025-03-31 08:31:06 [2025-03-31 08:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802301', 'tblTempUsageDetail_20' ) start [2025-03-31 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802301', 'tblTempUsageDetail_20' ) end [2025-03-31 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802301', 'tblTempVendorCDR_20' ) start [2025-03-31 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802301', 'tblTempVendorCDR_20' ) end [2025-03-31 08:31:18] Production.INFO: ProcessCDR(1,14802301,1,1,2) [2025-03-31 08:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802301', 'tblTempUsageDetail_20' ) start [2025-03-31 08:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802301', 'tblTempUsageDetail_20' ) end [2025-03-31 08:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 08:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 08:31:22] Production.INFO: ==32142== Releasing lock... [2025-03-31 08:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 08:31:22] Production.INFO: 32 MB #Memory Used# [2025-03-31 08:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 05:32:05 [end_date_ymd] => 2025-03-31 08:32:05 [RateCDR] => 1 ) [2025-03-31 08:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 05:32:05' and `end` < '2025-03-31 08:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 08:32:18] Production.INFO: count ==470 [2025-03-31 08:32:18] Production.ERROR: pbx CDR StartTime 2025-03-31 05:32:05 - End Time 2025-03-31 08:32:05 [2025-03-31 08:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802306', 'tblTempUsageDetail_20' ) start [2025-03-31 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802306', 'tblTempUsageDetail_20' ) end [2025-03-31 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802306', 'tblTempVendorCDR_20' ) start [2025-03-31 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802306', 'tblTempVendorCDR_20' ) end [2025-03-31 08:32:18] Production.INFO: ProcessCDR(1,14802306,1,1,2) [2025-03-31 08:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802306', 'tblTempUsageDetail_20' ) start [2025-03-31 08:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802306', 'tblTempUsageDetail_20' ) end [2025-03-31 08:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 08:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 08:32:22] Production.INFO: ==32217== Releasing lock... [2025-03-31 08:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 08:32:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-31 08:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 05:33:06 [end_date_ymd] => 2025-03-31 08:33:06 [RateCDR] => 1 ) [2025-03-31 08: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-31 05:33:06' and `end` < '2025-03-31 08: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-31 08:33:19] Production.INFO: count ==478 [2025-03-31 08:33:19] Production.ERROR: pbx CDR StartTime 2025-03-31 05:33:06 - End Time 2025-03-31 08:33:06 [2025-03-31 08:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 08:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802311', 'tblTempUsageDetail_20' ) start [2025-03-31 08:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802311', 'tblTempUsageDetail_20' ) end [2025-03-31 08:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802311', 'tblTempVendorCDR_20' ) start [2025-03-31 08:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802311', 'tblTempVendorCDR_20' ) end [2025-03-31 08:33:19] Production.INFO: ProcessCDR(1,14802311,1,1,2) [2025-03-31 08:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802311', 'tblTempUsageDetail_20' ) start [2025-03-31 08:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802311', 'tblTempUsageDetail_20' ) end [2025-03-31 08:33:25] Production.ERROR: pbx prc_insertCDR start [2025-03-31 08:33:25] Production.ERROR: pbx prc_insertCDR end [2025-03-31 08:33:25] Production.INFO: ==32288== Releasing lock... [2025-03-31 08:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 08:33:25] Production.INFO: 32.25 MB #Memory Used# [2025-03-31 08:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 05:34:05 [end_date_ymd] => 2025-03-31 08:34:05 [RateCDR] => 1 ) [2025-03-31 08:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 05:34:05' and `end` < '2025-03-31 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-31 08:34:18] Production.INFO: count ==486 [2025-03-31 08:34:18] Production.ERROR: pbx CDR StartTime 2025-03-31 05:34:05 - End Time 2025-03-31 08:34:05 [2025-03-31 08:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802316', 'tblTempUsageDetail_20' ) start [2025-03-31 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802316', 'tblTempUsageDetail_20' ) end [2025-03-31 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802316', 'tblTempVendorCDR_20' ) start [2025-03-31 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802316', 'tblTempVendorCDR_20' ) end [2025-03-31 08:34:18] Production.INFO: ProcessCDR(1,14802316,1,1,2) [2025-03-31 08:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802316', 'tblTempUsageDetail_20' ) start [2025-03-31 08:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802316', 'tblTempUsageDetail_20' ) end [2025-03-31 08:34:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 08:34:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 08:34:24] Production.INFO: ==32363== Releasing lock... [2025-03-31 08:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 08:34:24] Production.INFO: 32.25 MB #Memory Used# [2025-03-31 08:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 05:35:06 [end_date_ymd] => 2025-03-31 08:35:06 [RateCDR] => 1 ) [2025-03-31 08:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 05:35:06' and `end` < '2025-03-31 08:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 08:35:18] Production.INFO: count ==487 [2025-03-31 08:35:19] Production.ERROR: pbx CDR StartTime 2025-03-31 05:35:06 - End Time 2025-03-31 08:35:06 [2025-03-31 08:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 08:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802321', 'tblTempUsageDetail_20' ) start [2025-03-31 08:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802321', 'tblTempUsageDetail_20' ) end [2025-03-31 08:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802321', 'tblTempVendorCDR_20' ) start [2025-03-31 08:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802321', 'tblTempVendorCDR_20' ) end [2025-03-31 08:35:19] Production.INFO: ProcessCDR(1,14802321,1,1,2) [2025-03-31 08:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802321', 'tblTempUsageDetail_20' ) start [2025-03-31 08:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802321', 'tblTempUsageDetail_20' ) end [2025-03-31 08:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 08:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 08:35:23] Production.INFO: ==32439== Releasing lock... [2025-03-31 08:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 08:35:23] Production.INFO: 32.25 MB #Memory Used# [2025-03-31 08:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 05:36:06 [end_date_ymd] => 2025-03-31 08:36:06 [RateCDR] => 1 ) [2025-03-31 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-31 05:36:06' and `end` < '2025-03-31 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-31 08:36:18] Production.INFO: count ==487 [2025-03-31 08:36:18] Production.ERROR: pbx CDR StartTime 2025-03-31 05:36:06 - End Time 2025-03-31 08:36:06 [2025-03-31 08:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802326', 'tblTempUsageDetail_20' ) start [2025-03-31 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802326', 'tblTempUsageDetail_20' ) end [2025-03-31 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802326', 'tblTempVendorCDR_20' ) start [2025-03-31 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802326', 'tblTempVendorCDR_20' ) end [2025-03-31 08:36:18] Production.INFO: ProcessCDR(1,14802326,1,1,2) [2025-03-31 08:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802326', 'tblTempUsageDetail_20' ) start [2025-03-31 08:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802326', 'tblTempUsageDetail_20' ) end [2025-03-31 08:36:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 08:36:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 08:36:24] Production.INFO: ==32516== Releasing lock... [2025-03-31 08:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 08:36:24] Production.INFO: 32.5 MB #Memory Used# [2025-03-31 08:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 05:37:06 [end_date_ymd] => 2025-03-31 08:37:06 [RateCDR] => 1 ) [2025-03-31 08: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-31 05:37:06' and `end` < '2025-03-31 08: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-31 08:37:19] Production.INFO: count ==498 [2025-03-31 08:37:19] Production.ERROR: pbx CDR StartTime 2025-03-31 05:37:06 - End Time 2025-03-31 08:37:06 [2025-03-31 08:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 08:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802331', 'tblTempUsageDetail_20' ) start [2025-03-31 08:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802331', 'tblTempUsageDetail_20' ) end [2025-03-31 08:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802331', 'tblTempVendorCDR_20' ) start [2025-03-31 08:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802331', 'tblTempVendorCDR_20' ) end [2025-03-31 08:37:19] Production.INFO: ProcessCDR(1,14802331,1,1,2) [2025-03-31 08:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802331', 'tblTempUsageDetail_20' ) start [2025-03-31 08:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802331', 'tblTempUsageDetail_20' ) end [2025-03-31 08:37:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 08:37:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 08:37:23] Production.INFO: ==32635== Releasing lock... [2025-03-31 08:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 08:37:23] Production.INFO: 32.5 MB #Memory Used# [2025-03-31 08:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 05:38:05 [end_date_ymd] => 2025-03-31 08:38:05 [RateCDR] => 1 ) [2025-03-31 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-31 05:38:05' and `end` < '2025-03-31 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-31 08:38:18] Production.INFO: count ==500 [2025-03-31 08:38:18] Production.ERROR: pbx CDR StartTime 2025-03-31 05:38:05 - End Time 2025-03-31 08:38:05 [2025-03-31 08:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802336', 'tblTempUsageDetail_20' ) start [2025-03-31 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802336', 'tblTempUsageDetail_20' ) end [2025-03-31 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802336', 'tblTempVendorCDR_20' ) start [2025-03-31 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802336', 'tblTempVendorCDR_20' ) end [2025-03-31 08:38:18] Production.INFO: ProcessCDR(1,14802336,1,1,2) [2025-03-31 08:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802336', 'tblTempUsageDetail_20' ) start [2025-03-31 08:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802336', 'tblTempUsageDetail_20' ) end [2025-03-31 08:38:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 08:38:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 08:38:24] Production.INFO: ==32712== Releasing lock... [2025-03-31 08:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 08:38:24] Production.INFO: 32.5 MB #Memory Used# [2025-03-31 08:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 05:39:06 [end_date_ymd] => 2025-03-31 08:39:06 [RateCDR] => 1 ) [2025-03-31 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-31 05:39:06' and `end` < '2025-03-31 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-31 08:39:18] Production.INFO: count ==511 [2025-03-31 08:39:18] Production.ERROR: pbx CDR StartTime 2025-03-31 05:39:06 - End Time 2025-03-31 08:39:06 [2025-03-31 08:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802341', 'tblTempUsageDetail_20' ) start [2025-03-31 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802341', 'tblTempUsageDetail_20' ) end [2025-03-31 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802341', 'tblTempVendorCDR_20' ) start [2025-03-31 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802341', 'tblTempVendorCDR_20' ) end [2025-03-31 08:39:18] Production.INFO: ProcessCDR(1,14802341,1,1,2) [2025-03-31 08:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802341', 'tblTempUsageDetail_20' ) start [2025-03-31 08:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802341', 'tblTempUsageDetail_20' ) end [2025-03-31 08:39:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 08:39:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 08:39:24] Production.INFO: ==325== Releasing lock... [2025-03-31 08:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 08:39:24] Production.INFO: 32.5 MB #Memory Used# [2025-03-31 08:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 05:40:06 [end_date_ymd] => 2025-03-31 08:40:06 [RateCDR] => 1 ) [2025-03-31 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-31 05:40:06' and `end` < '2025-03-31 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-31 08:40:18] Production.INFO: count ==531 [2025-03-31 08:40:19] Production.ERROR: pbx CDR StartTime 2025-03-31 05:40:06 - End Time 2025-03-31 08:40:06 [2025-03-31 08:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802347', 'tblTempUsageDetail_20' ) start [2025-03-31 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802347', 'tblTempUsageDetail_20' ) end [2025-03-31 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802347', 'tblTempVendorCDR_20' ) start [2025-03-31 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802347', 'tblTempVendorCDR_20' ) end [2025-03-31 08:40:19] Production.INFO: ProcessCDR(1,14802347,1,1,2) [2025-03-31 08:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802347', 'tblTempUsageDetail_20' ) start [2025-03-31 08:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802347', 'tblTempUsageDetail_20' ) end [2025-03-31 08:40:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 08:40:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 08:40:24] Production.INFO: ==413== Releasing lock... [2025-03-31 08:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 08:40:24] Production.INFO: 32.25 MB #Memory Used# [2025-03-31 08:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 05:41:05 [end_date_ymd] => 2025-03-31 08:41:05 [RateCDR] => 1 ) [2025-03-31 08:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 05:41:05' and `end` < '2025-03-31 08:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 08:41:18] Production.INFO: count ==560 [2025-03-31 08:41:18] Production.ERROR: pbx CDR StartTime 2025-03-31 05:41:05 - End Time 2025-03-31 08:41:05 [2025-03-31 08:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802352', 'tblTempUsageDetail_20' ) start [2025-03-31 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802352', 'tblTempUsageDetail_20' ) end [2025-03-31 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802352', 'tblTempVendorCDR_20' ) start [2025-03-31 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802352', 'tblTempVendorCDR_20' ) end [2025-03-31 08:41:18] Production.INFO: ProcessCDR(1,14802352,1,1,2) [2025-03-31 08:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802352', 'tblTempUsageDetail_20' ) start [2025-03-31 08:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802352', 'tblTempUsageDetail_20' ) end [2025-03-31 08:41:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 08:41:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 08:41:23] Production.INFO: ==496== Releasing lock... [2025-03-31 08:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 08:41:23] Production.INFO: 32.5 MB #Memory Used# [2025-03-31 08:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 05:42:05 [end_date_ymd] => 2025-03-31 08:42:05 [RateCDR] => 1 ) [2025-03-31 08:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 05:42:05' and `end` < '2025-03-31 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-31 08:42:18] Production.INFO: count ==572 [2025-03-31 08:42:18] Production.ERROR: pbx CDR StartTime 2025-03-31 05:42:05 - End Time 2025-03-31 08:42:05 [2025-03-31 08:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802357', 'tblTempUsageDetail_20' ) start [2025-03-31 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802357', 'tblTempUsageDetail_20' ) end [2025-03-31 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802357', 'tblTempVendorCDR_20' ) start [2025-03-31 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802357', 'tblTempVendorCDR_20' ) end [2025-03-31 08:42:18] Production.INFO: ProcessCDR(1,14802357,1,1,2) [2025-03-31 08:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802357', 'tblTempUsageDetail_20' ) start [2025-03-31 08:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802357', 'tblTempUsageDetail_20' ) end [2025-03-31 08:42:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 08:42:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 08:42:24] Production.INFO: ==571== Releasing lock... [2025-03-31 08:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 08:42:24] Production.INFO: 32.75 MB #Memory Used# [2025-03-31 08:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 05:43:06 [end_date_ymd] => 2025-03-31 08:43:06 [RateCDR] => 1 ) [2025-03-31 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-31 05:43:06' and `end` < '2025-03-31 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-31 08:43:18] Production.INFO: count ==572 [2025-03-31 08:43:19] Production.ERROR: pbx CDR StartTime 2025-03-31 05:43:06 - End Time 2025-03-31 08:43:06 [2025-03-31 08:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 08:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802362', 'tblTempUsageDetail_20' ) start [2025-03-31 08:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802362', 'tblTempUsageDetail_20' ) end [2025-03-31 08:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802362', 'tblTempVendorCDR_20' ) start [2025-03-31 08:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802362', 'tblTempVendorCDR_20' ) end [2025-03-31 08:43:19] Production.INFO: ProcessCDR(1,14802362,1,1,2) [2025-03-31 08:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802362', 'tblTempUsageDetail_20' ) start [2025-03-31 08:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802362', 'tblTempUsageDetail_20' ) end [2025-03-31 08:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 08:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 08:43:22] Production.INFO: ==656== Releasing lock... [2025-03-31 08:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 08:43:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-31 08:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 05:44:05 [end_date_ymd] => 2025-03-31 08:44:05 [RateCDR] => 1 ) [2025-03-31 08: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-31 05:44:05' and `end` < '2025-03-31 08: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-31 08:44:18] Production.INFO: count ==573 [2025-03-31 08:44:18] Production.ERROR: pbx CDR StartTime 2025-03-31 05:44:05 - End Time 2025-03-31 08:44:05 [2025-03-31 08:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802367', 'tblTempUsageDetail_20' ) start [2025-03-31 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802367', 'tblTempUsageDetail_20' ) end [2025-03-31 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802367', 'tblTempVendorCDR_20' ) start [2025-03-31 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802367', 'tblTempVendorCDR_20' ) end [2025-03-31 08:44:18] Production.INFO: ProcessCDR(1,14802367,1,1,2) [2025-03-31 08:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802367', 'tblTempUsageDetail_20' ) start [2025-03-31 08:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802367', 'tblTempUsageDetail_20' ) end [2025-03-31 08:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 08:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 08:44:21] Production.INFO: ==757== Releasing lock... [2025-03-31 08:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 08:44:21] Production.INFO: 33 MB #Memory Used# [2025-03-31 08:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 05:45:05 [end_date_ymd] => 2025-03-31 08:45:05 [RateCDR] => 1 ) [2025-03-31 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-31 05:45:05' and `end` < '2025-03-31 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-31 08:45:18] Production.INFO: count ==583 [2025-03-31 08:45:18] Production.ERROR: pbx CDR StartTime 2025-03-31 05:45:05 - End Time 2025-03-31 08:45:05 [2025-03-31 08:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802372', 'tblTempUsageDetail_20' ) start [2025-03-31 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802372', 'tblTempUsageDetail_20' ) end [2025-03-31 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802372', 'tblTempVendorCDR_20' ) start [2025-03-31 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802372', 'tblTempVendorCDR_20' ) end [2025-03-31 08:45:18] Production.INFO: ProcessCDR(1,14802372,1,1,2) [2025-03-31 08:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802372', 'tblTempUsageDetail_20' ) start [2025-03-31 08:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802372', 'tblTempUsageDetail_20' ) end [2025-03-31 08:45:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 08:45:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 08:45:22] Production.INFO: ==831== Releasing lock... [2025-03-31 08:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 08:45:22] Production.INFO: 33 MB #Memory Used# [2025-03-31 08:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 05:46:05 [end_date_ymd] => 2025-03-31 08:46:05 [RateCDR] => 1 ) [2025-03-31 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-31 05:46:05' and `end` < '2025-03-31 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-31 08:46:18] Production.INFO: count ==586 [2025-03-31 08:46:18] Production.ERROR: pbx CDR StartTime 2025-03-31 05:46:05 - End Time 2025-03-31 08:46:05 [2025-03-31 08:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802377', 'tblTempUsageDetail_20' ) start [2025-03-31 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802377', 'tblTempUsageDetail_20' ) end [2025-03-31 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802377', 'tblTempVendorCDR_20' ) start [2025-03-31 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802377', 'tblTempVendorCDR_20' ) end [2025-03-31 08:46:18] Production.INFO: ProcessCDR(1,14802377,1,1,2) [2025-03-31 08:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802377', 'tblTempUsageDetail_20' ) start [2025-03-31 08:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802377', 'tblTempUsageDetail_20' ) end [2025-03-31 08:46:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 08:46:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 08:46:23] Production.INFO: ==904== Releasing lock... [2025-03-31 08:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 08:46:23] Production.INFO: 33.25 MB #Memory Used# [2025-03-31 08:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 05:47:06 [end_date_ymd] => 2025-03-31 08:47:06 [RateCDR] => 1 ) [2025-03-31 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-31 05:47:06' and `end` < '2025-03-31 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-31 08:47:18] Production.INFO: count ==598 [2025-03-31 08:47:18] Production.ERROR: pbx CDR StartTime 2025-03-31 05:47:06 - End Time 2025-03-31 08:47:06 [2025-03-31 08:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802382', 'tblTempUsageDetail_20' ) start [2025-03-31 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802382', 'tblTempUsageDetail_20' ) end [2025-03-31 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802382', 'tblTempVendorCDR_20' ) start [2025-03-31 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802382', 'tblTempVendorCDR_20' ) end [2025-03-31 08:47:18] Production.INFO: ProcessCDR(1,14802382,1,1,2) [2025-03-31 08:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802382', 'tblTempUsageDetail_20' ) start [2025-03-31 08:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802382', 'tblTempUsageDetail_20' ) end [2025-03-31 08:47:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 08:47:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 08:47:24] Production.INFO: ==982== Releasing lock... [2025-03-31 08:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 08:47:24] Production.INFO: 33 MB #Memory Used# [2025-03-31 08:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 05:48:05 [end_date_ymd] => 2025-03-31 08:48:05 [RateCDR] => 1 ) [2025-03-31 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-31 05:48:05' and `end` < '2025-03-31 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-31 08:48:18] Production.INFO: count ==614 [2025-03-31 08:48:18] Production.ERROR: pbx CDR StartTime 2025-03-31 05:48:05 - End Time 2025-03-31 08:48:05 [2025-03-31 08:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802387', 'tblTempUsageDetail_20' ) start [2025-03-31 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802387', 'tblTempUsageDetail_20' ) end [2025-03-31 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802387', 'tblTempVendorCDR_20' ) start [2025-03-31 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802387', 'tblTempVendorCDR_20' ) end [2025-03-31 08:48:18] Production.INFO: ProcessCDR(1,14802387,1,1,2) [2025-03-31 08:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802387', 'tblTempUsageDetail_20' ) start [2025-03-31 08:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802387', 'tblTempUsageDetail_20' ) end [2025-03-31 08:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 08:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 08:48:22] Production.INFO: ==1054== Releasing lock... [2025-03-31 08:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 08:48:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-31 08:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 05:49:05 [end_date_ymd] => 2025-03-31 08:49:05 [RateCDR] => 1 ) [2025-03-31 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-31 05:49:05' and `end` < '2025-03-31 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-31 08:49:18] Production.INFO: count ==639 [2025-03-31 08:49:18] Production.ERROR: pbx CDR StartTime 2025-03-31 05:49:05 - End Time 2025-03-31 08:49:05 [2025-03-31 08:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802392', 'tblTempUsageDetail_20' ) start [2025-03-31 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802392', 'tblTempUsageDetail_20' ) end [2025-03-31 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802392', 'tblTempVendorCDR_20' ) start [2025-03-31 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802392', 'tblTempVendorCDR_20' ) end [2025-03-31 08:49:18] Production.INFO: ProcessCDR(1,14802392,1,1,2) [2025-03-31 08:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802392', 'tblTempUsageDetail_20' ) start [2025-03-31 08:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802392', 'tblTempUsageDetail_20' ) end [2025-03-31 08:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 08:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 08:49:22] Production.INFO: ==1133== Releasing lock... [2025-03-31 08:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 08:49:22] Production.INFO: 33 MB #Memory Used# [2025-03-31 08:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 05:50:05 [end_date_ymd] => 2025-03-31 08:50:05 [RateCDR] => 1 ) [2025-03-31 08: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-31 05:50:05' and `end` < '2025-03-31 08: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-31 08:50:18] Production.INFO: count ==661 [2025-03-31 08:50:18] Production.ERROR: pbx CDR StartTime 2025-03-31 05:50:05 - End Time 2025-03-31 08:50:05 [2025-03-31 08:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802397', 'tblTempUsageDetail_20' ) start [2025-03-31 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802397', 'tblTempUsageDetail_20' ) end [2025-03-31 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802397', 'tblTempVendorCDR_20' ) start [2025-03-31 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802397', 'tblTempVendorCDR_20' ) end [2025-03-31 08:50:18] Production.INFO: ProcessCDR(1,14802397,1,1,2) [2025-03-31 08:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802397', 'tblTempUsageDetail_20' ) start [2025-03-31 08:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802397', 'tblTempUsageDetail_20' ) end [2025-03-31 08:50:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 08:50:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 08:50:24] Production.INFO: ==1220== Releasing lock... [2025-03-31 08:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 08:50:24] Production.INFO: 33.5 MB #Memory Used# [2025-03-31 08:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 05:51:05 [end_date_ymd] => 2025-03-31 08:51:05 [RateCDR] => 1 ) [2025-03-31 08:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 05:51:05' and `end` < '2025-03-31 08:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 08:51:18] Production.INFO: count ==697 [2025-03-31 08:51:18] Production.ERROR: pbx CDR StartTime 2025-03-31 05:51:05 - End Time 2025-03-31 08:51:05 [2025-03-31 08:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802403', 'tblTempUsageDetail_20' ) start [2025-03-31 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802403', 'tblTempUsageDetail_20' ) end [2025-03-31 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802403', 'tblTempVendorCDR_20' ) start [2025-03-31 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802403', 'tblTempVendorCDR_20' ) end [2025-03-31 08:51:18] Production.INFO: ProcessCDR(1,14802403,1,1,2) [2025-03-31 08:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802403', 'tblTempUsageDetail_20' ) start [2025-03-31 08:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802403', 'tblTempUsageDetail_20' ) end [2025-03-31 08:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 08:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 08:51:22] Production.INFO: ==1310== Releasing lock... [2025-03-31 08:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 08:51:22] Production.INFO: 34.25 MB #Memory Used# [2025-03-31 08:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 05:52:06 [end_date_ymd] => 2025-03-31 08:52:06 [RateCDR] => 1 ) [2025-03-31 08: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-31 05:52:06' and `end` < '2025-03-31 08: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-31 08:52:18] Production.INFO: count ==703 [2025-03-31 08:52:18] Production.ERROR: pbx CDR StartTime 2025-03-31 05:52:06 - End Time 2025-03-31 08:52:06 [2025-03-31 08:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802408', 'tblTempUsageDetail_20' ) start [2025-03-31 08:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802408', 'tblTempUsageDetail_20' ) end [2025-03-31 08:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802408', 'tblTempVendorCDR_20' ) start [2025-03-31 08:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802408', 'tblTempVendorCDR_20' ) end [2025-03-31 08:52:19] Production.INFO: ProcessCDR(1,14802408,1,1,2) [2025-03-31 08:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802408', 'tblTempUsageDetail_20' ) start [2025-03-31 08:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802408', 'tblTempUsageDetail_20' ) end [2025-03-31 08:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 08:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 08:52:22] Production.INFO: ==1424== Releasing lock... [2025-03-31 08:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 08:52:22] Production.INFO: 34 MB #Memory Used# [2025-03-31 08:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 05:53:05 [end_date_ymd] => 2025-03-31 08:53:05 [RateCDR] => 1 ) [2025-03-31 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-31 05:53:05' and `end` < '2025-03-31 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-31 08:53:18] Production.INFO: count ==708 [2025-03-31 08:53:18] Production.ERROR: pbx CDR StartTime 2025-03-31 05:53:05 - End Time 2025-03-31 08:53:05 [2025-03-31 08:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802413', 'tblTempUsageDetail_20' ) start [2025-03-31 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802413', 'tblTempUsageDetail_20' ) end [2025-03-31 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802413', 'tblTempVendorCDR_20' ) start [2025-03-31 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802413', 'tblTempVendorCDR_20' ) end [2025-03-31 08:53:18] Production.INFO: ProcessCDR(1,14802413,1,1,2) [2025-03-31 08:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802413', 'tblTempUsageDetail_20' ) start [2025-03-31 08:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802413', 'tblTempUsageDetail_20' ) end [2025-03-31 08:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 08:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 08:53:22] Production.INFO: ==1500== Releasing lock... [2025-03-31 08:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 08:53:22] Production.INFO: 34 MB #Memory Used# [2025-03-31 08:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 05:54:05 [end_date_ymd] => 2025-03-31 08:54:05 [RateCDR] => 1 ) [2025-03-31 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-31 05:54:05' and `end` < '2025-03-31 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-31 08:54:18] Production.INFO: count ==718 [2025-03-31 08:54:18] Production.ERROR: pbx CDR StartTime 2025-03-31 05:54:05 - End Time 2025-03-31 08:54:05 [2025-03-31 08:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802418', 'tblTempUsageDetail_20' ) start [2025-03-31 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802418', 'tblTempUsageDetail_20' ) end [2025-03-31 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802418', 'tblTempVendorCDR_20' ) start [2025-03-31 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802418', 'tblTempVendorCDR_20' ) end [2025-03-31 08:54:18] Production.INFO: ProcessCDR(1,14802418,1,1,2) [2025-03-31 08:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802418', 'tblTempUsageDetail_20' ) start [2025-03-31 08:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802418', 'tblTempUsageDetail_20' ) end [2025-03-31 08:54:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 08:54:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 08:54:23] Production.INFO: ==1613== Releasing lock... [2025-03-31 08:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 08:54:23] Production.INFO: 33.5 MB #Memory Used# [2025-03-31 08:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 05:55:05 [end_date_ymd] => 2025-03-31 08:55:05 [RateCDR] => 1 ) [2025-03-31 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-31 05:55:05' and `end` < '2025-03-31 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-31 08:55:18] Production.INFO: count ==729 [2025-03-31 08:55:18] Production.ERROR: pbx CDR StartTime 2025-03-31 05:55:05 - End Time 2025-03-31 08:55:05 [2025-03-31 08:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802423', 'tblTempUsageDetail_20' ) start [2025-03-31 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802423', 'tblTempUsageDetail_20' ) end [2025-03-31 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802423', 'tblTempVendorCDR_20' ) start [2025-03-31 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802423', 'tblTempVendorCDR_20' ) end [2025-03-31 08:55:18] Production.INFO: ProcessCDR(1,14802423,1,1,2) [2025-03-31 08:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802423', 'tblTempUsageDetail_20' ) start [2025-03-31 08:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802423', 'tblTempUsageDetail_20' ) end [2025-03-31 08:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 08:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 08:55:22] Production.INFO: ==1687== Releasing lock... [2025-03-31 08:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 08:55:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-31 08:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 05:56:05 [end_date_ymd] => 2025-03-31 08:56:05 [RateCDR] => 1 ) [2025-03-31 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-31 05:56:05' and `end` < '2025-03-31 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-31 08:56:18] Production.INFO: count ==756 [2025-03-31 08:56:18] Production.ERROR: pbx CDR StartTime 2025-03-31 05:56:05 - End Time 2025-03-31 08:56:05 [2025-03-31 08:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802428', 'tblTempUsageDetail_20' ) start [2025-03-31 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802428', 'tblTempUsageDetail_20' ) end [2025-03-31 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802428', 'tblTempVendorCDR_20' ) start [2025-03-31 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802428', 'tblTempVendorCDR_20' ) end [2025-03-31 08:56:18] Production.INFO: ProcessCDR(1,14802428,1,1,2) [2025-03-31 08:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802428', 'tblTempUsageDetail_20' ) start [2025-03-31 08:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802428', 'tblTempUsageDetail_20' ) end [2025-03-31 08:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 08:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 08:56:22] Production.INFO: ==1764== Releasing lock... [2025-03-31 08:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 08:56:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-31 08:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 05:57:06 [end_date_ymd] => 2025-03-31 08:57:06 [RateCDR] => 1 ) [2025-03-31 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-31 05:57:06' and `end` < '2025-03-31 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-31 08:57:18] Production.INFO: count ==765 [2025-03-31 08:57:19] Production.ERROR: pbx CDR StartTime 2025-03-31 05:57:06 - End Time 2025-03-31 08:57:06 [2025-03-31 08:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 08:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802433', 'tblTempUsageDetail_20' ) start [2025-03-31 08:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802433', 'tblTempUsageDetail_20' ) end [2025-03-31 08:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802433', 'tblTempVendorCDR_20' ) start [2025-03-31 08:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802433', 'tblTempVendorCDR_20' ) end [2025-03-31 08:57:19] Production.INFO: ProcessCDR(1,14802433,1,1,2) [2025-03-31 08:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802433', 'tblTempUsageDetail_20' ) start [2025-03-31 08:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802433', 'tblTempUsageDetail_20' ) end [2025-03-31 08:57:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 08:57:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 08:57:24] Production.INFO: ==1843== Releasing lock... [2025-03-31 08:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 08:57:24] Production.INFO: 33.75 MB #Memory Used# [2025-03-31 08:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 05:58:05 [end_date_ymd] => 2025-03-31 08:58:05 [RateCDR] => 1 ) [2025-03-31 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-31 05:58:05' and `end` < '2025-03-31 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-31 08:58:18] Production.INFO: count ==773 [2025-03-31 08:58:18] Production.ERROR: pbx CDR StartTime 2025-03-31 05:58:05 - End Time 2025-03-31 08:58:05 [2025-03-31 08:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802438', 'tblTempUsageDetail_20' ) start [2025-03-31 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802438', 'tblTempUsageDetail_20' ) end [2025-03-31 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802438', 'tblTempVendorCDR_20' ) start [2025-03-31 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802438', 'tblTempVendorCDR_20' ) end [2025-03-31 08:58:18] Production.INFO: ProcessCDR(1,14802438,1,1,2) [2025-03-31 08:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802438', 'tblTempUsageDetail_20' ) start [2025-03-31 08:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802438', 'tblTempUsageDetail_20' ) end [2025-03-31 08:58:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 08:58:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 08:58:24] Production.INFO: ==1917== Releasing lock... [2025-03-31 08:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 08:58:24] Production.INFO: 34 MB #Memory Used# [2025-03-31 08:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 05:59:06 [end_date_ymd] => 2025-03-31 08:59:06 [RateCDR] => 1 ) [2025-03-31 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-31 05:59:06' and `end` < '2025-03-31 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-31 08:59:18] Production.INFO: count ==776 [2025-03-31 08:59:19] Production.ERROR: pbx CDR StartTime 2025-03-31 05:59:06 - End Time 2025-03-31 08:59:06 [2025-03-31 08:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 08:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802443', 'tblTempUsageDetail_20' ) start [2025-03-31 08:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802443', 'tblTempUsageDetail_20' ) end [2025-03-31 08:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802443', 'tblTempVendorCDR_20' ) start [2025-03-31 08:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802443', 'tblTempVendorCDR_20' ) end [2025-03-31 08:59:19] Production.INFO: ProcessCDR(1,14802443,1,1,2) [2025-03-31 08:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 08:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 08:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802443', 'tblTempUsageDetail_20' ) start [2025-03-31 08:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802443', 'tblTempUsageDetail_20' ) end [2025-03-31 08:59:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 08:59:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 08:59:24] Production.INFO: ==1993== Releasing lock... [2025-03-31 08:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 08:59:24] Production.INFO: 34.25 MB #Memory Used# [2025-03-31 09:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 06:00:06 [end_date_ymd] => 2025-03-31 09:00:06 [RateCDR] => 1 ) [2025-03-31 09:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 06:00:06' and `end` < '2025-03-31 09:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 09:00:18] Production.INFO: count ==794 [2025-03-31 09:00:19] Production.ERROR: pbx CDR StartTime 2025-03-31 06:00:06 - End Time 2025-03-31 09:00:06 [2025-03-31 09:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802448', 'tblTempUsageDetail_20' ) start [2025-03-31 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802448', 'tblTempUsageDetail_20' ) end [2025-03-31 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802448', 'tblTempVendorCDR_20' ) start [2025-03-31 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802448', 'tblTempVendorCDR_20' ) end [2025-03-31 09:00:19] Production.INFO: ProcessCDR(1,14802448,1,1,2) [2025-03-31 09:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802448', 'tblTempUsageDetail_20' ) start [2025-03-31 09:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802448', 'tblTempUsageDetail_20' ) end [2025-03-31 09:00:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 09:00:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 09:00:24] Production.INFO: ==2076== Releasing lock... [2025-03-31 09:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 09:00:24] Production.INFO: 34 MB #Memory Used# [2025-03-31 09:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 06:01:06 [end_date_ymd] => 2025-03-31 09:01:06 [RateCDR] => 1 ) [2025-03-31 09: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-31 06:01:06' and `end` < '2025-03-31 09: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-31 09:01:19] Production.INFO: count ==840 [2025-03-31 09:01:19] Production.ERROR: pbx CDR StartTime 2025-03-31 06:01:06 - End Time 2025-03-31 09:01:06 [2025-03-31 09:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 09:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802454', 'tblTempUsageDetail_20' ) start [2025-03-31 09:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802454', 'tblTempUsageDetail_20' ) end [2025-03-31 09:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802454', 'tblTempVendorCDR_20' ) start [2025-03-31 09:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802454', 'tblTempVendorCDR_20' ) end [2025-03-31 09:01:19] Production.INFO: ProcessCDR(1,14802454,1,1,2) [2025-03-31 09:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802454', 'tblTempUsageDetail_20' ) start [2025-03-31 09:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802454', 'tblTempUsageDetail_20' ) end [2025-03-31 09:01:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 09:01:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 09:01:23] Production.INFO: ==2163== Releasing lock... [2025-03-31 09:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 09:01:23] Production.INFO: 34.5 MB #Memory Used# [2025-03-31 09:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 06:02:05 [end_date_ymd] => 2025-03-31 09:02:05 [RateCDR] => 1 ) [2025-03-31 09:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 06:02:05' and `end` < '2025-03-31 09:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 09:02:18] Production.INFO: count ==848 [2025-03-31 09:02:18] Production.ERROR: pbx CDR StartTime 2025-03-31 06:02:05 - End Time 2025-03-31 09:02:05 [2025-03-31 09:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802459', 'tblTempUsageDetail_20' ) start [2025-03-31 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802459', 'tblTempUsageDetail_20' ) end [2025-03-31 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802459', 'tblTempVendorCDR_20' ) start [2025-03-31 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802459', 'tblTempVendorCDR_20' ) end [2025-03-31 09:02:18] Production.INFO: ProcessCDR(1,14802459,1,1,2) [2025-03-31 09:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802459', 'tblTempUsageDetail_20' ) start [2025-03-31 09:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802459', 'tblTempUsageDetail_20' ) end [2025-03-31 09:02:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 09:02:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 09:02:24] Production.INFO: ==2240== Releasing lock... [2025-03-31 09:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 09:02:24] Production.INFO: 34.75 MB #Memory Used# [2025-03-31 09:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 06:03:06 [end_date_ymd] => 2025-03-31 09:03:06 [RateCDR] => 1 ) [2025-03-31 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-31 06:03:06' and `end` < '2025-03-31 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-31 09:03:19] Production.INFO: count ==866 [2025-03-31 09:03:19] Production.ERROR: pbx CDR StartTime 2025-03-31 06:03:06 - End Time 2025-03-31 09:03:06 [2025-03-31 09:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802464', 'tblTempUsageDetail_20' ) start [2025-03-31 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802464', 'tblTempUsageDetail_20' ) end [2025-03-31 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802464', 'tblTempVendorCDR_20' ) start [2025-03-31 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802464', 'tblTempVendorCDR_20' ) end [2025-03-31 09:03:19] Production.INFO: ProcessCDR(1,14802464,1,1,2) [2025-03-31 09:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802464', 'tblTempUsageDetail_20' ) start [2025-03-31 09:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802464', 'tblTempUsageDetail_20' ) end [2025-03-31 09:03:25] Production.ERROR: pbx prc_insertCDR start [2025-03-31 09:03:25] Production.ERROR: pbx prc_insertCDR end [2025-03-31 09:03:25] Production.INFO: ==2318== Releasing lock... [2025-03-31 09:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 09:03:25] Production.INFO: 34.75 MB #Memory Used# [2025-03-31 09:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 06:04:06 [end_date_ymd] => 2025-03-31 09:04:06 [RateCDR] => 1 ) [2025-03-31 09: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-31 06:04:06' and `end` < '2025-03-31 09: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-31 09:04:18] Production.INFO: count ==879 [2025-03-31 09:04:19] Production.ERROR: pbx CDR StartTime 2025-03-31 06:04:06 - End Time 2025-03-31 09:04:06 [2025-03-31 09:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802469', 'tblTempUsageDetail_20' ) start [2025-03-31 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802469', 'tblTempUsageDetail_20' ) end [2025-03-31 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802469', 'tblTempVendorCDR_20' ) start [2025-03-31 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802469', 'tblTempVendorCDR_20' ) end [2025-03-31 09:04:19] Production.INFO: ProcessCDR(1,14802469,1,1,2) [2025-03-31 09:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802469', 'tblTempUsageDetail_20' ) start [2025-03-31 09:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802469', 'tblTempUsageDetail_20' ) end [2025-03-31 09:04:25] Production.ERROR: pbx prc_insertCDR start [2025-03-31 09:04:25] Production.ERROR: pbx prc_insertCDR end [2025-03-31 09:04:25] Production.INFO: ==2393== Releasing lock... [2025-03-31 09:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 09:04:25] Production.INFO: 35 MB #Memory Used# [2025-03-31 09:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 06:05:05 [end_date_ymd] => 2025-03-31 09:05:05 [RateCDR] => 1 ) [2025-03-31 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-31 06:05:05' and `end` < '2025-03-31 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-31 09:05:18] Production.INFO: count ==893 [2025-03-31 09:05:19] Production.ERROR: pbx CDR StartTime 2025-03-31 06:05:05 - End Time 2025-03-31 09:05:05 [2025-03-31 09:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 09:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802473', 'tblTempUsageDetail_20' ) start [2025-03-31 09:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802473', 'tblTempUsageDetail_20' ) end [2025-03-31 09:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802473', 'tblTempVendorCDR_20' ) start [2025-03-31 09:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802473', 'tblTempVendorCDR_20' ) end [2025-03-31 09:05:19] Production.INFO: ProcessCDR(1,14802473,1,1,2) [2025-03-31 09:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802473', 'tblTempUsageDetail_20' ) start [2025-03-31 09:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802473', 'tblTempUsageDetail_20' ) end [2025-03-31 09:05:25] Production.ERROR: pbx prc_insertCDR start [2025-03-31 09:05:25] Production.ERROR: pbx prc_insertCDR end [2025-03-31 09:05:25] Production.INFO: ==2467== Releasing lock... [2025-03-31 09:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 09:05:25] Production.INFO: 34 MB #Memory Used# [2025-03-31 09:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 06:06:05 [end_date_ymd] => 2025-03-31 09:06:05 [RateCDR] => 1 ) [2025-03-31 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-31 06:06:05' and `end` < '2025-03-31 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-31 09:06:18] Production.INFO: count ==902 [2025-03-31 09:06:19] Production.ERROR: pbx CDR StartTime 2025-03-31 06:06:05 - End Time 2025-03-31 09:06:05 [2025-03-31 09:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802479', 'tblTempUsageDetail_20' ) start [2025-03-31 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802479', 'tblTempUsageDetail_20' ) end [2025-03-31 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802479', 'tblTempVendorCDR_20' ) start [2025-03-31 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802479', 'tblTempVendorCDR_20' ) end [2025-03-31 09:06:19] Production.INFO: ProcessCDR(1,14802479,1,1,2) [2025-03-31 09:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802479', 'tblTempUsageDetail_20' ) start [2025-03-31 09:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802479', 'tblTempUsageDetail_20' ) end [2025-03-31 09:06:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 09:06:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 09:06:23] Production.INFO: ==2542== Releasing lock... [2025-03-31 09:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 09:06:23] Production.INFO: 34.75 MB #Memory Used# [2025-03-31 09:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 06:07:06 [end_date_ymd] => 2025-03-31 09:07:06 [RateCDR] => 1 ) [2025-03-31 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-31 06:07:06' and `end` < '2025-03-31 09:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 09:07:19] Production.INFO: count ==908 [2025-03-31 09:07:19] Production.ERROR: pbx CDR StartTime 2025-03-31 06:07:06 - End Time 2025-03-31 09:07:06 [2025-03-31 09:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 09:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802480', 'tblTempUsageDetail_20' ) start [2025-03-31 09:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802480', 'tblTempUsageDetail_20' ) end [2025-03-31 09:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802480', 'tblTempVendorCDR_20' ) start [2025-03-31 09:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802480', 'tblTempVendorCDR_20' ) end [2025-03-31 09:07:19] Production.INFO: ProcessCDR(1,14802480,1,1,2) [2025-03-31 09:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802480', 'tblTempUsageDetail_20' ) start [2025-03-31 09:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802480', 'tblTempUsageDetail_20' ) end [2025-03-31 09:07:25] Production.ERROR: pbx prc_insertCDR start [2025-03-31 09:07:25] Production.ERROR: pbx prc_insertCDR end [2025-03-31 09:07:25] Production.INFO: ==2613== Releasing lock... [2025-03-31 09:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 09:07:25] Production.INFO: 34.75 MB #Memory Used# [2025-03-31 09:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 06:08:05 [end_date_ymd] => 2025-03-31 09:08:05 [RateCDR] => 1 ) [2025-03-31 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-31 06:08:05' and `end` < '2025-03-31 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-31 09:08:18] Production.INFO: count ==917 [2025-03-31 09:08:18] Production.ERROR: pbx CDR StartTime 2025-03-31 06:08:05 - End Time 2025-03-31 09:08:05 [2025-03-31 09:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802489', 'tblTempUsageDetail_20' ) start [2025-03-31 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802489', 'tblTempUsageDetail_20' ) end [2025-03-31 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802489', 'tblTempVendorCDR_20' ) start [2025-03-31 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802489', 'tblTempVendorCDR_20' ) end [2025-03-31 09:08:18] Production.INFO: ProcessCDR(1,14802489,1,1,2) [2025-03-31 09:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802489', 'tblTempUsageDetail_20' ) start [2025-03-31 09:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802489', 'tblTempUsageDetail_20' ) end [2025-03-31 09:08:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 09:08:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 09:08:24] Production.INFO: ==2724== Releasing lock... [2025-03-31 09:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 09:08:24] Production.INFO: 34.75 MB #Memory Used# [2025-03-31 09:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 06:09:06 [end_date_ymd] => 2025-03-31 09:09:06 [RateCDR] => 1 ) [2025-03-31 09: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-31 06:09:06' and `end` < '2025-03-31 09: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-31 09:09:18] Production.INFO: count ==941 [2025-03-31 09:09:19] Production.ERROR: pbx CDR StartTime 2025-03-31 06:09:06 - End Time 2025-03-31 09:09:06 [2025-03-31 09:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 09:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802494', 'tblTempUsageDetail_20' ) start [2025-03-31 09:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802494', 'tblTempUsageDetail_20' ) end [2025-03-31 09:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802494', 'tblTempVendorCDR_20' ) start [2025-03-31 09:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802494', 'tblTempVendorCDR_20' ) end [2025-03-31 09:09:19] Production.INFO: ProcessCDR(1,14802494,1,1,2) [2025-03-31 09:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802494', 'tblTempUsageDetail_20' ) start [2025-03-31 09:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802494', 'tblTempUsageDetail_20' ) end [2025-03-31 09:09:25] Production.ERROR: pbx prc_insertCDR start [2025-03-31 09:09:25] Production.ERROR: pbx prc_insertCDR end [2025-03-31 09:09:25] Production.INFO: ==2797== Releasing lock... [2025-03-31 09:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 09:09:25] Production.INFO: 35.5 MB #Memory Used# [2025-03-31 09:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 06:10:06 [end_date_ymd] => 2025-03-31 09:10:06 [RateCDR] => 1 ) [2025-03-31 09:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 06:10:06' and `end` < '2025-03-31 09:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 09:10:19] Production.INFO: count ==953 [2025-03-31 09:10:20] Production.ERROR: pbx CDR StartTime 2025-03-31 06:10:06 - End Time 2025-03-31 09:10:06 [2025-03-31 09:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 09:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802500', 'tblTempUsageDetail_20' ) start [2025-03-31 09:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802500', 'tblTempUsageDetail_20' ) end [2025-03-31 09:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802500', 'tblTempVendorCDR_20' ) start [2025-03-31 09:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802500', 'tblTempVendorCDR_20' ) end [2025-03-31 09:10:20] Production.INFO: ProcessCDR(1,14802500,1,1,2) [2025-03-31 09:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802500', 'tblTempUsageDetail_20' ) start [2025-03-31 09:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802500', 'tblTempUsageDetail_20' ) end [2025-03-31 09:10:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 09:10:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 09:10:24] Production.INFO: ==2875== Releasing lock... [2025-03-31 09:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 09:10:24] Production.INFO: 35.5 MB #Memory Used# [2025-03-31 09:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 06:11:06 [end_date_ymd] => 2025-03-31 09:11:06 [RateCDR] => 1 ) [2025-03-31 09: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-31 06:11:06' and `end` < '2025-03-31 09: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-31 09:11:19] Production.INFO: count ==1055 [2025-03-31 09:11:19] Production.ERROR: pbx CDR StartTime 2025-03-31 06:11:06 - End Time 2025-03-31 09:11:06 [2025-03-31 09:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 09:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802505', 'tblTempUsageDetail_20' ) start [2025-03-31 09:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802505', 'tblTempUsageDetail_20' ) end [2025-03-31 09:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802505', 'tblTempVendorCDR_20' ) start [2025-03-31 09:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802505', 'tblTempVendorCDR_20' ) end [2025-03-31 09:11:20] Production.INFO: ProcessCDR(1,14802505,1,1,2) [2025-03-31 09:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802505', 'tblTempUsageDetail_20' ) start [2025-03-31 09:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802505', 'tblTempUsageDetail_20' ) end [2025-03-31 09:11:25] Production.ERROR: pbx prc_insertCDR start [2025-03-31 09:11:25] Production.ERROR: pbx prc_insertCDR end [2025-03-31 09:11:25] Production.INFO: ==2950== Releasing lock... [2025-03-31 09:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 09:11:25] Production.INFO: 36.25 MB #Memory Used# [2025-03-31 09:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 06:12:06 [end_date_ymd] => 2025-03-31 09:12:06 [RateCDR] => 1 ) [2025-03-31 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-31 06:12:06' and `end` < '2025-03-31 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-31 09:12:19] Production.INFO: count ==1087 [2025-03-31 09:12:19] Production.ERROR: pbx CDR StartTime 2025-03-31 06:12:06 - End Time 2025-03-31 09:12:06 [2025-03-31 09:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802510', 'tblTempUsageDetail_20' ) start [2025-03-31 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802510', 'tblTempUsageDetail_20' ) end [2025-03-31 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802510', 'tblTempVendorCDR_20' ) start [2025-03-31 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802510', 'tblTempVendorCDR_20' ) end [2025-03-31 09:12:19] Production.INFO: ProcessCDR(1,14802510,1,1,2) [2025-03-31 09:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802510', 'tblTempUsageDetail_20' ) start [2025-03-31 09:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802510', 'tblTempUsageDetail_20' ) end [2025-03-31 09:12:25] Production.ERROR: pbx prc_insertCDR start [2025-03-31 09:12:25] Production.ERROR: pbx prc_insertCDR end [2025-03-31 09:12:25] Production.INFO: ==3021== Releasing lock... [2025-03-31 09:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 09:12:25] Production.INFO: 36.25 MB #Memory Used# [2025-03-31 09:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 06:13:05 [end_date_ymd] => 2025-03-31 09:13:05 [RateCDR] => 1 ) [2025-03-31 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-31 06:13:05' and `end` < '2025-03-31 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-31 09:13:18] Production.INFO: count ==1114 [2025-03-31 09:13:19] Production.ERROR: pbx CDR StartTime 2025-03-31 06:13:05 - End Time 2025-03-31 09:13:05 [2025-03-31 09:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802515', 'tblTempUsageDetail_20' ) start [2025-03-31 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802515', 'tblTempUsageDetail_20' ) end [2025-03-31 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802515', 'tblTempVendorCDR_20' ) start [2025-03-31 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802515', 'tblTempVendorCDR_20' ) end [2025-03-31 09:13:19] Production.INFO: ProcessCDR(1,14802515,1,1,2) [2025-03-31 09:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802515', 'tblTempUsageDetail_20' ) start [2025-03-31 09:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802515', 'tblTempUsageDetail_20' ) end [2025-03-31 09:13:25] Production.ERROR: pbx prc_insertCDR start [2025-03-31 09:13:25] Production.ERROR: pbx prc_insertCDR end [2025-03-31 09:13:25] Production.INFO: ==3094== Releasing lock... [2025-03-31 09:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 09:13:25] Production.INFO: 36.75 MB #Memory Used# [2025-03-31 09:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 06:14:06 [end_date_ymd] => 2025-03-31 09:14:06 [RateCDR] => 1 ) [2025-03-31 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-31 06:14:06' and `end` < '2025-03-31 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-31 09:14:19] Production.INFO: count ==1132 [2025-03-31 09:14:19] Production.ERROR: pbx CDR StartTime 2025-03-31 06:14:06 - End Time 2025-03-31 09:14:06 [2025-03-31 09:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802520', 'tblTempUsageDetail_20' ) start [2025-03-31 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802520', 'tblTempUsageDetail_20' ) end [2025-03-31 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802520', 'tblTempVendorCDR_20' ) start [2025-03-31 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802520', 'tblTempVendorCDR_20' ) end [2025-03-31 09:14:19] Production.INFO: ProcessCDR(1,14802520,1,1,2) [2025-03-31 09:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802520', 'tblTempUsageDetail_20' ) start [2025-03-31 09:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802520', 'tblTempUsageDetail_20' ) end [2025-03-31 09:14:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 09:14:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 09:14:23] Production.INFO: ==3167== Releasing lock... [2025-03-31 09:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 09:14:23] Production.INFO: 36.75 MB #Memory Used# [2025-03-31 09:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 06:15:05 [end_date_ymd] => 2025-03-31 09:15:05 [RateCDR] => 1 ) [2025-03-31 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-31 06:15:05' and `end` < '2025-03-31 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-31 09:15:18] Production.INFO: count ==1147 [2025-03-31 09:15:19] Production.ERROR: pbx CDR StartTime 2025-03-31 06:15:05 - End Time 2025-03-31 09:15:05 [2025-03-31 09:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 09:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802525', 'tblTempUsageDetail_20' ) start [2025-03-31 09:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802525', 'tblTempUsageDetail_20' ) end [2025-03-31 09:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802525', 'tblTempVendorCDR_20' ) start [2025-03-31 09:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802525', 'tblTempVendorCDR_20' ) end [2025-03-31 09:15:19] Production.INFO: ProcessCDR(1,14802525,1,1,2) [2025-03-31 09:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802525', 'tblTempUsageDetail_20' ) start [2025-03-31 09:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802525', 'tblTempUsageDetail_20' ) end [2025-03-31 09:15:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 09:15:25] Production.ERROR: pbx prc_insertCDR end [2025-03-31 09:15:25] Production.INFO: ==3240== Releasing lock... [2025-03-31 09:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 09:15:25] Production.INFO: 37.25 MB #Memory Used# [2025-03-31 09:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 06:16:06 [end_date_ymd] => 2025-03-31 09:16:06 [RateCDR] => 1 ) [2025-03-31 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-31 06:16:06' and `end` < '2025-03-31 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-31 09:16:19] Production.INFO: count ==1152 [2025-03-31 09:16:20] Production.ERROR: pbx CDR StartTime 2025-03-31 06:16:06 - End Time 2025-03-31 09:16:06 [2025-03-31 09:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 09:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802530', 'tblTempUsageDetail_20' ) start [2025-03-31 09:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802530', 'tblTempUsageDetail_20' ) end [2025-03-31 09:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802530', 'tblTempVendorCDR_20' ) start [2025-03-31 09:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802530', 'tblTempVendorCDR_20' ) end [2025-03-31 09:16:20] Production.INFO: ProcessCDR(1,14802530,1,1,2) [2025-03-31 09:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802530', 'tblTempUsageDetail_20' ) start [2025-03-31 09:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802530', 'tblTempUsageDetail_20' ) end [2025-03-31 09:16:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 09:16:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 09:16:24] Production.INFO: ==3315== Releasing lock... [2025-03-31 09:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 09:16:24] Production.INFO: 36.5 MB #Memory Used# [2025-03-31 09:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 06:17:05 [end_date_ymd] => 2025-03-31 09:17:05 [RateCDR] => 1 ) [2025-03-31 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-31 06:17:05' and `end` < '2025-03-31 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-31 09:17:18] Production.INFO: count ==1171 [2025-03-31 09:17:18] Production.ERROR: pbx CDR StartTime 2025-03-31 06:17:05 - End Time 2025-03-31 09:17:05 [2025-03-31 09:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802535', 'tblTempUsageDetail_20' ) start [2025-03-31 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802535', 'tblTempUsageDetail_20' ) end [2025-03-31 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802535', 'tblTempVendorCDR_20' ) start [2025-03-31 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802535', 'tblTempVendorCDR_20' ) end [2025-03-31 09:17:18] Production.INFO: ProcessCDR(1,14802535,1,1,2) [2025-03-31 09:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802535', 'tblTempUsageDetail_20' ) start [2025-03-31 09:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802535', 'tblTempUsageDetail_20' ) end [2025-03-31 09:17:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 09:17:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 09:17:24] Production.INFO: ==3388== Releasing lock... [2025-03-31 09:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 09:17:24] Production.INFO: 37 MB #Memory Used# [2025-03-31 09:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 06:18:06 [end_date_ymd] => 2025-03-31 09:18:06 [RateCDR] => 1 ) [2025-03-31 09: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-31 06:18:06' and `end` < '2025-03-31 09: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-31 09:18:18] Production.INFO: count ==1186 [2025-03-31 09:18:19] Production.ERROR: pbx CDR StartTime 2025-03-31 06:18:06 - End Time 2025-03-31 09:18:06 [2025-03-31 09:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802540', 'tblTempUsageDetail_20' ) start [2025-03-31 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802540', 'tblTempUsageDetail_20' ) end [2025-03-31 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802540', 'tblTempVendorCDR_20' ) start [2025-03-31 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802540', 'tblTempVendorCDR_20' ) end [2025-03-31 09:18:19] Production.INFO: ProcessCDR(1,14802540,1,1,2) [2025-03-31 09:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802540', 'tblTempUsageDetail_20' ) start [2025-03-31 09:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802540', 'tblTempUsageDetail_20' ) end [2025-03-31 09:18:25] Production.ERROR: pbx prc_insertCDR start [2025-03-31 09:18:25] Production.ERROR: pbx prc_insertCDR end [2025-03-31 09:18:25] Production.INFO: ==3475== Releasing lock... [2025-03-31 09:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 09:18:25] Production.INFO: 37 MB #Memory Used# [2025-03-31 09:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 06:19:06 [end_date_ymd] => 2025-03-31 09:19:06 [RateCDR] => 1 ) [2025-03-31 09: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-31 06:19:06' and `end` < '2025-03-31 09: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-31 09:19:19] Production.INFO: count ==1250 [2025-03-31 09:19:19] Production.ERROR: pbx CDR StartTime 2025-03-31 06:19:06 - End Time 2025-03-31 09:19:06 [2025-03-31 09:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 09:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802545', 'tblTempUsageDetail_20' ) start [2025-03-31 09:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802545', 'tblTempUsageDetail_20' ) end [2025-03-31 09:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802545', 'tblTempVendorCDR_20' ) start [2025-03-31 09:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802545', 'tblTempVendorCDR_20' ) end [2025-03-31 09:19:19] Production.INFO: ProcessCDR(1,14802545,1,1,2) [2025-03-31 09:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802545', 'tblTempUsageDetail_20' ) start [2025-03-31 09:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802545', 'tblTempUsageDetail_20' ) end [2025-03-31 09:19:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 09:19:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 09:19:23] Production.INFO: ==3550== Releasing lock... [2025-03-31 09:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 09:19:23] Production.INFO: 37.5 MB #Memory Used# [2025-03-31 09:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 06:20:07 [end_date_ymd] => 2025-03-31 09:20:07 [RateCDR] => 1 ) [2025-03-31 09: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-31 06:20:07' and `end` < '2025-03-31 09: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-31 09:20:20] Production.INFO: count ==1273 [2025-03-31 09:20:21] Production.ERROR: pbx CDR StartTime 2025-03-31 06:20:07 - End Time 2025-03-31 09:20:07 [2025-03-31 09:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 09:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802551', 'tblTempUsageDetail_20' ) start [2025-03-31 09:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802551', 'tblTempUsageDetail_20' ) end [2025-03-31 09:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802551', 'tblTempVendorCDR_20' ) start [2025-03-31 09:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802551', 'tblTempVendorCDR_20' ) end [2025-03-31 09:20:21] Production.INFO: ProcessCDR(1,14802551,1,1,2) [2025-03-31 09:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802551', 'tblTempUsageDetail_20' ) start [2025-03-31 09:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802551', 'tblTempUsageDetail_20' ) end [2025-03-31 09:20:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 09:20:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 09:20:27] Production.INFO: ==3622== Releasing lock... [2025-03-31 09:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 09:20:27] Production.INFO: 37.5 MB #Memory Used# [2025-03-31 09:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 06:21:06 [end_date_ymd] => 2025-03-31 09:21:06 [RateCDR] => 1 ) [2025-03-31 09:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 06:21:06' and `end` < '2025-03-31 09:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 09:21:19] Production.INFO: count ==1341 [2025-03-31 09:21:19] Production.ERROR: pbx CDR StartTime 2025-03-31 06:21:06 - End Time 2025-03-31 09:21:06 [2025-03-31 09:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802556', 'tblTempUsageDetail_20' ) start [2025-03-31 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802556', 'tblTempUsageDetail_20' ) end [2025-03-31 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802556', 'tblTempVendorCDR_20' ) start [2025-03-31 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802556', 'tblTempVendorCDR_20' ) end [2025-03-31 09:21:19] Production.INFO: ProcessCDR(1,14802556,1,1,2) [2025-03-31 09:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802556', 'tblTempUsageDetail_20' ) start [2025-03-31 09:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802556', 'tblTempUsageDetail_20' ) end [2025-03-31 09:21:25] Production.ERROR: pbx prc_insertCDR start [2025-03-31 09:21:25] Production.ERROR: pbx prc_insertCDR end [2025-03-31 09:21:25] Production.INFO: ==3698== Releasing lock... [2025-03-31 09:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 09:21:25] Production.INFO: 38.25 MB #Memory Used# [2025-03-31 09:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 06:22:06 [end_date_ymd] => 2025-03-31 09:22:06 [RateCDR] => 1 ) [2025-03-31 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-31 06:22:06' and `end` < '2025-03-31 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-31 09:22:19] Production.INFO: count ==1359 [2025-03-31 09:22:20] Production.ERROR: pbx CDR StartTime 2025-03-31 06:22:06 - End Time 2025-03-31 09:22:06 [2025-03-31 09:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 09:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802561', 'tblTempUsageDetail_20' ) start [2025-03-31 09:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802561', 'tblTempUsageDetail_20' ) end [2025-03-31 09:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802561', 'tblTempVendorCDR_20' ) start [2025-03-31 09:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802561', 'tblTempVendorCDR_20' ) end [2025-03-31 09:22:20] Production.INFO: ProcessCDR(1,14802561,1,1,2) [2025-03-31 09:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802561', 'tblTempUsageDetail_20' ) start [2025-03-31 09:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802561', 'tblTempUsageDetail_20' ) end [2025-03-31 09:22:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 09:22:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 09:22:26] Production.INFO: ==3772== Releasing lock... [2025-03-31 09:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 09:22:26] Production.INFO: 38.25 MB #Memory Used# [2025-03-31 09:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 06:23:05 [end_date_ymd] => 2025-03-31 09:23:05 [RateCDR] => 1 ) [2025-03-31 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-31 06:23:05' and `end` < '2025-03-31 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-31 09:23:19] Production.INFO: count ==1375 [2025-03-31 09:23:19] Production.ERROR: pbx CDR StartTime 2025-03-31 06:23:05 - End Time 2025-03-31 09:23:05 [2025-03-31 09:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802566', 'tblTempUsageDetail_20' ) start [2025-03-31 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802566', 'tblTempUsageDetail_20' ) end [2025-03-31 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802566', 'tblTempVendorCDR_20' ) start [2025-03-31 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802566', 'tblTempVendorCDR_20' ) end [2025-03-31 09:23:19] Production.INFO: ProcessCDR(1,14802566,1,1,2) [2025-03-31 09:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802566', 'tblTempUsageDetail_20' ) start [2025-03-31 09:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802566', 'tblTempUsageDetail_20' ) end [2025-03-31 09:23:25] Production.ERROR: pbx prc_insertCDR start [2025-03-31 09:23:25] Production.ERROR: pbx prc_insertCDR end [2025-03-31 09:23:25] Production.INFO: ==3885== Releasing lock... [2025-03-31 09:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 09:23:25] Production.INFO: 38.5 MB #Memory Used# [2025-03-31 09:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 06:24:06 [end_date_ymd] => 2025-03-31 09:24:06 [RateCDR] => 1 ) [2025-03-31 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-31 06:24:06' and `end` < '2025-03-31 09: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-31 09:24:19] Production.INFO: count ==1392 [2025-03-31 09:24:20] Production.ERROR: pbx CDR StartTime 2025-03-31 06:24:06 - End Time 2025-03-31 09:24:06 [2025-03-31 09:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 09:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802571', 'tblTempUsageDetail_20' ) start [2025-03-31 09:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802571', 'tblTempUsageDetail_20' ) end [2025-03-31 09:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802571', 'tblTempVendorCDR_20' ) start [2025-03-31 09:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802571', 'tblTempVendorCDR_20' ) end [2025-03-31 09:24:20] Production.INFO: ProcessCDR(1,14802571,1,1,2) [2025-03-31 09:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802571', 'tblTempUsageDetail_20' ) start [2025-03-31 09:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802571', 'tblTempUsageDetail_20' ) end [2025-03-31 09:24:25] Production.ERROR: pbx prc_insertCDR start [2025-03-31 09:24:25] Production.ERROR: pbx prc_insertCDR end [2025-03-31 09:24:25] Production.INFO: ==3957== Releasing lock... [2025-03-31 09:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 09:24:25] Production.INFO: 38.5 MB #Memory Used# [2025-03-31 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 06:25:05 [end_date_ymd] => 2025-03-31 09:25:05 [RateCDR] => 1 ) [2025-03-31 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-31 06:25:05' and `end` < '2025-03-31 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-31 09:25:18] Production.INFO: count ==1423 [2025-03-31 09:25:19] Production.ERROR: pbx CDR StartTime 2025-03-31 06:25:05 - End Time 2025-03-31 09:25:05 [2025-03-31 09:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802576', 'tblTempUsageDetail_20' ) start [2025-03-31 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802576', 'tblTempUsageDetail_20' ) end [2025-03-31 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802576', 'tblTempVendorCDR_20' ) start [2025-03-31 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802576', 'tblTempVendorCDR_20' ) end [2025-03-31 09:25:19] Production.INFO: ProcessCDR(1,14802576,1,1,2) [2025-03-31 09:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802576', 'tblTempUsageDetail_20' ) start [2025-03-31 09:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802576', 'tblTempUsageDetail_20' ) end [2025-03-31 09:25:25] Production.ERROR: pbx prc_insertCDR start [2025-03-31 09:25:25] Production.ERROR: pbx prc_insertCDR end [2025-03-31 09:25:25] Production.INFO: ==4029== Releasing lock... [2025-03-31 09:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 09:25:25] Production.INFO: 38.75 MB #Memory Used# [2025-03-31 09:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 06:26:06 [end_date_ymd] => 2025-03-31 09:26:06 [RateCDR] => 1 ) [2025-03-31 09: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-31 06:26:06' and `end` < '2025-03-31 09: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-31 09:26:19] Production.INFO: count ==1444 [2025-03-31 09:26:19] Production.ERROR: pbx CDR StartTime 2025-03-31 06:26:06 - End Time 2025-03-31 09:26:06 [2025-03-31 09:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802581', 'tblTempUsageDetail_20' ) start [2025-03-31 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802581', 'tblTempUsageDetail_20' ) end [2025-03-31 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802581', 'tblTempVendorCDR_20' ) start [2025-03-31 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802581', 'tblTempVendorCDR_20' ) end [2025-03-31 09:26:19] Production.INFO: ProcessCDR(1,14802581,1,1,2) [2025-03-31 09:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802581', 'tblTempUsageDetail_20' ) start [2025-03-31 09:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802581', 'tblTempUsageDetail_20' ) end [2025-03-31 09:26:25] Production.ERROR: pbx prc_insertCDR start [2025-03-31 09:26:25] Production.ERROR: pbx prc_insertCDR end [2025-03-31 09:26:25] Production.INFO: ==4104== Releasing lock... [2025-03-31 09:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 09:26:25] Production.INFO: 39 MB #Memory Used# [2025-03-31 09:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 06:27:05 [end_date_ymd] => 2025-03-31 09:27:05 [RateCDR] => 1 ) [2025-03-31 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-31 06:27:05' and `end` < '2025-03-31 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-31 09:27:18] Production.INFO: count ==1454 [2025-03-31 09:27:19] Production.ERROR: pbx CDR StartTime 2025-03-31 06:27:05 - End Time 2025-03-31 09:27:05 [2025-03-31 09:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802586', 'tblTempUsageDetail_20' ) start [2025-03-31 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802586', 'tblTempUsageDetail_20' ) end [2025-03-31 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802586', 'tblTempVendorCDR_20' ) start [2025-03-31 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802586', 'tblTempVendorCDR_20' ) end [2025-03-31 09:27:19] Production.INFO: ProcessCDR(1,14802586,1,1,2) [2025-03-31 09:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802586', 'tblTempUsageDetail_20' ) start [2025-03-31 09:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802586', 'tblTempUsageDetail_20' ) end [2025-03-31 09:27:25] Production.ERROR: pbx prc_insertCDR start [2025-03-31 09:27:25] Production.ERROR: pbx prc_insertCDR end [2025-03-31 09:27:25] Production.INFO: ==4175== Releasing lock... [2025-03-31 09:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 09:27:25] Production.INFO: 39 MB #Memory Used# [2025-03-31 09:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 06:28:06 [end_date_ymd] => 2025-03-31 09:28:06 [RateCDR] => 1 ) [2025-03-31 09: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-31 06:28:06' and `end` < '2025-03-31 09: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-31 09:28:19] Production.INFO: count ==1484 [2025-03-31 09:28:20] Production.ERROR: pbx CDR StartTime 2025-03-31 06:28:06 - End Time 2025-03-31 09:28:06 [2025-03-31 09:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 09:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802591', 'tblTempUsageDetail_20' ) start [2025-03-31 09:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802591', 'tblTempUsageDetail_20' ) end [2025-03-31 09:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802591', 'tblTempVendorCDR_20' ) start [2025-03-31 09:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802591', 'tblTempVendorCDR_20' ) end [2025-03-31 09:28:20] Production.INFO: ProcessCDR(1,14802591,1,1,2) [2025-03-31 09:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802591', 'tblTempUsageDetail_20' ) start [2025-03-31 09:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802591', 'tblTempUsageDetail_20' ) end [2025-03-31 09:28:25] Production.ERROR: pbx prc_insertCDR start [2025-03-31 09:28:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 09:28:26] Production.INFO: ==4248== Releasing lock... [2025-03-31 09:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 09:28:26] Production.INFO: 39.25 MB #Memory Used# [2025-03-31 09:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 06:29:06 [end_date_ymd] => 2025-03-31 09:29:06 [RateCDR] => 1 ) [2025-03-31 09: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-31 06:29:06' and `end` < '2025-03-31 09: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-31 09:29:19] Production.INFO: count ==1541 [2025-03-31 09:29:19] Production.ERROR: pbx CDR StartTime 2025-03-31 06:29:06 - End Time 2025-03-31 09:29:06 [2025-03-31 09:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802596', 'tblTempUsageDetail_20' ) start [2025-03-31 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802596', 'tblTempUsageDetail_20' ) end [2025-03-31 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802596', 'tblTempVendorCDR_20' ) start [2025-03-31 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802596', 'tblTempVendorCDR_20' ) end [2025-03-31 09:29:19] Production.INFO: ProcessCDR(1,14802596,1,1,2) [2025-03-31 09:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802596', 'tblTempUsageDetail_20' ) start [2025-03-31 09:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802596', 'tblTempUsageDetail_20' ) end [2025-03-31 09:29:25] Production.ERROR: pbx prc_insertCDR start [2025-03-31 09:29:25] Production.ERROR: pbx prc_insertCDR end [2025-03-31 09:29:25] Production.INFO: ==4319== Releasing lock... [2025-03-31 09:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 09:29:25] Production.INFO: 39.5 MB #Memory Used# [2025-03-31 09:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 06:30:07 [end_date_ymd] => 2025-03-31 09:30:07 [RateCDR] => 1 ) [2025-03-31 09:30:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 06:30:07' and `end` < '2025-03-31 09:30:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 09:30:20] Production.INFO: count ==1554 [2025-03-31 09:30:21] Production.ERROR: pbx CDR StartTime 2025-03-31 06:30:07 - End Time 2025-03-31 09:30:07 [2025-03-31 09:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 09:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802602', 'tblTempUsageDetail_20' ) start [2025-03-31 09:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802602', 'tblTempUsageDetail_20' ) end [2025-03-31 09:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802602', 'tblTempVendorCDR_20' ) start [2025-03-31 09:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802602', 'tblTempVendorCDR_20' ) end [2025-03-31 09:30:21] Production.INFO: ProcessCDR(1,14802602,1,1,2) [2025-03-31 09:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802602', 'tblTempUsageDetail_20' ) start [2025-03-31 09:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802602', 'tblTempUsageDetail_20' ) end [2025-03-31 09:30:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 09:30:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 09:30:27] Production.INFO: ==4399== Releasing lock... [2025-03-31 09:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 09:30:27] Production.INFO: 39.75 MB #Memory Used# [2025-03-31 09:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 06:31:05 [end_date_ymd] => 2025-03-31 09:31:05 [RateCDR] => 1 ) [2025-03-31 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-31 06:31:05' and `end` < '2025-03-31 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-31 09:31:18] Production.INFO: count ==1626 [2025-03-31 09:31:19] Production.ERROR: pbx CDR StartTime 2025-03-31 06:31:05 - End Time 2025-03-31 09:31:05 [2025-03-31 09:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802607', 'tblTempUsageDetail_20' ) start [2025-03-31 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802607', 'tblTempUsageDetail_20' ) end [2025-03-31 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802607', 'tblTempVendorCDR_20' ) start [2025-03-31 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802607', 'tblTempVendorCDR_20' ) end [2025-03-31 09:31:19] Production.INFO: ProcessCDR(1,14802607,1,1,2) [2025-03-31 09:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802607', 'tblTempUsageDetail_20' ) start [2025-03-31 09:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802607', 'tblTempUsageDetail_20' ) end [2025-03-31 09:31:25] Production.ERROR: pbx prc_insertCDR start [2025-03-31 09:31:25] Production.ERROR: pbx prc_insertCDR end [2025-03-31 09:31:25] Production.INFO: ==4479== Releasing lock... [2025-03-31 09:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 09:31:25] Production.INFO: 40.25 MB #Memory Used# [2025-03-31 09:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 06:32:06 [end_date_ymd] => 2025-03-31 09:32:06 [RateCDR] => 1 ) [2025-03-31 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-31 06:32:06' and `end` < '2025-03-31 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-31 09:32:19] Production.INFO: count ==1636 [2025-03-31 09:32:20] Production.ERROR: pbx CDR StartTime 2025-03-31 06:32:06 - End Time 2025-03-31 09:32:06 [2025-03-31 09:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 09:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802612', 'tblTempUsageDetail_20' ) start [2025-03-31 09:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802612', 'tblTempUsageDetail_20' ) end [2025-03-31 09:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802612', 'tblTempVendorCDR_20' ) start [2025-03-31 09:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802612', 'tblTempVendorCDR_20' ) end [2025-03-31 09:32:20] Production.INFO: ProcessCDR(1,14802612,1,1,2) [2025-03-31 09:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802612', 'tblTempUsageDetail_20' ) start [2025-03-31 09:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802612', 'tblTempUsageDetail_20' ) end [2025-03-31 09:32:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 09:32:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 09:32:26] Production.INFO: ==4551== Releasing lock... [2025-03-31 09:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 09:32:26] Production.INFO: 40.25 MB #Memory Used# [2025-03-31 09:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 06:33:06 [end_date_ymd] => 2025-03-31 09:33:06 [RateCDR] => 1 ) [2025-03-31 09: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-31 06:33:06' and `end` < '2025-03-31 09: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-31 09:33:19] Production.INFO: count ==1674 [2025-03-31 09:33:20] Production.ERROR: pbx CDR StartTime 2025-03-31 06:33:06 - End Time 2025-03-31 09:33:06 [2025-03-31 09:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 09:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802617', 'tblTempUsageDetail_20' ) start [2025-03-31 09:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802617', 'tblTempUsageDetail_20' ) end [2025-03-31 09:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802617', 'tblTempVendorCDR_20' ) start [2025-03-31 09:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802617', 'tblTempVendorCDR_20' ) end [2025-03-31 09:33:20] Production.INFO: ProcessCDR(1,14802617,1,1,2) [2025-03-31 09:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802617', 'tblTempUsageDetail_20' ) start [2025-03-31 09:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802617', 'tblTempUsageDetail_20' ) end [2025-03-31 09:33:25] Production.ERROR: pbx prc_insertCDR start [2025-03-31 09:33:25] Production.ERROR: pbx prc_insertCDR end [2025-03-31 09:33:25] Production.INFO: ==4630== Releasing lock... [2025-03-31 09:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 09:33:25] Production.INFO: 40.5 MB #Memory Used# [2025-03-31 09:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 06:34:06 [end_date_ymd] => 2025-03-31 09:34:06 [RateCDR] => 1 ) [2025-03-31 09: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-31 06:34:06' and `end` < '2025-03-31 09: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-31 09:34:19] Production.INFO: count ==1708 [2025-03-31 09:34:20] Production.ERROR: pbx CDR StartTime 2025-03-31 06:34:06 - End Time 2025-03-31 09:34:06 [2025-03-31 09:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 09:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802622', 'tblTempUsageDetail_20' ) start [2025-03-31 09:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802622', 'tblTempUsageDetail_20' ) end [2025-03-31 09:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802622', 'tblTempVendorCDR_20' ) start [2025-03-31 09:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802622', 'tblTempVendorCDR_20' ) end [2025-03-31 09:34:20] Production.INFO: ProcessCDR(1,14802622,1,1,2) [2025-03-31 09:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802622', 'tblTempUsageDetail_20' ) start [2025-03-31 09:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802622', 'tblTempUsageDetail_20' ) end [2025-03-31 09:34:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 09:34:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 09:34:26] Production.INFO: ==4705== Releasing lock... [2025-03-31 09:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 09:34:26] Production.INFO: 40.75 MB #Memory Used# [2025-03-31 09:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 06:35:06 [end_date_ymd] => 2025-03-31 09:35:06 [RateCDR] => 1 ) [2025-03-31 09: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-31 06:35:06' and `end` < '2025-03-31 09: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-31 09:35:19] Production.INFO: count ==1718 [2025-03-31 09:35:20] Production.ERROR: pbx CDR StartTime 2025-03-31 06:35:06 - End Time 2025-03-31 09:35:06 [2025-03-31 09:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 09:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802627', 'tblTempUsageDetail_20' ) start [2025-03-31 09:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802627', 'tblTempUsageDetail_20' ) end [2025-03-31 09:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802627', 'tblTempVendorCDR_20' ) start [2025-03-31 09:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802627', 'tblTempVendorCDR_20' ) end [2025-03-31 09:35:20] Production.INFO: ProcessCDR(1,14802627,1,1,2) [2025-03-31 09:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802627', 'tblTempUsageDetail_20' ) start [2025-03-31 09:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802627', 'tblTempUsageDetail_20' ) end [2025-03-31 09:35:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 09:35:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 09:35:26] Production.INFO: ==4775== Releasing lock... [2025-03-31 09:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 09:35:26] Production.INFO: 41.25 MB #Memory Used# [2025-03-31 09:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 06:36:06 [end_date_ymd] => 2025-03-31 09:36:06 [RateCDR] => 1 ) [2025-03-31 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-31 06:36:06' and `end` < '2025-03-31 09:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 09:36:19] Production.INFO: count ==1769 [2025-03-31 09:36:19] Production.ERROR: pbx CDR StartTime 2025-03-31 06:36:06 - End Time 2025-03-31 09:36:06 [2025-03-31 09:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802632', 'tblTempUsageDetail_20' ) start [2025-03-31 09:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802632', 'tblTempUsageDetail_20' ) end [2025-03-31 09:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802632', 'tblTempVendorCDR_20' ) start [2025-03-31 09:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802632', 'tblTempVendorCDR_20' ) end [2025-03-31 09:36:20] Production.INFO: ProcessCDR(1,14802632,1,1,2) [2025-03-31 09:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802632', 'tblTempUsageDetail_20' ) start [2025-03-31 09:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802632', 'tblTempUsageDetail_20' ) end [2025-03-31 09:36:25] Production.ERROR: pbx prc_insertCDR start [2025-03-31 09:36:25] Production.ERROR: pbx prc_insertCDR end [2025-03-31 09:36:25] Production.INFO: ==4846== Releasing lock... [2025-03-31 09:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 09:36:25] Production.INFO: 41.25 MB #Memory Used# [2025-03-31 09:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 06:37:06 [end_date_ymd] => 2025-03-31 09:37:06 [RateCDR] => 1 ) [2025-03-31 09: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-31 06:37:06' and `end` < '2025-03-31 09: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-31 09:37:19] Production.INFO: count ==1803 [2025-03-31 09:37:19] Production.ERROR: pbx CDR StartTime 2025-03-31 06:37:06 - End Time 2025-03-31 09:37:06 [2025-03-31 09:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802637', 'tblTempUsageDetail_20' ) start [2025-03-31 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802637', 'tblTempUsageDetail_20' ) end [2025-03-31 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802637', 'tblTempVendorCDR_20' ) start [2025-03-31 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802637', 'tblTempVendorCDR_20' ) end [2025-03-31 09:37:19] Production.INFO: ProcessCDR(1,14802637,1,1,2) [2025-03-31 09:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802637', 'tblTempUsageDetail_20' ) start [2025-03-31 09:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802637', 'tblTempUsageDetail_20' ) end [2025-03-31 09:37:25] Production.ERROR: pbx prc_insertCDR start [2025-03-31 09:37:25] Production.ERROR: pbx prc_insertCDR end [2025-03-31 09:37:25] Production.INFO: ==4921== Releasing lock... [2025-03-31 09:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 09:37:25] Production.INFO: 41.5 MB #Memory Used# [2025-03-31 09:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 06:38:05 [end_date_ymd] => 2025-03-31 09:38:05 [RateCDR] => 1 ) [2025-03-31 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-31 06:38:05' and `end` < '2025-03-31 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-31 09:38:18] Production.INFO: count ==1807 [2025-03-31 09:38:19] Production.ERROR: pbx CDR StartTime 2025-03-31 06:38:05 - End Time 2025-03-31 09:38:05 [2025-03-31 09:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802642', 'tblTempUsageDetail_20' ) start [2025-03-31 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802642', 'tblTempUsageDetail_20' ) end [2025-03-31 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802642', 'tblTempVendorCDR_20' ) start [2025-03-31 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802642', 'tblTempVendorCDR_20' ) end [2025-03-31 09:38:19] Production.INFO: ProcessCDR(1,14802642,1,1,2) [2025-03-31 09:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802642', 'tblTempUsageDetail_20' ) start [2025-03-31 09:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802642', 'tblTempUsageDetail_20' ) end [2025-03-31 09:38:25] Production.ERROR: pbx prc_insertCDR start [2025-03-31 09:38:25] Production.ERROR: pbx prc_insertCDR end [2025-03-31 09:38:25] Production.INFO: ==5033== Releasing lock... [2025-03-31 09:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 09:38:25] Production.INFO: 41.5 MB #Memory Used# [2025-03-31 09:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 06:39:05 [end_date_ymd] => 2025-03-31 09:39:05 [RateCDR] => 1 ) [2025-03-31 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-31 06:39:05' and `end` < '2025-03-31 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-31 09:39:19] Production.INFO: count ==1825 [2025-03-31 09:39:19] Production.ERROR: pbx CDR StartTime 2025-03-31 06:39:05 - End Time 2025-03-31 09:39:05 [2025-03-31 09:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802647', 'tblTempUsageDetail_20' ) start [2025-03-31 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802647', 'tblTempUsageDetail_20' ) end [2025-03-31 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802647', 'tblTempVendorCDR_20' ) start [2025-03-31 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802647', 'tblTempVendorCDR_20' ) end [2025-03-31 09:39:19] Production.INFO: ProcessCDR(1,14802647,1,1,2) [2025-03-31 09:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802647', 'tblTempUsageDetail_20' ) start [2025-03-31 09:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802647', 'tblTempUsageDetail_20' ) end [2025-03-31 09:39:25] Production.ERROR: pbx prc_insertCDR start [2025-03-31 09:39:25] Production.ERROR: pbx prc_insertCDR end [2025-03-31 09:39:25] Production.INFO: ==5108== Releasing lock... [2025-03-31 09:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 09:39:25] Production.INFO: 41.75 MB #Memory Used# [2025-03-31 09:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 06:40:06 [end_date_ymd] => 2025-03-31 09:40:06 [RateCDR] => 1 ) [2025-03-31 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-31 06:40:06' and `end` < '2025-03-31 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-31 09:40:19] Production.INFO: count ==1863 [2025-03-31 09:40:20] Production.ERROR: pbx CDR StartTime 2025-03-31 06:40:06 - End Time 2025-03-31 09:40:06 [2025-03-31 09:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802653', 'tblTempUsageDetail_20' ) start [2025-03-31 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802653', 'tblTempUsageDetail_20' ) end [2025-03-31 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802653', 'tblTempVendorCDR_20' ) start [2025-03-31 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802653', 'tblTempVendorCDR_20' ) end [2025-03-31 09:40:20] Production.INFO: ProcessCDR(1,14802653,1,1,2) [2025-03-31 09:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802653', 'tblTempUsageDetail_20' ) start [2025-03-31 09:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802653', 'tblTempUsageDetail_20' ) end [2025-03-31 09:40:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 09:40:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 09:40:26] Production.INFO: ==5182== Releasing lock... [2025-03-31 09:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 09:40:26] Production.INFO: 42 MB #Memory Used# [2025-03-31 09:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 06:41:06 [end_date_ymd] => 2025-03-31 09:41:06 [RateCDR] => 1 ) [2025-03-31 09: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-31 06:41:06' and `end` < '2025-03-31 09: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-31 09:41:19] Production.INFO: count ==1950 [2025-03-31 09:41:19] Production.ERROR: pbx CDR StartTime 2025-03-31 06:41:06 - End Time 2025-03-31 09:41:06 [2025-03-31 09:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802658', 'tblTempUsageDetail_20' ) start [2025-03-31 09:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802658', 'tblTempUsageDetail_20' ) end [2025-03-31 09:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802658', 'tblTempVendorCDR_20' ) start [2025-03-31 09:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802658', 'tblTempVendorCDR_20' ) end [2025-03-31 09:41:20] Production.INFO: ProcessCDR(1,14802658,1,1,2) [2025-03-31 09:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802658', 'tblTempUsageDetail_20' ) start [2025-03-31 09:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802658', 'tblTempUsageDetail_20' ) end [2025-03-31 09:41:25] Production.ERROR: pbx prc_insertCDR start [2025-03-31 09:41:25] Production.ERROR: pbx prc_insertCDR end [2025-03-31 09:41:25] Production.INFO: ==5257== Releasing lock... [2025-03-31 09:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 09:41:25] Production.INFO: 43 MB #Memory Used# [2025-03-31 09:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 06:42:05 [end_date_ymd] => 2025-03-31 09:42:05 [RateCDR] => 1 ) [2025-03-31 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-31 06:42:05' and `end` < '2025-03-31 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-31 09:42:18] Production.INFO: count ==1966 [2025-03-31 09:42:19] Production.ERROR: pbx CDR StartTime 2025-03-31 06:42:05 - End Time 2025-03-31 09:42:05 [2025-03-31 09:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802663', 'tblTempUsageDetail_20' ) start [2025-03-31 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802663', 'tblTempUsageDetail_20' ) end [2025-03-31 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802663', 'tblTempVendorCDR_20' ) start [2025-03-31 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802663', 'tblTempVendorCDR_20' ) end [2025-03-31 09:42:19] Production.INFO: ProcessCDR(1,14802663,1,1,2) [2025-03-31 09:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802663', 'tblTempUsageDetail_20' ) start [2025-03-31 09:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802663', 'tblTempUsageDetail_20' ) end [2025-03-31 09:42:25] Production.ERROR: pbx prc_insertCDR start [2025-03-31 09:42:25] Production.ERROR: pbx prc_insertCDR end [2025-03-31 09:42:25] Production.INFO: ==5327== Releasing lock... [2025-03-31 09:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 09:42:25] Production.INFO: 42.75 MB #Memory Used# [2025-03-31 09:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 06:43:06 [end_date_ymd] => 2025-03-31 09:43:06 [RateCDR] => 1 ) [2025-03-31 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-31 06:43:06' and `end` < '2025-03-31 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-31 09:43:19] Production.INFO: count ==1974 [2025-03-31 09:43:20] Production.ERROR: pbx CDR StartTime 2025-03-31 06:43:06 - End Time 2025-03-31 09:43:06 [2025-03-31 09:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 09:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802668', 'tblTempUsageDetail_20' ) start [2025-03-31 09:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802668', 'tblTempUsageDetail_20' ) end [2025-03-31 09:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802668', 'tblTempVendorCDR_20' ) start [2025-03-31 09:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802668', 'tblTempVendorCDR_20' ) end [2025-03-31 09:43:20] Production.INFO: ProcessCDR(1,14802668,1,1,2) [2025-03-31 09:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802668', 'tblTempUsageDetail_20' ) start [2025-03-31 09:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802668', 'tblTempUsageDetail_20' ) end [2025-03-31 09:43:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 09:43:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 09:43:26] Production.INFO: ==5400== Releasing lock... [2025-03-31 09:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 09:43:26] Production.INFO: 43 MB #Memory Used# [2025-03-31 09:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 06:44:06 [end_date_ymd] => 2025-03-31 09:44:06 [RateCDR] => 1 ) [2025-03-31 09: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-31 06:44:06' and `end` < '2025-03-31 09: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-31 09:44:19] Production.INFO: count ==1980 [2025-03-31 09:44:19] Production.ERROR: pbx CDR StartTime 2025-03-31 06:44:06 - End Time 2025-03-31 09:44:06 [2025-03-31 09:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802673', 'tblTempUsageDetail_20' ) start [2025-03-31 09:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802673', 'tblTempUsageDetail_20' ) end [2025-03-31 09:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802673', 'tblTempVendorCDR_20' ) start [2025-03-31 09:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802673', 'tblTempVendorCDR_20' ) end [2025-03-31 09:44:20] Production.INFO: ProcessCDR(1,14802673,1,1,2) [2025-03-31 09:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802673', 'tblTempUsageDetail_20' ) start [2025-03-31 09:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802673', 'tblTempUsageDetail_20' ) end [2025-03-31 09:44:25] Production.ERROR: pbx prc_insertCDR start [2025-03-31 09:44:25] Production.ERROR: pbx prc_insertCDR end [2025-03-31 09:44:25] Production.INFO: ==5478== Releasing lock... [2025-03-31 09:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 09:44:25] Production.INFO: 43.25 MB #Memory Used# [2025-03-31 09:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 06:45:06 [end_date_ymd] => 2025-03-31 09:45:06 [RateCDR] => 1 ) [2025-03-31 09: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-31 06:45:06' and `end` < '2025-03-31 09: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-31 09:45:19] Production.INFO: count ==1993 [2025-03-31 09:45:20] Production.ERROR: pbx CDR StartTime 2025-03-31 06:45:06 - End Time 2025-03-31 09:45:06 [2025-03-31 09:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 09:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802678', 'tblTempUsageDetail_20' ) start [2025-03-31 09:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802678', 'tblTempUsageDetail_20' ) end [2025-03-31 09:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802678', 'tblTempVendorCDR_20' ) start [2025-03-31 09:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802678', 'tblTempVendorCDR_20' ) end [2025-03-31 09:45:20] Production.INFO: ProcessCDR(1,14802678,1,1,2) [2025-03-31 09:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802678', 'tblTempUsageDetail_20' ) start [2025-03-31 09:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802678', 'tblTempUsageDetail_20' ) end [2025-03-31 09:45:25] Production.ERROR: pbx prc_insertCDR start [2025-03-31 09:45:25] Production.ERROR: pbx prc_insertCDR end [2025-03-31 09:45:25] Production.INFO: ==5553== Releasing lock... [2025-03-31 09:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 09:45:25] Production.INFO: 43 MB #Memory Used# [2025-03-31 09:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 06:46:05 [end_date_ymd] => 2025-03-31 09:46:05 [RateCDR] => 1 ) [2025-03-31 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-31 06:46:05' and `end` < '2025-03-31 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-31 09:46:19] Production.INFO: count ==2018 [2025-03-31 09:46:19] Production.ERROR: pbx CDR StartTime 2025-03-31 06:46:05 - End Time 2025-03-31 09:46:05 [2025-03-31 09:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802683', 'tblTempUsageDetail_20' ) start [2025-03-31 09:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802683', 'tblTempUsageDetail_20' ) end [2025-03-31 09:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802683', 'tblTempVendorCDR_20' ) start [2025-03-31 09:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802683', 'tblTempVendorCDR_20' ) end [2025-03-31 09:46:20] Production.INFO: ProcessCDR(1,14802683,1,1,2) [2025-03-31 09:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802683', 'tblTempUsageDetail_20' ) start [2025-03-31 09:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802683', 'tblTempUsageDetail_20' ) end [2025-03-31 09:46:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 09:46:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 09:46:26] Production.INFO: ==5625== Releasing lock... [2025-03-31 09:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 09:46:26] Production.INFO: 43.5 MB #Memory Used# [2025-03-31 09:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 06:47:06 [end_date_ymd] => 2025-03-31 09:47:06 [RateCDR] => 1 ) [2025-03-31 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-31 06:47:06' and `end` < '2025-03-31 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-31 09:47:19] Production.INFO: count ==2031 [2025-03-31 09:47:20] Production.ERROR: pbx CDR StartTime 2025-03-31 06:47:06 - End Time 2025-03-31 09:47:06 [2025-03-31 09:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 09:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802688', 'tblTempUsageDetail_20' ) start [2025-03-31 09:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802688', 'tblTempUsageDetail_20' ) end [2025-03-31 09:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802688', 'tblTempVendorCDR_20' ) start [2025-03-31 09:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802688', 'tblTempVendorCDR_20' ) end [2025-03-31 09:47:20] Production.INFO: ProcessCDR(1,14802688,1,1,2) [2025-03-31 09:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802688', 'tblTempUsageDetail_20' ) start [2025-03-31 09:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802688', 'tblTempUsageDetail_20' ) end [2025-03-31 09:47:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 09:47:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 09:47:26] Production.INFO: ==5700== Releasing lock... [2025-03-31 09:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 09:47:26] Production.INFO: 43.25 MB #Memory Used# [2025-03-31 09:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 06:48:05 [end_date_ymd] => 2025-03-31 09:48:05 [RateCDR] => 1 ) [2025-03-31 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-31 06:48:05' and `end` < '2025-03-31 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-31 09:48:18] Production.INFO: count ==2039 [2025-03-31 09:48:19] Production.ERROR: pbx CDR StartTime 2025-03-31 06:48:05 - End Time 2025-03-31 09:48:05 [2025-03-31 09:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802693', 'tblTempUsageDetail_20' ) start [2025-03-31 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802693', 'tblTempUsageDetail_20' ) end [2025-03-31 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802693', 'tblTempVendorCDR_20' ) start [2025-03-31 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802693', 'tblTempVendorCDR_20' ) end [2025-03-31 09:48:19] Production.INFO: ProcessCDR(1,14802693,1,1,2) [2025-03-31 09:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802693', 'tblTempUsageDetail_20' ) start [2025-03-31 09:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802693', 'tblTempUsageDetail_20' ) end [2025-03-31 09:48:25] Production.ERROR: pbx prc_insertCDR start [2025-03-31 09:48:25] Production.ERROR: pbx prc_insertCDR end [2025-03-31 09:48:25] Production.INFO: ==5770== Releasing lock... [2025-03-31 09:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 09:48:25] Production.INFO: 43.5 MB #Memory Used# [2025-03-31 09:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 06:49:06 [end_date_ymd] => 2025-03-31 09:49:06 [RateCDR] => 1 ) [2025-03-31 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-31 06:49:06' and `end` < '2025-03-31 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-31 09:49:19] Production.INFO: count ==2049 [2025-03-31 09:49:20] Production.ERROR: pbx CDR StartTime 2025-03-31 06:49:06 - End Time 2025-03-31 09:49:06 [2025-03-31 09:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 09:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802698', 'tblTempUsageDetail_20' ) start [2025-03-31 09:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802698', 'tblTempUsageDetail_20' ) end [2025-03-31 09:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802698', 'tblTempVendorCDR_20' ) start [2025-03-31 09:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802698', 'tblTempVendorCDR_20' ) end [2025-03-31 09:49:20] Production.INFO: ProcessCDR(1,14802698,1,1,2) [2025-03-31 09:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802698', 'tblTempUsageDetail_20' ) start [2025-03-31 09:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802698', 'tblTempUsageDetail_20' ) end [2025-03-31 09:49:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 09:49:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 09:49:26] Production.INFO: ==5852== Releasing lock... [2025-03-31 09:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 09:49:26] Production.INFO: 43.5 MB #Memory Used# [2025-03-31 09:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 06:50:06 [end_date_ymd] => 2025-03-31 09:50:06 [RateCDR] => 1 ) [2025-03-31 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-31 06:50:06' and `end` < '2025-03-31 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-31 09:50:19] Production.INFO: count ==2072 [2025-03-31 09:50:20] Production.ERROR: pbx CDR StartTime 2025-03-31 06:50:06 - End Time 2025-03-31 09:50:06 [2025-03-31 09:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802704', 'tblTempUsageDetail_20' ) start [2025-03-31 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802704', 'tblTempUsageDetail_20' ) end [2025-03-31 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802704', 'tblTempVendorCDR_20' ) start [2025-03-31 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802704', 'tblTempVendorCDR_20' ) end [2025-03-31 09:50:20] Production.INFO: ProcessCDR(1,14802704,1,1,2) [2025-03-31 09:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802704', 'tblTempUsageDetail_20' ) start [2025-03-31 09:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802704', 'tblTempUsageDetail_20' ) end [2025-03-31 09:50:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 09:50:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 09:50:26] Production.INFO: ==5932== Releasing lock... [2025-03-31 09:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 09:50:26] Production.INFO: 43.75 MB #Memory Used# [2025-03-31 09:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 06:51:06 [end_date_ymd] => 2025-03-31 09:51:06 [RateCDR] => 1 ) [2025-03-31 09:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 06:51:06' and `end` < '2025-03-31 09:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 09:51:19] Production.INFO: count ==2191 [2025-03-31 09:51:20] Production.ERROR: pbx CDR StartTime 2025-03-31 06:51:06 - End Time 2025-03-31 09:51:06 [2025-03-31 09:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 09:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802709', 'tblTempUsageDetail_20' ) start [2025-03-31 09:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802709', 'tblTempUsageDetail_20' ) end [2025-03-31 09:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802709', 'tblTempVendorCDR_20' ) start [2025-03-31 09:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802709', 'tblTempVendorCDR_20' ) end [2025-03-31 09:51:20] Production.INFO: ProcessCDR(1,14802709,1,1,2) [2025-03-31 09:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802709', 'tblTempUsageDetail_20' ) start [2025-03-31 09:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802709', 'tblTempUsageDetail_20' ) end [2025-03-31 09:51:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 09:51:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 09:51:26] Production.INFO: ==6006== Releasing lock... [2025-03-31 09:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 09:51:26] Production.INFO: 44.75 MB #Memory Used# [2025-03-31 09:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 06:52:05 [end_date_ymd] => 2025-03-31 09:52:05 [RateCDR] => 1 ) [2025-03-31 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-31 06:52:05' and `end` < '2025-03-31 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-31 09:52:19] Production.INFO: count ==2221 [2025-03-31 09:52:20] Production.ERROR: pbx CDR StartTime 2025-03-31 06:52:05 - End Time 2025-03-31 09:52:05 [2025-03-31 09:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 09:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802714', 'tblTempUsageDetail_20' ) start [2025-03-31 09:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802714', 'tblTempUsageDetail_20' ) end [2025-03-31 09:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802714', 'tblTempVendorCDR_20' ) start [2025-03-31 09:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802714', 'tblTempVendorCDR_20' ) end [2025-03-31 09:52:20] Production.INFO: ProcessCDR(1,14802714,1,1,2) [2025-03-31 09:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802714', 'tblTempUsageDetail_20' ) start [2025-03-31 09:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802714', 'tblTempUsageDetail_20' ) end [2025-03-31 09:52:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 09:52:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 09:52:26] Production.INFO: ==6081== Releasing lock... [2025-03-31 09:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 09:52:26] Production.INFO: 44.75 MB #Memory Used# [2025-03-31 09:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 06:53:06 [end_date_ymd] => 2025-03-31 09:53:06 [RateCDR] => 1 ) [2025-03-31 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-31 06:53:06' and `end` < '2025-03-31 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-31 09:53:19] Production.INFO: count ==2231 [2025-03-31 09:53:20] Production.ERROR: pbx CDR StartTime 2025-03-31 06:53:06 - End Time 2025-03-31 09:53:06 [2025-03-31 09:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 09:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802719', 'tblTempUsageDetail_20' ) start [2025-03-31 09:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802719', 'tblTempUsageDetail_20' ) end [2025-03-31 09:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802719', 'tblTempVendorCDR_20' ) start [2025-03-31 09:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802719', 'tblTempVendorCDR_20' ) end [2025-03-31 09:53:20] Production.INFO: ProcessCDR(1,14802719,1,1,2) [2025-03-31 09:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802719', 'tblTempUsageDetail_20' ) start [2025-03-31 09:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802719', 'tblTempUsageDetail_20' ) end [2025-03-31 09:53:25] Production.ERROR: pbx prc_insertCDR start [2025-03-31 09:53:25] Production.ERROR: pbx prc_insertCDR end [2025-03-31 09:53:26] Production.INFO: ==6157== Releasing lock... [2025-03-31 09:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 09:53:26] Production.INFO: 44.75 MB #Memory Used# [2025-03-31 09:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 06:54:05 [end_date_ymd] => 2025-03-31 09:54:05 [RateCDR] => 1 ) [2025-03-31 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-31 06:54:05' and `end` < '2025-03-31 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-31 09:54:18] Production.INFO: count ==2251 [2025-03-31 09:54:19] Production.ERROR: pbx CDR StartTime 2025-03-31 06:54:05 - End Time 2025-03-31 09:54:05 [2025-03-31 09:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802724', 'tblTempUsageDetail_20' ) start [2025-03-31 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802724', 'tblTempUsageDetail_20' ) end [2025-03-31 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802724', 'tblTempVendorCDR_20' ) start [2025-03-31 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802724', 'tblTempVendorCDR_20' ) end [2025-03-31 09:54:19] Production.INFO: ProcessCDR(1,14802724,1,1,2) [2025-03-31 09:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802724', 'tblTempUsageDetail_20' ) start [2025-03-31 09:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802724', 'tblTempUsageDetail_20' ) end [2025-03-31 09:54:25] Production.ERROR: pbx prc_insertCDR start [2025-03-31 09:54:25] Production.ERROR: pbx prc_insertCDR end [2025-03-31 09:54:25] Production.INFO: ==6268== Releasing lock... [2025-03-31 09:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 09:54:25] Production.INFO: 45 MB #Memory Used# [2025-03-31 09:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 06:55:06 [end_date_ymd] => 2025-03-31 09:55:06 [RateCDR] => 1 ) [2025-03-31 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-31 06:55:06' and `end` < '2025-03-31 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-31 09:55:19] Production.INFO: count ==2254 [2025-03-31 09:55:20] Production.ERROR: pbx CDR StartTime 2025-03-31 06:55:06 - End Time 2025-03-31 09:55:06 [2025-03-31 09:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 09:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802729', 'tblTempUsageDetail_20' ) start [2025-03-31 09:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802729', 'tblTempUsageDetail_20' ) end [2025-03-31 09:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802729', 'tblTempVendorCDR_20' ) start [2025-03-31 09:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802729', 'tblTempVendorCDR_20' ) end [2025-03-31 09:55:20] Production.INFO: ProcessCDR(1,14802729,1,1,2) [2025-03-31 09:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802729', 'tblTempUsageDetail_20' ) start [2025-03-31 09:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802729', 'tblTempUsageDetail_20' ) end [2025-03-31 09:55:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 09:55:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 09:55:26] Production.INFO: ==6343== Releasing lock... [2025-03-31 09:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 09:55:26] Production.INFO: 45 MB #Memory Used# [2025-03-31 09:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 06:56:06 [end_date_ymd] => 2025-03-31 09:56:06 [RateCDR] => 1 ) [2025-03-31 09:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 06:56:06' and `end` < '2025-03-31 09:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 09:56:19] Production.INFO: count ==2272 [2025-03-31 09:56:20] Production.ERROR: pbx CDR StartTime 2025-03-31 06:56:06 - End Time 2025-03-31 09:56:06 [2025-03-31 09:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 09:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802734', 'tblTempUsageDetail_20' ) start [2025-03-31 09:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802734', 'tblTempUsageDetail_20' ) end [2025-03-31 09:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802734', 'tblTempVendorCDR_20' ) start [2025-03-31 09:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802734', 'tblTempVendorCDR_20' ) end [2025-03-31 09:56:20] Production.INFO: ProcessCDR(1,14802734,1,1,2) [2025-03-31 09:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802734', 'tblTempUsageDetail_20' ) start [2025-03-31 09:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802734', 'tblTempUsageDetail_20' ) end [2025-03-31 09:56:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 09:56:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 09:56:26] Production.INFO: ==6418== Releasing lock... [2025-03-31 09:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 09:56:26] Production.INFO: 45 MB #Memory Used# [2025-03-31 09:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 06:57:06 [end_date_ymd] => 2025-03-31 09:57:06 [RateCDR] => 1 ) [2025-03-31 09:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 06:57:06' and `end` < '2025-03-31 09:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 09:57:19] Production.INFO: count ==2288 [2025-03-31 09:57:20] Production.ERROR: pbx CDR StartTime 2025-03-31 06:57:06 - End Time 2025-03-31 09:57:06 [2025-03-31 09:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 09:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802739', 'tblTempUsageDetail_20' ) start [2025-03-31 09:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802739', 'tblTempUsageDetail_20' ) end [2025-03-31 09:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802739', 'tblTempVendorCDR_20' ) start [2025-03-31 09:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802739', 'tblTempVendorCDR_20' ) end [2025-03-31 09:57:20] Production.INFO: ProcessCDR(1,14802739,1,1,2) [2025-03-31 09:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802739', 'tblTempUsageDetail_20' ) start [2025-03-31 09:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802739', 'tblTempUsageDetail_20' ) end [2025-03-31 09:57:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 09:57:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 09:57:26] Production.INFO: ==6491== Releasing lock... [2025-03-31 09:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 09:57:26] Production.INFO: 45.25 MB #Memory Used# [2025-03-31 09:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 06:58:05 [end_date_ymd] => 2025-03-31 09:58:05 [RateCDR] => 1 ) [2025-03-31 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-31 06:58:05' and `end` < '2025-03-31 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-31 09:58:18] Production.INFO: count ==2313 [2025-03-31 09:58:19] Production.ERROR: pbx CDR StartTime 2025-03-31 06:58:05 - End Time 2025-03-31 09:58:05 [2025-03-31 09:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802744', 'tblTempUsageDetail_20' ) start [2025-03-31 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802744', 'tblTempUsageDetail_20' ) end [2025-03-31 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802744', 'tblTempVendorCDR_20' ) start [2025-03-31 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802744', 'tblTempVendorCDR_20' ) end [2025-03-31 09:58:19] Production.INFO: ProcessCDR(1,14802744,1,1,2) [2025-03-31 09:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802744', 'tblTempUsageDetail_20' ) start [2025-03-31 09:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802744', 'tblTempUsageDetail_20' ) end [2025-03-31 09:58:25] Production.ERROR: pbx prc_insertCDR start [2025-03-31 09:58:25] Production.ERROR: pbx prc_insertCDR end [2025-03-31 09:58:25] Production.INFO: ==6566== Releasing lock... [2025-03-31 09:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 09:58:25] Production.INFO: 45.5 MB #Memory Used# [2025-03-31 09:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 06:59:06 [end_date_ymd] => 2025-03-31 09:59:06 [RateCDR] => 1 ) [2025-03-31 09: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-31 06:59:06' and `end` < '2025-03-31 09: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-31 09:59:19] Production.INFO: count ==2332 [2025-03-31 09:59:20] Production.ERROR: pbx CDR StartTime 2025-03-31 06:59:06 - End Time 2025-03-31 09:59:06 [2025-03-31 09:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 09:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802749', 'tblTempUsageDetail_20' ) start [2025-03-31 09:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802749', 'tblTempUsageDetail_20' ) end [2025-03-31 09:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802749', 'tblTempVendorCDR_20' ) start [2025-03-31 09:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802749', 'tblTempVendorCDR_20' ) end [2025-03-31 09:59:20] Production.INFO: ProcessCDR(1,14802749,1,1,2) [2025-03-31 09:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 09:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 09:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802749', 'tblTempUsageDetail_20' ) start [2025-03-31 09:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802749', 'tblTempUsageDetail_20' ) end [2025-03-31 09:59:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 09:59:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 09:59:26] Production.INFO: ==6642== Releasing lock... [2025-03-31 09:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 09:59:26] Production.INFO: 45.5 MB #Memory Used# [2025-03-31 10:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 07:00:07 [end_date_ymd] => 2025-03-31 10:00:07 [RateCDR] => 1 ) [2025-03-31 10:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 07:00:07' and `end` < '2025-03-31 10:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 10:00:20] Production.INFO: count ==2371 [2025-03-31 10:00:21] Production.ERROR: pbx CDR StartTime 2025-03-31 07:00:07 - End Time 2025-03-31 10:00:07 [2025-03-31 10:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 10:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802755', 'tblTempUsageDetail_20' ) start [2025-03-31 10:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802755', 'tblTempUsageDetail_20' ) end [2025-03-31 10:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802755', 'tblTempVendorCDR_20' ) start [2025-03-31 10:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802755', 'tblTempVendorCDR_20' ) end [2025-03-31 10:00:21] Production.INFO: ProcessCDR(1,14802755,1,1,2) [2025-03-31 10:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802755', 'tblTempUsageDetail_20' ) start [2025-03-31 10:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802755', 'tblTempUsageDetail_20' ) end [2025-03-31 10:00:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 10:00:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 10:00:27] Production.INFO: ==6720== Releasing lock... [2025-03-31 10:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 10:00:27] Production.INFO: 45.75 MB #Memory Used# [2025-03-31 10:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 07:01:05 [end_date_ymd] => 2025-03-31 10:01:05 [RateCDR] => 1 ) [2025-03-31 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-31 07:01:05' and `end` < '2025-03-31 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-31 10:01:18] Production.INFO: count ==2438 [2025-03-31 10:01:19] Production.ERROR: pbx CDR StartTime 2025-03-31 07:01:05 - End Time 2025-03-31 10:01:05 [2025-03-31 10:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802760', 'tblTempUsageDetail_20' ) start [2025-03-31 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802760', 'tblTempUsageDetail_20' ) end [2025-03-31 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802760', 'tblTempVendorCDR_20' ) start [2025-03-31 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802760', 'tblTempVendorCDR_20' ) end [2025-03-31 10:01:19] Production.INFO: ProcessCDR(1,14802760,1,1,2) [2025-03-31 10:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802760', 'tblTempUsageDetail_20' ) start [2025-03-31 10:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802760', 'tblTempUsageDetail_20' ) end [2025-03-31 10:01:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 10:01:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 10:01:23] Production.INFO: ==6808== Releasing lock... [2025-03-31 10:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 10:01:23] Production.INFO: 46.25 MB #Memory Used# [2025-03-31 10:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 07:02:06 [end_date_ymd] => 2025-03-31 10:02:06 [RateCDR] => 1 ) [2025-03-31 10:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 07:02:06' and `end` < '2025-03-31 10:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 10:02:20] Production.INFO: count ==2468 [2025-03-31 10:02:21] Production.ERROR: pbx CDR StartTime 2025-03-31 07:02:06 - End Time 2025-03-31 10:02:06 [2025-03-31 10:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 10:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802765', 'tblTempUsageDetail_20' ) start [2025-03-31 10:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802765', 'tblTempUsageDetail_20' ) end [2025-03-31 10:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802765', 'tblTempVendorCDR_20' ) start [2025-03-31 10:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802765', 'tblTempVendorCDR_20' ) end [2025-03-31 10:02:21] Production.INFO: ProcessCDR(1,14802765,1,1,2) [2025-03-31 10:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802765', 'tblTempUsageDetail_20' ) start [2025-03-31 10:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802765', 'tblTempUsageDetail_20' ) end [2025-03-31 10:02:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 10:02:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 10:02:27] Production.INFO: ==6884== Releasing lock... [2025-03-31 10:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 10:02:27] Production.INFO: 46.5 MB #Memory Used# [2025-03-31 10:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 07:03:06 [end_date_ymd] => 2025-03-31 10:03:06 [RateCDR] => 1 ) [2025-03-31 10:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 07:03:06' and `end` < '2025-03-31 10:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 10:03:19] Production.INFO: count ==2489 [2025-03-31 10:03:20] Production.ERROR: pbx CDR StartTime 2025-03-31 07:03:06 - End Time 2025-03-31 10:03:06 [2025-03-31 10:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 10:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802770', 'tblTempUsageDetail_20' ) start [2025-03-31 10:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802770', 'tblTempUsageDetail_20' ) end [2025-03-31 10:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802770', 'tblTempVendorCDR_20' ) start [2025-03-31 10:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802770', 'tblTempVendorCDR_20' ) end [2025-03-31 10:03:20] Production.INFO: ProcessCDR(1,14802770,1,1,2) [2025-03-31 10:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802770', 'tblTempUsageDetail_20' ) start [2025-03-31 10:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802770', 'tblTempUsageDetail_20' ) end [2025-03-31 10:03:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 10:03:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 10:03:27] Production.INFO: ==6955== Releasing lock... [2025-03-31 10:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 10:03:27] Production.INFO: 46.75 MB #Memory Used# [2025-03-31 10:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 07:04:06 [end_date_ymd] => 2025-03-31 10:04:06 [RateCDR] => 1 ) [2025-03-31 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-31 07:04:06' and `end` < '2025-03-31 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-31 10:04:19] Production.INFO: count ==2514 [2025-03-31 10:04:20] Production.ERROR: pbx CDR StartTime 2025-03-31 07:04:06 - End Time 2025-03-31 10:04:06 [2025-03-31 10:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 10:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802775', 'tblTempUsageDetail_20' ) start [2025-03-31 10:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802775', 'tblTempUsageDetail_20' ) end [2025-03-31 10:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802775', 'tblTempVendorCDR_20' ) start [2025-03-31 10:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802775', 'tblTempVendorCDR_20' ) end [2025-03-31 10:04:20] Production.INFO: ProcessCDR(1,14802775,1,1,2) [2025-03-31 10:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802775', 'tblTempUsageDetail_20' ) start [2025-03-31 10:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802775', 'tblTempUsageDetail_20' ) end [2025-03-31 10:04:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 10:04:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 10:04:26] Production.INFO: ==7034== Releasing lock... [2025-03-31 10:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 10:04:26] Production.INFO: 47 MB #Memory Used# [2025-03-31 10:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 07:05:06 [end_date_ymd] => 2025-03-31 10:05:06 [RateCDR] => 1 ) [2025-03-31 10:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 07:05:06' and `end` < '2025-03-31 10:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 10:05:19] Production.INFO: count ==2566 [2025-03-31 10:05:20] Production.ERROR: pbx CDR StartTime 2025-03-31 07:05:06 - End Time 2025-03-31 10:05:06 [2025-03-31 10:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 10:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802780', 'tblTempUsageDetail_20' ) start [2025-03-31 10:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802780', 'tblTempUsageDetail_20' ) end [2025-03-31 10:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802780', 'tblTempVendorCDR_20' ) start [2025-03-31 10:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802780', 'tblTempVendorCDR_20' ) end [2025-03-31 10:05:20] Production.INFO: ProcessCDR(1,14802780,1,1,2) [2025-03-31 10:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802780', 'tblTempUsageDetail_20' ) start [2025-03-31 10:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802780', 'tblTempUsageDetail_20' ) end [2025-03-31 10:05:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 10:05:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 10:05:26] Production.INFO: ==7108== Releasing lock... [2025-03-31 10:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 10:05:26] Production.INFO: 47.25 MB #Memory Used# [2025-03-31 10:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 07:06:06 [end_date_ymd] => 2025-03-31 10:06:06 [RateCDR] => 1 ) [2025-03-31 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-31 07:06:06' and `end` < '2025-03-31 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-31 10:06:20] Production.INFO: count ==2572 [2025-03-31 10:06:21] Production.ERROR: pbx CDR StartTime 2025-03-31 07:06:06 - End Time 2025-03-31 10:06:06 [2025-03-31 10:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 10:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802785', 'tblTempUsageDetail_20' ) start [2025-03-31 10:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802785', 'tblTempUsageDetail_20' ) end [2025-03-31 10:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802785', 'tblTempVendorCDR_20' ) start [2025-03-31 10:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802785', 'tblTempVendorCDR_20' ) end [2025-03-31 10:06:21] Production.INFO: ProcessCDR(1,14802785,1,1,2) [2025-03-31 10:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802785', 'tblTempUsageDetail_20' ) start [2025-03-31 10:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802785', 'tblTempUsageDetail_20' ) end [2025-03-31 10:06:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 10:06:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 10:06:27] Production.INFO: ==7182== Releasing lock... [2025-03-31 10:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 10:06:27] Production.INFO: 47.25 MB #Memory Used# [2025-03-31 10:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 07:07:06 [end_date_ymd] => 2025-03-31 10:07:06 [RateCDR] => 1 ) [2025-03-31 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-31 07:07:06' and `end` < '2025-03-31 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-31 10:07:19] Production.INFO: count ==2592 [2025-03-31 10:07:20] Production.ERROR: pbx CDR StartTime 2025-03-31 07:07:06 - End Time 2025-03-31 10:07:06 [2025-03-31 10:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802790', 'tblTempUsageDetail_20' ) start [2025-03-31 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802790', 'tblTempUsageDetail_20' ) end [2025-03-31 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802790', 'tblTempVendorCDR_20' ) start [2025-03-31 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802790', 'tblTempVendorCDR_20' ) end [2025-03-31 10:07:20] Production.INFO: ProcessCDR(1,14802790,1,1,2) [2025-03-31 10:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802790', 'tblTempUsageDetail_20' ) start [2025-03-31 10:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802790', 'tblTempUsageDetail_20' ) end [2025-03-31 10:07:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 10:07:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 10:07:26] Production.INFO: ==7255== Releasing lock... [2025-03-31 10:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 10:07:26] Production.INFO: 47.5 MB #Memory Used# [2025-03-31 10:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 07:08:06 [end_date_ymd] => 2025-03-31 10:08:06 [RateCDR] => 1 ) [2025-03-31 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-31 07:08:06' and `end` < '2025-03-31 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-31 10:08:20] Production.INFO: count ==2607 [2025-03-31 10:08:21] Production.ERROR: pbx CDR StartTime 2025-03-31 07:08:06 - End Time 2025-03-31 10:08:06 [2025-03-31 10:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 10:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802795', 'tblTempUsageDetail_20' ) start [2025-03-31 10:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802795', 'tblTempUsageDetail_20' ) end [2025-03-31 10:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802795', 'tblTempVendorCDR_20' ) start [2025-03-31 10:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802795', 'tblTempVendorCDR_20' ) end [2025-03-31 10:08:21] Production.INFO: ProcessCDR(1,14802795,1,1,2) [2025-03-31 10:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802795', 'tblTempUsageDetail_20' ) start [2025-03-31 10:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802795', 'tblTempUsageDetail_20' ) end [2025-03-31 10:08:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 10:08:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 10:08:27] Production.INFO: ==7334== Releasing lock... [2025-03-31 10:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 10:08:27] Production.INFO: 47.5 MB #Memory Used# [2025-03-31 10:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 07:09:05 [end_date_ymd] => 2025-03-31 10:09:05 [RateCDR] => 1 ) [2025-03-31 10:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 07:09:05' and `end` < '2025-03-31 10:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 10:09:19] Production.INFO: count ==2614 [2025-03-31 10:09:20] Production.ERROR: pbx CDR StartTime 2025-03-31 07:09:05 - End Time 2025-03-31 10:09:05 [2025-03-31 10:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 10:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802800', 'tblTempUsageDetail_20' ) start [2025-03-31 10:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802800', 'tblTempUsageDetail_20' ) end [2025-03-31 10:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802800', 'tblTempVendorCDR_20' ) start [2025-03-31 10:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802800', 'tblTempVendorCDR_20' ) end [2025-03-31 10:09:20] Production.INFO: ProcessCDR(1,14802800,1,1,2) [2025-03-31 10:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802800', 'tblTempUsageDetail_20' ) start [2025-03-31 10:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802800', 'tblTempUsageDetail_20' ) end [2025-03-31 10:09:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 10:09:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 10:09:26] Production.INFO: ==7450== Releasing lock... [2025-03-31 10:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 10:09:26] Production.INFO: 47.75 MB #Memory Used# [2025-03-31 10:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 07:10:06 [end_date_ymd] => 2025-03-31 10:10:06 [RateCDR] => 1 ) [2025-03-31 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-31 07:10:06' and `end` < '2025-03-31 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-31 10:10:20] Production.INFO: count ==2641 [2025-03-31 10:10:21] Production.ERROR: pbx CDR StartTime 2025-03-31 07:10:06 - End Time 2025-03-31 10:10:06 [2025-03-31 10:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 10:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802806', 'tblTempUsageDetail_20' ) start [2025-03-31 10:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802806', 'tblTempUsageDetail_20' ) end [2025-03-31 10:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802806', 'tblTempVendorCDR_20' ) start [2025-03-31 10:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802806', 'tblTempVendorCDR_20' ) end [2025-03-31 10:10:21] Production.INFO: ProcessCDR(1,14802806,1,1,2) [2025-03-31 10:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802806', 'tblTempUsageDetail_20' ) start [2025-03-31 10:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802806', 'tblTempUsageDetail_20' ) end [2025-03-31 10:10:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 10:10:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 10:10:27] Production.INFO: ==7528== Releasing lock... [2025-03-31 10:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 10:10:27] Production.INFO: 48 MB #Memory Used# [2025-03-31 10:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 07:11:06 [end_date_ymd] => 2025-03-31 10:11:06 [RateCDR] => 1 ) [2025-03-31 10:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 07:11:06' and `end` < '2025-03-31 10:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 10:11:20] Production.INFO: count ==2752 [2025-03-31 10:11:21] Production.ERROR: pbx CDR StartTime 2025-03-31 07:11:06 - End Time 2025-03-31 10:11:06 [2025-03-31 10:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 10:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802811', 'tblTempUsageDetail_20' ) start [2025-03-31 10:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802811', 'tblTempUsageDetail_20' ) end [2025-03-31 10:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802811', 'tblTempVendorCDR_20' ) start [2025-03-31 10:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802811', 'tblTempVendorCDR_20' ) end [2025-03-31 10:11:21] Production.INFO: ProcessCDR(1,14802811,1,1,2) [2025-03-31 10:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802811', 'tblTempUsageDetail_20' ) start [2025-03-31 10:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802811', 'tblTempUsageDetail_20' ) end [2025-03-31 10:11:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 10:11:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 10:11:27] Production.INFO: ==7605== Releasing lock... [2025-03-31 10:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 10:11:27] Production.INFO: 48.75 MB #Memory Used# [2025-03-31 10:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 07:12:05 [end_date_ymd] => 2025-03-31 10:12:05 [RateCDR] => 1 ) [2025-03-31 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-31 07:12:05' and `end` < '2025-03-31 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-31 10:12:19] Production.INFO: count ==2774 [2025-03-31 10:12:20] Production.ERROR: pbx CDR StartTime 2025-03-31 07:12:05 - End Time 2025-03-31 10:12:05 [2025-03-31 10:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 10:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802816', 'tblTempUsageDetail_20' ) start [2025-03-31 10:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802816', 'tblTempUsageDetail_20' ) end [2025-03-31 10:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802816', 'tblTempVendorCDR_20' ) start [2025-03-31 10:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802816', 'tblTempVendorCDR_20' ) end [2025-03-31 10:12:20] Production.INFO: ProcessCDR(1,14802816,1,1,2) [2025-03-31 10:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802816', 'tblTempUsageDetail_20' ) start [2025-03-31 10:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802816', 'tblTempUsageDetail_20' ) end [2025-03-31 10:12:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 10:12:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 10:12:26] Production.INFO: ==7684== Releasing lock... [2025-03-31 10:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 10:12:26] Production.INFO: 48.75 MB #Memory Used# [2025-03-31 10:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 07:13:06 [end_date_ymd] => 2025-03-31 10:13:06 [RateCDR] => 1 ) [2025-03-31 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-31 07:13:06' and `end` < '2025-03-31 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-31 10:13:19] Production.INFO: count ==2786 [2025-03-31 10:13:20] Production.ERROR: pbx CDR StartTime 2025-03-31 07:13:06 - End Time 2025-03-31 10:13:06 [2025-03-31 10:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 10:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802821', 'tblTempUsageDetail_20' ) start [2025-03-31 10:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802821', 'tblTempUsageDetail_20' ) end [2025-03-31 10:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802821', 'tblTempVendorCDR_20' ) start [2025-03-31 10:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802821', 'tblTempVendorCDR_20' ) end [2025-03-31 10:13:21] Production.INFO: ProcessCDR(1,14802821,1,1,2) [2025-03-31 10:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802821', 'tblTempUsageDetail_20' ) start [2025-03-31 10:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802821', 'tblTempUsageDetail_20' ) end [2025-03-31 10:13:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 10:13:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 10:13:27] Production.INFO: ==7756== Releasing lock... [2025-03-31 10:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 10:13:27] Production.INFO: 48.75 MB #Memory Used# [2025-03-31 10:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 07:14:06 [end_date_ymd] => 2025-03-31 10:14:06 [RateCDR] => 1 ) [2025-03-31 10:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 07:14:06' and `end` < '2025-03-31 10:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 10:14:19] Production.INFO: count ==2804 [2025-03-31 10:14:20] Production.ERROR: pbx CDR StartTime 2025-03-31 07:14:06 - End Time 2025-03-31 10:14:06 [2025-03-31 10:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 10:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802826', 'tblTempUsageDetail_20' ) start [2025-03-31 10:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802826', 'tblTempUsageDetail_20' ) end [2025-03-31 10:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802826', 'tblTempVendorCDR_20' ) start [2025-03-31 10:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802826', 'tblTempVendorCDR_20' ) end [2025-03-31 10:14:20] Production.INFO: ProcessCDR(1,14802826,1,1,2) [2025-03-31 10:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802826', 'tblTempUsageDetail_20' ) start [2025-03-31 10:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802826', 'tblTempUsageDetail_20' ) end [2025-03-31 10:14:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 10:14:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 10:14:26] Production.INFO: ==7830== Releasing lock... [2025-03-31 10:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 10:14:26] Production.INFO: 49 MB #Memory Used# [2025-03-31 10:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 07:15:06 [end_date_ymd] => 2025-03-31 10:15:06 [RateCDR] => 1 ) [2025-03-31 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-31 07:15:06' and `end` < '2025-03-31 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-31 10:15:19] Production.INFO: count ==2825 [2025-03-31 10:15:20] Production.ERROR: pbx CDR StartTime 2025-03-31 07:15:06 - End Time 2025-03-31 10:15:06 [2025-03-31 10:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 10:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802831', 'tblTempUsageDetail_20' ) start [2025-03-31 10:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802831', 'tblTempUsageDetail_20' ) end [2025-03-31 10:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802831', 'tblTempVendorCDR_20' ) start [2025-03-31 10:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802831', 'tblTempVendorCDR_20' ) end [2025-03-31 10:15:20] Production.INFO: ProcessCDR(1,14802831,1,1,2) [2025-03-31 10:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802831', 'tblTempUsageDetail_20' ) start [2025-03-31 10:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802831', 'tblTempUsageDetail_20' ) end [2025-03-31 10:15:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 10:15:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 10:15:26] Production.INFO: ==7906== Releasing lock... [2025-03-31 10:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 10:15:26] Production.INFO: 49 MB #Memory Used# [2025-03-31 10:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 07:16:05 [end_date_ymd] => 2025-03-31 10:16:05 [RateCDR] => 1 ) [2025-03-31 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-31 07:16:05' and `end` < '2025-03-31 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-31 10:16:19] Production.INFO: count ==2857 [2025-03-31 10:16:20] Production.ERROR: pbx CDR StartTime 2025-03-31 07:16:05 - End Time 2025-03-31 10:16:05 [2025-03-31 10:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 10:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802836', 'tblTempUsageDetail_20' ) start [2025-03-31 10:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802836', 'tblTempUsageDetail_20' ) end [2025-03-31 10:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802836', 'tblTempVendorCDR_20' ) start [2025-03-31 10:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802836', 'tblTempVendorCDR_20' ) end [2025-03-31 10:16:20] Production.INFO: ProcessCDR(1,14802836,1,1,2) [2025-03-31 10:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802836', 'tblTempUsageDetail_20' ) start [2025-03-31 10:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802836', 'tblTempUsageDetail_20' ) end [2025-03-31 10:16:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 10:16:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 10:16:26] Production.INFO: ==7981== Releasing lock... [2025-03-31 10:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 10:16:26] Production.INFO: 49.75 MB #Memory Used# [2025-03-31 10:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 07:17:06 [end_date_ymd] => 2025-03-31 10:17:06 [RateCDR] => 1 ) [2025-03-31 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-31 07:17:06' and `end` < '2025-03-31 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-31 10:17:19] Production.INFO: count ==2885 [2025-03-31 10:17:20] Production.ERROR: pbx CDR StartTime 2025-03-31 07:17:06 - End Time 2025-03-31 10:17:06 [2025-03-31 10:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 10:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802841', 'tblTempUsageDetail_20' ) start [2025-03-31 10:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802841', 'tblTempUsageDetail_20' ) end [2025-03-31 10:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802841', 'tblTempVendorCDR_20' ) start [2025-03-31 10:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802841', 'tblTempVendorCDR_20' ) end [2025-03-31 10:17:21] Production.INFO: ProcessCDR(1,14802841,1,1,2) [2025-03-31 10:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802841', 'tblTempUsageDetail_20' ) start [2025-03-31 10:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802841', 'tblTempUsageDetail_20' ) end [2025-03-31 10:17:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 10:17:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 10:17:27] Production.INFO: ==8057== Releasing lock... [2025-03-31 10:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 10:17:27] Production.INFO: 49.5 MB #Memory Used# [2025-03-31 10:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 07:18:05 [end_date_ymd] => 2025-03-31 10:18:05 [RateCDR] => 1 ) [2025-03-31 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-31 07:18:05' and `end` < '2025-03-31 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-31 10:18:18] Production.INFO: count ==2900 [2025-03-31 10:18:19] Production.ERROR: pbx CDR StartTime 2025-03-31 07:18:05 - End Time 2025-03-31 10:18:05 [2025-03-31 10:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 10:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802846', 'tblTempUsageDetail_20' ) start [2025-03-31 10:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802846', 'tblTempUsageDetail_20' ) end [2025-03-31 10:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802846', 'tblTempVendorCDR_20' ) start [2025-03-31 10:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802846', 'tblTempVendorCDR_20' ) end [2025-03-31 10:18:20] Production.INFO: ProcessCDR(1,14802846,1,1,2) [2025-03-31 10:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802846', 'tblTempUsageDetail_20' ) start [2025-03-31 10:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802846', 'tblTempUsageDetail_20' ) end [2025-03-31 10:18:25] Production.ERROR: pbx prc_insertCDR start [2025-03-31 10:18:25] Production.ERROR: pbx prc_insertCDR end [2025-03-31 10:18:25] Production.INFO: ==8132== Releasing lock... [2025-03-31 10:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 10:18:25] Production.INFO: 50.25 MB #Memory Used# [2025-03-31 10:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 07:19:06 [end_date_ymd] => 2025-03-31 10:19:06 [RateCDR] => 1 ) [2025-03-31 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-31 07:19:06' and `end` < '2025-03-31 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-31 10:19:19] Production.INFO: count ==2912 [2025-03-31 10:19:21] Production.ERROR: pbx CDR StartTime 2025-03-31 07:19:06 - End Time 2025-03-31 10:19:06 [2025-03-31 10:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 10:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802851', 'tblTempUsageDetail_20' ) start [2025-03-31 10:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802851', 'tblTempUsageDetail_20' ) end [2025-03-31 10:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802851', 'tblTempVendorCDR_20' ) start [2025-03-31 10:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802851', 'tblTempVendorCDR_20' ) end [2025-03-31 10:19:21] Production.INFO: ProcessCDR(1,14802851,1,1,2) [2025-03-31 10:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802851', 'tblTempUsageDetail_20' ) start [2025-03-31 10:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802851', 'tblTempUsageDetail_20' ) end [2025-03-31 10:19:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 10:19:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 10:19:27] Production.INFO: ==8205== Releasing lock... [2025-03-31 10:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 10:19:27] Production.INFO: 49.75 MB #Memory Used# [2025-03-31 10:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 07:20:06 [end_date_ymd] => 2025-03-31 10:20:06 [RateCDR] => 1 ) [2025-03-31 10:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 07:20:06' and `end` < '2025-03-31 10:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 10:20:20] Production.INFO: count ==2945 [2025-03-31 10:20:21] Production.ERROR: pbx CDR StartTime 2025-03-31 07:20:06 - End Time 2025-03-31 10:20:06 [2025-03-31 10:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 10:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802857', 'tblTempUsageDetail_20' ) start [2025-03-31 10:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802857', 'tblTempUsageDetail_20' ) end [2025-03-31 10:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802857', 'tblTempVendorCDR_20' ) start [2025-03-31 10:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802857', 'tblTempVendorCDR_20' ) end [2025-03-31 10:20:21] Production.INFO: ProcessCDR(1,14802857,1,1,2) [2025-03-31 10:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802857', 'tblTempUsageDetail_20' ) start [2025-03-31 10:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802857', 'tblTempUsageDetail_20' ) end [2025-03-31 10:20:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 10:20:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 10:20:27] Production.INFO: ==8279== Releasing lock... [2025-03-31 10:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 10:20:27] Production.INFO: 50 MB #Memory Used# [2025-03-31 10:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 07:21:06 [end_date_ymd] => 2025-03-31 10:21:06 [RateCDR] => 1 ) [2025-03-31 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-31 07:21:06' and `end` < '2025-03-31 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-31 10:21:19] Production.INFO: count ==3009 [2025-03-31 10:21:21] Production.ERROR: pbx CDR StartTime 2025-03-31 07:21:06 - End Time 2025-03-31 10:21:06 [2025-03-31 10:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 10:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802862', 'tblTempUsageDetail_20' ) start [2025-03-31 10:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802862', 'tblTempUsageDetail_20' ) end [2025-03-31 10:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802862', 'tblTempVendorCDR_20' ) start [2025-03-31 10:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802862', 'tblTempVendorCDR_20' ) end [2025-03-31 10:21:21] Production.INFO: ProcessCDR(1,14802862,1,1,2) [2025-03-31 10:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802862', 'tblTempUsageDetail_20' ) start [2025-03-31 10:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802862', 'tblTempUsageDetail_20' ) end [2025-03-31 10:21:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 10:21:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 10:21:27] Production.INFO: ==8356== Releasing lock... [2025-03-31 10:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 10:21:27] Production.INFO: 51 MB #Memory Used# [2025-03-31 10:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 07:22:05 [end_date_ymd] => 2025-03-31 10:22:05 [RateCDR] => 1 ) [2025-03-31 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-31 07:22:05' and `end` < '2025-03-31 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-31 10:22:18] Production.INFO: count ==3022 [2025-03-31 10:22:20] Production.ERROR: pbx CDR StartTime 2025-03-31 07:22:05 - End Time 2025-03-31 10:22:05 [2025-03-31 10:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 10:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802867', 'tblTempUsageDetail_20' ) start [2025-03-31 10:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802867', 'tblTempUsageDetail_20' ) end [2025-03-31 10:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802867', 'tblTempVendorCDR_20' ) start [2025-03-31 10:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802867', 'tblTempVendorCDR_20' ) end [2025-03-31 10:22:20] Production.INFO: ProcessCDR(1,14802867,1,1,2) [2025-03-31 10:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802867', 'tblTempUsageDetail_20' ) start [2025-03-31 10:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802867', 'tblTempUsageDetail_20' ) end [2025-03-31 10:22:25] Production.ERROR: pbx prc_insertCDR start [2025-03-31 10:22:25] Production.ERROR: pbx prc_insertCDR end [2025-03-31 10:22:25] Production.INFO: ==8429== Releasing lock... [2025-03-31 10:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 10:22:25] Production.INFO: 50.5 MB #Memory Used# [2025-03-31 10:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 07:23:06 [end_date_ymd] => 2025-03-31 10:23:06 [RateCDR] => 1 ) [2025-03-31 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-31 07:23:06' and `end` < '2025-03-31 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-31 10:23:19] Production.INFO: count ==3029 [2025-03-31 10:23:21] Production.ERROR: pbx CDR StartTime 2025-03-31 07:23:06 - End Time 2025-03-31 10:23:06 [2025-03-31 10:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 10:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802872', 'tblTempUsageDetail_20' ) start [2025-03-31 10:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802872', 'tblTempUsageDetail_20' ) end [2025-03-31 10:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802872', 'tblTempVendorCDR_20' ) start [2025-03-31 10:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802872', 'tblTempVendorCDR_20' ) end [2025-03-31 10:23:21] Production.INFO: ProcessCDR(1,14802872,1,1,2) [2025-03-31 10:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802872', 'tblTempUsageDetail_20' ) start [2025-03-31 10:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802872', 'tblTempUsageDetail_20' ) end [2025-03-31 10:23:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 10:23:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 10:23:27] Production.INFO: ==8507== Releasing lock... [2025-03-31 10:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 10:23:27] Production.INFO: 50.5 MB #Memory Used# [2025-03-31 10:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 07:24:05 [end_date_ymd] => 2025-03-31 10:24:05 [RateCDR] => 1 ) [2025-03-31 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-31 07:24:05' and `end` < '2025-03-31 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-31 10:24:19] Production.INFO: count ==3049 [2025-03-31 10:24:20] Production.ERROR: pbx CDR StartTime 2025-03-31 07:24:05 - End Time 2025-03-31 10:24:05 [2025-03-31 10:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 10:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802877', 'tblTempUsageDetail_20' ) start [2025-03-31 10:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802877', 'tblTempUsageDetail_20' ) end [2025-03-31 10:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802877', 'tblTempVendorCDR_20' ) start [2025-03-31 10:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802877', 'tblTempVendorCDR_20' ) end [2025-03-31 10:24:20] Production.INFO: ProcessCDR(1,14802877,1,1,2) [2025-03-31 10:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802877', 'tblTempUsageDetail_20' ) start [2025-03-31 10:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802877', 'tblTempUsageDetail_20' ) end [2025-03-31 10:24:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 10:24:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 10:24:26] Production.INFO: ==8582== Releasing lock... [2025-03-31 10:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 10:24:26] Production.INFO: 50.75 MB #Memory Used# [2025-03-31 10:25:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 07:25:06 [end_date_ymd] => 2025-03-31 10:25:06 [RateCDR] => 1 ) [2025-03-31 10:25: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-31 07:25:06' and `end` < '2025-03-31 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-31 10:25:20] Production.INFO: count ==3071 [2025-03-31 10:25:21] Production.ERROR: pbx CDR StartTime 2025-03-31 07:25:06 - End Time 2025-03-31 10:25:06 [2025-03-31 10:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 10:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802882', 'tblTempUsageDetail_20' ) start [2025-03-31 10:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802882', 'tblTempUsageDetail_20' ) end [2025-03-31 10:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802882', 'tblTempVendorCDR_20' ) start [2025-03-31 10:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802882', 'tblTempVendorCDR_20' ) end [2025-03-31 10:25:21] Production.INFO: ProcessCDR(1,14802882,1,1,2) [2025-03-31 10:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802882', 'tblTempUsageDetail_20' ) start [2025-03-31 10:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802882', 'tblTempUsageDetail_20' ) end [2025-03-31 10:25:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 10:25:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 10:25:27] Production.INFO: ==8697== Releasing lock... [2025-03-31 10:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 10:25:27] Production.INFO: 51.25 MB #Memory Used# [2025-03-31 10:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 07:26:06 [end_date_ymd] => 2025-03-31 10:26:06 [RateCDR] => 1 ) [2025-03-31 10:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 07:26:06' and `end` < '2025-03-31 10:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 10:26:19] Production.INFO: count ==3125 [2025-03-31 10:26:21] Production.ERROR: pbx CDR StartTime 2025-03-31 07:26:06 - End Time 2025-03-31 10:26:06 [2025-03-31 10:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 10:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802887', 'tblTempUsageDetail_20' ) start [2025-03-31 10:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802887', 'tblTempUsageDetail_20' ) end [2025-03-31 10:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802887', 'tblTempVendorCDR_20' ) start [2025-03-31 10:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802887', 'tblTempVendorCDR_20' ) end [2025-03-31 10:26:21] Production.INFO: ProcessCDR(1,14802887,1,1,2) [2025-03-31 10:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802887', 'tblTempUsageDetail_20' ) start [2025-03-31 10:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802887', 'tblTempUsageDetail_20' ) end [2025-03-31 10:26:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 10:26:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 10:26:27] Production.INFO: ==8773== Releasing lock... [2025-03-31 10:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 10:26:27] Production.INFO: 51.25 MB #Memory Used# [2025-03-31 10:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 07:27:06 [end_date_ymd] => 2025-03-31 10:27:06 [RateCDR] => 1 ) [2025-03-31 10:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 07:27:06' and `end` < '2025-03-31 10:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 10:27:20] Production.INFO: count ==3150 [2025-03-31 10:27:21] Production.ERROR: pbx CDR StartTime 2025-03-31 07:27:06 - End Time 2025-03-31 10:27:06 [2025-03-31 10:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 10:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802892', 'tblTempUsageDetail_20' ) start [2025-03-31 10:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802892', 'tblTempUsageDetail_20' ) end [2025-03-31 10:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802892', 'tblTempVendorCDR_20' ) start [2025-03-31 10:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802892', 'tblTempVendorCDR_20' ) end [2025-03-31 10:27:21] Production.INFO: ProcessCDR(1,14802892,1,1,2) [2025-03-31 10:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802892', 'tblTempUsageDetail_20' ) start [2025-03-31 10:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802892', 'tblTempUsageDetail_20' ) end [2025-03-31 10:27:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 10:27:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 10:27:27] Production.INFO: ==8846== Releasing lock... [2025-03-31 10:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 10:27:27] Production.INFO: 51.75 MB #Memory Used# [2025-03-31 10:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 07:28:05 [end_date_ymd] => 2025-03-31 10:28:05 [RateCDR] => 1 ) [2025-03-31 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-31 07:28:05' and `end` < '2025-03-31 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-31 10:28:19] Production.INFO: count ==3152 [2025-03-31 10:28:20] Production.ERROR: pbx CDR StartTime 2025-03-31 07:28:05 - End Time 2025-03-31 10:28:05 [2025-03-31 10:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 10:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802897', 'tblTempUsageDetail_20' ) start [2025-03-31 10:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802897', 'tblTempUsageDetail_20' ) end [2025-03-31 10:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802897', 'tblTempVendorCDR_20' ) start [2025-03-31 10:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802897', 'tblTempVendorCDR_20' ) end [2025-03-31 10:28:20] Production.INFO: ProcessCDR(1,14802897,1,1,2) [2025-03-31 10:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802897', 'tblTempUsageDetail_20' ) start [2025-03-31 10:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802897', 'tblTempUsageDetail_20' ) end [2025-03-31 10:28:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 10:28:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 10:28:26] Production.INFO: ==8926== Releasing lock... [2025-03-31 10:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 10:28:26] Production.INFO: 52.25 MB #Memory Used# [2025-03-31 10:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 07:29:06 [end_date_ymd] => 2025-03-31 10:29:06 [RateCDR] => 1 ) [2025-03-31 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-31 07:29:06' and `end` < '2025-03-31 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-31 10:29:19] Production.INFO: count ==3175 [2025-03-31 10:29:21] Production.ERROR: pbx CDR StartTime 2025-03-31 07:29:06 - End Time 2025-03-31 10:29:06 [2025-03-31 10:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 10:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802902', 'tblTempUsageDetail_20' ) start [2025-03-31 10:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802902', 'tblTempUsageDetail_20' ) end [2025-03-31 10:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802902', 'tblTempVendorCDR_20' ) start [2025-03-31 10:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802902', 'tblTempVendorCDR_20' ) end [2025-03-31 10:29:21] Production.INFO: ProcessCDR(1,14802902,1,1,2) [2025-03-31 10:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:29:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802902', 'tblTempUsageDetail_20' ) start [2025-03-31 10:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802902', 'tblTempUsageDetail_20' ) end [2025-03-31 10:29:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 10:29:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 10:29:27] Production.INFO: ==9004== Releasing lock... [2025-03-31 10:29:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 10:29:27] Production.INFO: 51.75 MB #Memory Used# [2025-03-31 10:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 07:30:06 [end_date_ymd] => 2025-03-31 10:30:06 [RateCDR] => 1 ) [2025-03-31 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-31 07:30:06' and `end` < '2025-03-31 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-31 10:30:20] Production.INFO: count ==3232 [2025-03-31 10:30:21] Production.ERROR: pbx CDR StartTime 2025-03-31 07:30:06 - End Time 2025-03-31 10:30:06 [2025-03-31 10:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 10:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802908', 'tblTempUsageDetail_20' ) start [2025-03-31 10:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802908', 'tblTempUsageDetail_20' ) end [2025-03-31 10:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802908', 'tblTempVendorCDR_20' ) start [2025-03-31 10:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802908', 'tblTempVendorCDR_20' ) end [2025-03-31 10:30:21] Production.INFO: ProcessCDR(1,14802908,1,1,2) [2025-03-31 10:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802908', 'tblTempUsageDetail_20' ) start [2025-03-31 10:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802908', 'tblTempUsageDetail_20' ) end [2025-03-31 10:30:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 10:30:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 10:30:27] Production.INFO: ==9080== Releasing lock... [2025-03-31 10:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 10:30:27] Production.INFO: 52.5 MB #Memory Used# [2025-03-31 10:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 07:31:06 [end_date_ymd] => 2025-03-31 10:31:06 [RateCDR] => 1 ) [2025-03-31 10: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-31 07:31:06' and `end` < '2025-03-31 10: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-31 10:31:20] Production.INFO: count ==3381 [2025-03-31 10:31:21] Production.ERROR: pbx CDR StartTime 2025-03-31 07:31:06 - End Time 2025-03-31 10:31:06 [2025-03-31 10:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 10:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802913', 'tblTempUsageDetail_20' ) start [2025-03-31 10:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802913', 'tblTempUsageDetail_20' ) end [2025-03-31 10:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802913', 'tblTempVendorCDR_20' ) start [2025-03-31 10:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802913', 'tblTempVendorCDR_20' ) end [2025-03-31 10:31:22] Production.INFO: ProcessCDR(1,14802913,1,1,2) [2025-03-31 10:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:31:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:31:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802913', 'tblTempUsageDetail_20' ) start [2025-03-31 10:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802913', 'tblTempUsageDetail_20' ) end [2025-03-31 10:31:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 10:31:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 10:31:28] Production.INFO: ==9157== Releasing lock... [2025-03-31 10:31:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 10:31:28] Production.INFO: 53.25 MB #Memory Used# [2025-03-31 10:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 07:32:06 [end_date_ymd] => 2025-03-31 10:32:06 [RateCDR] => 1 ) [2025-03-31 10:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 07:32:06' and `end` < '2025-03-31 10:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 10:32:19] Production.INFO: count ==3412 [2025-03-31 10:32:21] Production.ERROR: pbx CDR StartTime 2025-03-31 07:32:06 - End Time 2025-03-31 10:32:06 [2025-03-31 10:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 10:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802918', 'tblTempUsageDetail_20' ) start [2025-03-31 10:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802918', 'tblTempUsageDetail_20' ) end [2025-03-31 10:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802918', 'tblTempVendorCDR_20' ) start [2025-03-31 10:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802918', 'tblTempVendorCDR_20' ) end [2025-03-31 10:32:21] Production.INFO: ProcessCDR(1,14802918,1,1,2) [2025-03-31 10:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802918', 'tblTempUsageDetail_20' ) start [2025-03-31 10:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802918', 'tblTempUsageDetail_20' ) end [2025-03-31 10:32:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 10:32:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 10:32:27] Production.INFO: ==9226== Releasing lock... [2025-03-31 10:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 10:32:27] Production.INFO: 53.75 MB #Memory Used# [2025-03-31 10:33:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 07:33:07 [end_date_ymd] => 2025-03-31 10:33:07 [RateCDR] => 1 ) [2025-03-31 10:33: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-31 07:33:07' and `end` < '2025-03-31 10:33: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-31 10:33:20] Production.INFO: count ==3460 [2025-03-31 10:33:22] Production.ERROR: pbx CDR StartTime 2025-03-31 07:33:07 - End Time 2025-03-31 10:33:07 [2025-03-31 10:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 10:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802923', 'tblTempUsageDetail_20' ) start [2025-03-31 10:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802923', 'tblTempUsageDetail_20' ) end [2025-03-31 10:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802923', 'tblTempVendorCDR_20' ) start [2025-03-31 10:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802923', 'tblTempVendorCDR_20' ) end [2025-03-31 10:33:22] Production.INFO: ProcessCDR(1,14802923,1,1,2) [2025-03-31 10:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:33:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:33:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:33:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802923', 'tblTempUsageDetail_20' ) start [2025-03-31 10:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802923', 'tblTempUsageDetail_20' ) end [2025-03-31 10:33:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 10:33:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 10:33:28] Production.INFO: ==9298== Releasing lock... [2025-03-31 10:33:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 10:33:28] Production.INFO: 54 MB #Memory Used# [2025-03-31 10:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 07:34:06 [end_date_ymd] => 2025-03-31 10:34:06 [RateCDR] => 1 ) [2025-03-31 10: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-31 07:34:06' and `end` < '2025-03-31 10: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-31 10:34:19] Production.INFO: count ==3468 [2025-03-31 10:34:20] Production.ERROR: pbx CDR StartTime 2025-03-31 07:34:06 - End Time 2025-03-31 10:34:06 [2025-03-31 10:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 10:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802928', 'tblTempUsageDetail_20' ) start [2025-03-31 10:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802928', 'tblTempUsageDetail_20' ) end [2025-03-31 10:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802928', 'tblTempVendorCDR_20' ) start [2025-03-31 10:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802928', 'tblTempVendorCDR_20' ) end [2025-03-31 10:34:21] Production.INFO: ProcessCDR(1,14802928,1,1,2) [2025-03-31 10:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802928', 'tblTempUsageDetail_20' ) start [2025-03-31 10:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802928', 'tblTempUsageDetail_20' ) end [2025-03-31 10:34:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 10:34:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 10:34:26] Production.INFO: ==9394== Releasing lock... [2025-03-31 10:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 10:34:26] Production.INFO: 54 MB #Memory Used# [2025-03-31 10:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 07:35:05 [end_date_ymd] => 2025-03-31 10:35:05 [RateCDR] => 1 ) [2025-03-31 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-31 07:35:05' and `end` < '2025-03-31 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-31 10:35:19] Production.INFO: count ==3504 [2025-03-31 10:35:20] Production.ERROR: pbx CDR StartTime 2025-03-31 07:35:05 - End Time 2025-03-31 10:35:05 [2025-03-31 10:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 10:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802933', 'tblTempUsageDetail_20' ) start [2025-03-31 10:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802933', 'tblTempUsageDetail_20' ) end [2025-03-31 10:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802933', 'tblTempVendorCDR_20' ) start [2025-03-31 10:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802933', 'tblTempVendorCDR_20' ) end [2025-03-31 10:35:21] Production.INFO: ProcessCDR(1,14802933,1,1,2) [2025-03-31 10:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:35:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802933', 'tblTempUsageDetail_20' ) start [2025-03-31 10:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802933', 'tblTempUsageDetail_20' ) end [2025-03-31 10:35:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 10:35:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 10:35:27] Production.INFO: ==9467== Releasing lock... [2025-03-31 10:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 10:35:27] Production.INFO: 54.25 MB #Memory Used# [2025-03-31 10:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 07:36:05 [end_date_ymd] => 2025-03-31 10:36:05 [RateCDR] => 1 ) [2025-03-31 10:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 07:36:05' and `end` < '2025-03-31 10:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 10:36:19] Production.INFO: count ==3526 [2025-03-31 10:36:21] Production.ERROR: pbx CDR StartTime 2025-03-31 07:36:05 - End Time 2025-03-31 10:36:05 [2025-03-31 10:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 10:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802938', 'tblTempUsageDetail_20' ) start [2025-03-31 10:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802938', 'tblTempUsageDetail_20' ) end [2025-03-31 10:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802938', 'tblTempVendorCDR_20' ) start [2025-03-31 10:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802938', 'tblTempVendorCDR_20' ) end [2025-03-31 10:36:21] Production.INFO: ProcessCDR(1,14802938,1,1,2) [2025-03-31 10:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802938', 'tblTempUsageDetail_20' ) start [2025-03-31 10:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802938', 'tblTempUsageDetail_20' ) end [2025-03-31 10:36:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 10:36:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 10:36:27] Production.INFO: ==9539== Releasing lock... [2025-03-31 10:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 10:36:27] Production.INFO: 54.5 MB #Memory Used# [2025-03-31 10:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 07:37:06 [end_date_ymd] => 2025-03-31 10:37:06 [RateCDR] => 1 ) [2025-03-31 10:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 07:37:06' and `end` < '2025-03-31 10:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 10:37:20] Production.INFO: count ==3549 [2025-03-31 10:37:21] Production.ERROR: pbx CDR StartTime 2025-03-31 07:37:06 - End Time 2025-03-31 10:37:06 [2025-03-31 10:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 10:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802943', 'tblTempUsageDetail_20' ) start [2025-03-31 10:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802943', 'tblTempUsageDetail_20' ) end [2025-03-31 10:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802943', 'tblTempVendorCDR_20' ) start [2025-03-31 10:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802943', 'tblTempVendorCDR_20' ) end [2025-03-31 10:37:22] Production.INFO: ProcessCDR(1,14802943,1,1,2) [2025-03-31 10:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:37:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:37:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:37:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802943', 'tblTempUsageDetail_20' ) start [2025-03-31 10:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802943', 'tblTempUsageDetail_20' ) end [2025-03-31 10:37:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 10:37:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 10:37:27] Production.INFO: ==9612== Releasing lock... [2025-03-31 10:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 10:37:27] Production.INFO: 54.75 MB #Memory Used# [2025-03-31 10:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 07:38:05 [end_date_ymd] => 2025-03-31 10:38:05 [RateCDR] => 1 ) [2025-03-31 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-31 07:38:05' and `end` < '2025-03-31 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-31 10:38:19] Production.INFO: count ==3598 [2025-03-31 10:38:21] Production.ERROR: pbx CDR StartTime 2025-03-31 07:38:05 - End Time 2025-03-31 10:38:05 [2025-03-31 10:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 10:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802948', 'tblTempUsageDetail_20' ) start [2025-03-31 10:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802948', 'tblTempUsageDetail_20' ) end [2025-03-31 10:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802948', 'tblTempVendorCDR_20' ) start [2025-03-31 10:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802948', 'tblTempVendorCDR_20' ) end [2025-03-31 10:38:21] Production.INFO: ProcessCDR(1,14802948,1,1,2) [2025-03-31 10:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802948', 'tblTempUsageDetail_20' ) start [2025-03-31 10:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802948', 'tblTempUsageDetail_20' ) end [2025-03-31 10:38:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 10:38:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 10:38:27] Production.INFO: ==9684== Releasing lock... [2025-03-31 10:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 10:38:27] Production.INFO: 54.75 MB #Memory Used# [2025-03-31 10:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 07:39:05 [end_date_ymd] => 2025-03-31 10:39:05 [RateCDR] => 1 ) [2025-03-31 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-31 07:39:05' and `end` < '2025-03-31 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-31 10:39:19] Production.INFO: count ==3608 [2025-03-31 10:39:21] Production.ERROR: pbx CDR StartTime 2025-03-31 07:39:05 - End Time 2025-03-31 10:39:05 [2025-03-31 10:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 10:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802953', 'tblTempUsageDetail_20' ) start [2025-03-31 10:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802953', 'tblTempUsageDetail_20' ) end [2025-03-31 10:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802953', 'tblTempVendorCDR_20' ) start [2025-03-31 10:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802953', 'tblTempVendorCDR_20' ) end [2025-03-31 10:39:21] Production.INFO: ProcessCDR(1,14802953,1,1,2) [2025-03-31 10:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802953', 'tblTempUsageDetail_20' ) start [2025-03-31 10:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802953', 'tblTempUsageDetail_20' ) end [2025-03-31 10:39:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 10:39:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 10:39:27] Production.INFO: ==9761== Releasing lock... [2025-03-31 10:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 10:39:27] Production.INFO: 55 MB #Memory Used# [2025-03-31 10:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 07:40:06 [end_date_ymd] => 2025-03-31 10:40:06 [RateCDR] => 1 ) [2025-03-31 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-31 07:40:06' and `end` < '2025-03-31 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-31 10:40:20] Production.INFO: count ==3628 [2025-03-31 10:40:22] Production.ERROR: pbx CDR StartTime 2025-03-31 07:40:06 - End Time 2025-03-31 10:40:06 [2025-03-31 10:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 10:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802959', 'tblTempUsageDetail_20' ) start [2025-03-31 10:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802959', 'tblTempUsageDetail_20' ) end [2025-03-31 10:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802959', 'tblTempVendorCDR_20' ) start [2025-03-31 10:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802959', 'tblTempVendorCDR_20' ) end [2025-03-31 10:40:22] Production.INFO: ProcessCDR(1,14802959,1,1,2) [2025-03-31 10:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802959', 'tblTempUsageDetail_20' ) start [2025-03-31 10:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802959', 'tblTempUsageDetail_20' ) end [2025-03-31 10:40:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 10:40:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 10:40:28] Production.INFO: ==9878== Releasing lock... [2025-03-31 10:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 10:40:28] Production.INFO: 55.25 MB #Memory Used# [2025-03-31 10:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 07:41:05 [end_date_ymd] => 2025-03-31 10:41:05 [RateCDR] => 1 ) [2025-03-31 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-31 07:41:05' and `end` < '2025-03-31 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-31 10:41:19] Production.INFO: count ==3786 [2025-03-31 10:41:20] Production.ERROR: pbx CDR StartTime 2025-03-31 07:41:05 - End Time 2025-03-31 10:41:05 [2025-03-31 10:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 10:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802964', 'tblTempUsageDetail_20' ) start [2025-03-31 10:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802964', 'tblTempUsageDetail_20' ) end [2025-03-31 10:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802964', 'tblTempVendorCDR_20' ) start [2025-03-31 10:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802964', 'tblTempVendorCDR_20' ) end [2025-03-31 10:41:21] Production.INFO: ProcessCDR(1,14802964,1,1,2) [2025-03-31 10:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802964', 'tblTempUsageDetail_20' ) start [2025-03-31 10:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802964', 'tblTempUsageDetail_20' ) end [2025-03-31 10:41:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 10:41:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 10:41:27] Production.INFO: ==9955== Releasing lock... [2025-03-31 10:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 10:41:27] Production.INFO: 56.5 MB #Memory Used# [2025-03-31 10:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 07:42:06 [end_date_ymd] => 2025-03-31 10:42:06 [RateCDR] => 1 ) [2025-03-31 10: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-31 07:42:06' and `end` < '2025-03-31 10: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-31 10:42:20] Production.INFO: count ==3825 [2025-03-31 10:42:21] Production.ERROR: pbx CDR StartTime 2025-03-31 07:42:06 - End Time 2025-03-31 10:42:06 [2025-03-31 10:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 10:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802969', 'tblTempUsageDetail_20' ) start [2025-03-31 10:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802969', 'tblTempUsageDetail_20' ) end [2025-03-31 10:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802969', 'tblTempVendorCDR_20' ) start [2025-03-31 10:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802969', 'tblTempVendorCDR_20' ) end [2025-03-31 10:42:22] Production.INFO: ProcessCDR(1,14802969,1,1,2) [2025-03-31 10:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802969', 'tblTempUsageDetail_20' ) start [2025-03-31 10:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802969', 'tblTempUsageDetail_20' ) end [2025-03-31 10:42:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 10:42:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 10:42:27] Production.INFO: ==10028== Releasing lock... [2025-03-31 10:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 10:42:27] Production.INFO: 56.5 MB #Memory Used# [2025-03-31 10:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 07:43:05 [end_date_ymd] => 2025-03-31 10:43:05 [RateCDR] => 1 ) [2025-03-31 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-31 07:43:05' and `end` < '2025-03-31 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-31 10:43:19] Production.INFO: count ==3843 [2025-03-31 10:43:21] Production.ERROR: pbx CDR StartTime 2025-03-31 07:43:05 - End Time 2025-03-31 10:43:05 [2025-03-31 10:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 10:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802974', 'tblTempUsageDetail_20' ) start [2025-03-31 10:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802974', 'tblTempUsageDetail_20' ) end [2025-03-31 10:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802974', 'tblTempVendorCDR_20' ) start [2025-03-31 10:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802974', 'tblTempVendorCDR_20' ) end [2025-03-31 10:43:21] Production.INFO: ProcessCDR(1,14802974,1,1,2) [2025-03-31 10:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802974', 'tblTempUsageDetail_20' ) start [2025-03-31 10:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802974', 'tblTempUsageDetail_20' ) end [2025-03-31 10:43:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 10:43:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 10:43:27] Production.INFO: ==10103== Releasing lock... [2025-03-31 10:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 10:43:27] Production.INFO: 56.75 MB #Memory Used# [2025-03-31 10:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 07:44:06 [end_date_ymd] => 2025-03-31 10:44:06 [RateCDR] => 1 ) [2025-03-31 10: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-31 07:44:06' and `end` < '2025-03-31 10: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-31 10:44:20] Production.INFO: count ==3871 [2025-03-31 10:44:22] Production.ERROR: pbx CDR StartTime 2025-03-31 07:44:06 - End Time 2025-03-31 10:44:06 [2025-03-31 10:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 10:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802979', 'tblTempUsageDetail_20' ) start [2025-03-31 10:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802979', 'tblTempUsageDetail_20' ) end [2025-03-31 10:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802979', 'tblTempVendorCDR_20' ) start [2025-03-31 10:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802979', 'tblTempVendorCDR_20' ) end [2025-03-31 10:44:22] Production.INFO: ProcessCDR(1,14802979,1,1,2) [2025-03-31 10:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:44:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:44:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:44:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802979', 'tblTempUsageDetail_20' ) start [2025-03-31 10:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802979', 'tblTempUsageDetail_20' ) end [2025-03-31 10:44:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 10:44:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 10:44:28] Production.INFO: ==10181== Releasing lock... [2025-03-31 10:44:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 10:44:28] Production.INFO: 57 MB #Memory Used# [2025-03-31 10:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 07:45:05 [end_date_ymd] => 2025-03-31 10:45:05 [RateCDR] => 1 ) [2025-03-31 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-31 07:45:05' and `end` < '2025-03-31 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-31 10:45:19] Production.INFO: count ==3920 [2025-03-31 10:45:20] Production.ERROR: pbx CDR StartTime 2025-03-31 07:45:05 - End Time 2025-03-31 10:45:05 [2025-03-31 10:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 10:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802984', 'tblTempUsageDetail_20' ) start [2025-03-31 10:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802984', 'tblTempUsageDetail_20' ) end [2025-03-31 10:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802984', 'tblTempVendorCDR_20' ) start [2025-03-31 10:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802984', 'tblTempVendorCDR_20' ) end [2025-03-31 10:45:21] Production.INFO: ProcessCDR(1,14802984,1,1,2) [2025-03-31 10:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802984', 'tblTempUsageDetail_20' ) start [2025-03-31 10:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802984', 'tblTempUsageDetail_20' ) end [2025-03-31 10:45:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 10:45:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 10:45:27] Production.INFO: ==10260== Releasing lock... [2025-03-31 10:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 10:45:27] Production.INFO: 57.25 MB #Memory Used# [2025-03-31 10:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 07:46:06 [end_date_ymd] => 2025-03-31 10:46:06 [RateCDR] => 1 ) [2025-03-31 10:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 07:46:06' and `end` < '2025-03-31 10:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 10:46:19] Production.INFO: count ==3928 [2025-03-31 10:46:21] Production.ERROR: pbx CDR StartTime 2025-03-31 07:46:06 - End Time 2025-03-31 10:46:06 [2025-03-31 10:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 10:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802989', 'tblTempUsageDetail_20' ) start [2025-03-31 10:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802989', 'tblTempUsageDetail_20' ) end [2025-03-31 10:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802989', 'tblTempVendorCDR_20' ) start [2025-03-31 10:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802989', 'tblTempVendorCDR_20' ) end [2025-03-31 10:46:21] Production.INFO: ProcessCDR(1,14802989,1,1,2) [2025-03-31 10:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802989', 'tblTempUsageDetail_20' ) start [2025-03-31 10:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802989', 'tblTempUsageDetail_20' ) end [2025-03-31 10:46:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 10:46:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 10:46:27] Production.INFO: ==10339== Releasing lock... [2025-03-31 10:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 10:46:27] Production.INFO: 57.25 MB #Memory Used# [2025-03-31 10:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 07:47:05 [end_date_ymd] => 2025-03-31 10:47:05 [RateCDR] => 1 ) [2025-03-31 10:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 07:47:05' and `end` < '2025-03-31 10:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 10:47:19] Production.INFO: count ==3940 [2025-03-31 10:47:21] Production.ERROR: pbx CDR StartTime 2025-03-31 07:47:05 - End Time 2025-03-31 10:47:05 [2025-03-31 10:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 10:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802994', 'tblTempUsageDetail_20' ) start [2025-03-31 10:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802994', 'tblTempUsageDetail_20' ) end [2025-03-31 10:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802994', 'tblTempVendorCDR_20' ) start [2025-03-31 10:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802994', 'tblTempVendorCDR_20' ) end [2025-03-31 10:47:21] Production.INFO: ProcessCDR(1,14802994,1,1,2) [2025-03-31 10:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:47:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802994', 'tblTempUsageDetail_20' ) start [2025-03-31 10:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802994', 'tblTempUsageDetail_20' ) end [2025-03-31 10:47:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 10:47:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 10:47:27] Production.INFO: ==10422== Releasing lock... [2025-03-31 10:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 10:47:27] Production.INFO: 58 MB #Memory Used# [2025-03-31 10:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 07:48:06 [end_date_ymd] => 2025-03-31 10:48:06 [RateCDR] => 1 ) [2025-03-31 10:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 07:48:06' and `end` < '2025-03-31 10:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 10:48:20] Production.INFO: count ==3964 [2025-03-31 10:48:22] Production.ERROR: pbx CDR StartTime 2025-03-31 07:48:06 - End Time 2025-03-31 10:48:06 [2025-03-31 10:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 10:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802999', 'tblTempUsageDetail_20' ) start [2025-03-31 10:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14802999', 'tblTempUsageDetail_20' ) end [2025-03-31 10:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802999', 'tblTempVendorCDR_20' ) start [2025-03-31 10:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14802999', 'tblTempVendorCDR_20' ) end [2025-03-31 10:48:22] Production.INFO: ProcessCDR(1,14802999,1,1,2) [2025-03-31 10:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14802999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:48:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14802999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:48:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14802999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:48:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14802999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802999', 'tblTempUsageDetail_20' ) start [2025-03-31 10:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14802999', 'tblTempUsageDetail_20' ) end [2025-03-31 10:48:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 10:48:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 10:48:28] Production.INFO: ==10503== Releasing lock... [2025-03-31 10:48:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 10:48:28] Production.INFO: 57.5 MB #Memory Used# [2025-03-31 10:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 07:49:05 [end_date_ymd] => 2025-03-31 10:49:05 [RateCDR] => 1 ) [2025-03-31 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-31 07:49:05' and `end` < '2025-03-31 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-31 10:49:19] Production.INFO: count ==3992 [2025-03-31 10:49:21] Production.ERROR: pbx CDR StartTime 2025-03-31 07:49:05 - End Time 2025-03-31 10:49:05 [2025-03-31 10:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 10:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803004', 'tblTempUsageDetail_20' ) start [2025-03-31 10:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803004', 'tblTempUsageDetail_20' ) end [2025-03-31 10:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803004', 'tblTempVendorCDR_20' ) start [2025-03-31 10:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803004', 'tblTempVendorCDR_20' ) end [2025-03-31 10:49:21] Production.INFO: ProcessCDR(1,14803004,1,1,2) [2025-03-31 10:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803004', 'tblTempUsageDetail_20' ) start [2025-03-31 10:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803004', 'tblTempUsageDetail_20' ) end [2025-03-31 10:49:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 10:49:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 10:49:27] Production.INFO: ==10584== Releasing lock... [2025-03-31 10:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 10:49:27] Production.INFO: 57.75 MB #Memory Used# [2025-03-31 10:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 07:50:07 [end_date_ymd] => 2025-03-31 10:50:07 [RateCDR] => 1 ) [2025-03-31 10:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 07:50:07' and `end` < '2025-03-31 10:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 10:50:20] Production.INFO: count ==4014 [2025-03-31 10:50:22] Production.ERROR: pbx CDR StartTime 2025-03-31 07:50:07 - End Time 2025-03-31 10:50:07 [2025-03-31 10:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 10:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803010', 'tblTempUsageDetail_20' ) start [2025-03-31 10:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803010', 'tblTempUsageDetail_20' ) end [2025-03-31 10:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803010', 'tblTempVendorCDR_20' ) start [2025-03-31 10:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803010', 'tblTempVendorCDR_20' ) end [2025-03-31 10:50:22] Production.INFO: ProcessCDR(1,14803010,1,1,2) [2025-03-31 10:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:50:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803010', 'tblTempUsageDetail_20' ) start [2025-03-31 10:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803010', 'tblTempUsageDetail_20' ) end [2025-03-31 10:50:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 10:50:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 10:50:28] Production.INFO: ==10667== Releasing lock... [2025-03-31 10:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 10:50:28] Production.INFO: 58 MB #Memory Used# [2025-03-31 10:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 07:51:05 [end_date_ymd] => 2025-03-31 10:51:05 [RateCDR] => 1 ) [2025-03-31 10:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 07:51:05' and `end` < '2025-03-31 10:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 10:51:19] Production.INFO: count ==4141 [2025-03-31 10:51:21] Production.ERROR: pbx CDR StartTime 2025-03-31 07:51:05 - End Time 2025-03-31 10:51:05 [2025-03-31 10:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 10:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803015', 'tblTempUsageDetail_20' ) start [2025-03-31 10:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803015', 'tblTempUsageDetail_20' ) end [2025-03-31 10:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803015', 'tblTempVendorCDR_20' ) start [2025-03-31 10:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803015', 'tblTempVendorCDR_20' ) end [2025-03-31 10:51:21] Production.INFO: ProcessCDR(1,14803015,1,1,2) [2025-03-31 10:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:51:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803015', 'tblTempUsageDetail_20' ) start [2025-03-31 10:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803015', 'tblTempUsageDetail_20' ) end [2025-03-31 10:51:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 10:51:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 10:51:27] Production.INFO: ==10752== Releasing lock... [2025-03-31 10:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 10:51:27] Production.INFO: 59 MB #Memory Used# [2025-03-31 10:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 07:52:06 [end_date_ymd] => 2025-03-31 10:52:06 [RateCDR] => 1 ) [2025-03-31 10:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 07:52:06' and `end` < '2025-03-31 10:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 10:52:20] Production.INFO: count ==4163 [2025-03-31 10:52:22] Production.ERROR: pbx CDR StartTime 2025-03-31 07:52:06 - End Time 2025-03-31 10:52:06 [2025-03-31 10:52:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 10:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803020', 'tblTempUsageDetail_20' ) start [2025-03-31 10:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803020', 'tblTempUsageDetail_20' ) end [2025-03-31 10:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803020', 'tblTempVendorCDR_20' ) start [2025-03-31 10:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803020', 'tblTempVendorCDR_20' ) end [2025-03-31 10:52:22] Production.INFO: ProcessCDR(1,14803020,1,1,2) [2025-03-31 10:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:52:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:52:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803020', 'tblTempUsageDetail_20' ) start [2025-03-31 10:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803020', 'tblTempUsageDetail_20' ) end [2025-03-31 10:52:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 10:52:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 10:52:28] Production.INFO: ==10834== Releasing lock... [2025-03-31 10:52:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 10:52:28] Production.INFO: 59 MB #Memory Used# [2025-03-31 10:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 07:53:06 [end_date_ymd] => 2025-03-31 10:53:06 [RateCDR] => 1 ) [2025-03-31 10: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-31 07:53:06' and `end` < '2025-03-31 10: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-31 10:53:19] Production.INFO: count ==4187 [2025-03-31 10:53:22] Production.ERROR: pbx CDR StartTime 2025-03-31 07:53:06 - End Time 2025-03-31 10:53:06 [2025-03-31 10:53:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 10:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803025', 'tblTempUsageDetail_20' ) start [2025-03-31 10:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803025', 'tblTempUsageDetail_20' ) end [2025-03-31 10:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803025', 'tblTempVendorCDR_20' ) start [2025-03-31 10:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803025', 'tblTempVendorCDR_20' ) end [2025-03-31 10:53:22] Production.INFO: ProcessCDR(1,14803025,1,1,2) [2025-03-31 10:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:53:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:53:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:53:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803025', 'tblTempUsageDetail_20' ) start [2025-03-31 10:53:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803025', 'tblTempUsageDetail_20' ) end [2025-03-31 10:53:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 10:53:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 10:53:28] Production.INFO: ==10914== Releasing lock... [2025-03-31 10:53:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 10:53:28] Production.INFO: 59.25 MB #Memory Used# [2025-03-31 10:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 07:54:06 [end_date_ymd] => 2025-03-31 10:54:06 [RateCDR] => 1 ) [2025-03-31 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-31 07:54:06' and `end` < '2025-03-31 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-31 10:54:20] Production.INFO: count ==4228 [2025-03-31 10:54:21] Production.ERROR: pbx CDR StartTime 2025-03-31 07:54:06 - End Time 2025-03-31 10:54:06 [2025-03-31 10:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 10:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803030', 'tblTempUsageDetail_20' ) start [2025-03-31 10:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803030', 'tblTempUsageDetail_20' ) end [2025-03-31 10:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803030', 'tblTempVendorCDR_20' ) start [2025-03-31 10:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803030', 'tblTempVendorCDR_20' ) end [2025-03-31 10:54:22] Production.INFO: ProcessCDR(1,14803030,1,1,2) [2025-03-31 10:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:54:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:54:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803030', 'tblTempUsageDetail_20' ) start [2025-03-31 10:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803030', 'tblTempUsageDetail_20' ) end [2025-03-31 10:54:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 10:54:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 10:54:28] Production.INFO: ==10992== Releasing lock... [2025-03-31 10:54:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 10:54:28] Production.INFO: 59.5 MB #Memory Used# [2025-03-31 10:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 07:55:05 [end_date_ymd] => 2025-03-31 10:55:05 [RateCDR] => 1 ) [2025-03-31 10:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 07:55:05' and `end` < '2025-03-31 10:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 10:55:20] Production.INFO: count ==4261 [2025-03-31 10:55:22] Production.ERROR: pbx CDR StartTime 2025-03-31 07:55:05 - End Time 2025-03-31 10:55:05 [2025-03-31 10:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 10:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803035', 'tblTempUsageDetail_20' ) start [2025-03-31 10:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803035', 'tblTempUsageDetail_20' ) end [2025-03-31 10:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803035', 'tblTempVendorCDR_20' ) start [2025-03-31 10:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803035', 'tblTempVendorCDR_20' ) end [2025-03-31 10:55:22] Production.INFO: ProcessCDR(1,14803035,1,1,2) [2025-03-31 10:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:55:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:55:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:55:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803035', 'tblTempUsageDetail_20' ) start [2025-03-31 10:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803035', 'tblTempUsageDetail_20' ) end [2025-03-31 10:55:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 10:55:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 10:55:28] Production.INFO: ==11073== Releasing lock... [2025-03-31 10:55:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 10:55:28] Production.INFO: 59.75 MB #Memory Used# [2025-03-31 10:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 07:56:06 [end_date_ymd] => 2025-03-31 10:56:06 [RateCDR] => 1 ) [2025-03-31 10:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 07:56:06' and `end` < '2025-03-31 10: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-31 10:56:20] Production.INFO: count ==4291 [2025-03-31 10:56:22] Production.ERROR: pbx CDR StartTime 2025-03-31 07:56:06 - End Time 2025-03-31 10:56:06 [2025-03-31 10:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 10:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803040', 'tblTempUsageDetail_20' ) start [2025-03-31 10:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803040', 'tblTempUsageDetail_20' ) end [2025-03-31 10:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803040', 'tblTempVendorCDR_20' ) start [2025-03-31 10:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803040', 'tblTempVendorCDR_20' ) end [2025-03-31 10:56:22] Production.INFO: ProcessCDR(1,14803040,1,1,2) [2025-03-31 10:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:56:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:56:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:56:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803040', 'tblTempUsageDetail_20' ) start [2025-03-31 10:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803040', 'tblTempUsageDetail_20' ) end [2025-03-31 10:56:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 10:56:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 10:56:28] Production.INFO: ==11196== Releasing lock... [2025-03-31 10:56:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 10:56:28] Production.INFO: 60 MB #Memory Used# [2025-03-31 10:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 07:57:06 [end_date_ymd] => 2025-03-31 10:57:06 [RateCDR] => 1 ) [2025-03-31 10: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-31 07:57:06' and `end` < '2025-03-31 10: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-31 10:57:20] Production.INFO: count ==4336 [2025-03-31 10:57:22] Production.ERROR: pbx CDR StartTime 2025-03-31 07:57:06 - End Time 2025-03-31 10:57:06 [2025-03-31 10:57:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 10:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803045', 'tblTempUsageDetail_20' ) start [2025-03-31 10:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803045', 'tblTempUsageDetail_20' ) end [2025-03-31 10:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803045', 'tblTempVendorCDR_20' ) start [2025-03-31 10:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803045', 'tblTempVendorCDR_20' ) end [2025-03-31 10:57:22] Production.INFO: ProcessCDR(1,14803045,1,1,2) [2025-03-31 10:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:57:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:57:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:57:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803045', 'tblTempUsageDetail_20' ) start [2025-03-31 10:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803045', 'tblTempUsageDetail_20' ) end [2025-03-31 10:57:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 10:57:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 10:57:28] Production.INFO: ==11276== Releasing lock... [2025-03-31 10:57:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 10:57:28] Production.INFO: 60.5 MB #Memory Used# [2025-03-31 10:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 07:58:06 [end_date_ymd] => 2025-03-31 10:58:06 [RateCDR] => 1 ) [2025-03-31 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-31 07:58:06' and `end` < '2025-03-31 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-31 10:58:20] Production.INFO: count ==4348 [2025-03-31 10:58:22] Production.ERROR: pbx CDR StartTime 2025-03-31 07:58:06 - End Time 2025-03-31 10:58:06 [2025-03-31 10:58:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 10:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803050', 'tblTempUsageDetail_20' ) start [2025-03-31 10:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803050', 'tblTempUsageDetail_20' ) end [2025-03-31 10:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803050', 'tblTempVendorCDR_20' ) start [2025-03-31 10:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803050', 'tblTempVendorCDR_20' ) end [2025-03-31 10:58:22] Production.INFO: ProcessCDR(1,14803050,1,1,2) [2025-03-31 10:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:58:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:58:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803050', 'tblTempUsageDetail_20' ) start [2025-03-31 10:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803050', 'tblTempUsageDetail_20' ) end [2025-03-31 10:58:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 10:58:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 10:58:28] Production.INFO: ==11354== Releasing lock... [2025-03-31 10:58:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 10:58:28] Production.INFO: 60.5 MB #Memory Used# [2025-03-31 10:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 07:59:06 [end_date_ymd] => 2025-03-31 10:59:06 [RateCDR] => 1 ) [2025-03-31 10: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-31 07:59:06' and `end` < '2025-03-31 10: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-31 10:59:20] Production.INFO: count ==4362 [2025-03-31 10:59:22] Production.ERROR: pbx CDR StartTime 2025-03-31 07:59:06 - End Time 2025-03-31 10:59:06 [2025-03-31 10:59:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 10:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803055', 'tblTempUsageDetail_20' ) start [2025-03-31 10:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803055', 'tblTempUsageDetail_20' ) end [2025-03-31 10:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803055', 'tblTempVendorCDR_20' ) start [2025-03-31 10:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803055', 'tblTempVendorCDR_20' ) end [2025-03-31 10:59:22] Production.INFO: ProcessCDR(1,14803055,1,1,2) [2025-03-31 10:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:59:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 10:59:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:59:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 10:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803055', 'tblTempUsageDetail_20' ) start [2025-03-31 10:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803055', 'tblTempUsageDetail_20' ) end [2025-03-31 10:59:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 10:59:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 10:59:28] Production.INFO: ==11435== Releasing lock... [2025-03-31 10:59:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 10:59:28] Production.INFO: 60.5 MB #Memory Used# [2025-03-31 11:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 08:00:07 [end_date_ymd] => 2025-03-31 11:00:07 [RateCDR] => 1 ) [2025-03-31 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-31 08:00:07' and `end` < '2025-03-31 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-31 11:00:22] Production.INFO: count ==4382 [2025-03-31 11:00:24] Production.ERROR: pbx CDR StartTime 2025-03-31 08:00:07 - End Time 2025-03-31 11:00:07 [2025-03-31 11:00:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 11:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803061', 'tblTempUsageDetail_20' ) start [2025-03-31 11:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803061', 'tblTempUsageDetail_20' ) end [2025-03-31 11:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803061', 'tblTempVendorCDR_20' ) start [2025-03-31 11:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803061', 'tblTempVendorCDR_20' ) end [2025-03-31 11:00:24] Production.INFO: ProcessCDR(1,14803061,1,1,2) [2025-03-31 11:00:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:00:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:00:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803061', 'tblTempUsageDetail_20' ) start [2025-03-31 11:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803061', 'tblTempUsageDetail_20' ) end [2025-03-31 11:00:29] Production.ERROR: pbx prc_insertCDR start [2025-03-31 11:00:29] Production.ERROR: pbx prc_insertCDR end [2025-03-31 11:00:29] Production.INFO: ==11517== Releasing lock... [2025-03-31 11:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 11:00:29] Production.INFO: 60.75 MB #Memory Used# [2025-03-31 11:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 08:01:06 [end_date_ymd] => 2025-03-31 11:01:06 [RateCDR] => 1 ) [2025-03-31 11: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-31 08:01:06' and `end` < '2025-03-31 11: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-31 11:01:20] Production.INFO: count ==4514 [2025-03-31 11:01:22] Production.ERROR: pbx CDR StartTime 2025-03-31 08:01:06 - End Time 2025-03-31 11:01:06 [2025-03-31 11:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 11:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803066', 'tblTempUsageDetail_20' ) start [2025-03-31 11:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803066', 'tblTempUsageDetail_20' ) end [2025-03-31 11:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803066', 'tblTempVendorCDR_20' ) start [2025-03-31 11:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803066', 'tblTempVendorCDR_20' ) end [2025-03-31 11:01:22] Production.INFO: ProcessCDR(1,14803066,1,1,2) [2025-03-31 11:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:01:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:01:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:01:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803066', 'tblTempUsageDetail_20' ) start [2025-03-31 11:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803066', 'tblTempUsageDetail_20' ) end [2025-03-31 11:01:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 11:01:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 11:01:28] Production.INFO: ==11615== Releasing lock... [2025-03-31 11:01:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 11:01:28] Production.INFO: 61.75 MB #Memory Used# [2025-03-31 11:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 08:02:05 [end_date_ymd] => 2025-03-31 11:02:05 [RateCDR] => 1 ) [2025-03-31 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-31 08:02:05' and `end` < '2025-03-31 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-31 11:02:20] Production.INFO: count ==4545 [2025-03-31 11:02:22] Production.ERROR: pbx CDR StartTime 2025-03-31 08:02:05 - End Time 2025-03-31 11:02:05 [2025-03-31 11:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 11:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803071', 'tblTempUsageDetail_20' ) start [2025-03-31 11:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803071', 'tblTempUsageDetail_20' ) end [2025-03-31 11:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803071', 'tblTempVendorCDR_20' ) start [2025-03-31 11:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803071', 'tblTempVendorCDR_20' ) end [2025-03-31 11:02:22] Production.INFO: ProcessCDR(1,14803071,1,1,2) [2025-03-31 11:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:02:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803071', 'tblTempUsageDetail_20' ) start [2025-03-31 11:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803071', 'tblTempUsageDetail_20' ) end [2025-03-31 11:02:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 11:02:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 11:02:28] Production.INFO: ==11774== Releasing lock... [2025-03-31 11:02:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 11:02:28] Production.INFO: 62 MB #Memory Used# [2025-03-31 11:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 08:03:05 [end_date_ymd] => 2025-03-31 11:03:05 [RateCDR] => 1 ) [2025-03-31 11:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 08:03:05' and `end` < '2025-03-31 11:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 11:03:19] Production.INFO: count ==4642 [2025-03-31 11:03:21] Production.ERROR: pbx CDR StartTime 2025-03-31 08:03:05 - End Time 2025-03-31 11:03:05 [2025-03-31 11:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 11:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803076', 'tblTempUsageDetail_20' ) start [2025-03-31 11:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803076', 'tblTempUsageDetail_20' ) end [2025-03-31 11:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803076', 'tblTempVendorCDR_20' ) start [2025-03-31 11:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803076', 'tblTempVendorCDR_20' ) end [2025-03-31 11:03:22] Production.INFO: ProcessCDR(1,14803076,1,1,2) [2025-03-31 11:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:03:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803076', 'tblTempUsageDetail_20' ) start [2025-03-31 11:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803076', 'tblTempUsageDetail_20' ) end [2025-03-31 11:03:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 11:03:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 11:03:28] Production.INFO: ==11847== Releasing lock... [2025-03-31 11:03:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 11:03:28] Production.INFO: 62.75 MB #Memory Used# [2025-03-31 11:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 08:04:06 [end_date_ymd] => 2025-03-31 11:04:06 [RateCDR] => 1 ) [2025-03-31 11: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-31 08:04:06' and `end` < '2025-03-31 11: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-31 11:04:20] Production.INFO: count ==4680 [2025-03-31 11:04:22] Production.ERROR: pbx CDR StartTime 2025-03-31 08:04:06 - End Time 2025-03-31 11:04:06 [2025-03-31 11:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 11:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803081', 'tblTempUsageDetail_20' ) start [2025-03-31 11:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803081', 'tblTempUsageDetail_20' ) end [2025-03-31 11:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803081', 'tblTempVendorCDR_20' ) start [2025-03-31 11:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803081', 'tblTempVendorCDR_20' ) end [2025-03-31 11:04:22] Production.INFO: ProcessCDR(1,14803081,1,1,2) [2025-03-31 11:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:04:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:04:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:04:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803081', 'tblTempUsageDetail_20' ) start [2025-03-31 11:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803081', 'tblTempUsageDetail_20' ) end [2025-03-31 11:04:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 11:04:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 11:04:28] Production.INFO: ==11932== Releasing lock... [2025-03-31 11:04:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 11:04:28] Production.INFO: 63 MB #Memory Used# [2025-03-31 11:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 08:05:06 [end_date_ymd] => 2025-03-31 11:05:06 [RateCDR] => 1 ) [2025-03-31 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-31 08:05:06' and `end` < '2025-03-31 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-31 11:05:20] Production.INFO: count ==4700 [2025-03-31 11:05:22] Production.ERROR: pbx CDR StartTime 2025-03-31 08:05:06 - End Time 2025-03-31 11:05:06 [2025-03-31 11:05:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 11:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803086', 'tblTempUsageDetail_20' ) start [2025-03-31 11:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803086', 'tblTempUsageDetail_20' ) end [2025-03-31 11:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803086', 'tblTempVendorCDR_20' ) start [2025-03-31 11:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803086', 'tblTempVendorCDR_20' ) end [2025-03-31 11:05:22] Production.INFO: ProcessCDR(1,14803086,1,1,2) [2025-03-31 11:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:05:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:05:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:05:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803086', 'tblTempUsageDetail_20' ) start [2025-03-31 11:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803086', 'tblTempUsageDetail_20' ) end [2025-03-31 11:05:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 11:05:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 11:05:28] Production.INFO: ==12089== Releasing lock... [2025-03-31 11:05:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 11:05:28] Production.INFO: 63.25 MB #Memory Used# [2025-03-31 11:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 08:06:06 [end_date_ymd] => 2025-03-31 11:06:06 [RateCDR] => 1 ) [2025-03-31 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-31 08:06:06' and `end` < '2025-03-31 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-31 11:06:20] Production.INFO: count ==4730 [2025-03-31 11:06:22] Production.ERROR: pbx CDR StartTime 2025-03-31 08:06:06 - End Time 2025-03-31 11:06:06 [2025-03-31 11:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 11:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803091', 'tblTempUsageDetail_20' ) start [2025-03-31 11:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803091', 'tblTempUsageDetail_20' ) end [2025-03-31 11:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803091', 'tblTempVendorCDR_20' ) start [2025-03-31 11:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803091', 'tblTempVendorCDR_20' ) end [2025-03-31 11:06:22] Production.INFO: ProcessCDR(1,14803091,1,1,2) [2025-03-31 11:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:06:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803091', 'tblTempUsageDetail_20' ) start [2025-03-31 11:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803091', 'tblTempUsageDetail_20' ) end [2025-03-31 11:06:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 11:06:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 11:06:28] Production.INFO: ==12174== Releasing lock... [2025-03-31 11:06:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 11:06:28] Production.INFO: 63.25 MB #Memory Used# [2025-03-31 11:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 08:07:06 [end_date_ymd] => 2025-03-31 11:07:06 [RateCDR] => 1 ) [2025-03-31 11: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-31 08:07:06' and `end` < '2025-03-31 11: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-31 11:07:19] Production.INFO: count ==4735 [2025-03-31 11:07:22] Production.ERROR: pbx CDR StartTime 2025-03-31 08:07:06 - End Time 2025-03-31 11:07:06 [2025-03-31 11:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 11:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803096', 'tblTempUsageDetail_20' ) start [2025-03-31 11:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803096', 'tblTempUsageDetail_20' ) end [2025-03-31 11:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803096', 'tblTempVendorCDR_20' ) start [2025-03-31 11:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803096', 'tblTempVendorCDR_20' ) end [2025-03-31 11:07:22] Production.INFO: ProcessCDR(1,14803096,1,1,2) [2025-03-31 11:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:07:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:07:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:07:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803096', 'tblTempUsageDetail_20' ) start [2025-03-31 11:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803096', 'tblTempUsageDetail_20' ) end [2025-03-31 11:07:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 11:07:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 11:07:28] Production.INFO: ==12252== Releasing lock... [2025-03-31 11:07:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 11:07:28] Production.INFO: 63.5 MB #Memory Used# [2025-03-31 11:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 08:08:06 [end_date_ymd] => 2025-03-31 11:08:06 [RateCDR] => 1 ) [2025-03-31 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-31 08:08:06' and `end` < '2025-03-31 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-31 11:08:19] Production.INFO: count ==4745 [2025-03-31 11:08:21] Production.ERROR: pbx CDR StartTime 2025-03-31 08:08:06 - End Time 2025-03-31 11:08:06 [2025-03-31 11:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 11:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803101', 'tblTempUsageDetail_20' ) start [2025-03-31 11:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803101', 'tblTempUsageDetail_20' ) end [2025-03-31 11:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803101', 'tblTempVendorCDR_20' ) start [2025-03-31 11:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803101', 'tblTempVendorCDR_20' ) end [2025-03-31 11:08:22] Production.INFO: ProcessCDR(1,14803101,1,1,2) [2025-03-31 11:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803101', 'tblTempUsageDetail_20' ) start [2025-03-31 11:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803101', 'tblTempUsageDetail_20' ) end [2025-03-31 11:08:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 11:08:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 11:08:26] Production.INFO: ==12373== Releasing lock... [2025-03-31 11:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 11:08:26] Production.INFO: 63.5 MB #Memory Used# [2025-03-31 11:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 08:09:05 [end_date_ymd] => 2025-03-31 11:09:05 [RateCDR] => 1 ) [2025-03-31 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-31 08:09:05' and `end` < '2025-03-31 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-31 11:09:19] Production.INFO: count ==4745 [2025-03-31 11:09:21] Production.ERROR: pbx CDR StartTime 2025-03-31 08:09:05 - End Time 2025-03-31 11:09:05 [2025-03-31 11:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 11:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803106', 'tblTempUsageDetail_20' ) start [2025-03-31 11:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803106', 'tblTempUsageDetail_20' ) end [2025-03-31 11:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803106', 'tblTempVendorCDR_20' ) start [2025-03-31 11:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803106', 'tblTempVendorCDR_20' ) end [2025-03-31 11:09:22] Production.INFO: ProcessCDR(1,14803106,1,1,2) [2025-03-31 11:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:09:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:09:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803106', 'tblTempUsageDetail_20' ) start [2025-03-31 11:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803106', 'tblTempUsageDetail_20' ) end [2025-03-31 11:09:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 11:09:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 11:09:27] Production.INFO: ==12488== Releasing lock... [2025-03-31 11:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 11:09:27] Production.INFO: 63.5 MB #Memory Used# [2025-03-31 11:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 08:10:07 [end_date_ymd] => 2025-03-31 11:10:07 [RateCDR] => 1 ) [2025-03-31 11: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-31 08:10:07' and `end` < '2025-03-31 11: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-31 11:10:21] Production.INFO: count ==4757 [2025-03-31 11:10:23] Production.ERROR: pbx CDR StartTime 2025-03-31 08:10:07 - End Time 2025-03-31 11:10:07 [2025-03-31 11:10:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 11:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803111', 'tblTempUsageDetail_20' ) start [2025-03-31 11:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803111', 'tblTempUsageDetail_20' ) end [2025-03-31 11:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803111', 'tblTempVendorCDR_20' ) start [2025-03-31 11:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803111', 'tblTempVendorCDR_20' ) end [2025-03-31 11:10:23] Production.INFO: ProcessCDR(1,14803111,1,1,2) [2025-03-31 11:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:10:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:10:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:10:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803111', 'tblTempUsageDetail_20' ) start [2025-03-31 11:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803111', 'tblTempUsageDetail_20' ) end [2025-03-31 11:10:29] Production.ERROR: pbx prc_insertCDR start [2025-03-31 11:10:29] Production.ERROR: pbx prc_insertCDR end [2025-03-31 11:10:29] Production.INFO: ==12569== Releasing lock... [2025-03-31 11:10:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 11:10:29] Production.INFO: 63.5 MB #Memory Used# [2025-03-31 11:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 08:11:06 [end_date_ymd] => 2025-03-31 11:11:06 [RateCDR] => 1 ) [2025-03-31 11: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-31 08:11:06' and `end` < '2025-03-31 11: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-31 11:11:19] Production.INFO: count ==4817 [2025-03-31 11:11:21] Production.ERROR: pbx CDR StartTime 2025-03-31 08:11:06 - End Time 2025-03-31 11:11:06 [2025-03-31 11:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 11:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803117', 'tblTempUsageDetail_20' ) start [2025-03-31 11:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803117', 'tblTempUsageDetail_20' ) end [2025-03-31 11:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803117', 'tblTempVendorCDR_20' ) start [2025-03-31 11:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803117', 'tblTempVendorCDR_20' ) end [2025-03-31 11:11:21] Production.INFO: ProcessCDR(1,14803117,1,1,2) [2025-03-31 11:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803117', 'tblTempUsageDetail_20' ) start [2025-03-31 11:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803117', 'tblTempUsageDetail_20' ) end [2025-03-31 11:11:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 11:11:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 11:11:27] Production.INFO: ==12690== Releasing lock... [2025-03-31 11:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 11:11:27] Production.INFO: 64 MB #Memory Used# [2025-03-31 11:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 08:12:06 [end_date_ymd] => 2025-03-31 11:12:06 [RateCDR] => 1 ) [2025-03-31 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-31 08:12:06' and `end` < '2025-03-31 11:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 11:12:20] Production.INFO: count ==4841 [2025-03-31 11:12:22] Production.ERROR: pbx CDR StartTime 2025-03-31 08:12:06 - End Time 2025-03-31 11:12:06 [2025-03-31 11:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 11:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803122', 'tblTempUsageDetail_20' ) start [2025-03-31 11:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803122', 'tblTempUsageDetail_20' ) end [2025-03-31 11:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803122', 'tblTempVendorCDR_20' ) start [2025-03-31 11:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803122', 'tblTempVendorCDR_20' ) end [2025-03-31 11:12:22] Production.INFO: ProcessCDR(1,14803122,1,1,2) [2025-03-31 11:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:12:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:12:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:12:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803122', 'tblTempUsageDetail_20' ) start [2025-03-31 11:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803122', 'tblTempUsageDetail_20' ) end [2025-03-31 11:12:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 11:12:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 11:12:29] Production.INFO: ==12849== Releasing lock... [2025-03-31 11:12:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 11:12:29] Production.INFO: 64.25 MB #Memory Used# [2025-03-31 11:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 08:13:06 [end_date_ymd] => 2025-03-31 11:13:06 [RateCDR] => 1 ) [2025-03-31 11: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-31 08:13:06' and `end` < '2025-03-31 11: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-31 11:13:19] Production.INFO: count ==4850 [2025-03-31 11:13:22] Production.ERROR: pbx CDR StartTime 2025-03-31 08:13:06 - End Time 2025-03-31 11:13:06 [2025-03-31 11:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 11:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803127', 'tblTempUsageDetail_20' ) start [2025-03-31 11:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803127', 'tblTempUsageDetail_20' ) end [2025-03-31 11:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803127', 'tblTempVendorCDR_20' ) start [2025-03-31 11:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803127', 'tblTempVendorCDR_20' ) end [2025-03-31 11:13:22] Production.INFO: ProcessCDR(1,14803127,1,1,2) [2025-03-31 11:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:13:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:13:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803127', 'tblTempUsageDetail_20' ) start [2025-03-31 11:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803127', 'tblTempUsageDetail_20' ) end [2025-03-31 11:13:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 11:13:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 11:13:28] Production.INFO: ==12927== Releasing lock... [2025-03-31 11:13:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 11:13:28] Production.INFO: 64.25 MB #Memory Used# [2025-03-31 11:14:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 08:14:07 [end_date_ymd] => 2025-03-31 11:14:07 [RateCDR] => 1 ) [2025-03-31 11:14: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-31 08:14:07' and `end` < '2025-03-31 11:14: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-31 11:14:21] Production.INFO: count ==4868 [2025-03-31 11:14:23] Production.ERROR: pbx CDR StartTime 2025-03-31 08:14:07 - End Time 2025-03-31 11:14:07 [2025-03-31 11:14:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 11:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803132', 'tblTempUsageDetail_20' ) start [2025-03-31 11:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803132', 'tblTempUsageDetail_20' ) end [2025-03-31 11:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803132', 'tblTempVendorCDR_20' ) start [2025-03-31 11:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803132', 'tblTempVendorCDR_20' ) end [2025-03-31 11:14:23] Production.INFO: ProcessCDR(1,14803132,1,1,2) [2025-03-31 11:14:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:14:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:14:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:14:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803132', 'tblTempUsageDetail_20' ) start [2025-03-31 11:14:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803132', 'tblTempUsageDetail_20' ) end [2025-03-31 11:14:29] Production.ERROR: pbx prc_insertCDR start [2025-03-31 11:14:29] Production.ERROR: pbx prc_insertCDR end [2025-03-31 11:14:29] Production.INFO: ==13003== Releasing lock... [2025-03-31 11:14:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 11:14:29] Production.INFO: 64.5 MB #Memory Used# [2025-03-31 11:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 08:15:06 [end_date_ymd] => 2025-03-31 11:15:06 [RateCDR] => 1 ) [2025-03-31 11: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-31 08:15:06' and `end` < '2025-03-31 11: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-31 11:15:19] Production.INFO: count ==4870 [2025-03-31 11:15:22] Production.ERROR: pbx CDR StartTime 2025-03-31 08:15:06 - End Time 2025-03-31 11:15:06 [2025-03-31 11:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 11:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803137', 'tblTempUsageDetail_20' ) start [2025-03-31 11:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803137', 'tblTempUsageDetail_20' ) end [2025-03-31 11:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803137', 'tblTempVendorCDR_20' ) start [2025-03-31 11:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803137', 'tblTempVendorCDR_20' ) end [2025-03-31 11:15:22] Production.INFO: ProcessCDR(1,14803137,1,1,2) [2025-03-31 11:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:15:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:15:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:15:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803137', 'tblTempUsageDetail_20' ) start [2025-03-31 11:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803137', 'tblTempUsageDetail_20' ) end [2025-03-31 11:15:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 11:15:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 11:15:28] Production.INFO: ==13160== Releasing lock... [2025-03-31 11:15:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 11:15:28] Production.INFO: 64.5 MB #Memory Used# [2025-03-31 11:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 08:16:06 [end_date_ymd] => 2025-03-31 11:16:06 [RateCDR] => 1 ) [2025-03-31 11: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-31 08:16:06' and `end` < '2025-03-31 11: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-31 11:16:20] Production.INFO: count ==4896 [2025-03-31 11:16:22] Production.ERROR: pbx CDR StartTime 2025-03-31 08:16:06 - End Time 2025-03-31 11:16:06 [2025-03-31 11:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 11:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803142', 'tblTempUsageDetail_20' ) start [2025-03-31 11:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803142', 'tblTempUsageDetail_20' ) end [2025-03-31 11:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803142', 'tblTempVendorCDR_20' ) start [2025-03-31 11:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803142', 'tblTempVendorCDR_20' ) end [2025-03-31 11:16:22] Production.INFO: ProcessCDR(1,14803142,1,1,2) [2025-03-31 11:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:16:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:16:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803142', 'tblTempUsageDetail_20' ) start [2025-03-31 11:16:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803142', 'tblTempUsageDetail_20' ) end [2025-03-31 11:16:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 11:16:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 11:16:28] Production.INFO: ==13238== Releasing lock... [2025-03-31 11:16:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 11:16:28] Production.INFO: 64.5 MB #Memory Used# [2025-03-31 11:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 08:17:05 [end_date_ymd] => 2025-03-31 11:17:05 [RateCDR] => 1 ) [2025-03-31 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-31 08:17:05' and `end` < '2025-03-31 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-31 11:17:19] Production.INFO: count ==4897 [2025-03-31 11:17:21] Production.ERROR: pbx CDR StartTime 2025-03-31 08:17:05 - End Time 2025-03-31 11:17:05 [2025-03-31 11:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 11:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803147', 'tblTempUsageDetail_20' ) start [2025-03-31 11:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803147', 'tblTempUsageDetail_20' ) end [2025-03-31 11:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803147', 'tblTempVendorCDR_20' ) start [2025-03-31 11:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803147', 'tblTempVendorCDR_20' ) end [2025-03-31 11:17:21] Production.INFO: ProcessCDR(1,14803147,1,1,2) [2025-03-31 11:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803147', 'tblTempUsageDetail_20' ) start [2025-03-31 11:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803147', 'tblTempUsageDetail_20' ) end [2025-03-31 11:17:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 11:17:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 11:17:27] Production.INFO: ==13321== Releasing lock... [2025-03-31 11:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 11:17:27] Production.INFO: 64.5 MB #Memory Used# [2025-03-31 11:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 08:18:06 [end_date_ymd] => 2025-03-31 11:18:06 [RateCDR] => 1 ) [2025-03-31 11:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 08:18:06' and `end` < '2025-03-31 11:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 11:18:20] Production.INFO: count ==4894 [2025-03-31 11:18:22] Production.ERROR: pbx CDR StartTime 2025-03-31 08:18:06 - End Time 2025-03-31 11:18:06 [2025-03-31 11:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 11:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803152', 'tblTempUsageDetail_20' ) start [2025-03-31 11:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803152', 'tblTempUsageDetail_20' ) end [2025-03-31 11:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803152', 'tblTempVendorCDR_20' ) start [2025-03-31 11:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803152', 'tblTempVendorCDR_20' ) end [2025-03-31 11:18:22] Production.INFO: ProcessCDR(1,14803152,1,1,2) [2025-03-31 11:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:18:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:18:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:18:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803152', 'tblTempUsageDetail_20' ) start [2025-03-31 11:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803152', 'tblTempUsageDetail_20' ) end [2025-03-31 11:18:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 11:18:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 11:18:28] Production.INFO: ==13399== Releasing lock... [2025-03-31 11:18:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 11:18:28] Production.INFO: 64.5 MB #Memory Used# [2025-03-31 11:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 08:19:06 [end_date_ymd] => 2025-03-31 11:19:06 [RateCDR] => 1 ) [2025-03-31 11: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-31 08:19:06' and `end` < '2025-03-31 11: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-31 11:19:19] Production.INFO: count ==4897 [2025-03-31 11:19:22] Production.ERROR: pbx CDR StartTime 2025-03-31 08:19:06 - End Time 2025-03-31 11:19:06 [2025-03-31 11:19:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 11:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803157', 'tblTempUsageDetail_20' ) start [2025-03-31 11:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803157', 'tblTempUsageDetail_20' ) end [2025-03-31 11:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803157', 'tblTempVendorCDR_20' ) start [2025-03-31 11:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803157', 'tblTempVendorCDR_20' ) end [2025-03-31 11:19:22] Production.INFO: ProcessCDR(1,14803157,1,1,2) [2025-03-31 11:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:19:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:19:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803157', 'tblTempUsageDetail_20' ) start [2025-03-31 11:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803157', 'tblTempUsageDetail_20' ) end [2025-03-31 11:19:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 11:19:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 11:19:28] Production.INFO: ==13478== Releasing lock... [2025-03-31 11:19:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 11:19:28] Production.INFO: 64.5 MB #Memory Used# [2025-03-31 11:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 08:20:07 [end_date_ymd] => 2025-03-31 11:20:07 [RateCDR] => 1 ) [2025-03-31 11:20:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 08:20:07' and `end` < '2025-03-31 11:20:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 11:20:21] Production.INFO: count ==4904 [2025-03-31 11:20:23] Production.ERROR: pbx CDR StartTime 2025-03-31 08:20:07 - End Time 2025-03-31 11:20:07 [2025-03-31 11:20:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 11:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803163', 'tblTempUsageDetail_20' ) start [2025-03-31 11:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803163', 'tblTempUsageDetail_20' ) end [2025-03-31 11:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803163', 'tblTempVendorCDR_20' ) start [2025-03-31 11:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803163', 'tblTempVendorCDR_20' ) end [2025-03-31 11:20:23] Production.INFO: ProcessCDR(1,14803163,1,1,2) [2025-03-31 11:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:20:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:20:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:20:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803163', 'tblTempUsageDetail_20' ) start [2025-03-31 11:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803163', 'tblTempUsageDetail_20' ) end [2025-03-31 11:20:29] Production.ERROR: pbx prc_insertCDR start [2025-03-31 11:20:29] Production.ERROR: pbx prc_insertCDR end [2025-03-31 11:20:29] Production.INFO: ==13562== Releasing lock... [2025-03-31 11:20:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 11:20:29] Production.INFO: 64.75 MB #Memory Used# [2025-03-31 11:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 08:21:05 [end_date_ymd] => 2025-03-31 11:21:05 [RateCDR] => 1 ) [2025-03-31 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-31 08:21:05' and `end` < '2025-03-31 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-31 11:21:19] Production.INFO: count ==4993 [2025-03-31 11:21:22] Production.ERROR: pbx CDR StartTime 2025-03-31 08:21:05 - End Time 2025-03-31 11:21:05 [2025-03-31 11:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 11:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803168', 'tblTempUsageDetail_20' ) start [2025-03-31 11:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803168', 'tblTempUsageDetail_20' ) end [2025-03-31 11:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803168', 'tblTempVendorCDR_20' ) start [2025-03-31 11:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803168', 'tblTempVendorCDR_20' ) end [2025-03-31 11:21:22] Production.INFO: ProcessCDR(1,14803168,1,1,2) [2025-03-31 11:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:21:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:21:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:21:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803168', 'tblTempUsageDetail_20' ) start [2025-03-31 11:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803168', 'tblTempUsageDetail_20' ) end [2025-03-31 11:21:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 11:21:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 11:21:28] Production.INFO: ==13643== Releasing lock... [2025-03-31 11:21:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 11:21:28] Production.INFO: 65.25 MB #Memory Used# [2025-03-31 11:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 08:22:06 [end_date_ymd] => 2025-03-31 11:22:06 [RateCDR] => 1 ) [2025-03-31 11:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 08:22:06' and `end` < '2025-03-31 11:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 11:22:20] Production.INFO: count ==5004 [2025-03-31 11:22:22] Production.ERROR: pbx CDR StartTime 2025-03-31 08:22:06 - End Time 2025-03-31 11:22:06 [2025-03-31 11:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 11:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803173', 'tblTempUsageDetail_20' ) start [2025-03-31 11:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803173', 'tblTempUsageDetail_20' ) end [2025-03-31 11:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803173', 'tblTempVendorCDR_20' ) start [2025-03-31 11:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803173', 'tblTempVendorCDR_20' ) end [2025-03-31 11:22:22] Production.INFO: ProcessCDR(1,14803173,1,1,2) [2025-03-31 11:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:22:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:22:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:22:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803173', 'tblTempUsageDetail_20' ) start [2025-03-31 11:22:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803173', 'tblTempUsageDetail_20' ) end [2025-03-31 11:22:29] Production.ERROR: pbx prc_insertCDR start [2025-03-31 11:22:29] Production.ERROR: pbx prc_insertCDR end [2025-03-31 11:22:29] Production.INFO: ==13722== Releasing lock... [2025-03-31 11:22:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 11:22:29] Production.INFO: 65.5 MB #Memory Used# [2025-03-31 11:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 08:23:05 [end_date_ymd] => 2025-03-31 11:23:05 [RateCDR] => 1 ) [2025-03-31 11:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 08:23:05' and `end` < '2025-03-31 11:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 11:23:19] Production.INFO: count ==5012 [2025-03-31 11:23:22] Production.ERROR: pbx CDR StartTime 2025-03-31 08:23:05 - End Time 2025-03-31 11:23:05 [2025-03-31 11:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 11:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803178', 'tblTempUsageDetail_20' ) start [2025-03-31 11:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803178', 'tblTempUsageDetail_20' ) end [2025-03-31 11:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803178', 'tblTempVendorCDR_20' ) start [2025-03-31 11:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803178', 'tblTempVendorCDR_20' ) end [2025-03-31 11:23:22] Production.INFO: ProcessCDR(1,14803178,1,1,2) [2025-03-31 11:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:23:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:23:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803178', 'tblTempUsageDetail_20' ) start [2025-03-31 11:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803178', 'tblTempUsageDetail_20' ) end [2025-03-31 11:23:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 11:23:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 11:23:28] Production.INFO: ==13800== Releasing lock... [2025-03-31 11:23:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 11:23:28] Production.INFO: 65.5 MB #Memory Used# [2025-03-31 11:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 08:24:06 [end_date_ymd] => 2025-03-31 11:24:06 [RateCDR] => 1 ) [2025-03-31 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-31 08:24:06' and `end` < '2025-03-31 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-31 11:24:19] Production.INFO: count ==5035 [2025-03-31 11:24:22] Production.ERROR: pbx CDR StartTime 2025-03-31 08:24:06 - End Time 2025-03-31 11:24:06 [2025-03-31 11:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 11:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803183', 'tblTempUsageDetail_20' ) start [2025-03-31 11:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803183', 'tblTempUsageDetail_20' ) end [2025-03-31 11:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803183', 'tblTempVendorCDR_20' ) start [2025-03-31 11:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803183', 'tblTempVendorCDR_20' ) end [2025-03-31 11:24:22] Production.INFO: ProcessCDR(1,14803183,1,1,2) [2025-03-31 11:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:24:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:24:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803183', 'tblTempUsageDetail_20' ) start [2025-03-31 11:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803183', 'tblTempUsageDetail_20' ) end [2025-03-31 11:24:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 11:24:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 11:24:27] Production.INFO: ==13877== Releasing lock... [2025-03-31 11:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 11:24:27] Production.INFO: 65.75 MB #Memory Used# [2025-03-31 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 08:25:05 [end_date_ymd] => 2025-03-31 11:25:05 [RateCDR] => 1 ) [2025-03-31 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-31 08:25:05' and `end` < '2025-03-31 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-31 11:25:19] Production.INFO: count ==5041 [2025-03-31 11:25:21] Production.ERROR: pbx CDR StartTime 2025-03-31 08:25:05 - End Time 2025-03-31 11:25:05 [2025-03-31 11:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803188', 'tblTempUsageDetail_20' ) start [2025-03-31 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803188', 'tblTempUsageDetail_20' ) end [2025-03-31 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803188', 'tblTempVendorCDR_20' ) start [2025-03-31 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803188', 'tblTempVendorCDR_20' ) end [2025-03-31 11:25:21] Production.INFO: ProcessCDR(1,14803188,1,1,2) [2025-03-31 11:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803188', 'tblTempUsageDetail_20' ) start [2025-03-31 11:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803188', 'tblTempUsageDetail_20' ) end [2025-03-31 11:25:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 11:25:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 11:25:27] Production.INFO: ==13952== Releasing lock... [2025-03-31 11:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 11:25:27] Production.INFO: 65.75 MB #Memory Used# [2025-03-31 11:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 08:26:06 [end_date_ymd] => 2025-03-31 11:26:06 [RateCDR] => 1 ) [2025-03-31 11: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-31 08:26:06' and `end` < '2025-03-31 11: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-31 11:26:20] Production.INFO: count ==5054 [2025-03-31 11:26:22] Production.ERROR: pbx CDR StartTime 2025-03-31 08:26:06 - End Time 2025-03-31 11:26:06 [2025-03-31 11:26:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 11:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803193', 'tblTempUsageDetail_20' ) start [2025-03-31 11:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803193', 'tblTempUsageDetail_20' ) end [2025-03-31 11:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803193', 'tblTempVendorCDR_20' ) start [2025-03-31 11:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803193', 'tblTempVendorCDR_20' ) end [2025-03-31 11:26:23] Production.INFO: ProcessCDR(1,14803193,1,1,2) [2025-03-31 11:26:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:26:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:26:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:26:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803193', 'tblTempUsageDetail_20' ) start [2025-03-31 11:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803193', 'tblTempUsageDetail_20' ) end [2025-03-31 11:26:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 11:26:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 11:26:28] Production.INFO: ==14044== Releasing lock... [2025-03-31 11:26:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 11:26:28] Production.INFO: 65.75 MB #Memory Used# [2025-03-31 11:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 08:27:06 [end_date_ymd] => 2025-03-31 11:27:06 [RateCDR] => 1 ) [2025-03-31 11: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-31 08:27:06' and `end` < '2025-03-31 11: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-31 11:27:19] Production.INFO: count ==5068 [2025-03-31 11:27:22] Production.ERROR: pbx CDR StartTime 2025-03-31 08:27:06 - End Time 2025-03-31 11:27:06 [2025-03-31 11:27:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 11:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803198', 'tblTempUsageDetail_20' ) start [2025-03-31 11:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803198', 'tblTempUsageDetail_20' ) end [2025-03-31 11:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803198', 'tblTempVendorCDR_20' ) start [2025-03-31 11:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803198', 'tblTempVendorCDR_20' ) end [2025-03-31 11:27:22] Production.INFO: ProcessCDR(1,14803198,1,1,2) [2025-03-31 11:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:27:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:27:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:27:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803198', 'tblTempUsageDetail_20' ) start [2025-03-31 11:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803198', 'tblTempUsageDetail_20' ) end [2025-03-31 11:27:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 11:27:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 11:27:28] Production.INFO: ==14157== Releasing lock... [2025-03-31 11:27:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 11:27:28] Production.INFO: 66 MB #Memory Used# [2025-03-31 11:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 08:28:06 [end_date_ymd] => 2025-03-31 11:28:06 [RateCDR] => 1 ) [2025-03-31 11:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 08:28:06' and `end` < '2025-03-31 11:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 11:28:20] Production.INFO: count ==5066 [2025-03-31 11:28:23] Production.ERROR: pbx CDR StartTime 2025-03-31 08:28:06 - End Time 2025-03-31 11:28:06 [2025-03-31 11:28:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 11:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803203', 'tblTempUsageDetail_20' ) start [2025-03-31 11:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803203', 'tblTempUsageDetail_20' ) end [2025-03-31 11:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803203', 'tblTempVendorCDR_20' ) start [2025-03-31 11:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803203', 'tblTempVendorCDR_20' ) end [2025-03-31 11:28:23] Production.INFO: ProcessCDR(1,14803203,1,1,2) [2025-03-31 11:28:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:28:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:28:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:28:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803203', 'tblTempUsageDetail_20' ) start [2025-03-31 11:28:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803203', 'tblTempUsageDetail_20' ) end [2025-03-31 11:28:29] Production.ERROR: pbx prc_insertCDR start [2025-03-31 11:28:29] Production.ERROR: pbx prc_insertCDR end [2025-03-31 11:28:29] Production.INFO: ==14229== Releasing lock... [2025-03-31 11:28:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 11:28:29] Production.INFO: 66 MB #Memory Used# [2025-03-31 11:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 08:29:06 [end_date_ymd] => 2025-03-31 11:29:06 [RateCDR] => 1 ) [2025-03-31 11: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-31 08:29:06' and `end` < '2025-03-31 11: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-31 11:29:20] Production.INFO: count ==5111 [2025-03-31 11:29:22] Production.ERROR: pbx CDR StartTime 2025-03-31 08:29:06 - End Time 2025-03-31 11:29:06 [2025-03-31 11:29:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 11:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803208', 'tblTempUsageDetail_20' ) start [2025-03-31 11:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803208', 'tblTempUsageDetail_20' ) end [2025-03-31 11:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803208', 'tblTempVendorCDR_20' ) start [2025-03-31 11:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803208', 'tblTempVendorCDR_20' ) end [2025-03-31 11:29:22] Production.INFO: ProcessCDR(1,14803208,1,1,2) [2025-03-31 11:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:29:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:29:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:29:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803208', 'tblTempUsageDetail_20' ) start [2025-03-31 11:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803208', 'tblTempUsageDetail_20' ) end [2025-03-31 11:29:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 11:29:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 11:29:28] Production.INFO: ==14304== Releasing lock... [2025-03-31 11:29:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 11:29:28] Production.INFO: 66.25 MB #Memory Used# [2025-03-31 11:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 08:30:07 [end_date_ymd] => 2025-03-31 11:30:07 [RateCDR] => 1 ) [2025-03-31 11: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-31 08:30:07' and `end` < '2025-03-31 11: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-31 11:30:20] Production.INFO: count ==5145 [2025-03-31 11:30:23] Production.ERROR: pbx CDR StartTime 2025-03-31 08:30:07 - End Time 2025-03-31 11:30:07 [2025-03-31 11:30:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 11:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803214', 'tblTempUsageDetail_20' ) start [2025-03-31 11:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803214', 'tblTempUsageDetail_20' ) end [2025-03-31 11:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803214', 'tblTempVendorCDR_20' ) start [2025-03-31 11:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803214', 'tblTempVendorCDR_20' ) end [2025-03-31 11:30:23] Production.INFO: ProcessCDR(1,14803214,1,1,2) [2025-03-31 11:30:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:30:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:30:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:30:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803214', 'tblTempUsageDetail_20' ) start [2025-03-31 11:30:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803214', 'tblTempUsageDetail_20' ) end [2025-03-31 11:30:29] Production.ERROR: pbx prc_insertCDR start [2025-03-31 11:30:29] Production.ERROR: pbx prc_insertCDR end [2025-03-31 11:30:29] Production.INFO: ==14382== Releasing lock... [2025-03-31 11:30:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 11:30:29] Production.INFO: 66.5 MB #Memory Used# [2025-03-31 11:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 08:31:06 [end_date_ymd] => 2025-03-31 11:31:06 [RateCDR] => 1 ) [2025-03-31 11: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-31 08:31:06' and `end` < '2025-03-31 11: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-31 11:31:20] Production.INFO: count ==5275 [2025-03-31 11:31:22] Production.ERROR: pbx CDR StartTime 2025-03-31 08:31:06 - End Time 2025-03-31 11:31:06 [2025-03-31 11:31:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 11:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803219', 'tblTempUsageDetail_20' ) start [2025-03-31 11:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803219', 'tblTempUsageDetail_20' ) end [2025-03-31 11:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803219', 'tblTempVendorCDR_20' ) start [2025-03-31 11:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803219', 'tblTempVendorCDR_20' ) end [2025-03-31 11:31:22] Production.INFO: ProcessCDR(1,14803219,1,1,2) [2025-03-31 11:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:31:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:31:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:31:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803219', 'tblTempUsageDetail_20' ) start [2025-03-31 11:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803219', 'tblTempUsageDetail_20' ) end [2025-03-31 11:31:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 11:31:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 11:31:28] Production.INFO: ==14456== Releasing lock... [2025-03-31 11:31:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 11:31:28] Production.INFO: 67.5 MB #Memory Used# [2025-03-31 11:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 08:32:05 [end_date_ymd] => 2025-03-31 11:32:05 [RateCDR] => 1 ) [2025-03-31 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-31 08:32:05' and `end` < '2025-03-31 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-31 11:32:19] Production.INFO: count ==5291 [2025-03-31 11:32:22] Production.ERROR: pbx CDR StartTime 2025-03-31 08:32:05 - End Time 2025-03-31 11:32:05 [2025-03-31 11:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 11:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803224', 'tblTempUsageDetail_20' ) start [2025-03-31 11:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803224', 'tblTempUsageDetail_20' ) end [2025-03-31 11:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803224', 'tblTempVendorCDR_20' ) start [2025-03-31 11:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803224', 'tblTempVendorCDR_20' ) end [2025-03-31 11:32:22] Production.INFO: ProcessCDR(1,14803224,1,1,2) [2025-03-31 11:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:32:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:32:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:32:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803224', 'tblTempUsageDetail_20' ) start [2025-03-31 11:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803224', 'tblTempUsageDetail_20' ) end [2025-03-31 11:32:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 11:32:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 11:32:28] Production.INFO: ==14530== Releasing lock... [2025-03-31 11:32:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 11:32:28] Production.INFO: 67.5 MB #Memory Used# [2025-03-31 11:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 08:33:06 [end_date_ymd] => 2025-03-31 11:33:06 [RateCDR] => 1 ) [2025-03-31 11: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-31 08:33:06' and `end` < '2025-03-31 11: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-31 11:33:20] Production.INFO: count ==5317 [2025-03-31 11:33:22] Production.ERROR: pbx CDR StartTime 2025-03-31 08:33:06 - End Time 2025-03-31 11:33:06 [2025-03-31 11:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 11:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803229', 'tblTempUsageDetail_20' ) start [2025-03-31 11:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803229', 'tblTempUsageDetail_20' ) end [2025-03-31 11:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803229', 'tblTempVendorCDR_20' ) start [2025-03-31 11:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803229', 'tblTempVendorCDR_20' ) end [2025-03-31 11:33:23] Production.INFO: ProcessCDR(1,14803229,1,1,2) [2025-03-31 11:33:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:33:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:33:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:33:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803229', 'tblTempUsageDetail_20' ) start [2025-03-31 11:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803229', 'tblTempUsageDetail_20' ) end [2025-03-31 11:33:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 11:33:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 11:33:28] Production.INFO: ==14605== Releasing lock... [2025-03-31 11:33:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 11:33:28] Production.INFO: 67.75 MB #Memory Used# [2025-03-31 11:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 08:34:06 [end_date_ymd] => 2025-03-31 11:34:06 [RateCDR] => 1 ) [2025-03-31 11: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-31 08:34:06' and `end` < '2025-03-31 11: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-31 11:34:20] Production.INFO: count ==5334 [2025-03-31 11:34:22] Production.ERROR: pbx CDR StartTime 2025-03-31 08:34:06 - End Time 2025-03-31 11:34:06 [2025-03-31 11:34:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 11:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803234', 'tblTempUsageDetail_20' ) start [2025-03-31 11:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803234', 'tblTempUsageDetail_20' ) end [2025-03-31 11:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803234', 'tblTempVendorCDR_20' ) start [2025-03-31 11:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803234', 'tblTempVendorCDR_20' ) end [2025-03-31 11:34:22] Production.INFO: ProcessCDR(1,14803234,1,1,2) [2025-03-31 11:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:34:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:34:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:34:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803234', 'tblTempUsageDetail_20' ) start [2025-03-31 11:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803234', 'tblTempUsageDetail_20' ) end [2025-03-31 11:34:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 11:34:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 11:34:28] Production.INFO: ==14679== Releasing lock... [2025-03-31 11:34:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 11:34:28] Production.INFO: 68 MB #Memory Used# [2025-03-31 11:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 08:35:06 [end_date_ymd] => 2025-03-31 11:35:06 [RateCDR] => 1 ) [2025-03-31 11:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 08:35:06' and `end` < '2025-03-31 11:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 11:35:20] Production.INFO: count ==5348 [2025-03-31 11:35:23] Production.ERROR: pbx CDR StartTime 2025-03-31 08:35:06 - End Time 2025-03-31 11:35:06 [2025-03-31 11:35:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 11:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803239', 'tblTempUsageDetail_20' ) start [2025-03-31 11:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803239', 'tblTempUsageDetail_20' ) end [2025-03-31 11:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803239', 'tblTempVendorCDR_20' ) start [2025-03-31 11:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803239', 'tblTempVendorCDR_20' ) end [2025-03-31 11:35:23] Production.INFO: ProcessCDR(1,14803239,1,1,2) [2025-03-31 11:35:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:35:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:35:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:35:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803239', 'tblTempUsageDetail_20' ) start [2025-03-31 11:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803239', 'tblTempUsageDetail_20' ) end [2025-03-31 11:35:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 11:35:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 11:35:28] Production.INFO: ==14752== Releasing lock... [2025-03-31 11:35:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 11:35:28] Production.INFO: 68 MB #Memory Used# [2025-03-31 11:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 08:36:06 [end_date_ymd] => 2025-03-31 11:36:06 [RateCDR] => 1 ) [2025-03-31 11:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 08:36:06' and `end` < '2025-03-31 11:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 11:36:19] Production.INFO: count ==5365 [2025-03-31 11:36:22] Production.ERROR: pbx CDR StartTime 2025-03-31 08:36:06 - End Time 2025-03-31 11:36:06 [2025-03-31 11:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 11:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803244', 'tblTempUsageDetail_20' ) start [2025-03-31 11:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803244', 'tblTempUsageDetail_20' ) end [2025-03-31 11:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803244', 'tblTempVendorCDR_20' ) start [2025-03-31 11:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803244', 'tblTempVendorCDR_20' ) end [2025-03-31 11:36:22] Production.INFO: ProcessCDR(1,14803244,1,1,2) [2025-03-31 11:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:36:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:36:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:36:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803244', 'tblTempUsageDetail_20' ) start [2025-03-31 11:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803244', 'tblTempUsageDetail_20' ) end [2025-03-31 11:36:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 11:36:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 11:36:28] Production.INFO: ==14829== Releasing lock... [2025-03-31 11:36:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 11:36:28] Production.INFO: 68.5 MB #Memory Used# [2025-03-31 11:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 08:37:05 [end_date_ymd] => 2025-03-31 11:37:05 [RateCDR] => 1 ) [2025-03-31 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-31 08:37:05' and `end` < '2025-03-31 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-31 11:37:19] Production.INFO: count ==5377 [2025-03-31 11:37:22] Production.ERROR: pbx CDR StartTime 2025-03-31 08:37:05 - End Time 2025-03-31 11:37:05 [2025-03-31 11:37:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 11:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803249', 'tblTempUsageDetail_20' ) start [2025-03-31 11:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803249', 'tblTempUsageDetail_20' ) end [2025-03-31 11:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803249', 'tblTempVendorCDR_20' ) start [2025-03-31 11:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803249', 'tblTempVendorCDR_20' ) end [2025-03-31 11:37:22] Production.INFO: ProcessCDR(1,14803249,1,1,2) [2025-03-31 11:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:37:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:37:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:37:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803249', 'tblTempUsageDetail_20' ) start [2025-03-31 11:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803249', 'tblTempUsageDetail_20' ) end [2025-03-31 11:37:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 11:37:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 11:37:28] Production.INFO: ==14903== Releasing lock... [2025-03-31 11:37:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 11:37:28] Production.INFO: 68.25 MB #Memory Used# [2025-03-31 11:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 08:38:06 [end_date_ymd] => 2025-03-31 11:38:06 [RateCDR] => 1 ) [2025-03-31 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-31 08:38:06' and `end` < '2025-03-31 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-31 11:38:20] Production.INFO: count ==5394 [2025-03-31 11:38:23] Production.ERROR: pbx CDR StartTime 2025-03-31 08:38:06 - End Time 2025-03-31 11:38:06 [2025-03-31 11:38:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 11:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803254', 'tblTempUsageDetail_20' ) start [2025-03-31 11:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803254', 'tblTempUsageDetail_20' ) end [2025-03-31 11:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803254', 'tblTempVendorCDR_20' ) start [2025-03-31 11:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803254', 'tblTempVendorCDR_20' ) end [2025-03-31 11:38:23] Production.INFO: ProcessCDR(1,14803254,1,1,2) [2025-03-31 11:38:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:38:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:38:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:38:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:38:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803254', 'tblTempUsageDetail_20' ) start [2025-03-31 11:38:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803254', 'tblTempUsageDetail_20' ) end [2025-03-31 11:38:29] Production.ERROR: pbx prc_insertCDR start [2025-03-31 11:38:29] Production.ERROR: pbx prc_insertCDR end [2025-03-31 11:38:29] Production.INFO: ==14974== Releasing lock... [2025-03-31 11:38:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 11:38:29] Production.INFO: 68.25 MB #Memory Used# [2025-03-31 11:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 08:39:05 [end_date_ymd] => 2025-03-31 11:39:05 [RateCDR] => 1 ) [2025-03-31 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-31 08:39:05' and `end` < '2025-03-31 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-31 11:39:19] Production.INFO: count ==5398 [2025-03-31 11:39:21] Production.ERROR: pbx CDR StartTime 2025-03-31 08:39:05 - End Time 2025-03-31 11:39:05 [2025-03-31 11:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 11:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803259', 'tblTempUsageDetail_20' ) start [2025-03-31 11:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803259', 'tblTempUsageDetail_20' ) end [2025-03-31 11:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803259', 'tblTempVendorCDR_20' ) start [2025-03-31 11:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803259', 'tblTempVendorCDR_20' ) end [2025-03-31 11:39:22] Production.INFO: ProcessCDR(1,14803259,1,1,2) [2025-03-31 11:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:39:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:39:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:39:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803259', 'tblTempUsageDetail_20' ) start [2025-03-31 11:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803259', 'tblTempUsageDetail_20' ) end [2025-03-31 11:39:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 11:39:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 11:39:28] Production.INFO: ==15048== Releasing lock... [2025-03-31 11:39:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 11:39:28] Production.INFO: 68.75 MB #Memory Used# [2025-03-31 11:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 08:40:07 [end_date_ymd] => 2025-03-31 11:40:07 [RateCDR] => 1 ) [2025-03-31 11:40:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 08:40:07' and `end` < '2025-03-31 11:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 11:40:21] Production.INFO: count ==5398 [2025-03-31 11:40:24] Production.ERROR: pbx CDR StartTime 2025-03-31 08:40:07 - End Time 2025-03-31 11:40:07 [2025-03-31 11:40:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 11:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803265', 'tblTempUsageDetail_20' ) start [2025-03-31 11:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803265', 'tblTempUsageDetail_20' ) end [2025-03-31 11:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803265', 'tblTempVendorCDR_20' ) start [2025-03-31 11:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803265', 'tblTempVendorCDR_20' ) end [2025-03-31 11:40:24] Production.INFO: ProcessCDR(1,14803265,1,1,2) [2025-03-31 11:40:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:40:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:40:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:40:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:40:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803265', 'tblTempUsageDetail_20' ) start [2025-03-31 11:40:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803265', 'tblTempUsageDetail_20' ) end [2025-03-31 11:40:30] Production.ERROR: pbx prc_insertCDR start [2025-03-31 11:40:30] Production.ERROR: pbx prc_insertCDR end [2025-03-31 11:40:30] Production.INFO: ==15123== Releasing lock... [2025-03-31 11:40:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 11:40:30] Production.INFO: 68.5 MB #Memory Used# [2025-03-31 11:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 08:41:05 [end_date_ymd] => 2025-03-31 11:41:05 [RateCDR] => 1 ) [2025-03-31 11:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 08:41:05' and `end` < '2025-03-31 11:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 11:41:19] Production.INFO: count ==5483 [2025-03-31 11:41:22] Production.ERROR: pbx CDR StartTime 2025-03-31 08:41:05 - End Time 2025-03-31 11:41:05 [2025-03-31 11:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 11:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803270', 'tblTempUsageDetail_20' ) start [2025-03-31 11:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803270', 'tblTempUsageDetail_20' ) end [2025-03-31 11:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803270', 'tblTempVendorCDR_20' ) start [2025-03-31 11:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803270', 'tblTempVendorCDR_20' ) end [2025-03-31 11:41:22] Production.INFO: ProcessCDR(1,14803270,1,1,2) [2025-03-31 11:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:41:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:41:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803270', 'tblTempUsageDetail_20' ) start [2025-03-31 11:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803270', 'tblTempUsageDetail_20' ) end [2025-03-31 11:41:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 11:41:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 11:41:28] Production.INFO: ==15198== Releasing lock... [2025-03-31 11:41:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 11:41:28] Production.INFO: 69 MB #Memory Used# [2025-03-31 11:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 08:42:06 [end_date_ymd] => 2025-03-31 11:42:06 [RateCDR] => 1 ) [2025-03-31 11:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 08:42:06' and `end` < '2025-03-31 11:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 11:42:20] Production.INFO: count ==5492 [2025-03-31 11:42:22] Production.ERROR: pbx CDR StartTime 2025-03-31 08:42:06 - End Time 2025-03-31 11:42:06 [2025-03-31 11:42:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 11:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803275', 'tblTempUsageDetail_20' ) start [2025-03-31 11:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803275', 'tblTempUsageDetail_20' ) end [2025-03-31 11:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803275', 'tblTempVendorCDR_20' ) start [2025-03-31 11:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803275', 'tblTempVendorCDR_20' ) end [2025-03-31 11:42:23] Production.INFO: ProcessCDR(1,14803275,1,1,2) [2025-03-31 11:42:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:42:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:42:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:42:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803275', 'tblTempUsageDetail_20' ) start [2025-03-31 11:42:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803275', 'tblTempUsageDetail_20' ) end [2025-03-31 11:42:29] Production.ERROR: pbx prc_insertCDR start [2025-03-31 11:42:29] Production.ERROR: pbx prc_insertCDR end [2025-03-31 11:42:29] Production.INFO: ==15311== Releasing lock... [2025-03-31 11:42:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 11:42:29] Production.INFO: 69 MB #Memory Used# [2025-03-31 11:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 08:43:05 [end_date_ymd] => 2025-03-31 11:43:05 [RateCDR] => 1 ) [2025-03-31 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-31 08:43:05' and `end` < '2025-03-31 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-31 11:43:19] Production.INFO: count ==5516 [2025-03-31 11:43:22] Production.ERROR: pbx CDR StartTime 2025-03-31 08:43:05 - End Time 2025-03-31 11:43:05 [2025-03-31 11:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 11:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803280', 'tblTempUsageDetail_20' ) start [2025-03-31 11:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803280', 'tblTempUsageDetail_20' ) end [2025-03-31 11:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803280', 'tblTempVendorCDR_20' ) start [2025-03-31 11:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803280', 'tblTempVendorCDR_20' ) end [2025-03-31 11:43:22] Production.INFO: ProcessCDR(1,14803280,1,1,2) [2025-03-31 11:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:43:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:43:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:43:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803280', 'tblTempUsageDetail_20' ) start [2025-03-31 11:43:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803280', 'tblTempUsageDetail_20' ) end [2025-03-31 11:43:29] Production.ERROR: pbx prc_insertCDR start [2025-03-31 11:43:29] Production.ERROR: pbx prc_insertCDR end [2025-03-31 11:43:29] Production.INFO: ==15387== Releasing lock... [2025-03-31 11:43:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 11:43:29] Production.INFO: 69.25 MB #Memory Used# [2025-03-31 11:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 08:44:06 [end_date_ymd] => 2025-03-31 11:44:06 [RateCDR] => 1 ) [2025-03-31 11: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-31 08:44:06' and `end` < '2025-03-31 11: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-31 11:44:20] Production.INFO: count ==5519 [2025-03-31 11:44:22] Production.ERROR: pbx CDR StartTime 2025-03-31 08:44:06 - End Time 2025-03-31 11:44:06 [2025-03-31 11:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 11:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803285', 'tblTempUsageDetail_20' ) start [2025-03-31 11:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803285', 'tblTempUsageDetail_20' ) end [2025-03-31 11:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803285', 'tblTempVendorCDR_20' ) start [2025-03-31 11:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803285', 'tblTempVendorCDR_20' ) end [2025-03-31 11:44:23] Production.INFO: ProcessCDR(1,14803285,1,1,2) [2025-03-31 11:44:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:44:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:44:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:44:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803285', 'tblTempUsageDetail_20' ) start [2025-03-31 11:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803285', 'tblTempUsageDetail_20' ) end [2025-03-31 11:44:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 11:44:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 11:44:28] Production.INFO: ==15466== Releasing lock... [2025-03-31 11:44:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 11:44:28] Production.INFO: 69.25 MB #Memory Used# [2025-03-31 11:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 08:45:05 [end_date_ymd] => 2025-03-31 11:45:05 [RateCDR] => 1 ) [2025-03-31 11: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-31 08:45:05' and `end` < '2025-03-31 11: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-31 11:45:19] Production.INFO: count ==5523 [2025-03-31 11:45:22] Production.ERROR: pbx CDR StartTime 2025-03-31 08:45:05 - End Time 2025-03-31 11:45:05 [2025-03-31 11:45:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 11:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803290', 'tblTempUsageDetail_20' ) start [2025-03-31 11:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803290', 'tblTempUsageDetail_20' ) end [2025-03-31 11:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803290', 'tblTempVendorCDR_20' ) start [2025-03-31 11:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803290', 'tblTempVendorCDR_20' ) end [2025-03-31 11:45:22] Production.INFO: ProcessCDR(1,14803290,1,1,2) [2025-03-31 11:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:45:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:45:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:45:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803290', 'tblTempUsageDetail_20' ) start [2025-03-31 11:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803290', 'tblTempUsageDetail_20' ) end [2025-03-31 11:45:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 11:45:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 11:45:28] Production.INFO: ==15544== Releasing lock... [2025-03-31 11:45:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 11:45:28] Production.INFO: 69.25 MB #Memory Used# [2025-03-31 11:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 08:46:06 [end_date_ymd] => 2025-03-31 11:46:06 [RateCDR] => 1 ) [2025-03-31 11: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-31 08:46:06' and `end` < '2025-03-31 11: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-31 11:46:20] Production.INFO: count ==5563 [2025-03-31 11:46:23] Production.ERROR: pbx CDR StartTime 2025-03-31 08:46:06 - End Time 2025-03-31 11:46:06 [2025-03-31 11:46:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 11:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803295', 'tblTempUsageDetail_20' ) start [2025-03-31 11:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803295', 'tblTempUsageDetail_20' ) end [2025-03-31 11:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803295', 'tblTempVendorCDR_20' ) start [2025-03-31 11:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803295', 'tblTempVendorCDR_20' ) end [2025-03-31 11:46:23] Production.INFO: ProcessCDR(1,14803295,1,1,2) [2025-03-31 11:46:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:46:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:46:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:46:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:46:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803295', 'tblTempUsageDetail_20' ) start [2025-03-31 11:46:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803295', 'tblTempUsageDetail_20' ) end [2025-03-31 11:46:29] Production.ERROR: pbx prc_insertCDR start [2025-03-31 11:46:29] Production.ERROR: pbx prc_insertCDR end [2025-03-31 11:46:29] Production.INFO: ==15621== Releasing lock... [2025-03-31 11:46:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 11:46:29] Production.INFO: 69.75 MB #Memory Used# [2025-03-31 11:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 08:47:06 [end_date_ymd] => 2025-03-31 11:47:06 [RateCDR] => 1 ) [2025-03-31 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-31 08:47:06' and `end` < '2025-03-31 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-31 11:47:20] Production.INFO: count ==5564 [2025-03-31 11:47:23] Production.ERROR: pbx CDR StartTime 2025-03-31 08:47:06 - End Time 2025-03-31 11:47:06 [2025-03-31 11:47:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 11:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803300', 'tblTempUsageDetail_20' ) start [2025-03-31 11:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803300', 'tblTempUsageDetail_20' ) end [2025-03-31 11:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803300', 'tblTempVendorCDR_20' ) start [2025-03-31 11:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803300', 'tblTempVendorCDR_20' ) end [2025-03-31 11:47:23] Production.INFO: ProcessCDR(1,14803300,1,1,2) [2025-03-31 11:47:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:47:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:47:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:47:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803300', 'tblTempUsageDetail_20' ) start [2025-03-31 11:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803300', 'tblTempUsageDetail_20' ) end [2025-03-31 11:47:29] Production.ERROR: pbx prc_insertCDR start [2025-03-31 11:47:29] Production.ERROR: pbx prc_insertCDR end [2025-03-31 11:47:29] Production.INFO: ==15697== Releasing lock... [2025-03-31 11:47:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 11:47:29] Production.INFO: 69.75 MB #Memory Used# [2025-03-31 11:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 08:48:06 [end_date_ymd] => 2025-03-31 11:48:06 [RateCDR] => 1 ) [2025-03-31 11:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 08:48:06' and `end` < '2025-03-31 11:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 11:48:20] Production.INFO: count ==5556 [2025-03-31 11:48:23] Production.ERROR: pbx CDR StartTime 2025-03-31 08:48:06 - End Time 2025-03-31 11:48:06 [2025-03-31 11:48:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 11:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803305', 'tblTempUsageDetail_20' ) start [2025-03-31 11:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803305', 'tblTempUsageDetail_20' ) end [2025-03-31 11:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803305', 'tblTempVendorCDR_20' ) start [2025-03-31 11:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803305', 'tblTempVendorCDR_20' ) end [2025-03-31 11:48:23] Production.INFO: ProcessCDR(1,14803305,1,1,2) [2025-03-31 11:48:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:48:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:48:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:48:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803305', 'tblTempUsageDetail_20' ) start [2025-03-31 11:48:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803305', 'tblTempUsageDetail_20' ) end [2025-03-31 11:48:29] Production.ERROR: pbx prc_insertCDR start [2025-03-31 11:48:29] Production.ERROR: pbx prc_insertCDR end [2025-03-31 11:48:29] Production.INFO: ==15773== Releasing lock... [2025-03-31 11:48:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 11:48:29] Production.INFO: 69.5 MB #Memory Used# [2025-03-31 11:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 08:49:05 [end_date_ymd] => 2025-03-31 11:49:05 [RateCDR] => 1 ) [2025-03-31 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-31 08:49:05' and `end` < '2025-03-31 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-31 11:49:19] Production.INFO: count ==5542 [2025-03-31 11:49:22] Production.ERROR: pbx CDR StartTime 2025-03-31 08:49:05 - End Time 2025-03-31 11:49:05 [2025-03-31 11:49:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 11:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803310', 'tblTempUsageDetail_20' ) start [2025-03-31 11:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803310', 'tblTempUsageDetail_20' ) end [2025-03-31 11:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803310', 'tblTempVendorCDR_20' ) start [2025-03-31 11:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803310', 'tblTempVendorCDR_20' ) end [2025-03-31 11:49:22] Production.INFO: ProcessCDR(1,14803310,1,1,2) [2025-03-31 11:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:49:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:49:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:49:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803310', 'tblTempUsageDetail_20' ) start [2025-03-31 11:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803310', 'tblTempUsageDetail_20' ) end [2025-03-31 11:49:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 11:49:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 11:49:28] Production.INFO: ==15858== Releasing lock... [2025-03-31 11:49:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 11:49:28] Production.INFO: 69.5 MB #Memory Used# [2025-03-31 11:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 08:50:06 [end_date_ymd] => 2025-03-31 11:50:06 [RateCDR] => 1 ) [2025-03-31 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-31 08:50:06' and `end` < '2025-03-31 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-31 11:50:20] Production.INFO: count ==5535 [2025-03-31 11:50:23] Production.ERROR: pbx CDR StartTime 2025-03-31 08:50:06 - End Time 2025-03-31 11:50:06 [2025-03-31 11:50:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 11:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803316', 'tblTempUsageDetail_20' ) start [2025-03-31 11:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803316', 'tblTempUsageDetail_20' ) end [2025-03-31 11:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803316', 'tblTempVendorCDR_20' ) start [2025-03-31 11:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803316', 'tblTempVendorCDR_20' ) end [2025-03-31 11:50:23] Production.INFO: ProcessCDR(1,14803316,1,1,2) [2025-03-31 11:50:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:50:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:50:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:50:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803316', 'tblTempUsageDetail_20' ) start [2025-03-31 11:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803316', 'tblTempUsageDetail_20' ) end [2025-03-31 11:50:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 11:50:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 11:50:28] Production.INFO: ==15938== Releasing lock... [2025-03-31 11:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 11:50:28] Production.INFO: 69.5 MB #Memory Used# [2025-03-31 11:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 08:51:05 [end_date_ymd] => 2025-03-31 11:51:05 [RateCDR] => 1 ) [2025-03-31 11:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 08:51:05' and `end` < '2025-03-31 11:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 11:51:19] Production.INFO: count ==5617 [2025-03-31 11:51:22] Production.ERROR: pbx CDR StartTime 2025-03-31 08:51:05 - End Time 2025-03-31 11:51:05 [2025-03-31 11:51:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 11:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803321', 'tblTempUsageDetail_20' ) start [2025-03-31 11:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803321', 'tblTempUsageDetail_20' ) end [2025-03-31 11:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803321', 'tblTempVendorCDR_20' ) start [2025-03-31 11:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803321', 'tblTempVendorCDR_20' ) end [2025-03-31 11:51:22] Production.INFO: ProcessCDR(1,14803321,1,1,2) [2025-03-31 11:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:51:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803321', 'tblTempUsageDetail_20' ) start [2025-03-31 11:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803321', 'tblTempUsageDetail_20' ) end [2025-03-31 11:51:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 11:51:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 11:51:27] Production.INFO: ==16020== Releasing lock... [2025-03-31 11:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 11:51:27] Production.INFO: 70 MB #Memory Used# [2025-03-31 11:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 08:52:06 [end_date_ymd] => 2025-03-31 11:52:06 [RateCDR] => 1 ) [2025-03-31 11:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 08:52:06' and `end` < '2025-03-31 11:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 11:52:20] Production.INFO: count ==5913 [2025-03-31 11:52:22] Production.ERROR: pbx CDR StartTime 2025-03-31 08:52:06 - End Time 2025-03-31 11:52:06 [2025-03-31 11:52:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 11:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803326', 'tblTempUsageDetail_20' ) start [2025-03-31 11:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803326', 'tblTempUsageDetail_20' ) end [2025-03-31 11:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803326', 'tblTempVendorCDR_20' ) start [2025-03-31 11:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803326', 'tblTempVendorCDR_20' ) end [2025-03-31 11:52:22] Production.INFO: ProcessCDR(1,14803326,1,1,2) [2025-03-31 11:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:52:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:52:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:52:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803326', 'tblTempUsageDetail_20' ) start [2025-03-31 11:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803326', 'tblTempUsageDetail_20' ) end [2025-03-31 11:52:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 11:52:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 11:52:28] Production.INFO: ==16099== Releasing lock... [2025-03-31 11:52:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 11:52:28] Production.INFO: 72.25 MB #Memory Used# [2025-03-31 11:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 08:53:05 [end_date_ymd] => 2025-03-31 11:53:05 [RateCDR] => 1 ) [2025-03-31 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-31 08:53:05' and `end` < '2025-03-31 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-31 11:53:19] Production.INFO: count ==5923 [2025-03-31 11:53:21] Production.ERROR: pbx CDR StartTime 2025-03-31 08:53:05 - End Time 2025-03-31 11:53:05 [2025-03-31 11:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 11:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803331', 'tblTempUsageDetail_20' ) start [2025-03-31 11:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803331', 'tblTempUsageDetail_20' ) end [2025-03-31 11:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803331', 'tblTempVendorCDR_20' ) start [2025-03-31 11:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803331', 'tblTempVendorCDR_20' ) end [2025-03-31 11:53:22] Production.INFO: ProcessCDR(1,14803331,1,1,2) [2025-03-31 11:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:53:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803331', 'tblTempUsageDetail_20' ) start [2025-03-31 11:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803331', 'tblTempUsageDetail_20' ) end [2025-03-31 11:53:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 11:53:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 11:53:27] Production.INFO: ==16179== Releasing lock... [2025-03-31 11:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 11:53:27] Production.INFO: 72.25 MB #Memory Used# [2025-03-31 11:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 08:54:06 [end_date_ymd] => 2025-03-31 11:54:06 [RateCDR] => 1 ) [2025-03-31 11:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 08:54:06' and `end` < '2025-03-31 11:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 11:54:20] Production.INFO: count ==5934 [2025-03-31 11:54:23] Production.ERROR: pbx CDR StartTime 2025-03-31 08:54:06 - End Time 2025-03-31 11:54:06 [2025-03-31 11:54:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 11:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803336', 'tblTempUsageDetail_20' ) start [2025-03-31 11:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803336', 'tblTempUsageDetail_20' ) end [2025-03-31 11:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803336', 'tblTempVendorCDR_20' ) start [2025-03-31 11:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803336', 'tblTempVendorCDR_20' ) end [2025-03-31 11:54:23] Production.INFO: ProcessCDR(1,14803336,1,1,2) [2025-03-31 11:54:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:54:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:54:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:54:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803336', 'tblTempUsageDetail_20' ) start [2025-03-31 11:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803336', 'tblTempUsageDetail_20' ) end [2025-03-31 11:54:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 11:54:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 11:54:28] Production.INFO: ==16265== Releasing lock... [2025-03-31 11:54:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 11:54:28] Production.INFO: 72.5 MB #Memory Used# [2025-03-31 11:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 08:55:05 [end_date_ymd] => 2025-03-31 11:55:05 [RateCDR] => 1 ) [2025-03-31 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-31 08:55:05' and `end` < '2025-03-31 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-31 11:55:19] Production.INFO: count ==5973 [2025-03-31 11:55:21] Production.ERROR: pbx CDR StartTime 2025-03-31 08:55:05 - End Time 2025-03-31 11:55:05 [2025-03-31 11:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803341', 'tblTempUsageDetail_20' ) start [2025-03-31 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803341', 'tblTempUsageDetail_20' ) end [2025-03-31 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803341', 'tblTempVendorCDR_20' ) start [2025-03-31 11:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803341', 'tblTempVendorCDR_20' ) end [2025-03-31 11:55:22] Production.INFO: ProcessCDR(1,14803341,1,1,2) [2025-03-31 11:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803341', 'tblTempUsageDetail_20' ) start [2025-03-31 11:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803341', 'tblTempUsageDetail_20' ) end [2025-03-31 11:55:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 11:55:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 11:55:27] Production.INFO: ==16349== Releasing lock... [2025-03-31 11:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 11:55:27] Production.INFO: 72.75 MB #Memory Used# [2025-03-31 11:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 08:56:06 [end_date_ymd] => 2025-03-31 11:56:06 [RateCDR] => 1 ) [2025-03-31 11:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 08:56:06' and `end` < '2025-03-31 11:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 11:56:19] Production.INFO: count ==5969 [2025-03-31 11:56:22] Production.ERROR: pbx CDR StartTime 2025-03-31 08:56:06 - End Time 2025-03-31 11:56:06 [2025-03-31 11:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 11:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803346', 'tblTempUsageDetail_20' ) start [2025-03-31 11:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803346', 'tblTempUsageDetail_20' ) end [2025-03-31 11:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803346', 'tblTempVendorCDR_20' ) start [2025-03-31 11:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803346', 'tblTempVendorCDR_20' ) end [2025-03-31 11:56:22] Production.INFO: ProcessCDR(1,14803346,1,1,2) [2025-03-31 11:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:56:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:56:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803346', 'tblTempUsageDetail_20' ) start [2025-03-31 11:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803346', 'tblTempUsageDetail_20' ) end [2025-03-31 11:56:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 11:56:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 11:56:28] Production.INFO: ==16428== Releasing lock... [2025-03-31 11:56:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 11:56:28] Production.INFO: 72.75 MB #Memory Used# [2025-03-31 11:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 08:57:05 [end_date_ymd] => 2025-03-31 11:57:05 [RateCDR] => 1 ) [2025-03-31 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-31 08:57:05' and `end` < '2025-03-31 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-31 11:57:19] Production.INFO: count ==5967 [2025-03-31 11:57:22] Production.ERROR: pbx CDR StartTime 2025-03-31 08:57:05 - End Time 2025-03-31 11:57:05 [2025-03-31 11:57:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 11:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803351', 'tblTempUsageDetail_20' ) start [2025-03-31 11:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803351', 'tblTempUsageDetail_20' ) end [2025-03-31 11:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803351', 'tblTempVendorCDR_20' ) start [2025-03-31 11:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803351', 'tblTempVendorCDR_20' ) end [2025-03-31 11:57:22] Production.INFO: ProcessCDR(1,14803351,1,1,2) [2025-03-31 11:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:57:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:57:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:57:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803351', 'tblTempUsageDetail_20' ) start [2025-03-31 11:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803351', 'tblTempUsageDetail_20' ) end [2025-03-31 11:57:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 11:57:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 11:57:27] Production.INFO: ==16527== Releasing lock... [2025-03-31 11:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 11:57:27] Production.INFO: 72.75 MB #Memory Used# [2025-03-31 11:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 08:58:05 [end_date_ymd] => 2025-03-31 11:58:05 [RateCDR] => 1 ) [2025-03-31 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-31 08:58:05' and `end` < '2025-03-31 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-31 11:58:19] Production.INFO: count ==6028 [2025-03-31 11:58:22] Production.ERROR: pbx CDR StartTime 2025-03-31 08:58:05 - End Time 2025-03-31 11:58:05 [2025-03-31 11:58:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 11:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803356', 'tblTempUsageDetail_20' ) start [2025-03-31 11:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803356', 'tblTempUsageDetail_20' ) end [2025-03-31 11:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803356', 'tblTempVendorCDR_20' ) start [2025-03-31 11:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803356', 'tblTempVendorCDR_20' ) end [2025-03-31 11:58:22] Production.INFO: ProcessCDR(1,14803356,1,1,2) [2025-03-31 11:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:58:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:58:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:58:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803356', 'tblTempUsageDetail_20' ) start [2025-03-31 11:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803356', 'tblTempUsageDetail_20' ) end [2025-03-31 11:58:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 11:58:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 11:58:28] Production.INFO: ==16629== Releasing lock... [2025-03-31 11:58:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 11:58:28] Production.INFO: 73 MB #Memory Used# [2025-03-31 11:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 08:59:05 [end_date_ymd] => 2025-03-31 11:59:05 [RateCDR] => 1 ) [2025-03-31 11:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 08:59:05' and `end` < '2025-03-31 11:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 11:59:19] Production.INFO: count ==6035 [2025-03-31 11:59:22] Production.ERROR: pbx CDR StartTime 2025-03-31 08:59:05 - End Time 2025-03-31 11:59:05 [2025-03-31 11:59:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 11:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803361', 'tblTempUsageDetail_20' ) start [2025-03-31 11:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803361', 'tblTempUsageDetail_20' ) end [2025-03-31 11:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803361', 'tblTempVendorCDR_20' ) start [2025-03-31 11:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803361', 'tblTempVendorCDR_20' ) end [2025-03-31 11:59:22] Production.INFO: ProcessCDR(1,14803361,1,1,2) [2025-03-31 11:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 11:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 11:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803361', 'tblTempUsageDetail_20' ) start [2025-03-31 11:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803361', 'tblTempUsageDetail_20' ) end [2025-03-31 11:59:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 11:59:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 11:59:27] Production.INFO: ==16709== Releasing lock... [2025-03-31 11:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 11:59:27] Production.INFO: 73.25 MB #Memory Used# [2025-03-31 12:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 09:00:06 [end_date_ymd] => 2025-03-31 12:00:06 [RateCDR] => 1 ) [2025-03-31 12:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 09:00:06' and `end` < '2025-03-31 12:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 12:00:20] Production.INFO: count ==6026 [2025-03-31 12:00:22] Production.ERROR: pbx CDR StartTime 2025-03-31 09:00:06 - End Time 2025-03-31 12:00:06 [2025-03-31 12:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 12:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803366', 'tblTempUsageDetail_20' ) start [2025-03-31 12:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803366', 'tblTempUsageDetail_20' ) end [2025-03-31 12:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803366', 'tblTempVendorCDR_20' ) start [2025-03-31 12:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803366', 'tblTempVendorCDR_20' ) end [2025-03-31 12:00:23] Production.INFO: ProcessCDR(1,14803366,1,1,2) [2025-03-31 12:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803366', 'tblTempUsageDetail_20' ) start [2025-03-31 12:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803366', 'tblTempUsageDetail_20' ) end [2025-03-31 12:00:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 12:00:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 12:00:28] Production.INFO: ==16790== Releasing lock... [2025-03-31 12:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 12:00:28] Production.INFO: 73 MB #Memory Used# [2025-03-31 12:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 09:01:05 [end_date_ymd] => 2025-03-31 12:01:05 [RateCDR] => 1 ) [2025-03-31 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-31 09:01:05' and `end` < '2025-03-31 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-31 12:01:19] Production.INFO: count ==6106 [2025-03-31 12:01:22] Production.ERROR: pbx CDR StartTime 2025-03-31 09:01:05 - End Time 2025-03-31 12:01:05 [2025-03-31 12:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 12:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803372', 'tblTempUsageDetail_20' ) start [2025-03-31 12:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803372', 'tblTempUsageDetail_20' ) end [2025-03-31 12:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803372', 'tblTempVendorCDR_20' ) start [2025-03-31 12:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803372', 'tblTempVendorCDR_20' ) end [2025-03-31 12:01:22] Production.INFO: ProcessCDR(1,14803372,1,1,2) [2025-03-31 12:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803372', 'tblTempUsageDetail_20' ) start [2025-03-31 12:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803372', 'tblTempUsageDetail_20' ) end [2025-03-31 12:01:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 12:01:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 12:01:26] Production.INFO: ==16893== Releasing lock... [2025-03-31 12:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 12:01:26] Production.INFO: 73.75 MB #Memory Used# [2025-03-31 12:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 09:02:06 [end_date_ymd] => 2025-03-31 12:02:06 [RateCDR] => 1 ) [2025-03-31 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-31 09:02:06' and `end` < '2025-03-31 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-31 12:02:20] Production.INFO: count ==6099 [2025-03-31 12:02:22] Production.ERROR: pbx CDR StartTime 2025-03-31 09:02:06 - End Time 2025-03-31 12:02:06 [2025-03-31 12:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 12:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803377', 'tblTempUsageDetail_20' ) start [2025-03-31 12:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803377', 'tblTempUsageDetail_20' ) end [2025-03-31 12:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803377', 'tblTempVendorCDR_20' ) start [2025-03-31 12:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803377', 'tblTempVendorCDR_20' ) end [2025-03-31 12:02:23] Production.INFO: ProcessCDR(1,14803377,1,1,2) [2025-03-31 12:02:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:02:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803377', 'tblTempUsageDetail_20' ) start [2025-03-31 12:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803377', 'tblTempUsageDetail_20' ) end [2025-03-31 12:02:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 12:02:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 12:02:28] Production.INFO: ==16977== Releasing lock... [2025-03-31 12:02:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 12:02:28] Production.INFO: 73.75 MB #Memory Used# [2025-03-31 12:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 09:03:05 [end_date_ymd] => 2025-03-31 12:03:05 [RateCDR] => 1 ) [2025-03-31 12:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 09:03:05' and `end` < '2025-03-31 12:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 12:03:19] Production.INFO: count ==6096 [2025-03-31 12:03:22] Production.ERROR: pbx CDR StartTime 2025-03-31 09:03:05 - End Time 2025-03-31 12:03:05 [2025-03-31 12:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 12:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803382', 'tblTempUsageDetail_20' ) start [2025-03-31 12:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803382', 'tblTempUsageDetail_20' ) end [2025-03-31 12:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803382', 'tblTempVendorCDR_20' ) start [2025-03-31 12:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803382', 'tblTempVendorCDR_20' ) end [2025-03-31 12:03:22] Production.INFO: ProcessCDR(1,14803382,1,1,2) [2025-03-31 12:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803382', 'tblTempUsageDetail_20' ) start [2025-03-31 12:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803382', 'tblTempUsageDetail_20' ) end [2025-03-31 12:03:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 12:03:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 12:03:27] Production.INFO: ==17050== Releasing lock... [2025-03-31 12:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 12:03:27] Production.INFO: 73.5 MB #Memory Used# [2025-03-31 12:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 09:04:05 [end_date_ymd] => 2025-03-31 12:04:05 [RateCDR] => 1 ) [2025-03-31 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-31 09:04:05' and `end` < '2025-03-31 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-31 12:04:19] Production.INFO: count ==6102 [2025-03-31 12:04:22] Production.ERROR: pbx CDR StartTime 2025-03-31 09:04:05 - End Time 2025-03-31 12:04:05 [2025-03-31 12:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 12:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803387', 'tblTempUsageDetail_20' ) start [2025-03-31 12:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803387', 'tblTempUsageDetail_20' ) end [2025-03-31 12:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803387', 'tblTempVendorCDR_20' ) start [2025-03-31 12:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803387', 'tblTempVendorCDR_20' ) end [2025-03-31 12:04:22] Production.INFO: ProcessCDR(1,14803387,1,1,2) [2025-03-31 12:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:04:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:04:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:04:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803387', 'tblTempUsageDetail_20' ) start [2025-03-31 12:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803387', 'tblTempUsageDetail_20' ) end [2025-03-31 12:04:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 12:04:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 12:04:28] Production.INFO: ==17140== Releasing lock... [2025-03-31 12:04:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 12:04:28] Production.INFO: 73.75 MB #Memory Used# [2025-03-31 12:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 09:05:05 [end_date_ymd] => 2025-03-31 12:05:05 [RateCDR] => 1 ) [2025-03-31 12:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 09:05:05' and `end` < '2025-03-31 12:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 12:05:19] Production.INFO: count ==6135 [2025-03-31 12:05:22] Production.ERROR: pbx CDR StartTime 2025-03-31 09:05:05 - End Time 2025-03-31 12:05:05 [2025-03-31 12:05:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 12:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803392', 'tblTempUsageDetail_20' ) start [2025-03-31 12:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803392', 'tblTempUsageDetail_20' ) end [2025-03-31 12:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803392', 'tblTempVendorCDR_20' ) start [2025-03-31 12:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803392', 'tblTempVendorCDR_20' ) end [2025-03-31 12:05:23] Production.INFO: ProcessCDR(1,14803392,1,1,2) [2025-03-31 12:05:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:05:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:05:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:05:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803392', 'tblTempUsageDetail_20' ) start [2025-03-31 12:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803392', 'tblTempUsageDetail_20' ) end [2025-03-31 12:05:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 12:05:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 12:05:29] Production.INFO: ==17246== Releasing lock... [2025-03-31 12:05:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 12:05:29] Production.INFO: 74 MB #Memory Used# [2025-03-31 12:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 09:06:06 [end_date_ymd] => 2025-03-31 12:06:06 [RateCDR] => 1 ) [2025-03-31 12:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 09:06:06' and `end` < '2025-03-31 12:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 12:06:20] Production.INFO: count ==6145 [2025-03-31 12:06:23] Production.ERROR: pbx CDR StartTime 2025-03-31 09:06:06 - End Time 2025-03-31 12:06:06 [2025-03-31 12:06:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 12:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803397', 'tblTempUsageDetail_20' ) start [2025-03-31 12:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803397', 'tblTempUsageDetail_20' ) end [2025-03-31 12:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803397', 'tblTempVendorCDR_20' ) start [2025-03-31 12:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803397', 'tblTempVendorCDR_20' ) end [2025-03-31 12:06:23] Production.INFO: ProcessCDR(1,14803397,1,1,2) [2025-03-31 12:06:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:06:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:06:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:06:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803397', 'tblTempUsageDetail_20' ) start [2025-03-31 12:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803397', 'tblTempUsageDetail_20' ) end [2025-03-31 12:06:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 12:06:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 12:06:28] Production.INFO: ==17363== Releasing lock... [2025-03-31 12:06:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 12:06:28] Production.INFO: 74 MB #Memory Used# [2025-03-31 12:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 09:07:06 [end_date_ymd] => 2025-03-31 12:07:06 [RateCDR] => 1 ) [2025-03-31 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-31 09:07:06' and `end` < '2025-03-31 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-31 12:07:20] Production.INFO: count ==6144 [2025-03-31 12:07:23] Production.ERROR: pbx CDR StartTime 2025-03-31 09:07:06 - End Time 2025-03-31 12:07:06 [2025-03-31 12:07:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 12:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803402', 'tblTempUsageDetail_20' ) start [2025-03-31 12:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803402', 'tblTempUsageDetail_20' ) end [2025-03-31 12:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803402', 'tblTempVendorCDR_20' ) start [2025-03-31 12:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803402', 'tblTempVendorCDR_20' ) end [2025-03-31 12:07:23] Production.INFO: ProcessCDR(1,14803402,1,1,2) [2025-03-31 12:07:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:07:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:07:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:07:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803402', 'tblTempUsageDetail_20' ) start [2025-03-31 12:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803402', 'tblTempUsageDetail_20' ) end [2025-03-31 12:07:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 12:07:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 12:07:29] Production.INFO: ==17460== Releasing lock... [2025-03-31 12:07:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 12:07:29] Production.INFO: 74 MB #Memory Used# [2025-03-31 12:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 09:08:06 [end_date_ymd] => 2025-03-31 12:08:06 [RateCDR] => 1 ) [2025-03-31 12:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 09:08:06' and `end` < '2025-03-31 12:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 12:08:20] Production.INFO: count ==6150 [2025-03-31 12:08:23] Production.ERROR: pbx CDR StartTime 2025-03-31 09:08:06 - End Time 2025-03-31 12:08:06 [2025-03-31 12:08:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 12:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803407', 'tblTempUsageDetail_20' ) start [2025-03-31 12:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803407', 'tblTempUsageDetail_20' ) end [2025-03-31 12:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803407', 'tblTempVendorCDR_20' ) start [2025-03-31 12:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803407', 'tblTempVendorCDR_20' ) end [2025-03-31 12:08:24] Production.INFO: ProcessCDR(1,14803407,1,1,2) [2025-03-31 12:08:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:08:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:08:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:08:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:08:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803407', 'tblTempUsageDetail_20' ) start [2025-03-31 12:08:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803407', 'tblTempUsageDetail_20' ) end [2025-03-31 12:08:29] Production.ERROR: pbx prc_insertCDR start [2025-03-31 12:08:29] Production.ERROR: pbx prc_insertCDR end [2025-03-31 12:08:29] Production.INFO: ==17545== Releasing lock... [2025-03-31 12:08:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 12:08:29] Production.INFO: 74 MB #Memory Used# [2025-03-31 12:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 09:09:06 [end_date_ymd] => 2025-03-31 12:09:06 [RateCDR] => 1 ) [2025-03-31 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-31 09:09:06' and `end` < '2025-03-31 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-31 12:09:20] Production.INFO: count ==6136 [2025-03-31 12:09:23] Production.ERROR: pbx CDR StartTime 2025-03-31 09:09:06 - End Time 2025-03-31 12:09:06 [2025-03-31 12:09:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 12:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803412', 'tblTempUsageDetail_20' ) start [2025-03-31 12:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803412', 'tblTempUsageDetail_20' ) end [2025-03-31 12:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803412', 'tblTempVendorCDR_20' ) start [2025-03-31 12:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803412', 'tblTempVendorCDR_20' ) end [2025-03-31 12:09:23] Production.INFO: ProcessCDR(1,14803412,1,1,2) [2025-03-31 12:09:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:09:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:09:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:09:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:09:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803412', 'tblTempUsageDetail_20' ) start [2025-03-31 12:09:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803412', 'tblTempUsageDetail_20' ) end [2025-03-31 12:09:29] Production.ERROR: pbx prc_insertCDR start [2025-03-31 12:09:29] Production.ERROR: pbx prc_insertCDR end [2025-03-31 12:09:29] Production.INFO: ==17628== Releasing lock... [2025-03-31 12:09:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 12:09:29] Production.INFO: 74 MB #Memory Used# [2025-03-31 12:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 09:10:06 [end_date_ymd] => 2025-03-31 12:10:06 [RateCDR] => 1 ) [2025-03-31 12:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 09:10:06' and `end` < '2025-03-31 12:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 12:10:20] Production.INFO: count ==6147 [2025-03-31 12:10:23] Production.ERROR: pbx CDR StartTime 2025-03-31 09:10:06 - End Time 2025-03-31 12:10:06 [2025-03-31 12:10:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 12:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803417', 'tblTempUsageDetail_20' ) start [2025-03-31 12:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803417', 'tblTempUsageDetail_20' ) end [2025-03-31 12:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803417', 'tblTempVendorCDR_20' ) start [2025-03-31 12:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803417', 'tblTempVendorCDR_20' ) end [2025-03-31 12:10:23] Production.INFO: ProcessCDR(1,14803417,1,1,2) [2025-03-31 12:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:10:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:10:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803417', 'tblTempUsageDetail_20' ) start [2025-03-31 12:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803417', 'tblTempUsageDetail_20' ) end [2025-03-31 12:10:29] Production.ERROR: pbx prc_insertCDR start [2025-03-31 12:10:29] Production.ERROR: pbx prc_insertCDR end [2025-03-31 12:10:29] Production.INFO: ==17708== Releasing lock... [2025-03-31 12:10:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 12:10:29] Production.INFO: 74 MB #Memory Used# [2025-03-31 12:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 09:11:06 [end_date_ymd] => 2025-03-31 12:11:06 [RateCDR] => 1 ) [2025-03-31 12: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-31 09:11:06' and `end` < '2025-03-31 12: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-31 12:11:20] Production.INFO: count ==6168 [2025-03-31 12:11:22] Production.ERROR: pbx CDR StartTime 2025-03-31 09:11:06 - End Time 2025-03-31 12:11:06 [2025-03-31 12:11:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 12:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803423', 'tblTempUsageDetail_20' ) start [2025-03-31 12:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803423', 'tblTempUsageDetail_20' ) end [2025-03-31 12:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803423', 'tblTempVendorCDR_20' ) start [2025-03-31 12:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803423', 'tblTempVendorCDR_20' ) end [2025-03-31 12:11:23] Production.INFO: ProcessCDR(1,14803423,1,1,2) [2025-03-31 12:11:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:11:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:11:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:11:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803423', 'tblTempUsageDetail_20' ) start [2025-03-31 12:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803423', 'tblTempUsageDetail_20' ) end [2025-03-31 12:11:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 12:11:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 12:11:28] Production.INFO: ==17795== Releasing lock... [2025-03-31 12:11:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 12:11:28] Production.INFO: 74.25 MB #Memory Used# [2025-03-31 12:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 09:12:05 [end_date_ymd] => 2025-03-31 12:12:05 [RateCDR] => 1 ) [2025-03-31 12:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 09:12:05' and `end` < '2025-03-31 12:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 12:12:19] Production.INFO: count ==6143 [2025-03-31 12:12:22] Production.ERROR: pbx CDR StartTime 2025-03-31 09:12:05 - End Time 2025-03-31 12:12:05 [2025-03-31 12:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 12:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803428', 'tblTempUsageDetail_20' ) start [2025-03-31 12:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803428', 'tblTempUsageDetail_20' ) end [2025-03-31 12:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803428', 'tblTempVendorCDR_20' ) start [2025-03-31 12:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803428', 'tblTempVendorCDR_20' ) end [2025-03-31 12:12:22] Production.INFO: ProcessCDR(1,14803428,1,1,2) [2025-03-31 12:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:12:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:12:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:12:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803428', 'tblTempUsageDetail_20' ) start [2025-03-31 12:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803428', 'tblTempUsageDetail_20' ) end [2025-03-31 12:12:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 12:12:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 12:12:28] Production.INFO: ==17876== Releasing lock... [2025-03-31 12:12:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 12:12:28] Production.INFO: 74 MB #Memory Used# [2025-03-31 12:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 09:13:06 [end_date_ymd] => 2025-03-31 12:13:06 [RateCDR] => 1 ) [2025-03-31 12: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-31 09:13:06' and `end` < '2025-03-31 12: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-31 12:13:20] Production.INFO: count ==6139 [2025-03-31 12:13:23] Production.ERROR: pbx CDR StartTime 2025-03-31 09:13:06 - End Time 2025-03-31 12:13:06 [2025-03-31 12:13:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 12:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803433', 'tblTempUsageDetail_20' ) start [2025-03-31 12:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803433', 'tblTempUsageDetail_20' ) end [2025-03-31 12:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803433', 'tblTempVendorCDR_20' ) start [2025-03-31 12:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803433', 'tblTempVendorCDR_20' ) end [2025-03-31 12:13:23] Production.INFO: ProcessCDR(1,14803433,1,1,2) [2025-03-31 12:13:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:13:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:13:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:13:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:13:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803433', 'tblTempUsageDetail_20' ) start [2025-03-31 12:13:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803433', 'tblTempUsageDetail_20' ) end [2025-03-31 12:13:29] Production.ERROR: pbx prc_insertCDR start [2025-03-31 12:13:29] Production.ERROR: pbx prc_insertCDR end [2025-03-31 12:13:29] Production.INFO: ==17995== Releasing lock... [2025-03-31 12:13:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 12:13:29] Production.INFO: 74 MB #Memory Used# [2025-03-31 12:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 09:14:05 [end_date_ymd] => 2025-03-31 12:14:05 [RateCDR] => 1 ) [2025-03-31 12:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 09:14:05' and `end` < '2025-03-31 12:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 12:14:19] Production.INFO: count ==6128 [2025-03-31 12:14:22] Production.ERROR: pbx CDR StartTime 2025-03-31 09:14:05 - End Time 2025-03-31 12:14:05 [2025-03-31 12:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 12:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803438', 'tblTempUsageDetail_20' ) start [2025-03-31 12:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803438', 'tblTempUsageDetail_20' ) end [2025-03-31 12:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803438', 'tblTempVendorCDR_20' ) start [2025-03-31 12:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803438', 'tblTempVendorCDR_20' ) end [2025-03-31 12:14:22] Production.INFO: ProcessCDR(1,14803438,1,1,2) [2025-03-31 12:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:14:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:14:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:14:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803438', 'tblTempUsageDetail_20' ) start [2025-03-31 12:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803438', 'tblTempUsageDetail_20' ) end [2025-03-31 12:14:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 12:14:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 12:14:28] Production.INFO: ==18072== Releasing lock... [2025-03-31 12:14:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 12:14:28] Production.INFO: 73.75 MB #Memory Used# [2025-03-31 12:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 09:15:06 [end_date_ymd] => 2025-03-31 12:15:06 [RateCDR] => 1 ) [2025-03-31 12: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-31 09:15:06' and `end` < '2025-03-31 12: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-31 12:15:19] Production.INFO: count ==6127 [2025-03-31 12:15:22] Production.ERROR: pbx CDR StartTime 2025-03-31 09:15:06 - End Time 2025-03-31 12:15:06 [2025-03-31 12:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 12:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803443', 'tblTempUsageDetail_20' ) start [2025-03-31 12:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803443', 'tblTempUsageDetail_20' ) end [2025-03-31 12:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803443', 'tblTempVendorCDR_20' ) start [2025-03-31 12:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803443', 'tblTempVendorCDR_20' ) end [2025-03-31 12:15:23] Production.INFO: ProcessCDR(1,14803443,1,1,2) [2025-03-31 12:15:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:15:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:15:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:15:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803443', 'tblTempUsageDetail_20' ) start [2025-03-31 12:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803443', 'tblTempUsageDetail_20' ) end [2025-03-31 12:15:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 12:15:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 12:15:28] Production.INFO: ==18153== Releasing lock... [2025-03-31 12:15:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 12:15:28] Production.INFO: 73.75 MB #Memory Used# [2025-03-31 12:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 09:16:06 [end_date_ymd] => 2025-03-31 12:16:06 [RateCDR] => 1 ) [2025-03-31 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-31 09:16:06' and `end` < '2025-03-31 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-31 12:16:20] Production.INFO: count ==6112 [2025-03-31 12:16:23] Production.ERROR: pbx CDR StartTime 2025-03-31 09:16:06 - End Time 2025-03-31 12:16:06 [2025-03-31 12:16:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 12:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803448', 'tblTempUsageDetail_20' ) start [2025-03-31 12:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803448', 'tblTempUsageDetail_20' ) end [2025-03-31 12:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803448', 'tblTempVendorCDR_20' ) start [2025-03-31 12:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803448', 'tblTempVendorCDR_20' ) end [2025-03-31 12:16:23] Production.INFO: ProcessCDR(1,14803448,1,1,2) [2025-03-31 12:16:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:16:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:16:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:16:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:16:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803448', 'tblTempUsageDetail_20' ) start [2025-03-31 12:16:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803448', 'tblTempUsageDetail_20' ) end [2025-03-31 12:16:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 12:16:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 12:16:28] Production.INFO: ==18235== Releasing lock... [2025-03-31 12:16:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 12:16:28] Production.INFO: 73.75 MB #Memory Used# [2025-03-31 12:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 09:17:05 [end_date_ymd] => 2025-03-31 12:17:05 [RateCDR] => 1 ) [2025-03-31 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-31 09:17:05' and `end` < '2025-03-31 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-31 12:17:19] Production.INFO: count ==6156 [2025-03-31 12:17:22] Production.ERROR: pbx CDR StartTime 2025-03-31 09:17:05 - End Time 2025-03-31 12:17:05 [2025-03-31 12:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 12:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803453', 'tblTempUsageDetail_20' ) start [2025-03-31 12:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803453', 'tblTempUsageDetail_20' ) end [2025-03-31 12:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803453', 'tblTempVendorCDR_20' ) start [2025-03-31 12:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803453', 'tblTempVendorCDR_20' ) end [2025-03-31 12:17:22] Production.INFO: ProcessCDR(1,14803453,1,1,2) [2025-03-31 12:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:17:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:17:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:17:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803453', 'tblTempUsageDetail_20' ) start [2025-03-31 12:17:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803453', 'tblTempUsageDetail_20' ) end [2025-03-31 12:17:29] Production.ERROR: pbx prc_insertCDR start [2025-03-31 12:17:29] Production.ERROR: pbx prc_insertCDR end [2025-03-31 12:17:29] Production.INFO: ==18314== Releasing lock... [2025-03-31 12:17:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 12:17:29] Production.INFO: 74 MB #Memory Used# [2025-03-31 12:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 09:18:06 [end_date_ymd] => 2025-03-31 12:18:06 [RateCDR] => 1 ) [2025-03-31 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-31 09:18:06' and `end` < '2025-03-31 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-31 12:18:20] Production.INFO: count ==6144 [2025-03-31 12:18:23] Production.ERROR: pbx CDR StartTime 2025-03-31 09:18:06 - End Time 2025-03-31 12:18:06 [2025-03-31 12:18:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 12:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803458', 'tblTempUsageDetail_20' ) start [2025-03-31 12:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803458', 'tblTempUsageDetail_20' ) end [2025-03-31 12:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803458', 'tblTempVendorCDR_20' ) start [2025-03-31 12:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803458', 'tblTempVendorCDR_20' ) end [2025-03-31 12:18:23] Production.INFO: ProcessCDR(1,14803458,1,1,2) [2025-03-31 12:18:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:18:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:18:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:18:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803458', 'tblTempUsageDetail_20' ) start [2025-03-31 12:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803458', 'tblTempUsageDetail_20' ) end [2025-03-31 12:18:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 12:18:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 12:18:28] Production.INFO: ==18394== Releasing lock... [2025-03-31 12:18:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 12:18:28] Production.INFO: 74 MB #Memory Used# [2025-03-31 12:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 09:19:06 [end_date_ymd] => 2025-03-31 12:19:06 [RateCDR] => 1 ) [2025-03-31 12: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-31 09:19:06' and `end` < '2025-03-31 12: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-31 12:19:20] Production.INFO: count ==6140 [2025-03-31 12:19:23] Production.ERROR: pbx CDR StartTime 2025-03-31 09:19:06 - End Time 2025-03-31 12:19:06 [2025-03-31 12:19:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 12:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803463', 'tblTempUsageDetail_20' ) start [2025-03-31 12:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803463', 'tblTempUsageDetail_20' ) end [2025-03-31 12:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803463', 'tblTempVendorCDR_20' ) start [2025-03-31 12:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803463', 'tblTempVendorCDR_20' ) end [2025-03-31 12:19:23] Production.INFO: ProcessCDR(1,14803463,1,1,2) [2025-03-31 12:19:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:19:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:19:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:19:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:19:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803463', 'tblTempUsageDetail_20' ) start [2025-03-31 12:19:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803463', 'tblTempUsageDetail_20' ) end [2025-03-31 12:19:29] Production.ERROR: pbx prc_insertCDR start [2025-03-31 12:19:29] Production.ERROR: pbx prc_insertCDR end [2025-03-31 12:19:29] Production.INFO: ==18477== Releasing lock... [2025-03-31 12:19:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 12:19:29] Production.INFO: 74 MB #Memory Used# [2025-03-31 12:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 09:20:06 [end_date_ymd] => 2025-03-31 12:20:06 [RateCDR] => 1 ) [2025-03-31 12:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 09:20:06' and `end` < '2025-03-31 12:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 12:20:20] Production.INFO: count ==6138 [2025-03-31 12:20:23] Production.ERROR: pbx CDR StartTime 2025-03-31 09:20:06 - End Time 2025-03-31 12:20:06 [2025-03-31 12:20:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 12:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803469', 'tblTempUsageDetail_20' ) start [2025-03-31 12:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803469', 'tblTempUsageDetail_20' ) end [2025-03-31 12:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803469', 'tblTempVendorCDR_20' ) start [2025-03-31 12:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803469', 'tblTempVendorCDR_20' ) end [2025-03-31 12:20:23] Production.INFO: ProcessCDR(1,14803469,1,1,2) [2025-03-31 12:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:20:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:20:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:20:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803469', 'tblTempUsageDetail_20' ) start [2025-03-31 12:20:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803469', 'tblTempUsageDetail_20' ) end [2025-03-31 12:20:30] Production.ERROR: pbx prc_insertCDR start [2025-03-31 12:20:30] Production.ERROR: pbx prc_insertCDR end [2025-03-31 12:20:30] Production.INFO: ==18557== Releasing lock... [2025-03-31 12:20:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 12:20:30] Production.INFO: 74 MB #Memory Used# [2025-03-31 12:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 09:21:06 [end_date_ymd] => 2025-03-31 12:21:06 [RateCDR] => 1 ) [2025-03-31 12: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-31 09:21:06' and `end` < '2025-03-31 12: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-31 12:21:20] Production.INFO: count ==6185 [2025-03-31 12:21:23] Production.ERROR: pbx CDR StartTime 2025-03-31 09:21:06 - End Time 2025-03-31 12:21:06 [2025-03-31 12:21:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 12:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803474', 'tblTempUsageDetail_20' ) start [2025-03-31 12:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803474', 'tblTempUsageDetail_20' ) end [2025-03-31 12:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803474', 'tblTempVendorCDR_20' ) start [2025-03-31 12:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803474', 'tblTempVendorCDR_20' ) end [2025-03-31 12:21:23] Production.INFO: ProcessCDR(1,14803474,1,1,2) [2025-03-31 12:21:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:21:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:21:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:21:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803474', 'tblTempUsageDetail_20' ) start [2025-03-31 12:21:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803474', 'tblTempUsageDetail_20' ) end [2025-03-31 12:21:29] Production.ERROR: pbx prc_insertCDR start [2025-03-31 12:21:29] Production.ERROR: pbx prc_insertCDR end [2025-03-31 12:21:29] Production.INFO: ==18642== Releasing lock... [2025-03-31 12:21:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 12:21:29] Production.INFO: 74.25 MB #Memory Used# [2025-03-31 12:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 09:22:06 [end_date_ymd] => 2025-03-31 12:22:06 [RateCDR] => 1 ) [2025-03-31 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-31 09:22:06' and `end` < '2025-03-31 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-31 12:22:20] Production.INFO: count ==6173 [2025-03-31 12:22:23] Production.ERROR: pbx CDR StartTime 2025-03-31 09:22:06 - End Time 2025-03-31 12:22:06 [2025-03-31 12:22:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 12:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803479', 'tblTempUsageDetail_20' ) start [2025-03-31 12:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803479', 'tblTempUsageDetail_20' ) end [2025-03-31 12:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803479', 'tblTempVendorCDR_20' ) start [2025-03-31 12:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803479', 'tblTempVendorCDR_20' ) end [2025-03-31 12:22:23] Production.INFO: ProcessCDR(1,14803479,1,1,2) [2025-03-31 12:22:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:22:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:22:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:22:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803479', 'tblTempUsageDetail_20' ) start [2025-03-31 12:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803479', 'tblTempUsageDetail_20' ) end [2025-03-31 12:22:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 12:22:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 12:22:28] Production.INFO: ==18722== Releasing lock... [2025-03-31 12:22:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 12:22:28] Production.INFO: 74.25 MB #Memory Used# [2025-03-31 12:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 09:23:06 [end_date_ymd] => 2025-03-31 12:23:06 [RateCDR] => 1 ) [2025-03-31 12: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-31 09:23:06' and `end` < '2025-03-31 12: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-31 12:23:20] Production.INFO: count ==6174 [2025-03-31 12:23:23] Production.ERROR: pbx CDR StartTime 2025-03-31 09:23:06 - End Time 2025-03-31 12:23:06 [2025-03-31 12:23:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 12:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803484', 'tblTempUsageDetail_20' ) start [2025-03-31 12:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803484', 'tblTempUsageDetail_20' ) end [2025-03-31 12:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803484', 'tblTempVendorCDR_20' ) start [2025-03-31 12:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803484', 'tblTempVendorCDR_20' ) end [2025-03-31 12:23:23] Production.INFO: ProcessCDR(1,14803484,1,1,2) [2025-03-31 12:23:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:23:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:23:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:23:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:23:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803484', 'tblTempUsageDetail_20' ) start [2025-03-31 12:23:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803484', 'tblTempUsageDetail_20' ) end [2025-03-31 12:23:29] Production.ERROR: pbx prc_insertCDR start [2025-03-31 12:23:29] Production.ERROR: pbx prc_insertCDR end [2025-03-31 12:23:29] Production.INFO: ==18806== Releasing lock... [2025-03-31 12:23:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 12:23:29] Production.INFO: 74.25 MB #Memory Used# [2025-03-31 12:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 09:24:06 [end_date_ymd] => 2025-03-31 12:24:06 [RateCDR] => 1 ) [2025-03-31 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-31 09:24:06' and `end` < '2025-03-31 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-31 12:24:20] Production.INFO: count ==6148 [2025-03-31 12:24:23] Production.ERROR: pbx CDR StartTime 2025-03-31 09:24:06 - End Time 2025-03-31 12:24:06 [2025-03-31 12:24:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 12:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803489', 'tblTempUsageDetail_20' ) start [2025-03-31 12:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803489', 'tblTempUsageDetail_20' ) end [2025-03-31 12:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803489', 'tblTempVendorCDR_20' ) start [2025-03-31 12:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803489', 'tblTempVendorCDR_20' ) end [2025-03-31 12:24:23] Production.INFO: ProcessCDR(1,14803489,1,1,2) [2025-03-31 12:24:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:24:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:24:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:24:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803489', 'tblTempUsageDetail_20' ) start [2025-03-31 12:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803489', 'tblTempUsageDetail_20' ) end [2025-03-31 12:24:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 12:24:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 12:24:28] Production.INFO: ==18892== Releasing lock... [2025-03-31 12:24:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 12:24:28] Production.INFO: 74 MB #Memory Used# [2025-03-31 12:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 09:25:06 [end_date_ymd] => 2025-03-31 12:25:06 [RateCDR] => 1 ) [2025-03-31 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-31 09:25:06' and `end` < '2025-03-31 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-31 12:25:20] Production.INFO: count ==6135 [2025-03-31 12:25:23] Production.ERROR: pbx CDR StartTime 2025-03-31 09:25:06 - End Time 2025-03-31 12:25:06 [2025-03-31 12:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 12:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803494', 'tblTempUsageDetail_20' ) start [2025-03-31 12:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803494', 'tblTempUsageDetail_20' ) end [2025-03-31 12:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803494', 'tblTempVendorCDR_20' ) start [2025-03-31 12:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803494', 'tblTempVendorCDR_20' ) end [2025-03-31 12:25:23] Production.INFO: ProcessCDR(1,14803494,1,1,2) [2025-03-31 12:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803494', 'tblTempUsageDetail_20' ) start [2025-03-31 12:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803494', 'tblTempUsageDetail_20' ) end [2025-03-31 12:25:29] Production.ERROR: pbx prc_insertCDR start [2025-03-31 12:25:29] Production.ERROR: pbx prc_insertCDR end [2025-03-31 12:25:29] Production.INFO: ==18969== Releasing lock... [2025-03-31 12:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 12:25:29] Production.INFO: 74 MB #Memory Used# [2025-03-31 12:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 09:26:05 [end_date_ymd] => 2025-03-31 12:26:05 [RateCDR] => 1 ) [2025-03-31 12:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 09:26:05' and `end` < '2025-03-31 12:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 12:26:19] Production.INFO: count ==6113 [2025-03-31 12:26:22] Production.ERROR: pbx CDR StartTime 2025-03-31 09:26:05 - End Time 2025-03-31 12:26:05 [2025-03-31 12:26:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 12:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803499', 'tblTempUsageDetail_20' ) start [2025-03-31 12:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803499', 'tblTempUsageDetail_20' ) end [2025-03-31 12:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803499', 'tblTempVendorCDR_20' ) start [2025-03-31 12:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803499', 'tblTempVendorCDR_20' ) end [2025-03-31 12:26:22] Production.INFO: ProcessCDR(1,14803499,1,1,2) [2025-03-31 12:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:26:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:26:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:26:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803499', 'tblTempUsageDetail_20' ) start [2025-03-31 12:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803499', 'tblTempUsageDetail_20' ) end [2025-03-31 12:26:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 12:26:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 12:26:28] Production.INFO: ==19047== Releasing lock... [2025-03-31 12:26:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 12:26:28] Production.INFO: 73.75 MB #Memory Used# [2025-03-31 12:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 09:27:06 [end_date_ymd] => 2025-03-31 12:27:06 [RateCDR] => 1 ) [2025-03-31 12:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 09:27:06' and `end` < '2025-03-31 12:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 12:27:20] Production.INFO: count ==6113 [2025-03-31 12:27:23] Production.ERROR: pbx CDR StartTime 2025-03-31 09:27:06 - End Time 2025-03-31 12:27:06 [2025-03-31 12:27:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 12:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803504', 'tblTempUsageDetail_20' ) start [2025-03-31 12:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803504', 'tblTempUsageDetail_20' ) end [2025-03-31 12:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803504', 'tblTempVendorCDR_20' ) start [2025-03-31 12:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803504', 'tblTempVendorCDR_20' ) end [2025-03-31 12:27:23] Production.INFO: ProcessCDR(1,14803504,1,1,2) [2025-03-31 12:27:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:27:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:27:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:27:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:27:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803504', 'tblTempUsageDetail_20' ) start [2025-03-31 12:27:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803504', 'tblTempUsageDetail_20' ) end [2025-03-31 12:27:29] Production.ERROR: pbx prc_insertCDR start [2025-03-31 12:27:29] Production.ERROR: pbx prc_insertCDR end [2025-03-31 12:27:29] Production.INFO: ==19125== Releasing lock... [2025-03-31 12:27:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 12:27:29] Production.INFO: 73.75 MB #Memory Used# [2025-03-31 12:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 09:28:05 [end_date_ymd] => 2025-03-31 12:28:05 [RateCDR] => 1 ) [2025-03-31 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-31 09:28:05' and `end` < '2025-03-31 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-31 12:28:19] Production.INFO: count ==6098 [2025-03-31 12:28:22] Production.ERROR: pbx CDR StartTime 2025-03-31 09:28:05 - End Time 2025-03-31 12:28:05 [2025-03-31 12:28:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 12:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803509', 'tblTempUsageDetail_20' ) start [2025-03-31 12:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803509', 'tblTempUsageDetail_20' ) end [2025-03-31 12:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803509', 'tblTempVendorCDR_20' ) start [2025-03-31 12:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803509', 'tblTempVendorCDR_20' ) end [2025-03-31 12:28:22] Production.INFO: ProcessCDR(1,14803509,1,1,2) [2025-03-31 12:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:28:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:28:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:28:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803509', 'tblTempUsageDetail_20' ) start [2025-03-31 12:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803509', 'tblTempUsageDetail_20' ) end [2025-03-31 12:28:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 12:28:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 12:28:28] Production.INFO: ==19201== Releasing lock... [2025-03-31 12:28:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 12:28:28] Production.INFO: 73.75 MB #Memory Used# [2025-03-31 12:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 09:29:06 [end_date_ymd] => 2025-03-31 12:29:06 [RateCDR] => 1 ) [2025-03-31 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-31 09:29:06' and `end` < '2025-03-31 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-31 12:29:20] Production.INFO: count ==6094 [2025-03-31 12:29:23] Production.ERROR: pbx CDR StartTime 2025-03-31 09:29:06 - End Time 2025-03-31 12:29:06 [2025-03-31 12:29:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 12:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803514', 'tblTempUsageDetail_20' ) start [2025-03-31 12:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803514', 'tblTempUsageDetail_20' ) end [2025-03-31 12:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803514', 'tblTempVendorCDR_20' ) start [2025-03-31 12:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803514', 'tblTempVendorCDR_20' ) end [2025-03-31 12:29:23] Production.INFO: ProcessCDR(1,14803514,1,1,2) [2025-03-31 12:29:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:29:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:29:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:29:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:29:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803514', 'tblTempUsageDetail_20' ) start [2025-03-31 12:29:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803514', 'tblTempUsageDetail_20' ) end [2025-03-31 12:29:29] Production.ERROR: pbx prc_insertCDR start [2025-03-31 12:29:29] Production.ERROR: pbx prc_insertCDR end [2025-03-31 12:29:29] Production.INFO: ==19313== Releasing lock... [2025-03-31 12:29:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 12:29:29] Production.INFO: 73.5 MB #Memory Used# [2025-03-31 12:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 09:30:06 [end_date_ymd] => 2025-03-31 12:30:06 [RateCDR] => 1 ) [2025-03-31 12:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 09:30:06' and `end` < '2025-03-31 12:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 12:30:21] Production.INFO: count ==6092 [2025-03-31 12:30:24] Production.ERROR: pbx CDR StartTime 2025-03-31 09:30:06 - End Time 2025-03-31 12:30:06 [2025-03-31 12:30:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 12:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803519', 'tblTempUsageDetail_20' ) start [2025-03-31 12:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803519', 'tblTempUsageDetail_20' ) end [2025-03-31 12:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803519', 'tblTempVendorCDR_20' ) start [2025-03-31 12:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803519', 'tblTempVendorCDR_20' ) end [2025-03-31 12:30:24] Production.INFO: ProcessCDR(1,14803519,1,1,2) [2025-03-31 12:30:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:30:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:30:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:30:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:30:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803519', 'tblTempUsageDetail_20' ) start [2025-03-31 12:30:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803519', 'tblTempUsageDetail_20' ) end [2025-03-31 12:30:31] Production.ERROR: pbx prc_insertCDR start [2025-03-31 12:30:31] Production.ERROR: pbx prc_insertCDR end [2025-03-31 12:30:31] Production.INFO: ==19395== Releasing lock... [2025-03-31 12:30:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 12:30:31] Production.INFO: 73.5 MB #Memory Used# [2025-03-31 12:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 09:31:06 [end_date_ymd] => 2025-03-31 12:31:06 [RateCDR] => 1 ) [2025-03-31 12: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-31 09:31:06' and `end` < '2025-03-31 12: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-31 12:31:20] Production.INFO: count ==6145 [2025-03-31 12:31:23] Production.ERROR: pbx CDR StartTime 2025-03-31 09:31:06 - End Time 2025-03-31 12:31:06 [2025-03-31 12:31:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 12:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803525', 'tblTempUsageDetail_20' ) start [2025-03-31 12:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803525', 'tblTempUsageDetail_20' ) end [2025-03-31 12:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803525', 'tblTempVendorCDR_20' ) start [2025-03-31 12:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803525', 'tblTempVendorCDR_20' ) end [2025-03-31 12:31:23] Production.INFO: ProcessCDR(1,14803525,1,1,2) [2025-03-31 12:31:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:31:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:31:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:31:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:31:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803525', 'tblTempUsageDetail_20' ) start [2025-03-31 12:31:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803525', 'tblTempUsageDetail_20' ) end [2025-03-31 12:31:29] Production.ERROR: pbx prc_insertCDR start [2025-03-31 12:31:29] Production.ERROR: pbx prc_insertCDR end [2025-03-31 12:31:29] Production.INFO: ==19467== Releasing lock... [2025-03-31 12:31:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 12:31:29] Production.INFO: 74 MB #Memory Used# [2025-03-31 12:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 09:32:06 [end_date_ymd] => 2025-03-31 12:32:06 [RateCDR] => 1 ) [2025-03-31 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-31 09:32:06' and `end` < '2025-03-31 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-31 12:32:20] Production.INFO: count ==6151 [2025-03-31 12:32:22] Production.ERROR: pbx CDR StartTime 2025-03-31 09:32:06 - End Time 2025-03-31 12:32:06 [2025-03-31 12:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 12:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803530', 'tblTempUsageDetail_20' ) start [2025-03-31 12:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803530', 'tblTempUsageDetail_20' ) end [2025-03-31 12:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803530', 'tblTempVendorCDR_20' ) start [2025-03-31 12:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803530', 'tblTempVendorCDR_20' ) end [2025-03-31 12:32:23] Production.INFO: ProcessCDR(1,14803530,1,1,2) [2025-03-31 12:32:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:32:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:32:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:32:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803530', 'tblTempUsageDetail_20' ) start [2025-03-31 12:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803530', 'tblTempUsageDetail_20' ) end [2025-03-31 12:32:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 12:32:29] Production.ERROR: pbx prc_insertCDR end [2025-03-31 12:32:29] Production.INFO: ==19543== Releasing lock... [2025-03-31 12:32:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 12:32:29] Production.INFO: 74 MB #Memory Used# [2025-03-31 12:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 09:33:06 [end_date_ymd] => 2025-03-31 12:33:06 [RateCDR] => 1 ) [2025-03-31 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-31 09:33:06' and `end` < '2025-03-31 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-31 12:33:20] Production.INFO: count ==6110 [2025-03-31 12:33:23] Production.ERROR: pbx CDR StartTime 2025-03-31 09:33:06 - End Time 2025-03-31 12:33:06 [2025-03-31 12:33:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 12:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803535', 'tblTempUsageDetail_20' ) start [2025-03-31 12:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803535', 'tblTempUsageDetail_20' ) end [2025-03-31 12:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803535', 'tblTempVendorCDR_20' ) start [2025-03-31 12:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803535', 'tblTempVendorCDR_20' ) end [2025-03-31 12:33:23] Production.INFO: ProcessCDR(1,14803535,1,1,2) [2025-03-31 12:33:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:33:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:33:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:33:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:33:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803535', 'tblTempUsageDetail_20' ) start [2025-03-31 12:33:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803535', 'tblTempUsageDetail_20' ) end [2025-03-31 12:33:29] Production.ERROR: pbx prc_insertCDR start [2025-03-31 12:33:29] Production.ERROR: pbx prc_insertCDR end [2025-03-31 12:33:29] Production.INFO: ==19618== Releasing lock... [2025-03-31 12:33:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 12:33:29] Production.INFO: 73.75 MB #Memory Used# [2025-03-31 12:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 09:34:05 [end_date_ymd] => 2025-03-31 12:34:05 [RateCDR] => 1 ) [2025-03-31 12:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 09:34:05' and `end` < '2025-03-31 12:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 12:34:19] Production.INFO: count ==6092 [2025-03-31 12:34:22] Production.ERROR: pbx CDR StartTime 2025-03-31 09:34:05 - End Time 2025-03-31 12:34:05 [2025-03-31 12:34:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 12:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803540', 'tblTempUsageDetail_20' ) start [2025-03-31 12:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803540', 'tblTempUsageDetail_20' ) end [2025-03-31 12:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803540', 'tblTempVendorCDR_20' ) start [2025-03-31 12:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803540', 'tblTempVendorCDR_20' ) end [2025-03-31 12:34:22] Production.INFO: ProcessCDR(1,14803540,1,1,2) [2025-03-31 12:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:34:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:34:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:34:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803540', 'tblTempUsageDetail_20' ) start [2025-03-31 12:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803540', 'tblTempUsageDetail_20' ) end [2025-03-31 12:34:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 12:34:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 12:34:28] Production.INFO: ==19691== Releasing lock... [2025-03-31 12:34:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 12:34:28] Production.INFO: 73.5 MB #Memory Used# [2025-03-31 12:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 09:35:06 [end_date_ymd] => 2025-03-31 12:35:06 [RateCDR] => 1 ) [2025-03-31 12:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 09:35:06' and `end` < '2025-03-31 12:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 12:35:19] Production.INFO: count ==6094 [2025-03-31 12:35:22] Production.ERROR: pbx CDR StartTime 2025-03-31 09:35:06 - End Time 2025-03-31 12:35:06 [2025-03-31 12:35:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 12:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803545', 'tblTempUsageDetail_20' ) start [2025-03-31 12:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803545', 'tblTempUsageDetail_20' ) end [2025-03-31 12:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803545', 'tblTempVendorCDR_20' ) start [2025-03-31 12:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803545', 'tblTempVendorCDR_20' ) end [2025-03-31 12:35:23] Production.INFO: ProcessCDR(1,14803545,1,1,2) [2025-03-31 12:35:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:35:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:35:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:35:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803545', 'tblTempUsageDetail_20' ) start [2025-03-31 12:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803545', 'tblTempUsageDetail_20' ) end [2025-03-31 12:35:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 12:35:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 12:35:28] Production.INFO: ==19766== Releasing lock... [2025-03-31 12:35:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 12:35:28] Production.INFO: 73.5 MB #Memory Used# [2025-03-31 12:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 09:36:05 [end_date_ymd] => 2025-03-31 12:36:05 [RateCDR] => 1 ) [2025-03-31 12:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 09:36:05' and `end` < '2025-03-31 12:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 12:36:19] Production.INFO: count ==6103 [2025-03-31 12:36:22] Production.ERROR: pbx CDR StartTime 2025-03-31 09:36:05 - End Time 2025-03-31 12:36:05 [2025-03-31 12:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 12:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803550', 'tblTempUsageDetail_20' ) start [2025-03-31 12:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803550', 'tblTempUsageDetail_20' ) end [2025-03-31 12:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803550', 'tblTempVendorCDR_20' ) start [2025-03-31 12:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803550', 'tblTempVendorCDR_20' ) end [2025-03-31 12:36:22] Production.INFO: ProcessCDR(1,14803550,1,1,2) [2025-03-31 12:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:36:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:36:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:36:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803550', 'tblTempUsageDetail_20' ) start [2025-03-31 12:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803550', 'tblTempUsageDetail_20' ) end [2025-03-31 12:36:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 12:36:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 12:36:28] Production.INFO: ==19843== Releasing lock... [2025-03-31 12:36:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 12:36:28] Production.INFO: 73.75 MB #Memory Used# [2025-03-31 12:37:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 09:37:07 [end_date_ymd] => 2025-03-31 12:37:07 [RateCDR] => 1 ) [2025-03-31 12:37: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-31 09:37:07' and `end` < '2025-03-31 12:37: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-31 12:37:21] Production.INFO: count ==6101 [2025-03-31 12:37:24] Production.ERROR: pbx CDR StartTime 2025-03-31 09:37:07 - End Time 2025-03-31 12:37:07 [2025-03-31 12:37:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 12:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803555', 'tblTempUsageDetail_20' ) start [2025-03-31 12:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803555', 'tblTempUsageDetail_20' ) end [2025-03-31 12:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803555', 'tblTempVendorCDR_20' ) start [2025-03-31 12:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803555', 'tblTempVendorCDR_20' ) end [2025-03-31 12:37:24] Production.INFO: ProcessCDR(1,14803555,1,1,2) [2025-03-31 12:37:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:37:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:37:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:37:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:37:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803555', 'tblTempUsageDetail_20' ) start [2025-03-31 12:37:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803555', 'tblTempUsageDetail_20' ) end [2025-03-31 12:37:30] Production.ERROR: pbx prc_insertCDR start [2025-03-31 12:37:30] Production.ERROR: pbx prc_insertCDR end [2025-03-31 12:37:30] Production.INFO: ==19913== Releasing lock... [2025-03-31 12:37:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 12:37:30] Production.INFO: 73.75 MB #Memory Used# [2025-03-31 12:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 09:38:06 [end_date_ymd] => 2025-03-31 12:38:06 [RateCDR] => 1 ) [2025-03-31 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-31 09:38:06' and `end` < '2025-03-31 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-31 12:38:20] Production.INFO: count ==6096 [2025-03-31 12:38:22] Production.ERROR: pbx CDR StartTime 2025-03-31 09:38:06 - End Time 2025-03-31 12:38:06 [2025-03-31 12:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 12:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803560', 'tblTempUsageDetail_20' ) start [2025-03-31 12:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803560', 'tblTempUsageDetail_20' ) end [2025-03-31 12:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803560', 'tblTempVendorCDR_20' ) start [2025-03-31 12:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803560', 'tblTempVendorCDR_20' ) end [2025-03-31 12:38:23] Production.INFO: ProcessCDR(1,14803560,1,1,2) [2025-03-31 12:38:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:38:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:38:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:38:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803560', 'tblTempUsageDetail_20' ) start [2025-03-31 12:38:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803560', 'tblTempUsageDetail_20' ) end [2025-03-31 12:38:29] Production.ERROR: pbx prc_insertCDR start [2025-03-31 12:38:29] Production.ERROR: pbx prc_insertCDR end [2025-03-31 12:38:29] Production.INFO: ==19992== Releasing lock... [2025-03-31 12:38:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 12:38:29] Production.INFO: 73.5 MB #Memory Used# [2025-03-31 12:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 09:39:06 [end_date_ymd] => 2025-03-31 12:39:06 [RateCDR] => 1 ) [2025-03-31 12:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 09:39:06' and `end` < '2025-03-31 12:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 12:39:20] Production.INFO: count ==6075 [2025-03-31 12:39:24] Production.ERROR: pbx CDR StartTime 2025-03-31 09:39:06 - End Time 2025-03-31 12:39:06 [2025-03-31 12:39:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 12:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803565', 'tblTempUsageDetail_20' ) start [2025-03-31 12:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803565', 'tblTempUsageDetail_20' ) end [2025-03-31 12:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803565', 'tblTempVendorCDR_20' ) start [2025-03-31 12:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803565', 'tblTempVendorCDR_20' ) end [2025-03-31 12:39:24] Production.INFO: ProcessCDR(1,14803565,1,1,2) [2025-03-31 12:39:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:39:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:39:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:39:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803565', 'tblTempUsageDetail_20' ) start [2025-03-31 12:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803565', 'tblTempUsageDetail_20' ) end [2025-03-31 12:39:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 12:39:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 12:39:28] Production.INFO: ==20065== Releasing lock... [2025-03-31 12:39:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 12:39:28] Production.INFO: 73.5 MB #Memory Used# [2025-03-31 12:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 09:40:06 [end_date_ymd] => 2025-03-31 12:40:06 [RateCDR] => 1 ) [2025-03-31 12:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 09:40:06' and `end` < '2025-03-31 12:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 12:40:20] Production.INFO: count ==6052 [2025-03-31 12:40:23] Production.ERROR: pbx CDR StartTime 2025-03-31 09:40:06 - End Time 2025-03-31 12:40:06 [2025-03-31 12:40:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 12:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803570', 'tblTempUsageDetail_20' ) start [2025-03-31 12:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803570', 'tblTempUsageDetail_20' ) end [2025-03-31 12:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803570', 'tblTempVendorCDR_20' ) start [2025-03-31 12:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803570', 'tblTempVendorCDR_20' ) end [2025-03-31 12:40:23] Production.INFO: ProcessCDR(1,14803570,1,1,2) [2025-03-31 12:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:40:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:40:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:40:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:40:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803570', 'tblTempUsageDetail_20' ) start [2025-03-31 12:40:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803570', 'tblTempUsageDetail_20' ) end [2025-03-31 12:40:29] Production.ERROR: pbx prc_insertCDR start [2025-03-31 12:40:29] Production.ERROR: pbx prc_insertCDR end [2025-03-31 12:40:29] Production.INFO: ==20145== Releasing lock... [2025-03-31 12:40:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 12:40:29] Production.INFO: 73.25 MB #Memory Used# [2025-03-31 12:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 09:41:06 [end_date_ymd] => 2025-03-31 12:41:06 [RateCDR] => 1 ) [2025-03-31 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-31 09:41:06' and `end` < '2025-03-31 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-31 12:41:20] Production.INFO: count ==6107 [2025-03-31 12:41:23] Production.ERROR: pbx CDR StartTime 2025-03-31 09:41:06 - End Time 2025-03-31 12:41:06 [2025-03-31 12:41:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 12:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803576', 'tblTempUsageDetail_20' ) start [2025-03-31 12:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803576', 'tblTempUsageDetail_20' ) end [2025-03-31 12:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803576', 'tblTempVendorCDR_20' ) start [2025-03-31 12:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803576', 'tblTempVendorCDR_20' ) end [2025-03-31 12:41:23] Production.INFO: ProcessCDR(1,14803576,1,1,2) [2025-03-31 12:41:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:41:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:41:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:41:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:41:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803576', 'tblTempUsageDetail_20' ) start [2025-03-31 12:41:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803576', 'tblTempUsageDetail_20' ) end [2025-03-31 12:41:29] Production.ERROR: pbx prc_insertCDR start [2025-03-31 12:41:29] Production.ERROR: pbx prc_insertCDR end [2025-03-31 12:41:29] Production.INFO: ==20225== Releasing lock... [2025-03-31 12:41:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 12:41:29] Production.INFO: 73.75 MB #Memory Used# [2025-03-31 12:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 09:42:06 [end_date_ymd] => 2025-03-31 12:42:06 [RateCDR] => 1 ) [2025-03-31 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-31 09:42:06' and `end` < '2025-03-31 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-31 12:42:20] Production.INFO: count ==6108 [2025-03-31 12:42:23] Production.ERROR: pbx CDR StartTime 2025-03-31 09:42:06 - End Time 2025-03-31 12:42:06 [2025-03-31 12:42:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 12:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803581', 'tblTempUsageDetail_20' ) start [2025-03-31 12:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803581', 'tblTempUsageDetail_20' ) end [2025-03-31 12:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803581', 'tblTempVendorCDR_20' ) start [2025-03-31 12:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803581', 'tblTempVendorCDR_20' ) end [2025-03-31 12:42:23] Production.INFO: ProcessCDR(1,14803581,1,1,2) [2025-03-31 12:42:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:42:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:42:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:42:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803581', 'tblTempUsageDetail_20' ) start [2025-03-31 12:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803581', 'tblTempUsageDetail_20' ) end [2025-03-31 12:42:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 12:42:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 12:42:28] Production.INFO: ==20306== Releasing lock... [2025-03-31 12:42:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 12:42:28] Production.INFO: 73.75 MB #Memory Used# [2025-03-31 12:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 09:43:06 [end_date_ymd] => 2025-03-31 12:43:06 [RateCDR] => 1 ) [2025-03-31 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-31 09:43:06' and `end` < '2025-03-31 12: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-31 12:43:20] Production.INFO: count ==6113 [2025-03-31 12:43:23] Production.ERROR: pbx CDR StartTime 2025-03-31 09:43:06 - End Time 2025-03-31 12:43:06 [2025-03-31 12:43:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 12:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803586', 'tblTempUsageDetail_20' ) start [2025-03-31 12:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803586', 'tblTempUsageDetail_20' ) end [2025-03-31 12:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803586', 'tblTempVendorCDR_20' ) start [2025-03-31 12:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803586', 'tblTempVendorCDR_20' ) end [2025-03-31 12:43:23] Production.INFO: ProcessCDR(1,14803586,1,1,2) [2025-03-31 12:43:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:43:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:43:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:43:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:43:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803586', 'tblTempUsageDetail_20' ) start [2025-03-31 12:43:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803586', 'tblTempUsageDetail_20' ) end [2025-03-31 12:43:29] Production.ERROR: pbx prc_insertCDR start [2025-03-31 12:43:29] Production.ERROR: pbx prc_insertCDR end [2025-03-31 12:43:29] Production.INFO: ==20388== Releasing lock... [2025-03-31 12:43:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 12:43:29] Production.INFO: 73.75 MB #Memory Used# [2025-03-31 12:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 09:44:06 [end_date_ymd] => 2025-03-31 12:44:06 [RateCDR] => 1 ) [2025-03-31 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-31 09:44:06' and `end` < '2025-03-31 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-31 12:44:20] Production.INFO: count ==6118 [2025-03-31 12:44:22] Production.ERROR: pbx CDR StartTime 2025-03-31 09:44:06 - End Time 2025-03-31 12:44:06 [2025-03-31 12:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 12:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803591', 'tblTempUsageDetail_20' ) start [2025-03-31 12:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803591', 'tblTempUsageDetail_20' ) end [2025-03-31 12:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803591', 'tblTempVendorCDR_20' ) start [2025-03-31 12:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803591', 'tblTempVendorCDR_20' ) end [2025-03-31 12:44:23] Production.INFO: ProcessCDR(1,14803591,1,1,2) [2025-03-31 12:44:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803591', 'tblTempUsageDetail_20' ) start [2025-03-31 12:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803591', 'tblTempUsageDetail_20' ) end [2025-03-31 12:44:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 12:44:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 12:44:26] Production.INFO: ==20497== Releasing lock... [2025-03-31 12:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 12:44:26] Production.INFO: 73.75 MB #Memory Used# [2025-03-31 12:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 09:45:06 [end_date_ymd] => 2025-03-31 12:45:06 [RateCDR] => 1 ) [2025-03-31 12: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-31 09:45:06' and `end` < '2025-03-31 12: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-31 12:45:20] Production.INFO: count ==6122 [2025-03-31 12:45:23] Production.ERROR: pbx CDR StartTime 2025-03-31 09:45:06 - End Time 2025-03-31 12:45:06 [2025-03-31 12:45:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 12:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803596', 'tblTempUsageDetail_20' ) start [2025-03-31 12:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803596', 'tblTempUsageDetail_20' ) end [2025-03-31 12:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803596', 'tblTempVendorCDR_20' ) start [2025-03-31 12:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803596', 'tblTempVendorCDR_20' ) end [2025-03-31 12:45:23] Production.INFO: ProcessCDR(1,14803596,1,1,2) [2025-03-31 12:45:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:45:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:45:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:45:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803596', 'tblTempUsageDetail_20' ) start [2025-03-31 12:45:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803596', 'tblTempUsageDetail_20' ) end [2025-03-31 12:45:29] Production.ERROR: pbx prc_insertCDR start [2025-03-31 12:45:29] Production.ERROR: pbx prc_insertCDR end [2025-03-31 12:45:29] Production.INFO: ==20576== Releasing lock... [2025-03-31 12:45:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 12:45:29] Production.INFO: 73.75 MB #Memory Used# [2025-03-31 12:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 09:46:06 [end_date_ymd] => 2025-03-31 12:46:06 [RateCDR] => 1 ) [2025-03-31 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-31 09:46:06' and `end` < '2025-03-31 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-31 12:46:20] Production.INFO: count ==6107 [2025-03-31 12:46:23] Production.ERROR: pbx CDR StartTime 2025-03-31 09:46:06 - End Time 2025-03-31 12:46:06 [2025-03-31 12:46:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 12:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803601', 'tblTempUsageDetail_20' ) start [2025-03-31 12:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803601', 'tblTempUsageDetail_20' ) end [2025-03-31 12:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803601', 'tblTempVendorCDR_20' ) start [2025-03-31 12:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803601', 'tblTempVendorCDR_20' ) end [2025-03-31 12:46:23] Production.INFO: ProcessCDR(1,14803601,1,1,2) [2025-03-31 12:46:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:46:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:46:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:46:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803601', 'tblTempUsageDetail_20' ) start [2025-03-31 12:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803601', 'tblTempUsageDetail_20' ) end [2025-03-31 12:46:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 12:46:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 12:46:28] Production.INFO: ==20650== Releasing lock... [2025-03-31 12:46:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 12:46:28] Production.INFO: 73.75 MB #Memory Used# [2025-03-31 12:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 09:47:06 [end_date_ymd] => 2025-03-31 12:47:06 [RateCDR] => 1 ) [2025-03-31 12:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 09:47:06' and `end` < '2025-03-31 12:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 12:47:20] Production.INFO: count ==6101 [2025-03-31 12:47:23] Production.ERROR: pbx CDR StartTime 2025-03-31 09:47:06 - End Time 2025-03-31 12:47:06 [2025-03-31 12:47:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 12:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803606', 'tblTempUsageDetail_20' ) start [2025-03-31 12:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803606', 'tblTempUsageDetail_20' ) end [2025-03-31 12:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803606', 'tblTempVendorCDR_20' ) start [2025-03-31 12:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803606', 'tblTempVendorCDR_20' ) end [2025-03-31 12:47:23] Production.INFO: ProcessCDR(1,14803606,1,1,2) [2025-03-31 12:47:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:47:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:47:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:47:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803606', 'tblTempUsageDetail_20' ) start [2025-03-31 12:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803606', 'tblTempUsageDetail_20' ) end [2025-03-31 12:47:29] Production.ERROR: pbx prc_insertCDR start [2025-03-31 12:47:29] Production.ERROR: pbx prc_insertCDR end [2025-03-31 12:47:29] Production.INFO: ==20725== Releasing lock... [2025-03-31 12:47:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 12:47:29] Production.INFO: 73.75 MB #Memory Used# [2025-03-31 12:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 09:48:06 [end_date_ymd] => 2025-03-31 12:48:06 [RateCDR] => 1 ) [2025-03-31 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-31 09:48:06' and `end` < '2025-03-31 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-31 12:48:20] Production.INFO: count ==6108 [2025-03-31 12:48:23] Production.ERROR: pbx CDR StartTime 2025-03-31 09:48:06 - End Time 2025-03-31 12:48:06 [2025-03-31 12:48:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 12:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803611', 'tblTempUsageDetail_20' ) start [2025-03-31 12:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803611', 'tblTempUsageDetail_20' ) end [2025-03-31 12:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803611', 'tblTempVendorCDR_20' ) start [2025-03-31 12:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803611', 'tblTempVendorCDR_20' ) end [2025-03-31 12:48:23] Production.INFO: ProcessCDR(1,14803611,1,1,2) [2025-03-31 12:48:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:48:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:48:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:48:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:48:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803611', 'tblTempUsageDetail_20' ) start [2025-03-31 12:48:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803611', 'tblTempUsageDetail_20' ) end [2025-03-31 12:48:29] Production.ERROR: pbx prc_insertCDR start [2025-03-31 12:48:29] Production.ERROR: pbx prc_insertCDR end [2025-03-31 12:48:29] Production.INFO: ==20798== Releasing lock... [2025-03-31 12:48:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 12:48:29] Production.INFO: 73.75 MB #Memory Used# [2025-03-31 12:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 09:49:06 [end_date_ymd] => 2025-03-31 12:49:06 [RateCDR] => 1 ) [2025-03-31 12: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-31 09:49:06' and `end` < '2025-03-31 12: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-31 12:49:20] Production.INFO: count ==6108 [2025-03-31 12:49:22] Production.ERROR: pbx CDR StartTime 2025-03-31 09:49:06 - End Time 2025-03-31 12:49:06 [2025-03-31 12:49:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 12:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803616', 'tblTempUsageDetail_20' ) start [2025-03-31 12:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803616', 'tblTempUsageDetail_20' ) end [2025-03-31 12:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803616', 'tblTempVendorCDR_20' ) start [2025-03-31 12:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803616', 'tblTempVendorCDR_20' ) end [2025-03-31 12:49:22] Production.INFO: ProcessCDR(1,14803616,1,1,2) [2025-03-31 12:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803616', 'tblTempUsageDetail_20' ) start [2025-03-31 12:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803616', 'tblTempUsageDetail_20' ) end [2025-03-31 12:49:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 12:49:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 12:49:26] Production.INFO: ==20874== Releasing lock... [2025-03-31 12:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 12:49:26] Production.INFO: 73.75 MB #Memory Used# [2025-03-31 12:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 09:50:05 [end_date_ymd] => 2025-03-31 12:50:05 [RateCDR] => 1 ) [2025-03-31 12:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 09:50:05' and `end` < '2025-03-31 12: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-31 12:50:19] Production.INFO: count ==6111 [2025-03-31 12:50:22] Production.ERROR: pbx CDR StartTime 2025-03-31 09:50:05 - End Time 2025-03-31 12:50:05 [2025-03-31 12:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 12:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803621', 'tblTempUsageDetail_20' ) start [2025-03-31 12:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803621', 'tblTempUsageDetail_20' ) end [2025-03-31 12:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803621', 'tblTempVendorCDR_20' ) start [2025-03-31 12:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803621', 'tblTempVendorCDR_20' ) end [2025-03-31 12:50:22] Production.INFO: ProcessCDR(1,14803621,1,1,2) [2025-03-31 12:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803621', 'tblTempUsageDetail_20' ) start [2025-03-31 12:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803621', 'tblTempUsageDetail_20' ) end [2025-03-31 12:50:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 12:50:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 12:50:26] Production.INFO: ==20949== Releasing lock... [2025-03-31 12:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 12:50:26] Production.INFO: 73.75 MB #Memory Used# [2025-03-31 12:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 09:51:06 [end_date_ymd] => 2025-03-31 12:51:06 [RateCDR] => 1 ) [2025-03-31 12: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-31 09:51:06' and `end` < '2025-03-31 12: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-31 12:51:20] Production.INFO: count ==6104 [2025-03-31 12:51:22] Production.ERROR: pbx CDR StartTime 2025-03-31 09:51:06 - End Time 2025-03-31 12:51:06 [2025-03-31 12:51:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 12:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803627', 'tblTempUsageDetail_20' ) start [2025-03-31 12:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803627', 'tblTempUsageDetail_20' ) end [2025-03-31 12:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803627', 'tblTempVendorCDR_20' ) start [2025-03-31 12:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803627', 'tblTempVendorCDR_20' ) end [2025-03-31 12:51:22] Production.INFO: ProcessCDR(1,14803627,1,1,2) [2025-03-31 12:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:51:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:51:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:51:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803627', 'tblTempUsageDetail_20' ) start [2025-03-31 12:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803627', 'tblTempUsageDetail_20' ) end [2025-03-31 12:51:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 12:51:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 12:51:28] Production.INFO: ==21026== Releasing lock... [2025-03-31 12:51:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 12:51:28] Production.INFO: 73.75 MB #Memory Used# [2025-03-31 12:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 09:52:05 [end_date_ymd] => 2025-03-31 12:52:05 [RateCDR] => 1 ) [2025-03-31 12:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 09:52:05' and `end` < '2025-03-31 12:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 12:52:20] Production.INFO: count ==6100 [2025-03-31 12:52:22] Production.ERROR: pbx CDR StartTime 2025-03-31 09:52:05 - End Time 2025-03-31 12:52:05 [2025-03-31 12:52:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 12:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803632', 'tblTempUsageDetail_20' ) start [2025-03-31 12:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803632', 'tblTempUsageDetail_20' ) end [2025-03-31 12:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803632', 'tblTempVendorCDR_20' ) start [2025-03-31 12:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803632', 'tblTempVendorCDR_20' ) end [2025-03-31 12:52:22] Production.INFO: ProcessCDR(1,14803632,1,1,2) [2025-03-31 12:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:52:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:52:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:52:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803632', 'tblTempUsageDetail_20' ) start [2025-03-31 12:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803632', 'tblTempUsageDetail_20' ) end [2025-03-31 12:52:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 12:52:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 12:52:28] Production.INFO: ==21102== Releasing lock... [2025-03-31 12:52:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 12:52:28] Production.INFO: 73.75 MB #Memory Used# [2025-03-31 12:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 09:53:06 [end_date_ymd] => 2025-03-31 12:53:06 [RateCDR] => 1 ) [2025-03-31 12:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 09:53:06' and `end` < '2025-03-31 12:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 12:53:20] Production.INFO: count ==6088 [2025-03-31 12:53:23] Production.ERROR: pbx CDR StartTime 2025-03-31 09:53:06 - End Time 2025-03-31 12:53:06 [2025-03-31 12:53:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 12:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803637', 'tblTempUsageDetail_20' ) start [2025-03-31 12:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803637', 'tblTempUsageDetail_20' ) end [2025-03-31 12:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803637', 'tblTempVendorCDR_20' ) start [2025-03-31 12:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803637', 'tblTempVendorCDR_20' ) end [2025-03-31 12:53:23] Production.INFO: ProcessCDR(1,14803637,1,1,2) [2025-03-31 12:53:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:53:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:53:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:53:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:53:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803637', 'tblTempUsageDetail_20' ) start [2025-03-31 12:53:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803637', 'tblTempUsageDetail_20' ) end [2025-03-31 12:53:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 12:53:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 12:53:28] Production.INFO: ==21176== Releasing lock... [2025-03-31 12:53:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 12:53:28] Production.INFO: 73.5 MB #Memory Used# [2025-03-31 12:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 09:54:05 [end_date_ymd] => 2025-03-31 12:54:05 [RateCDR] => 1 ) [2025-03-31 12:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 09:54:05' and `end` < '2025-03-31 12:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 12:54:19] Production.INFO: count ==6062 [2025-03-31 12:54:22] Production.ERROR: pbx CDR StartTime 2025-03-31 09:54:05 - End Time 2025-03-31 12:54:05 [2025-03-31 12:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 12:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803642', 'tblTempUsageDetail_20' ) start [2025-03-31 12:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803642', 'tblTempUsageDetail_20' ) end [2025-03-31 12:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803642', 'tblTempVendorCDR_20' ) start [2025-03-31 12:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803642', 'tblTempVendorCDR_20' ) end [2025-03-31 12:54:22] Production.INFO: ProcessCDR(1,14803642,1,1,2) [2025-03-31 12:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803642', 'tblTempUsageDetail_20' ) start [2025-03-31 12:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803642', 'tblTempUsageDetail_20' ) end [2025-03-31 12:54:25] Production.ERROR: pbx prc_insertCDR start [2025-03-31 12:54:25] Production.ERROR: pbx prc_insertCDR end [2025-03-31 12:54:25] Production.INFO: ==21250== Releasing lock... [2025-03-31 12:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 12:54:25] Production.INFO: 73.25 MB #Memory Used# [2025-03-31 12:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 09:55:05 [end_date_ymd] => 2025-03-31 12:55:05 [RateCDR] => 1 ) [2025-03-31 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-31 09:55:05' and `end` < '2025-03-31 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-31 12:55:19] Production.INFO: count ==6058 [2025-03-31 12:55:22] Production.ERROR: pbx CDR StartTime 2025-03-31 09:55:05 - End Time 2025-03-31 12:55:05 [2025-03-31 12:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 12:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803647', 'tblTempUsageDetail_20' ) start [2025-03-31 12:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803647', 'tblTempUsageDetail_20' ) end [2025-03-31 12:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803647', 'tblTempVendorCDR_20' ) start [2025-03-31 12:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803647', 'tblTempVendorCDR_20' ) end [2025-03-31 12:55:22] Production.INFO: ProcessCDR(1,14803647,1,1,2) [2025-03-31 12:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:55:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:55:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:55:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803647', 'tblTempUsageDetail_20' ) start [2025-03-31 12:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803647', 'tblTempUsageDetail_20' ) end [2025-03-31 12:55:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 12:55:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 12:55:28] Production.INFO: ==21324== Releasing lock... [2025-03-31 12:55:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 12:55:28] Production.INFO: 73.25 MB #Memory Used# [2025-03-31 12:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 09:56:05 [end_date_ymd] => 2025-03-31 12:56:05 [RateCDR] => 1 ) [2025-03-31 12:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 09:56:05' and `end` < '2025-03-31 12:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 12:56:20] Production.INFO: count ==6071 [2025-03-31 12:56:22] Production.ERROR: pbx CDR StartTime 2025-03-31 09:56:05 - End Time 2025-03-31 12:56:05 [2025-03-31 12:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 12:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803652', 'tblTempUsageDetail_20' ) start [2025-03-31 12:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803652', 'tblTempUsageDetail_20' ) end [2025-03-31 12:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803652', 'tblTempVendorCDR_20' ) start [2025-03-31 12:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803652', 'tblTempVendorCDR_20' ) end [2025-03-31 12:56:23] Production.INFO: ProcessCDR(1,14803652,1,1,2) [2025-03-31 12:56:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:56:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:56:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:56:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803652', 'tblTempUsageDetail_20' ) start [2025-03-31 12:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803652', 'tblTempUsageDetail_20' ) end [2025-03-31 12:56:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 12:56:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 12:56:28] Production.INFO: ==21395== Releasing lock... [2025-03-31 12:56:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 12:56:28] Production.INFO: 73.5 MB #Memory Used# [2025-03-31 12:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 09:57:05 [end_date_ymd] => 2025-03-31 12:57:05 [RateCDR] => 1 ) [2025-03-31 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-31 09:57:05' and `end` < '2025-03-31 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-31 12:57:19] Production.INFO: count ==6076 [2025-03-31 12:57:22] Production.ERROR: pbx CDR StartTime 2025-03-31 09:57:05 - End Time 2025-03-31 12:57:05 [2025-03-31 12:57:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 12:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803657', 'tblTempUsageDetail_20' ) start [2025-03-31 12:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803657', 'tblTempUsageDetail_20' ) end [2025-03-31 12:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803657', 'tblTempVendorCDR_20' ) start [2025-03-31 12:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803657', 'tblTempVendorCDR_20' ) end [2025-03-31 12:57:22] Production.INFO: ProcessCDR(1,14803657,1,1,2) [2025-03-31 12:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:57:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:57:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:57:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803657', 'tblTempUsageDetail_20' ) start [2025-03-31 12:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803657', 'tblTempUsageDetail_20' ) end [2025-03-31 12:57:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 12:57:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 12:57:28] Production.INFO: ==21471== Releasing lock... [2025-03-31 12:57:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 12:57:28] Production.INFO: 73.5 MB #Memory Used# [2025-03-31 12:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 09:58:05 [end_date_ymd] => 2025-03-31 12:58:05 [RateCDR] => 1 ) [2025-03-31 12: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-31 09:58:05' and `end` < '2025-03-31 12: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-31 12:58:19] Production.INFO: count ==6062 [2025-03-31 12:58:22] Production.ERROR: pbx CDR StartTime 2025-03-31 09:58:05 - End Time 2025-03-31 12:58:05 [2025-03-31 12:58:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 12:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803662', 'tblTempUsageDetail_20' ) start [2025-03-31 12:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803662', 'tblTempUsageDetail_20' ) end [2025-03-31 12:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803662', 'tblTempVendorCDR_20' ) start [2025-03-31 12:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803662', 'tblTempVendorCDR_20' ) end [2025-03-31 12:58:22] Production.INFO: ProcessCDR(1,14803662,1,1,2) [2025-03-31 12:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:58:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:58:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803662', 'tblTempUsageDetail_20' ) start [2025-03-31 12:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803662', 'tblTempUsageDetail_20' ) end [2025-03-31 12:58:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 12:58:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 12:58:27] Production.INFO: ==21544== Releasing lock... [2025-03-31 12:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 12:58:27] Production.INFO: 73.5 MB #Memory Used# [2025-03-31 12:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 09:59:06 [end_date_ymd] => 2025-03-31 12:59:06 [RateCDR] => 1 ) [2025-03-31 12:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 09:59:06' and `end` < '2025-03-31 12:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 12:59:20] Production.INFO: count ==6096 [2025-03-31 12:59:23] Production.ERROR: pbx CDR StartTime 2025-03-31 09:59:06 - End Time 2025-03-31 12:59:06 [2025-03-31 12:59:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 12:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803667', 'tblTempUsageDetail_20' ) start [2025-03-31 12:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803667', 'tblTempUsageDetail_20' ) end [2025-03-31 12:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803667', 'tblTempVendorCDR_20' ) start [2025-03-31 12:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803667', 'tblTempVendorCDR_20' ) end [2025-03-31 12:59:23] Production.INFO: ProcessCDR(1,14803667,1,1,2) [2025-03-31 12:59:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:59:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 12:59:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:59:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 12:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803667', 'tblTempUsageDetail_20' ) start [2025-03-31 12:59:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803667', 'tblTempUsageDetail_20' ) end [2025-03-31 12:59:29] Production.ERROR: pbx prc_insertCDR start [2025-03-31 12:59:29] Production.ERROR: pbx prc_insertCDR end [2025-03-31 12:59:29] Production.INFO: ==21654== Releasing lock... [2025-03-31 12:59:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 12:59:29] Production.INFO: 73.75 MB #Memory Used# [2025-03-31 13:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 10:00:06 [end_date_ymd] => 2025-03-31 13:00:06 [RateCDR] => 1 ) [2025-03-31 13:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 10:00:06' and `end` < '2025-03-31 13:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 13:00:20] Production.INFO: count ==6112 [2025-03-31 13:00:23] Production.ERROR: pbx CDR StartTime 2025-03-31 10:00:06 - End Time 2025-03-31 13:00:06 [2025-03-31 13:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 13:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803672', 'tblTempUsageDetail_20' ) start [2025-03-31 13:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803672', 'tblTempUsageDetail_20' ) end [2025-03-31 13:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803672', 'tblTempVendorCDR_20' ) start [2025-03-31 13:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803672', 'tblTempVendorCDR_20' ) end [2025-03-31 13:00:24] Production.INFO: ProcessCDR(1,14803672,1,1,2) [2025-03-31 13:00:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:00:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:00:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803672', 'tblTempUsageDetail_20' ) start [2025-03-31 13:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803672', 'tblTempUsageDetail_20' ) end [2025-03-31 13:00:30] Production.ERROR: pbx prc_insertCDR start [2025-03-31 13:00:30] Production.ERROR: pbx prc_insertCDR end [2025-03-31 13:00:30] Production.INFO: ==21733== Releasing lock... [2025-03-31 13:00:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 13:00:30] Production.INFO: 73.75 MB #Memory Used# [2025-03-31 13:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 10:01:06 [end_date_ymd] => 2025-03-31 13:01:06 [RateCDR] => 1 ) [2025-03-31 13: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-31 10:01:06' and `end` < '2025-03-31 13: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-31 13:01:20] Production.INFO: count ==6167 [2025-03-31 13:01:23] Production.ERROR: pbx CDR StartTime 2025-03-31 10:01:06 - End Time 2025-03-31 13:01:06 [2025-03-31 13:01:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 13:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803678', 'tblTempUsageDetail_20' ) start [2025-03-31 13:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803678', 'tblTempUsageDetail_20' ) end [2025-03-31 13:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803678', 'tblTempVendorCDR_20' ) start [2025-03-31 13:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803678', 'tblTempVendorCDR_20' ) end [2025-03-31 13:01:23] Production.INFO: ProcessCDR(1,14803678,1,1,2) [2025-03-31 13:01:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:01:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:01:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:01:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:01:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803678', 'tblTempUsageDetail_20' ) start [2025-03-31 13:01:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803678', 'tblTempUsageDetail_20' ) end [2025-03-31 13:01:29] Production.ERROR: pbx prc_insertCDR start [2025-03-31 13:01:29] Production.ERROR: pbx prc_insertCDR end [2025-03-31 13:01:29] Production.INFO: ==21818== Releasing lock... [2025-03-31 13:01:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 13:01:29] Production.INFO: 74.25 MB #Memory Used# [2025-03-31 13:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 10:02:06 [end_date_ymd] => 2025-03-31 13:02:06 [RateCDR] => 1 ) [2025-03-31 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-31 10:02:06' and `end` < '2025-03-31 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-31 13:02:19] Production.INFO: count ==6164 [2025-03-31 13:02:22] Production.ERROR: pbx CDR StartTime 2025-03-31 10:02:06 - End Time 2025-03-31 13:02:06 [2025-03-31 13:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 13:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803683', 'tblTempUsageDetail_20' ) start [2025-03-31 13:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803683', 'tblTempUsageDetail_20' ) end [2025-03-31 13:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803683', 'tblTempVendorCDR_20' ) start [2025-03-31 13:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803683', 'tblTempVendorCDR_20' ) end [2025-03-31 13:02:22] Production.INFO: ProcessCDR(1,14803683,1,1,2) [2025-03-31 13:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:02:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803683', 'tblTempUsageDetail_20' ) start [2025-03-31 13:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803683', 'tblTempUsageDetail_20' ) end [2025-03-31 13:02:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 13:02:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 13:02:28] Production.INFO: ==21887== Releasing lock... [2025-03-31 13:02:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 13:02:28] Production.INFO: 74.25 MB #Memory Used# [2025-03-31 13:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 10:03:05 [end_date_ymd] => 2025-03-31 13:03:05 [RateCDR] => 1 ) [2025-03-31 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-31 10:03:05' and `end` < '2025-03-31 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-31 13:03:19] Production.INFO: count ==6152 [2025-03-31 13:03:22] Production.ERROR: pbx CDR StartTime 2025-03-31 10:03:05 - End Time 2025-03-31 13:03:05 [2025-03-31 13:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 13:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803688', 'tblTempUsageDetail_20' ) start [2025-03-31 13:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803688', 'tblTempUsageDetail_20' ) end [2025-03-31 13:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803688', 'tblTempVendorCDR_20' ) start [2025-03-31 13:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803688', 'tblTempVendorCDR_20' ) end [2025-03-31 13:03:22] Production.INFO: ProcessCDR(1,14803688,1,1,2) [2025-03-31 13:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:03:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803688', 'tblTempUsageDetail_20' ) start [2025-03-31 13:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803688', 'tblTempUsageDetail_20' ) end [2025-03-31 13:03:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 13:03:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 13:03:28] Production.INFO: ==21967== Releasing lock... [2025-03-31 13:03:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 13:03:28] Production.INFO: 74 MB #Memory Used# [2025-03-31 13:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 10:04:06 [end_date_ymd] => 2025-03-31 13:04:06 [RateCDR] => 1 ) [2025-03-31 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-31 10:04:06' and `end` < '2025-03-31 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-31 13:04:20] Production.INFO: count ==6148 [2025-03-31 13:04:22] Production.ERROR: pbx CDR StartTime 2025-03-31 10:04:06 - End Time 2025-03-31 13:04:06 [2025-03-31 13:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 13:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803693', 'tblTempUsageDetail_20' ) start [2025-03-31 13:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803693', 'tblTempUsageDetail_20' ) end [2025-03-31 13:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803693', 'tblTempVendorCDR_20' ) start [2025-03-31 13:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803693', 'tblTempVendorCDR_20' ) end [2025-03-31 13:04:22] Production.INFO: ProcessCDR(1,14803693,1,1,2) [2025-03-31 13:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:04:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:04:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:04:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803693', 'tblTempUsageDetail_20' ) start [2025-03-31 13:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803693', 'tblTempUsageDetail_20' ) end [2025-03-31 13:04:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 13:04:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 13:04:28] Production.INFO: ==22045== Releasing lock... [2025-03-31 13:04:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 13:04:28] Production.INFO: 74 MB #Memory Used# [2025-03-31 13:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 10:05:06 [end_date_ymd] => 2025-03-31 13:05:06 [RateCDR] => 1 ) [2025-03-31 13: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-31 10:05:06' and `end` < '2025-03-31 13: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-31 13:05:20] Production.INFO: count ==6134 [2025-03-31 13:05:23] Production.ERROR: pbx CDR StartTime 2025-03-31 10:05:06 - End Time 2025-03-31 13:05:06 [2025-03-31 13:05:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 13:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803698', 'tblTempUsageDetail_20' ) start [2025-03-31 13:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803698', 'tblTempUsageDetail_20' ) end [2025-03-31 13:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803698', 'tblTempVendorCDR_20' ) start [2025-03-31 13:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803698', 'tblTempVendorCDR_20' ) end [2025-03-31 13:05:23] Production.INFO: ProcessCDR(1,14803698,1,1,2) [2025-03-31 13:05:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:05:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:05:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:05:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803698', 'tblTempUsageDetail_20' ) start [2025-03-31 13:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803698', 'tblTempUsageDetail_20' ) end [2025-03-31 13:05:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 13:05:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 13:05:28] Production.INFO: ==22119== Releasing lock... [2025-03-31 13:05:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 13:05:28] Production.INFO: 74 MB #Memory Used# [2025-03-31 13:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 10:06:05 [end_date_ymd] => 2025-03-31 13:06:05 [RateCDR] => 1 ) [2025-03-31 13:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 10:06:05' and `end` < '2025-03-31 13:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 13:06:19] Production.INFO: count ==6127 [2025-03-31 13:06:22] Production.ERROR: pbx CDR StartTime 2025-03-31 10:06:05 - End Time 2025-03-31 13:06:05 [2025-03-31 13:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 13:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803703', 'tblTempUsageDetail_20' ) start [2025-03-31 13:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803703', 'tblTempUsageDetail_20' ) end [2025-03-31 13:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803703', 'tblTempVendorCDR_20' ) start [2025-03-31 13:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803703', 'tblTempVendorCDR_20' ) end [2025-03-31 13:06:22] Production.INFO: ProcessCDR(1,14803703,1,1,2) [2025-03-31 13:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803703', 'tblTempUsageDetail_20' ) start [2025-03-31 13:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803703', 'tblTempUsageDetail_20' ) end [2025-03-31 13:06:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 13:06:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 13:06:27] Production.INFO: ==22192== Releasing lock... [2025-03-31 13:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 13:06:27] Production.INFO: 73.75 MB #Memory Used# [2025-03-31 13:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 10:07:06 [end_date_ymd] => 2025-03-31 13:07:06 [RateCDR] => 1 ) [2025-03-31 13:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 10:07:06' and `end` < '2025-03-31 13:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 13:07:20] Production.INFO: count ==6121 [2025-03-31 13:07:22] Production.ERROR: pbx CDR StartTime 2025-03-31 10:07:06 - End Time 2025-03-31 13:07:06 [2025-03-31 13:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 13:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803708', 'tblTempUsageDetail_20' ) start [2025-03-31 13:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803708', 'tblTempUsageDetail_20' ) end [2025-03-31 13:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803708', 'tblTempVendorCDR_20' ) start [2025-03-31 13:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803708', 'tblTempVendorCDR_20' ) end [2025-03-31 13:07:23] Production.INFO: ProcessCDR(1,14803708,1,1,2) [2025-03-31 13:07:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:07:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:07:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:07:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803708', 'tblTempUsageDetail_20' ) start [2025-03-31 13:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803708', 'tblTempUsageDetail_20' ) end [2025-03-31 13:07:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 13:07:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 13:07:28] Production.INFO: ==22270== Releasing lock... [2025-03-31 13:07:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 13:07:28] Production.INFO: 73.75 MB #Memory Used# [2025-03-31 13:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 10:08:06 [end_date_ymd] => 2025-03-31 13:08:06 [RateCDR] => 1 ) [2025-03-31 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-31 10:08:06' and `end` < '2025-03-31 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-31 13:08:20] Production.INFO: count ==6111 [2025-03-31 13:08:22] Production.ERROR: pbx CDR StartTime 2025-03-31 10:08:06 - End Time 2025-03-31 13:08:06 [2025-03-31 13:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 13:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803713', 'tblTempUsageDetail_20' ) start [2025-03-31 13:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803713', 'tblTempUsageDetail_20' ) end [2025-03-31 13:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803713', 'tblTempVendorCDR_20' ) start [2025-03-31 13:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803713', 'tblTempVendorCDR_20' ) end [2025-03-31 13:08:23] Production.INFO: ProcessCDR(1,14803713,1,1,2) [2025-03-31 13:08:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:08:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803713', 'tblTempUsageDetail_20' ) start [2025-03-31 13:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803713', 'tblTempUsageDetail_20' ) end [2025-03-31 13:08:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 13:08:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 13:08:28] Production.INFO: ==22345== Releasing lock... [2025-03-31 13:08:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 13:08:28] Production.INFO: 73.75 MB #Memory Used# [2025-03-31 13:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 10:09:06 [end_date_ymd] => 2025-03-31 13:09:06 [RateCDR] => 1 ) [2025-03-31 13: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-31 10:09:06' and `end` < '2025-03-31 13: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-31 13:09:20] Production.INFO: count ==6103 [2025-03-31 13:09:22] Production.ERROR: pbx CDR StartTime 2025-03-31 10:09:06 - End Time 2025-03-31 13:09:06 [2025-03-31 13:09:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 13:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803718', 'tblTempUsageDetail_20' ) start [2025-03-31 13:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803718', 'tblTempUsageDetail_20' ) end [2025-03-31 13:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803718', 'tblTempVendorCDR_20' ) start [2025-03-31 13:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803718', 'tblTempVendorCDR_20' ) end [2025-03-31 13:09:22] Production.INFO: ProcessCDR(1,14803718,1,1,2) [2025-03-31 13:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:09:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:09:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:09:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803718', 'tblTempUsageDetail_20' ) start [2025-03-31 13:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803718', 'tblTempUsageDetail_20' ) end [2025-03-31 13:09:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 13:09:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 13:09:28] Production.INFO: ==22415== Releasing lock... [2025-03-31 13:09:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 13:09:28] Production.INFO: 73.75 MB #Memory Used# [2025-03-31 13:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 10:10:06 [end_date_ymd] => 2025-03-31 13:10:06 [RateCDR] => 1 ) [2025-03-31 13: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-31 10:10:06' and `end` < '2025-03-31 13: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-31 13:10:19] Production.INFO: count ==6106 [2025-03-31 13:10:22] Production.ERROR: pbx CDR StartTime 2025-03-31 10:10:06 - End Time 2025-03-31 13:10:06 [2025-03-31 13:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 13:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803723', 'tblTempUsageDetail_20' ) start [2025-03-31 13:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803723', 'tblTempUsageDetail_20' ) end [2025-03-31 13:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803723', 'tblTempVendorCDR_20' ) start [2025-03-31 13:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803723', 'tblTempVendorCDR_20' ) end [2025-03-31 13:10:22] Production.INFO: ProcessCDR(1,14803723,1,1,2) [2025-03-31 13:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803723', 'tblTempUsageDetail_20' ) start [2025-03-31 13:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803723', 'tblTempUsageDetail_20' ) end [2025-03-31 13:10:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 13:10:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 13:10:28] Production.INFO: ==22492== Releasing lock... [2025-03-31 13:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 13:10:28] Production.INFO: 73.75 MB #Memory Used# [2025-03-31 13:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 10:11:05 [end_date_ymd] => 2025-03-31 13:11:05 [RateCDR] => 1 ) [2025-03-31 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-31 10:11:05' and `end` < '2025-03-31 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-31 13:11:19] Production.INFO: count ==6106 [2025-03-31 13:11:22] Production.ERROR: pbx CDR StartTime 2025-03-31 10:11:05 - End Time 2025-03-31 13:11:05 [2025-03-31 13:11:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 13:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803729', 'tblTempUsageDetail_20' ) start [2025-03-31 13:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803729', 'tblTempUsageDetail_20' ) end [2025-03-31 13:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803729', 'tblTempVendorCDR_20' ) start [2025-03-31 13:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803729', 'tblTempVendorCDR_20' ) end [2025-03-31 13:11:22] Production.INFO: ProcessCDR(1,14803729,1,1,2) [2025-03-31 13:11:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:11:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:11:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803729', 'tblTempUsageDetail_20' ) start [2025-03-31 13:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803729', 'tblTempUsageDetail_20' ) end [2025-03-31 13:11:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 13:11:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 13:11:27] Production.INFO: ==22570== Releasing lock... [2025-03-31 13:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 13:11:27] Production.INFO: 73.75 MB #Memory Used# [2025-03-31 13:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 10:12:06 [end_date_ymd] => 2025-03-31 13:12:06 [RateCDR] => 1 ) [2025-03-31 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-31 10:12:06' and `end` < '2025-03-31 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-31 13:12:19] Production.INFO: count ==6109 [2025-03-31 13:12:22] Production.ERROR: pbx CDR StartTime 2025-03-31 10:12:06 - End Time 2025-03-31 13:12:06 [2025-03-31 13:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 13:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803734', 'tblTempUsageDetail_20' ) start [2025-03-31 13:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803734', 'tblTempUsageDetail_20' ) end [2025-03-31 13:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803734', 'tblTempVendorCDR_20' ) start [2025-03-31 13:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803734', 'tblTempVendorCDR_20' ) end [2025-03-31 13:12:22] Production.INFO: ProcessCDR(1,14803734,1,1,2) [2025-03-31 13:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:12:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:12:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803734', 'tblTempUsageDetail_20' ) start [2025-03-31 13:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803734', 'tblTempUsageDetail_20' ) end [2025-03-31 13:12:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 13:12:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 13:12:28] Production.INFO: ==22639== Releasing lock... [2025-03-31 13:12:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 13:12:28] Production.INFO: 73.75 MB #Memory Used# [2025-03-31 13:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 10:13:06 [end_date_ymd] => 2025-03-31 13:13:06 [RateCDR] => 1 ) [2025-03-31 13: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-31 10:13:06' and `end` < '2025-03-31 13: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-31 13:13:20] Production.INFO: count ==6124 [2025-03-31 13:13:22] Production.ERROR: pbx CDR StartTime 2025-03-31 10:13:06 - End Time 2025-03-31 13:13:06 [2025-03-31 13:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 13:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803739', 'tblTempUsageDetail_20' ) start [2025-03-31 13:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803739', 'tblTempUsageDetail_20' ) end [2025-03-31 13:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803739', 'tblTempVendorCDR_20' ) start [2025-03-31 13:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803739', 'tblTempVendorCDR_20' ) end [2025-03-31 13:13:23] Production.INFO: ProcessCDR(1,14803739,1,1,2) [2025-03-31 13:13:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:13:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:13:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:13:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803739', 'tblTempUsageDetail_20' ) start [2025-03-31 13:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803739', 'tblTempUsageDetail_20' ) end [2025-03-31 13:13:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 13:13:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 13:13:28] Production.INFO: ==22713== Releasing lock... [2025-03-31 13:13:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 13:13:28] Production.INFO: 73.75 MB #Memory Used# [2025-03-31 13:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 10:14:05 [end_date_ymd] => 2025-03-31 13:14:05 [RateCDR] => 1 ) [2025-03-31 13:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 10:14:05' and `end` < '2025-03-31 13:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 13:14:19] Production.INFO: count ==6110 [2025-03-31 13:14:22] Production.ERROR: pbx CDR StartTime 2025-03-31 10:14:05 - End Time 2025-03-31 13:14:05 [2025-03-31 13:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 13:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803744', 'tblTempUsageDetail_20' ) start [2025-03-31 13:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803744', 'tblTempUsageDetail_20' ) end [2025-03-31 13:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803744', 'tblTempVendorCDR_20' ) start [2025-03-31 13:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803744', 'tblTempVendorCDR_20' ) end [2025-03-31 13:14:22] Production.INFO: ProcessCDR(1,14803744,1,1,2) [2025-03-31 13:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:14:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:14:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803744', 'tblTempUsageDetail_20' ) start [2025-03-31 13:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803744', 'tblTempUsageDetail_20' ) end [2025-03-31 13:14:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 13:14:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 13:14:27] Production.INFO: ==22786== Releasing lock... [2025-03-31 13:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 13:14:27] Production.INFO: 73.75 MB #Memory Used# [2025-03-31 13:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 10:15:05 [end_date_ymd] => 2025-03-31 13:15:05 [RateCDR] => 1 ) [2025-03-31 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-31 10:15:05' and `end` < '2025-03-31 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-31 13:15:19] Production.INFO: count ==6111 [2025-03-31 13:15:22] Production.ERROR: pbx CDR StartTime 2025-03-31 10:15:05 - End Time 2025-03-31 13:15:05 [2025-03-31 13:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 13:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803749', 'tblTempUsageDetail_20' ) start [2025-03-31 13:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803749', 'tblTempUsageDetail_20' ) end [2025-03-31 13:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803749', 'tblTempVendorCDR_20' ) start [2025-03-31 13:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803749', 'tblTempVendorCDR_20' ) end [2025-03-31 13:15:22] Production.INFO: ProcessCDR(1,14803749,1,1,2) [2025-03-31 13:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:15:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:15:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:15:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803749', 'tblTempUsageDetail_20' ) start [2025-03-31 13:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803749', 'tblTempUsageDetail_20' ) end [2025-03-31 13:15:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 13:15:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 13:15:28] Production.INFO: ==22897== Releasing lock... [2025-03-31 13:15:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 13:15:28] Production.INFO: 73.75 MB #Memory Used# [2025-03-31 13:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 10:16:06 [end_date_ymd] => 2025-03-31 13:16:06 [RateCDR] => 1 ) [2025-03-31 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-31 10:16:06' and `end` < '2025-03-31 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-31 13:16:19] Production.INFO: count ==6099 [2025-03-31 13:16:22] Production.ERROR: pbx CDR StartTime 2025-03-31 10:16:06 - End Time 2025-03-31 13:16:06 [2025-03-31 13:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 13:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803754', 'tblTempUsageDetail_20' ) start [2025-03-31 13:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803754', 'tblTempUsageDetail_20' ) end [2025-03-31 13:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803754', 'tblTempVendorCDR_20' ) start [2025-03-31 13:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803754', 'tblTempVendorCDR_20' ) end [2025-03-31 13:16:22] Production.INFO: ProcessCDR(1,14803754,1,1,2) [2025-03-31 13:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:16:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:16:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:16:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:16:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803754', 'tblTempUsageDetail_20' ) start [2025-03-31 13:16:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803754', 'tblTempUsageDetail_20' ) end [2025-03-31 13:16:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 13:16:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 13:16:28] Production.INFO: ==22969== Releasing lock... [2025-03-31 13:16:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 13:16:28] Production.INFO: 73.75 MB #Memory Used# [2025-03-31 13:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 10:17:06 [end_date_ymd] => 2025-03-31 13:17:06 [RateCDR] => 1 ) [2025-03-31 13: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-31 10:17:06' and `end` < '2025-03-31 13: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-31 13:17:20] Production.INFO: count ==6105 [2025-03-31 13:17:22] Production.ERROR: pbx CDR StartTime 2025-03-31 10:17:06 - End Time 2025-03-31 13:17:06 [2025-03-31 13:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 13:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803759', 'tblTempUsageDetail_20' ) start [2025-03-31 13:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803759', 'tblTempUsageDetail_20' ) end [2025-03-31 13:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803759', 'tblTempVendorCDR_20' ) start [2025-03-31 13:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803759', 'tblTempVendorCDR_20' ) end [2025-03-31 13:17:23] Production.INFO: ProcessCDR(1,14803759,1,1,2) [2025-03-31 13:17:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:17:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:17:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:17:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803759', 'tblTempUsageDetail_20' ) start [2025-03-31 13:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803759', 'tblTempUsageDetail_20' ) end [2025-03-31 13:17:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 13:17:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 13:17:28] Production.INFO: ==23043== Releasing lock... [2025-03-31 13:17:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 13:17:28] Production.INFO: 73.75 MB #Memory Used# [2025-03-31 13:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 10:18:06 [end_date_ymd] => 2025-03-31 13:18:06 [RateCDR] => 1 ) [2025-03-31 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-31 10:18:06' and `end` < '2025-03-31 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-31 13:18:20] Production.INFO: count ==6104 [2025-03-31 13:18:22] Production.ERROR: pbx CDR StartTime 2025-03-31 10:18:06 - End Time 2025-03-31 13:18:06 [2025-03-31 13:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 13:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803764', 'tblTempUsageDetail_20' ) start [2025-03-31 13:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803764', 'tblTempUsageDetail_20' ) end [2025-03-31 13:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803764', 'tblTempVendorCDR_20' ) start [2025-03-31 13:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803764', 'tblTempVendorCDR_20' ) end [2025-03-31 13:18:23] Production.INFO: ProcessCDR(1,14803764,1,1,2) [2025-03-31 13:18:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:18:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:18:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:18:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803764', 'tblTempUsageDetail_20' ) start [2025-03-31 13:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803764', 'tblTempUsageDetail_20' ) end [2025-03-31 13:18:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 13:18:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 13:18:28] Production.INFO: ==23125== Releasing lock... [2025-03-31 13:18:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 13:18:28] Production.INFO: 73.75 MB #Memory Used# [2025-03-31 13:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 10:19:06 [end_date_ymd] => 2025-03-31 13:19:06 [RateCDR] => 1 ) [2025-03-31 13:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 10:19:06' and `end` < '2025-03-31 13:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 13:19:19] Production.INFO: count ==6092 [2025-03-31 13:19:22] Production.ERROR: pbx CDR StartTime 2025-03-31 10:19:06 - End Time 2025-03-31 13:19:06 [2025-03-31 13:19:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 13:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803769', 'tblTempUsageDetail_20' ) start [2025-03-31 13:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803769', 'tblTempUsageDetail_20' ) end [2025-03-31 13:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803769', 'tblTempVendorCDR_20' ) start [2025-03-31 13:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803769', 'tblTempVendorCDR_20' ) end [2025-03-31 13:19:22] Production.INFO: ProcessCDR(1,14803769,1,1,2) [2025-03-31 13:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:19:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:19:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803769', 'tblTempUsageDetail_20' ) start [2025-03-31 13:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803769', 'tblTempUsageDetail_20' ) end [2025-03-31 13:19:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 13:19:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 13:19:28] Production.INFO: ==23199== Releasing lock... [2025-03-31 13:19:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 13:19:28] Production.INFO: 73.5 MB #Memory Used# [2025-03-31 13:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 10:20:07 [end_date_ymd] => 2025-03-31 13:20:07 [RateCDR] => 1 ) [2025-03-31 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-31 10:20:07' and `end` < '2025-03-31 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-31 13:20:20] Production.INFO: count ==6096 [2025-03-31 13:20:23] Production.ERROR: pbx CDR StartTime 2025-03-31 10:20:07 - End Time 2025-03-31 13:20:07 [2025-03-31 13:20:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 13:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803775', 'tblTempUsageDetail_20' ) start [2025-03-31 13:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803775', 'tblTempUsageDetail_20' ) end [2025-03-31 13:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803775', 'tblTempVendorCDR_20' ) start [2025-03-31 13:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803775', 'tblTempVendorCDR_20' ) end [2025-03-31 13:20:23] Production.INFO: ProcessCDR(1,14803775,1,1,2) [2025-03-31 13:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803775', 'tblTempUsageDetail_20' ) start [2025-03-31 13:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803775', 'tblTempUsageDetail_20' ) end [2025-03-31 13:20:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 13:20:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 13:20:27] Production.INFO: ==23274== Releasing lock... [2025-03-31 13:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 13:20:27] Production.INFO: 73.75 MB #Memory Used# [2025-03-31 13:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 10:21:05 [end_date_ymd] => 2025-03-31 13:21:05 [RateCDR] => 1 ) [2025-03-31 13: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-31 10:21:05' and `end` < '2025-03-31 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-31 13:21:19] Production.INFO: count ==6110 [2025-03-31 13:21:22] Production.ERROR: pbx CDR StartTime 2025-03-31 10:21:05 - End Time 2025-03-31 13:21:05 [2025-03-31 13:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 13:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803780', 'tblTempUsageDetail_20' ) start [2025-03-31 13:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803780', 'tblTempUsageDetail_20' ) end [2025-03-31 13:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803780', 'tblTempVendorCDR_20' ) start [2025-03-31 13:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803780', 'tblTempVendorCDR_20' ) end [2025-03-31 13:21:22] Production.INFO: ProcessCDR(1,14803780,1,1,2) [2025-03-31 13:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:21:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:21:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:21:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803780', 'tblTempUsageDetail_20' ) start [2025-03-31 13:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803780', 'tblTempUsageDetail_20' ) end [2025-03-31 13:21:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 13:21:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 13:21:28] Production.INFO: ==23349== Releasing lock... [2025-03-31 13:21:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 13:21:28] Production.INFO: 73.75 MB #Memory Used# [2025-03-31 13:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 10:22:06 [end_date_ymd] => 2025-03-31 13:22:06 [RateCDR] => 1 ) [2025-03-31 13:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 10:22:06' and `end` < '2025-03-31 13:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 13:22:19] Production.INFO: count ==6106 [2025-03-31 13:22:22] Production.ERROR: pbx CDR StartTime 2025-03-31 10:22:06 - End Time 2025-03-31 13:22:06 [2025-03-31 13:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 13:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803785', 'tblTempUsageDetail_20' ) start [2025-03-31 13:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803785', 'tblTempUsageDetail_20' ) end [2025-03-31 13:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803785', 'tblTempVendorCDR_20' ) start [2025-03-31 13:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803785', 'tblTempVendorCDR_20' ) end [2025-03-31 13:22:22] Production.INFO: ProcessCDR(1,14803785,1,1,2) [2025-03-31 13:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:22:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:22:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803785', 'tblTempUsageDetail_20' ) start [2025-03-31 13:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803785', 'tblTempUsageDetail_20' ) end [2025-03-31 13:22:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 13:22:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 13:22:28] Production.INFO: ==23429== Releasing lock... [2025-03-31 13:22:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 13:22:28] Production.INFO: 73.75 MB #Memory Used# [2025-03-31 13:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 10:23:06 [end_date_ymd] => 2025-03-31 13:23:06 [RateCDR] => 1 ) [2025-03-31 13: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-31 10:23:06' and `end` < '2025-03-31 13: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-31 13:23:19] Production.INFO: count ==6094 [2025-03-31 13:23:22] Production.ERROR: pbx CDR StartTime 2025-03-31 10:23:06 - End Time 2025-03-31 13:23:06 [2025-03-31 13:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 13:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803790', 'tblTempUsageDetail_20' ) start [2025-03-31 13:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803790', 'tblTempUsageDetail_20' ) end [2025-03-31 13:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803790', 'tblTempVendorCDR_20' ) start [2025-03-31 13:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803790', 'tblTempVendorCDR_20' ) end [2025-03-31 13:23:22] Production.INFO: ProcessCDR(1,14803790,1,1,2) [2025-03-31 13:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:23:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:23:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:23:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803790', 'tblTempUsageDetail_20' ) start [2025-03-31 13:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803790', 'tblTempUsageDetail_20' ) end [2025-03-31 13:23:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 13:23:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 13:23:28] Production.INFO: ==23503== Releasing lock... [2025-03-31 13:23:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 13:23:28] Production.INFO: 73.5 MB #Memory Used# [2025-03-31 13:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 10:24:06 [end_date_ymd] => 2025-03-31 13:24:06 [RateCDR] => 1 ) [2025-03-31 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-31 10:24:06' and `end` < '2025-03-31 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-31 13:24:20] Production.INFO: count ==6082 [2025-03-31 13:24:22] Production.ERROR: pbx CDR StartTime 2025-03-31 10:24:06 - End Time 2025-03-31 13:24:06 [2025-03-31 13:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 13:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803795', 'tblTempUsageDetail_20' ) start [2025-03-31 13:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803795', 'tblTempUsageDetail_20' ) end [2025-03-31 13:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803795', 'tblTempVendorCDR_20' ) start [2025-03-31 13:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803795', 'tblTempVendorCDR_20' ) end [2025-03-31 13:24:23] Production.INFO: ProcessCDR(1,14803795,1,1,2) [2025-03-31 13:24:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:24:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:24:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:24:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803795', 'tblTempUsageDetail_20' ) start [2025-03-31 13:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803795', 'tblTempUsageDetail_20' ) end [2025-03-31 13:24:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 13:24:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 13:24:28] Production.INFO: ==23576== Releasing lock... [2025-03-31 13:24:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 13:24:28] Production.INFO: 73.5 MB #Memory Used# [2025-03-31 13:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 10:25:06 [end_date_ymd] => 2025-03-31 13:25:06 [RateCDR] => 1 ) [2025-03-31 13:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 10:25:06' and `end` < '2025-03-31 13:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 13:25:19] Production.INFO: count ==6059 [2025-03-31 13:25:22] Production.ERROR: pbx CDR StartTime 2025-03-31 10:25:06 - End Time 2025-03-31 13:25:06 [2025-03-31 13:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803800', 'tblTempUsageDetail_20' ) start [2025-03-31 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803800', 'tblTempUsageDetail_20' ) end [2025-03-31 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803800', 'tblTempVendorCDR_20' ) start [2025-03-31 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803800', 'tblTempVendorCDR_20' ) end [2025-03-31 13:25:22] Production.INFO: ProcessCDR(1,14803800,1,1,2) [2025-03-31 13:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803800', 'tblTempUsageDetail_20' ) start [2025-03-31 13:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803800', 'tblTempUsageDetail_20' ) end [2025-03-31 13:25:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 13:25:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 13:25:28] Production.INFO: ==23648== Releasing lock... [2025-03-31 13:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 13:25:28] Production.INFO: 73.25 MB #Memory Used# [2025-03-31 13:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 10:26:06 [end_date_ymd] => 2025-03-31 13:26:06 [RateCDR] => 1 ) [2025-03-31 13:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 10:26:06' and `end` < '2025-03-31 13:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 13:26:20] Production.INFO: count ==6035 [2025-03-31 13:26:23] Production.ERROR: pbx CDR StartTime 2025-03-31 10:26:06 - End Time 2025-03-31 13:26:06 [2025-03-31 13:26:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 13:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803805', 'tblTempUsageDetail_20' ) start [2025-03-31 13:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803805', 'tblTempUsageDetail_20' ) end [2025-03-31 13:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803805', 'tblTempVendorCDR_20' ) start [2025-03-31 13:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803805', 'tblTempVendorCDR_20' ) end [2025-03-31 13:26:23] Production.INFO: ProcessCDR(1,14803805,1,1,2) [2025-03-31 13:26:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:26:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:26:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:26:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803805', 'tblTempUsageDetail_20' ) start [2025-03-31 13:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803805', 'tblTempUsageDetail_20' ) end [2025-03-31 13:26:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 13:26:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 13:26:28] Production.INFO: ==23725== Releasing lock... [2025-03-31 13:26:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 13:26:28] Production.INFO: 73.25 MB #Memory Used# [2025-03-31 13:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 10:27:06 [end_date_ymd] => 2025-03-31 13:27:06 [RateCDR] => 1 ) [2025-03-31 13:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 10:27:06' and `end` < '2025-03-31 13:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 13:27:19] Production.INFO: count ==6009 [2025-03-31 13:27:22] Production.ERROR: pbx CDR StartTime 2025-03-31 10:27:06 - End Time 2025-03-31 13:27:06 [2025-03-31 13:27:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 13:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803810', 'tblTempUsageDetail_20' ) start [2025-03-31 13:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803810', 'tblTempUsageDetail_20' ) end [2025-03-31 13:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803810', 'tblTempVendorCDR_20' ) start [2025-03-31 13:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803810', 'tblTempVendorCDR_20' ) end [2025-03-31 13:27:22] Production.INFO: ProcessCDR(1,14803810,1,1,2) [2025-03-31 13:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:27:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:27:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:27:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803810', 'tblTempUsageDetail_20' ) start [2025-03-31 13:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803810', 'tblTempUsageDetail_20' ) end [2025-03-31 13:27:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 13:27:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 13:27:28] Production.INFO: ==23794== Releasing lock... [2025-03-31 13:27:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 13:27:28] Production.INFO: 73 MB #Memory Used# [2025-03-31 13:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 10:28:05 [end_date_ymd] => 2025-03-31 13:28:05 [RateCDR] => 1 ) [2025-03-31 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-31 10:28:05' and `end` < '2025-03-31 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-31 13:28:19] Production.INFO: count ==6015 [2025-03-31 13:28:22] Production.ERROR: pbx CDR StartTime 2025-03-31 10:28:05 - End Time 2025-03-31 13:28:05 [2025-03-31 13:28:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 13:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803815', 'tblTempUsageDetail_20' ) start [2025-03-31 13:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803815', 'tblTempUsageDetail_20' ) end [2025-03-31 13:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803815', 'tblTempVendorCDR_20' ) start [2025-03-31 13:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803815', 'tblTempVendorCDR_20' ) end [2025-03-31 13:28:22] Production.INFO: ProcessCDR(1,14803815,1,1,2) [2025-03-31 13:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803815', 'tblTempUsageDetail_20' ) start [2025-03-31 13:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803815', 'tblTempUsageDetail_20' ) end [2025-03-31 13:28:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 13:28:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 13:28:27] Production.INFO: ==23866== Releasing lock... [2025-03-31 13:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 13:28:27] Production.INFO: 73 MB #Memory Used# [2025-03-31 13:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 10:29:06 [end_date_ymd] => 2025-03-31 13:29:06 [RateCDR] => 1 ) [2025-03-31 13:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 10:29:06' and `end` < '2025-03-31 13:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 13:29:19] Production.INFO: count ==6002 [2025-03-31 13:29:22] Production.ERROR: pbx CDR StartTime 2025-03-31 10:29:06 - End Time 2025-03-31 13:29:06 [2025-03-31 13:29:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 13:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803820', 'tblTempUsageDetail_20' ) start [2025-03-31 13:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803820', 'tblTempUsageDetail_20' ) end [2025-03-31 13:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803820', 'tblTempVendorCDR_20' ) start [2025-03-31 13:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803820', 'tblTempVendorCDR_20' ) end [2025-03-31 13:29:22] Production.INFO: ProcessCDR(1,14803820,1,1,2) [2025-03-31 13:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:29:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:29:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:29:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803820', 'tblTempUsageDetail_20' ) start [2025-03-31 13:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803820', 'tblTempUsageDetail_20' ) end [2025-03-31 13:29:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 13:29:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 13:29:28] Production.INFO: ==23939== Releasing lock... [2025-03-31 13:29:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 13:29:28] Production.INFO: 73 MB #Memory Used# [2025-03-31 13:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 10:30:06 [end_date_ymd] => 2025-03-31 13:30:06 [RateCDR] => 1 ) [2025-03-31 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-31 10:30:06' and `end` < '2025-03-31 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-31 13:30:20] Production.INFO: count ==6004 [2025-03-31 13:30:22] Production.ERROR: pbx CDR StartTime 2025-03-31 10:30:06 - End Time 2025-03-31 13:30:06 [2025-03-31 13:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 13:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803826', 'tblTempUsageDetail_20' ) start [2025-03-31 13:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803826', 'tblTempUsageDetail_20' ) end [2025-03-31 13:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803826', 'tblTempVendorCDR_20' ) start [2025-03-31 13:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803826', 'tblTempVendorCDR_20' ) end [2025-03-31 13:30:22] Production.INFO: ProcessCDR(1,14803826,1,1,2) [2025-03-31 13:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:30:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803826', 'tblTempUsageDetail_20' ) start [2025-03-31 13:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803826', 'tblTempUsageDetail_20' ) end [2025-03-31 13:30:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 13:30:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 13:30:28] Production.INFO: ==24060== Releasing lock... [2025-03-31 13:30:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 13:30:28] Production.INFO: 73 MB #Memory Used# [2025-03-31 13:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 10:31:06 [end_date_ymd] => 2025-03-31 13:31:06 [RateCDR] => 1 ) [2025-03-31 13: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-31 10:31:06' and `end` < '2025-03-31 13: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-31 13:31:20] Production.INFO: count ==5954 [2025-03-31 13:31:22] Production.ERROR: pbx CDR StartTime 2025-03-31 10:31:06 - End Time 2025-03-31 13:31:06 [2025-03-31 13:31:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 13:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803831', 'tblTempUsageDetail_20' ) start [2025-03-31 13:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803831', 'tblTempUsageDetail_20' ) end [2025-03-31 13:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803831', 'tblTempVendorCDR_20' ) start [2025-03-31 13:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803831', 'tblTempVendorCDR_20' ) end [2025-03-31 13:31:23] Production.INFO: ProcessCDR(1,14803831,1,1,2) [2025-03-31 13:31:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:31:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:31:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:31:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803831', 'tblTempUsageDetail_20' ) start [2025-03-31 13:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803831', 'tblTempUsageDetail_20' ) end [2025-03-31 13:31:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 13:31:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 13:31:28] Production.INFO: ==24135== Releasing lock... [2025-03-31 13:31:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 13:31:28] Production.INFO: 72.5 MB #Memory Used# [2025-03-31 13:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 10:32:06 [end_date_ymd] => 2025-03-31 13:32:06 [RateCDR] => 1 ) [2025-03-31 13:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 10:32:06' and `end` < '2025-03-31 13:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 13:32:19] Production.INFO: count ==5915 [2025-03-31 13:32:22] Production.ERROR: pbx CDR StartTime 2025-03-31 10:32:06 - End Time 2025-03-31 13:32:06 [2025-03-31 13:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 13:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803836', 'tblTempUsageDetail_20' ) start [2025-03-31 13:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803836', 'tblTempUsageDetail_20' ) end [2025-03-31 13:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803836', 'tblTempVendorCDR_20' ) start [2025-03-31 13:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803836', 'tblTempVendorCDR_20' ) end [2025-03-31 13:32:22] Production.INFO: ProcessCDR(1,14803836,1,1,2) [2025-03-31 13:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:32:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:32:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803836', 'tblTempUsageDetail_20' ) start [2025-03-31 13:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803836', 'tblTempUsageDetail_20' ) end [2025-03-31 13:32:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 13:32:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 13:32:28] Production.INFO: ==24207== Releasing lock... [2025-03-31 13:32:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 13:32:28] Production.INFO: 72.25 MB #Memory Used# [2025-03-31 13:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 10:33:06 [end_date_ymd] => 2025-03-31 13:33:06 [RateCDR] => 1 ) [2025-03-31 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-31 10:33:06' and `end` < '2025-03-31 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-31 13:33:20] Production.INFO: count ==5921 [2025-03-31 13:33:22] Production.ERROR: pbx CDR StartTime 2025-03-31 10:33:06 - End Time 2025-03-31 13:33:06 [2025-03-31 13:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 13:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803841', 'tblTempUsageDetail_20' ) start [2025-03-31 13:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803841', 'tblTempUsageDetail_20' ) end [2025-03-31 13:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803841', 'tblTempVendorCDR_20' ) start [2025-03-31 13:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803841', 'tblTempVendorCDR_20' ) end [2025-03-31 13:33:22] Production.INFO: ProcessCDR(1,14803841,1,1,2) [2025-03-31 13:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:33:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:33:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:33:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803841', 'tblTempUsageDetail_20' ) start [2025-03-31 13:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803841', 'tblTempUsageDetail_20' ) end [2025-03-31 13:33:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 13:33:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 13:33:28] Production.INFO: ==24282== Releasing lock... [2025-03-31 13:33:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 13:33:28] Production.INFO: 72.25 MB #Memory Used# [2025-03-31 13:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 10:34:06 [end_date_ymd] => 2025-03-31 13:34:06 [RateCDR] => 1 ) [2025-03-31 13: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-31 10:34:06' and `end` < '2025-03-31 13: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-31 13:34:20] Production.INFO: count ==5915 [2025-03-31 13:34:22] Production.ERROR: pbx CDR StartTime 2025-03-31 10:34:06 - End Time 2025-03-31 13:34:06 [2025-03-31 13:34:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 13:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803846', 'tblTempUsageDetail_20' ) start [2025-03-31 13:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803846', 'tblTempUsageDetail_20' ) end [2025-03-31 13:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803846', 'tblTempVendorCDR_20' ) start [2025-03-31 13:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803846', 'tblTempVendorCDR_20' ) end [2025-03-31 13:34:22] Production.INFO: ProcessCDR(1,14803846,1,1,2) [2025-03-31 13:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:34:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:34:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:34:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803846', 'tblTempUsageDetail_20' ) start [2025-03-31 13:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803846', 'tblTempUsageDetail_20' ) end [2025-03-31 13:34:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 13:34:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 13:34:28] Production.INFO: ==24355== Releasing lock... [2025-03-31 13:34:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 13:34:28] Production.INFO: 72.25 MB #Memory Used# [2025-03-31 13:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 10:35:06 [end_date_ymd] => 2025-03-31 13:35:06 [RateCDR] => 1 ) [2025-03-31 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-31 10:35:06' and `end` < '2025-03-31 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-31 13:35:20] Production.INFO: count ==5914 [2025-03-31 13:35:22] Production.ERROR: pbx CDR StartTime 2025-03-31 10:35:06 - End Time 2025-03-31 13:35:06 [2025-03-31 13:35:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 13:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803851', 'tblTempUsageDetail_20' ) start [2025-03-31 13:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803851', 'tblTempUsageDetail_20' ) end [2025-03-31 13:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803851', 'tblTempVendorCDR_20' ) start [2025-03-31 13:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803851', 'tblTempVendorCDR_20' ) end [2025-03-31 13:35:23] Production.INFO: ProcessCDR(1,14803851,1,1,2) [2025-03-31 13:35:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:35:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:35:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:35:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803851', 'tblTempUsageDetail_20' ) start [2025-03-31 13:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803851', 'tblTempUsageDetail_20' ) end [2025-03-31 13:35:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 13:35:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 13:35:28] Production.INFO: ==24438== Releasing lock... [2025-03-31 13:35:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 13:35:28] Production.INFO: 72.25 MB #Memory Used# [2025-03-31 13:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 10:36:05 [end_date_ymd] => 2025-03-31 13:36:05 [RateCDR] => 1 ) [2025-03-31 13:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 10:36:05' and `end` < '2025-03-31 13:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 13:36:19] Production.INFO: count ==5892 [2025-03-31 13:36:21] Production.ERROR: pbx CDR StartTime 2025-03-31 10:36:05 - End Time 2025-03-31 13:36:05 [2025-03-31 13:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 13:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803856', 'tblTempUsageDetail_20' ) start [2025-03-31 13:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803856', 'tblTempUsageDetail_20' ) end [2025-03-31 13:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803856', 'tblTempVendorCDR_20' ) start [2025-03-31 13:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803856', 'tblTempVendorCDR_20' ) end [2025-03-31 13:36:21] Production.INFO: ProcessCDR(1,14803856,1,1,2) [2025-03-31 13:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803856', 'tblTempUsageDetail_20' ) start [2025-03-31 13:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803856', 'tblTempUsageDetail_20' ) end [2025-03-31 13:36:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 13:36:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 13:36:27] Production.INFO: ==24512== Releasing lock... [2025-03-31 13:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 13:36:27] Production.INFO: 72 MB #Memory Used# [2025-03-31 13:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 10:37:05 [end_date_ymd] => 2025-03-31 13:37:05 [RateCDR] => 1 ) [2025-03-31 13:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 10:37:05' and `end` < '2025-03-31 13:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 13:37:19] Production.INFO: count ==5860 [2025-03-31 13:37:22] Production.ERROR: pbx CDR StartTime 2025-03-31 10:37:05 - End Time 2025-03-31 13:37:05 [2025-03-31 13:37:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 13:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803861', 'tblTempUsageDetail_20' ) start [2025-03-31 13:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803861', 'tblTempUsageDetail_20' ) end [2025-03-31 13:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803861', 'tblTempVendorCDR_20' ) start [2025-03-31 13:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803861', 'tblTempVendorCDR_20' ) end [2025-03-31 13:37:22] Production.INFO: ProcessCDR(1,14803861,1,1,2) [2025-03-31 13:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803861', 'tblTempUsageDetail_20' ) start [2025-03-31 13:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803861', 'tblTempUsageDetail_20' ) end [2025-03-31 13:37:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 13:37:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 13:37:26] Production.INFO: ==24582== Releasing lock... [2025-03-31 13:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 13:37:26] Production.INFO: 71.75 MB #Memory Used# [2025-03-31 13:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 10:38:06 [end_date_ymd] => 2025-03-31 13:38:06 [RateCDR] => 1 ) [2025-03-31 13:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 10:38:06' and `end` < '2025-03-31 13:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 13:38:19] Production.INFO: count ==5852 [2025-03-31 13:38:22] Production.ERROR: pbx CDR StartTime 2025-03-31 10:38:06 - End Time 2025-03-31 13:38:06 [2025-03-31 13:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 13:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803866', 'tblTempUsageDetail_20' ) start [2025-03-31 13:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803866', 'tblTempUsageDetail_20' ) end [2025-03-31 13:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803866', 'tblTempVendorCDR_20' ) start [2025-03-31 13:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803866', 'tblTempVendorCDR_20' ) end [2025-03-31 13:38:22] Production.INFO: ProcessCDR(1,14803866,1,1,2) [2025-03-31 13:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803866', 'tblTempUsageDetail_20' ) start [2025-03-31 13:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803866', 'tblTempUsageDetail_20' ) end [2025-03-31 13:38:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 13:38:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 13:38:27] Production.INFO: ==24655== Releasing lock... [2025-03-31 13:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 13:38:27] Production.INFO: 71.75 MB #Memory Used# [2025-03-31 13:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 10:39:06 [end_date_ymd] => 2025-03-31 13:39:06 [RateCDR] => 1 ) [2025-03-31 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-31 10:39:06' and `end` < '2025-03-31 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-31 13:39:20] Production.INFO: count ==5871 [2025-03-31 13:39:23] Production.ERROR: pbx CDR StartTime 2025-03-31 10:39:06 - End Time 2025-03-31 13:39:06 [2025-03-31 13:39:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 13:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803871', 'tblTempUsageDetail_20' ) start [2025-03-31 13:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803871', 'tblTempUsageDetail_20' ) end [2025-03-31 13:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803871', 'tblTempVendorCDR_20' ) start [2025-03-31 13:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803871', 'tblTempVendorCDR_20' ) end [2025-03-31 13:39:23] Production.INFO: ProcessCDR(1,14803871,1,1,2) [2025-03-31 13:39:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:39:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:39:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:39:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803871', 'tblTempUsageDetail_20' ) start [2025-03-31 13:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803871', 'tblTempUsageDetail_20' ) end [2025-03-31 13:39:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 13:39:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 13:39:28] Production.INFO: ==24727== Releasing lock... [2025-03-31 13:39:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 13:39:28] Production.INFO: 72 MB #Memory Used# [2025-03-31 13:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 10:40:07 [end_date_ymd] => 2025-03-31 13:40:07 [RateCDR] => 1 ) [2025-03-31 13:40:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 10:40:07' and `end` < '2025-03-31 13:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 13:40:21] Production.INFO: count ==5874 [2025-03-31 13:40:23] Production.ERROR: pbx CDR StartTime 2025-03-31 10:40:07 - End Time 2025-03-31 13:40:07 [2025-03-31 13:40:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 13:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803877', 'tblTempUsageDetail_20' ) start [2025-03-31 13:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803877', 'tblTempUsageDetail_20' ) end [2025-03-31 13:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803877', 'tblTempVendorCDR_20' ) start [2025-03-31 13:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803877', 'tblTempVendorCDR_20' ) end [2025-03-31 13:40:23] Production.INFO: ProcessCDR(1,14803877,1,1,2) [2025-03-31 13:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:40:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:40:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:40:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:40:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803877', 'tblTempUsageDetail_20' ) start [2025-03-31 13:40:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803877', 'tblTempUsageDetail_20' ) end [2025-03-31 13:40:29] Production.ERROR: pbx prc_insertCDR start [2025-03-31 13:40:29] Production.ERROR: pbx prc_insertCDR end [2025-03-31 13:40:29] Production.INFO: ==24800== Releasing lock... [2025-03-31 13:40:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 13:40:29] Production.INFO: 72 MB #Memory Used# [2025-03-31 13:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 10:41:05 [end_date_ymd] => 2025-03-31 13:41:05 [RateCDR] => 1 ) [2025-03-31 13:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 10:41:05' and `end` < '2025-03-31 13:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 13:41:19] Production.INFO: count ==5836 [2025-03-31 13:41:22] Production.ERROR: pbx CDR StartTime 2025-03-31 10:41:05 - End Time 2025-03-31 13:41:05 [2025-03-31 13:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 13:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803882', 'tblTempUsageDetail_20' ) start [2025-03-31 13:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803882', 'tblTempUsageDetail_20' ) end [2025-03-31 13:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803882', 'tblTempVendorCDR_20' ) start [2025-03-31 13:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803882', 'tblTempVendorCDR_20' ) end [2025-03-31 13:41:22] Production.INFO: ProcessCDR(1,14803882,1,1,2) [2025-03-31 13:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:41:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:41:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803882', 'tblTempUsageDetail_20' ) start [2025-03-31 13:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803882', 'tblTempUsageDetail_20' ) end [2025-03-31 13:41:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 13:41:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 13:41:27] Production.INFO: ==24883== Releasing lock... [2025-03-31 13:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 13:41:27] Production.INFO: 71.75 MB #Memory Used# [2025-03-31 13:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 10:42:05 [end_date_ymd] => 2025-03-31 13:42:05 [RateCDR] => 1 ) [2025-03-31 13:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 10:42:05' and `end` < '2025-03-31 13:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 13:42:19] Production.INFO: count ==5808 [2025-03-31 13:42:22] Production.ERROR: pbx CDR StartTime 2025-03-31 10:42:05 - End Time 2025-03-31 13:42:05 [2025-03-31 13:42:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 13:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803887', 'tblTempUsageDetail_20' ) start [2025-03-31 13:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803887', 'tblTempUsageDetail_20' ) end [2025-03-31 13:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803887', 'tblTempVendorCDR_20' ) start [2025-03-31 13:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803887', 'tblTempVendorCDR_20' ) end [2025-03-31 13:42:22] Production.INFO: ProcessCDR(1,14803887,1,1,2) [2025-03-31 13:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:42:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:42:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803887', 'tblTempUsageDetail_20' ) start [2025-03-31 13:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803887', 'tblTempUsageDetail_20' ) end [2025-03-31 13:42:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 13:42:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 13:42:27] Production.INFO: ==24956== Releasing lock... [2025-03-31 13:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 13:42:27] Production.INFO: 71.5 MB #Memory Used# [2025-03-31 13:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 10:43:06 [end_date_ymd] => 2025-03-31 13:43:06 [RateCDR] => 1 ) [2025-03-31 13:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 10:43:06' and `end` < '2025-03-31 13:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 13:43:19] Production.INFO: count ==5793 [2025-03-31 13:43:22] Production.ERROR: pbx CDR StartTime 2025-03-31 10:43:06 - End Time 2025-03-31 13:43:06 [2025-03-31 13:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 13:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803892', 'tblTempUsageDetail_20' ) start [2025-03-31 13:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803892', 'tblTempUsageDetail_20' ) end [2025-03-31 13:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803892', 'tblTempVendorCDR_20' ) start [2025-03-31 13:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803892', 'tblTempVendorCDR_20' ) end [2025-03-31 13:43:22] Production.INFO: ProcessCDR(1,14803892,1,1,2) [2025-03-31 13:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803892', 'tblTempUsageDetail_20' ) start [2025-03-31 13:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803892', 'tblTempUsageDetail_20' ) end [2025-03-31 13:43:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 13:43:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 13:43:27] Production.INFO: ==25029== Releasing lock... [2025-03-31 13:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 13:43:27] Production.INFO: 71.25 MB #Memory Used# [2025-03-31 13:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 10:44:05 [end_date_ymd] => 2025-03-31 13:44:05 [RateCDR] => 1 ) [2025-03-31 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-31 10:44:05' and `end` < '2025-03-31 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-31 13:44:19] Production.INFO: count ==5762 [2025-03-31 13:44:21] Production.ERROR: pbx CDR StartTime 2025-03-31 10:44:05 - End Time 2025-03-31 13:44:05 [2025-03-31 13:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803897', 'tblTempUsageDetail_20' ) start [2025-03-31 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803897', 'tblTempUsageDetail_20' ) end [2025-03-31 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803897', 'tblTempVendorCDR_20' ) start [2025-03-31 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803897', 'tblTempVendorCDR_20' ) end [2025-03-31 13:44:21] Production.INFO: ProcessCDR(1,14803897,1,1,2) [2025-03-31 13:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803897', 'tblTempUsageDetail_20' ) start [2025-03-31 13:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803897', 'tblTempUsageDetail_20' ) end [2025-03-31 13:44:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 13:44:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 13:44:27] Production.INFO: ==25104== Releasing lock... [2025-03-31 13:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 13:44:27] Production.INFO: 71.25 MB #Memory Used# [2025-03-31 13:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 10:45:06 [end_date_ymd] => 2025-03-31 13:45:06 [RateCDR] => 1 ) [2025-03-31 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-31 10:45:06' and `end` < '2025-03-31 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-31 13:45:20] Production.INFO: count ==5758 [2025-03-31 13:45:22] Production.ERROR: pbx CDR StartTime 2025-03-31 10:45:06 - End Time 2025-03-31 13:45:06 [2025-03-31 13:45:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 13:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803902', 'tblTempUsageDetail_20' ) start [2025-03-31 13:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803902', 'tblTempUsageDetail_20' ) end [2025-03-31 13:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803902', 'tblTempVendorCDR_20' ) start [2025-03-31 13:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803902', 'tblTempVendorCDR_20' ) end [2025-03-31 13:45:22] Production.INFO: ProcessCDR(1,14803902,1,1,2) [2025-03-31 13:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:45:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:45:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:45:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803902', 'tblTempUsageDetail_20' ) start [2025-03-31 13:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803902', 'tblTempUsageDetail_20' ) end [2025-03-31 13:45:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 13:45:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 13:45:28] Production.INFO: ==25177== Releasing lock... [2025-03-31 13:45:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 13:45:28] Production.INFO: 71 MB #Memory Used# [2025-03-31 13:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 10:46:04 [end_date_ymd] => 2025-03-31 13:46:04 [RateCDR] => 1 ) [2025-03-31 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-31 10:46:04' and `end` < '2025-03-31 13:46: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-31 13:46:18] Production.INFO: count ==5758 [2025-03-31 13:46:21] Production.ERROR: pbx CDR StartTime 2025-03-31 10:46:04 - End Time 2025-03-31 13:46:04 [2025-03-31 13:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 13:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803907', 'tblTempUsageDetail_20' ) start [2025-03-31 13:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803907', 'tblTempUsageDetail_20' ) end [2025-03-31 13:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803907', 'tblTempVendorCDR_20' ) start [2025-03-31 13:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803907', 'tblTempVendorCDR_20' ) end [2025-03-31 13:46:21] Production.INFO: ProcessCDR(1,14803907,1,1,2) [2025-03-31 13:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803907', 'tblTempUsageDetail_20' ) start [2025-03-31 13:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803907', 'tblTempUsageDetail_20' ) end [2025-03-31 13:46:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 13:46:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 13:46:27] Production.INFO: ==25286== Releasing lock... [2025-03-31 13:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 13:46:27] Production.INFO: 71 MB #Memory Used# [2025-03-31 13:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 10:47:06 [end_date_ymd] => 2025-03-31 13:47:06 [RateCDR] => 1 ) [2025-03-31 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-31 10:47:06' and `end` < '2025-03-31 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-31 13:47:19] Production.INFO: count ==5757 [2025-03-31 13:47:22] Production.ERROR: pbx CDR StartTime 2025-03-31 10:47:06 - End Time 2025-03-31 13:47:06 [2025-03-31 13:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 13:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803912', 'tblTempUsageDetail_20' ) start [2025-03-31 13:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803912', 'tblTempUsageDetail_20' ) end [2025-03-31 13:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803912', 'tblTempVendorCDR_20' ) start [2025-03-31 13:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803912', 'tblTempVendorCDR_20' ) end [2025-03-31 13:47:22] Production.INFO: ProcessCDR(1,14803912,1,1,2) [2025-03-31 13:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:47:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:47:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:47:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803912', 'tblTempUsageDetail_20' ) start [2025-03-31 13:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803912', 'tblTempUsageDetail_20' ) end [2025-03-31 13:47:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 13:47:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 13:47:27] Production.INFO: ==25361== Releasing lock... [2025-03-31 13:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 13:47:27] Production.INFO: 71 MB #Memory Used# [2025-03-31 13:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 10:48:05 [end_date_ymd] => 2025-03-31 13:48:05 [RateCDR] => 1 ) [2025-03-31 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-31 10:48:05' and `end` < '2025-03-31 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-31 13:48:19] Production.INFO: count ==5735 [2025-03-31 13:48:21] Production.ERROR: pbx CDR StartTime 2025-03-31 10:48:05 - End Time 2025-03-31 13:48:05 [2025-03-31 13:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 13:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803917', 'tblTempUsageDetail_20' ) start [2025-03-31 13:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803917', 'tblTempUsageDetail_20' ) end [2025-03-31 13:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803917', 'tblTempVendorCDR_20' ) start [2025-03-31 13:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803917', 'tblTempVendorCDR_20' ) end [2025-03-31 13:48:21] Production.INFO: ProcessCDR(1,14803917,1,1,2) [2025-03-31 13:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803917', 'tblTempUsageDetail_20' ) start [2025-03-31 13:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803917', 'tblTempUsageDetail_20' ) end [2025-03-31 13:48:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 13:48:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 13:48:27] Production.INFO: ==25435== Releasing lock... [2025-03-31 13:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 13:48:27] Production.INFO: 71 MB #Memory Used# [2025-03-31 13:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 10:49:05 [end_date_ymd] => 2025-03-31 13:49:05 [RateCDR] => 1 ) [2025-03-31 13:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 10:49:05' and `end` < '2025-03-31 13:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 13:49:19] Production.INFO: count ==5713 [2025-03-31 13:49:21] Production.ERROR: pbx CDR StartTime 2025-03-31 10:49:05 - End Time 2025-03-31 13:49:05 [2025-03-31 13:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 13:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803922', 'tblTempUsageDetail_20' ) start [2025-03-31 13:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803922', 'tblTempUsageDetail_20' ) end [2025-03-31 13:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803922', 'tblTempVendorCDR_20' ) start [2025-03-31 13:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803922', 'tblTempVendorCDR_20' ) end [2025-03-31 13:49:22] Production.INFO: ProcessCDR(1,14803922,1,1,2) [2025-03-31 13:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803922', 'tblTempUsageDetail_20' ) start [2025-03-31 13:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803922', 'tblTempUsageDetail_20' ) end [2025-03-31 13:49:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 13:49:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 13:49:26] Production.INFO: ==25509== Releasing lock... [2025-03-31 13:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 13:49:26] Production.INFO: 70.75 MB #Memory Used# [2025-03-31 13:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 10:50:06 [end_date_ymd] => 2025-03-31 13:50:06 [RateCDR] => 1 ) [2025-03-31 13:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 10:50:06' and `end` < '2025-03-31 13:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 13:50:20] Production.INFO: count ==5714 [2025-03-31 13:50:22] Production.ERROR: pbx CDR StartTime 2025-03-31 10:50:06 - End Time 2025-03-31 13:50:06 [2025-03-31 13:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 13:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803928', 'tblTempUsageDetail_20' ) start [2025-03-31 13:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803928', 'tblTempUsageDetail_20' ) end [2025-03-31 13:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803928', 'tblTempVendorCDR_20' ) start [2025-03-31 13:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803928', 'tblTempVendorCDR_20' ) end [2025-03-31 13:50:23] Production.INFO: ProcessCDR(1,14803928,1,1,2) [2025-03-31 13:50:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:50:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803928', 'tblTempUsageDetail_20' ) start [2025-03-31 13:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803928', 'tblTempUsageDetail_20' ) end [2025-03-31 13:50:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 13:50:29] Production.ERROR: pbx prc_insertCDR end [2025-03-31 13:50:29] Production.INFO: ==25584== Releasing lock... [2025-03-31 13:50:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 13:50:29] Production.INFO: 70.75 MB #Memory Used# [2025-03-31 13:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 10:51:05 [end_date_ymd] => 2025-03-31 13:51:05 [RateCDR] => 1 ) [2025-03-31 13:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 10:51:05' and `end` < '2025-03-31 13:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 13:51:18] Production.INFO: count ==5699 [2025-03-31 13:51:21] Production.ERROR: pbx CDR StartTime 2025-03-31 10:51:05 - End Time 2025-03-31 13:51:05 [2025-03-31 13:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 13:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803933', 'tblTempUsageDetail_20' ) start [2025-03-31 13:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803933', 'tblTempUsageDetail_20' ) end [2025-03-31 13:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803933', 'tblTempVendorCDR_20' ) start [2025-03-31 13:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803933', 'tblTempVendorCDR_20' ) end [2025-03-31 13:51:21] Production.INFO: ProcessCDR(1,14803933,1,1,2) [2025-03-31 13:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:51:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803933', 'tblTempUsageDetail_20' ) start [2025-03-31 13:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803933', 'tblTempUsageDetail_20' ) end [2025-03-31 13:51:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 13:51:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 13:51:27] Production.INFO: ==25660== Releasing lock... [2025-03-31 13:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 13:51:27] Production.INFO: 70.75 MB #Memory Used# [2025-03-31 13:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 10:52:05 [end_date_ymd] => 2025-03-31 13:52:05 [RateCDR] => 1 ) [2025-03-31 13:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 10:52:05' and `end` < '2025-03-31 13:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 13:52:19] Production.INFO: count ==5707 [2025-03-31 13:52:21] Production.ERROR: pbx CDR StartTime 2025-03-31 10:52:05 - End Time 2025-03-31 13:52:05 [2025-03-31 13:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 13:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803938', 'tblTempUsageDetail_20' ) start [2025-03-31 13:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803938', 'tblTempUsageDetail_20' ) end [2025-03-31 13:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803938', 'tblTempVendorCDR_20' ) start [2025-03-31 13:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803938', 'tblTempVendorCDR_20' ) end [2025-03-31 13:52:22] Production.INFO: ProcessCDR(1,14803938,1,1,2) [2025-03-31 13:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803938', 'tblTempUsageDetail_20' ) start [2025-03-31 13:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803938', 'tblTempUsageDetail_20' ) end [2025-03-31 13:52:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 13:52:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 13:52:27] Production.INFO: ==25731== Releasing lock... [2025-03-31 13:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 13:52:27] Production.INFO: 70.75 MB #Memory Used# [2025-03-31 13:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 10:53:05 [end_date_ymd] => 2025-03-31 13:53:05 [RateCDR] => 1 ) [2025-03-31 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-31 10:53:05' and `end` < '2025-03-31 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-31 13:53:19] Production.INFO: count ==5715 [2025-03-31 13:53:21] Production.ERROR: pbx CDR StartTime 2025-03-31 10:53:05 - End Time 2025-03-31 13:53:05 [2025-03-31 13:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 13:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803943', 'tblTempUsageDetail_20' ) start [2025-03-31 13:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803943', 'tblTempUsageDetail_20' ) end [2025-03-31 13:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803943', 'tblTempVendorCDR_20' ) start [2025-03-31 13:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803943', 'tblTempVendorCDR_20' ) end [2025-03-31 13:53:22] Production.INFO: ProcessCDR(1,14803943,1,1,2) [2025-03-31 13:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:53:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803943', 'tblTempUsageDetail_20' ) start [2025-03-31 13:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803943', 'tblTempUsageDetail_20' ) end [2025-03-31 13:53:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 13:53:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 13:53:27] Production.INFO: ==25805== Releasing lock... [2025-03-31 13:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 13:53:27] Production.INFO: 70.75 MB #Memory Used# [2025-03-31 13:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 10:54:05 [end_date_ymd] => 2025-03-31 13:54:05 [RateCDR] => 1 ) [2025-03-31 13:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 10:54:05' and `end` < '2025-03-31 13:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 13:54:19] Production.INFO: count ==5707 [2025-03-31 13:54:21] Production.ERROR: pbx CDR StartTime 2025-03-31 10:54:05 - End Time 2025-03-31 13:54:05 [2025-03-31 13:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 13:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803948', 'tblTempUsageDetail_20' ) start [2025-03-31 13:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803948', 'tblTempUsageDetail_20' ) end [2025-03-31 13:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803948', 'tblTempVendorCDR_20' ) start [2025-03-31 13:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803948', 'tblTempVendorCDR_20' ) end [2025-03-31 13:54:21] Production.INFO: ProcessCDR(1,14803948,1,1,2) [2025-03-31 13:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803948', 'tblTempUsageDetail_20' ) start [2025-03-31 13:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803948', 'tblTempUsageDetail_20' ) end [2025-03-31 13:54:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 13:54:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 13:54:27] Production.INFO: ==25879== Releasing lock... [2025-03-31 13:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 13:54:27] Production.INFO: 70.75 MB #Memory Used# [2025-03-31 13:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 10:55:05 [end_date_ymd] => 2025-03-31 13:55:05 [RateCDR] => 1 ) [2025-03-31 13:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 10:55:05' and `end` < '2025-03-31 13:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 13:55:19] Production.INFO: count ==5686 [2025-03-31 13:55:22] Production.ERROR: pbx CDR StartTime 2025-03-31 10:55:05 - End Time 2025-03-31 13:55:05 [2025-03-31 13:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 13:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803953', 'tblTempUsageDetail_20' ) start [2025-03-31 13:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803953', 'tblTempUsageDetail_20' ) end [2025-03-31 13:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803953', 'tblTempVendorCDR_20' ) start [2025-03-31 13:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803953', 'tblTempVendorCDR_20' ) end [2025-03-31 13:55:22] Production.INFO: ProcessCDR(1,14803953,1,1,2) [2025-03-31 13:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:55:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:55:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803953', 'tblTempUsageDetail_20' ) start [2025-03-31 13:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803953', 'tblTempUsageDetail_20' ) end [2025-03-31 13:55:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 13:55:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 13:55:27] Production.INFO: ==25951== Releasing lock... [2025-03-31 13:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 13:55:27] Production.INFO: 70.5 MB #Memory Used# [2025-03-31 13:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 10:56:05 [end_date_ymd] => 2025-03-31 13:56:05 [RateCDR] => 1 ) [2025-03-31 13:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 10:56:05' and `end` < '2025-03-31 13:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 13:56:19] Production.INFO: count ==5658 [2025-03-31 13:56:21] Production.ERROR: pbx CDR StartTime 2025-03-31 10:56:05 - End Time 2025-03-31 13:56:05 [2025-03-31 13:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 13:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803958', 'tblTempUsageDetail_20' ) start [2025-03-31 13:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803958', 'tblTempUsageDetail_20' ) end [2025-03-31 13:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803958', 'tblTempVendorCDR_20' ) start [2025-03-31 13:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803958', 'tblTempVendorCDR_20' ) end [2025-03-31 13:56:22] Production.INFO: ProcessCDR(1,14803958,1,1,2) [2025-03-31 13:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803958', 'tblTempUsageDetail_20' ) start [2025-03-31 13:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803958', 'tblTempUsageDetail_20' ) end [2025-03-31 13:56:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 13:56:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 13:56:27] Production.INFO: ==26022== Releasing lock... [2025-03-31 13:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 13:56:27] Production.INFO: 70.25 MB #Memory Used# [2025-03-31 13:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 10:57:06 [end_date_ymd] => 2025-03-31 13:57:06 [RateCDR] => 1 ) [2025-03-31 13:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 10:57:06' and `end` < '2025-03-31 13:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 13:57:19] Production.INFO: count ==5662 [2025-03-31 13:57:22] Production.ERROR: pbx CDR StartTime 2025-03-31 10:57:06 - End Time 2025-03-31 13:57:06 [2025-03-31 13:57:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 13:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803963', 'tblTempUsageDetail_20' ) start [2025-03-31 13:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803963', 'tblTempUsageDetail_20' ) end [2025-03-31 13:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803963', 'tblTempVendorCDR_20' ) start [2025-03-31 13:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803963', 'tblTempVendorCDR_20' ) end [2025-03-31 13:57:22] Production.INFO: ProcessCDR(1,14803963,1,1,2) [2025-03-31 13:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:57:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:57:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:57:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803963', 'tblTempUsageDetail_20' ) start [2025-03-31 13:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803963', 'tblTempUsageDetail_20' ) end [2025-03-31 13:57:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 13:57:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 13:57:28] Production.INFO: ==26096== Releasing lock... [2025-03-31 13:57:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 13:57:28] Production.INFO: 70.5 MB #Memory Used# [2025-03-31 13:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 10:58:04 [end_date_ymd] => 2025-03-31 13:58:04 [RateCDR] => 1 ) [2025-03-31 13:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 10:58:04' and `end` < '2025-03-31 13:58:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 13:58:18] Production.INFO: count ==5649 [2025-03-31 13:58:20] Production.ERROR: pbx CDR StartTime 2025-03-31 10:58:04 - End Time 2025-03-31 13:58:04 [2025-03-31 13:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 13:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803968', 'tblTempUsageDetail_20' ) start [2025-03-31 13:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803968', 'tblTempUsageDetail_20' ) end [2025-03-31 13:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803968', 'tblTempVendorCDR_20' ) start [2025-03-31 13:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803968', 'tblTempVendorCDR_20' ) end [2025-03-31 13:58:21] Production.INFO: ProcessCDR(1,14803968,1,1,2) [2025-03-31 13:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803968', 'tblTempUsageDetail_20' ) start [2025-03-31 13:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803968', 'tblTempUsageDetail_20' ) end [2025-03-31 13:58:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 13:58:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 13:58:26] Production.INFO: ==26168== Releasing lock... [2025-03-31 13:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 13:58:26] Production.INFO: 70.25 MB #Memory Used# [2025-03-31 13:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 10:59:05 [end_date_ymd] => 2025-03-31 13:59:05 [RateCDR] => 1 ) [2025-03-31 13:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 10:59:05' and `end` < '2025-03-31 13:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 13:59:19] Production.INFO: count ==5646 [2025-03-31 13:59:22] Production.ERROR: pbx CDR StartTime 2025-03-31 10:59:05 - End Time 2025-03-31 13:59:05 [2025-03-31 13:59:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 13:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803973', 'tblTempUsageDetail_20' ) start [2025-03-31 13:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803973', 'tblTempUsageDetail_20' ) end [2025-03-31 13:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803973', 'tblTempVendorCDR_20' ) start [2025-03-31 13:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803973', 'tblTempVendorCDR_20' ) end [2025-03-31 13:59:22] Production.INFO: ProcessCDR(1,14803973,1,1,2) [2025-03-31 13:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:59:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 13:59:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 13:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803973', 'tblTempUsageDetail_20' ) start [2025-03-31 13:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803973', 'tblTempUsageDetail_20' ) end [2025-03-31 13:59:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 13:59:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 13:59:27] Production.INFO: ==26240== Releasing lock... [2025-03-31 13:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 13:59:27] Production.INFO: 70.25 MB #Memory Used# [2025-03-31 14:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 11:00:06 [end_date_ymd] => 2025-03-31 14:00:06 [RateCDR] => 1 ) [2025-03-31 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-31 11:00:06' and `end` < '2025-03-31 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-31 14:00:19] Production.INFO: count ==5659 [2025-03-31 14:00:22] Production.ERROR: pbx CDR StartTime 2025-03-31 11:00:06 - End Time 2025-03-31 14:00:06 [2025-03-31 14:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 14:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803979', 'tblTempUsageDetail_20' ) start [2025-03-31 14:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803979', 'tblTempUsageDetail_20' ) end [2025-03-31 14:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803979', 'tblTempVendorCDR_20' ) start [2025-03-31 14:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803979', 'tblTempVendorCDR_20' ) end [2025-03-31 14:00:22] Production.INFO: ProcessCDR(1,14803979,1,1,2) [2025-03-31 14:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803979', 'tblTempUsageDetail_20' ) start [2025-03-31 14:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803979', 'tblTempUsageDetail_20' ) end [2025-03-31 14:00:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 14:00:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 14:00:28] Production.INFO: ==26317== Releasing lock... [2025-03-31 14:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 14:00:28] Production.INFO: 70.25 MB #Memory Used# [2025-03-31 14:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 11:01:05 [end_date_ymd] => 2025-03-31 14:01:05 [RateCDR] => 1 ) [2025-03-31 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-31 11:01:05' and `end` < '2025-03-31 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-31 14:01:19] Production.INFO: count ==5634 [2025-03-31 14:01:22] Production.ERROR: pbx CDR StartTime 2025-03-31 11:01:05 - End Time 2025-03-31 14:01:05 [2025-03-31 14:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 14:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803984', 'tblTempUsageDetail_20' ) start [2025-03-31 14:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803984', 'tblTempUsageDetail_20' ) end [2025-03-31 14:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803984', 'tblTempVendorCDR_20' ) start [2025-03-31 14:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803984', 'tblTempVendorCDR_20' ) end [2025-03-31 14:01:22] Production.INFO: ProcessCDR(1,14803984,1,1,2) [2025-03-31 14:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:01:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:01:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803984', 'tblTempUsageDetail_20' ) start [2025-03-31 14:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803984', 'tblTempUsageDetail_20' ) end [2025-03-31 14:01:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 14:01:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 14:01:28] Production.INFO: ==26449== Releasing lock... [2025-03-31 14:01:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 14:01:28] Production.INFO: 70.25 MB #Memory Used# [2025-03-31 14:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 11:02:06 [end_date_ymd] => 2025-03-31 14:02:06 [RateCDR] => 1 ) [2025-03-31 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-31 11:02:06' and `end` < '2025-03-31 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-31 14:02:20] Production.INFO: count ==5608 [2025-03-31 14:02:22] Production.ERROR: pbx CDR StartTime 2025-03-31 11:02:06 - End Time 2025-03-31 14:02:06 [2025-03-31 14:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 14:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803989', 'tblTempUsageDetail_20' ) start [2025-03-31 14:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803989', 'tblTempUsageDetail_20' ) end [2025-03-31 14:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803989', 'tblTempVendorCDR_20' ) start [2025-03-31 14:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803989', 'tblTempVendorCDR_20' ) end [2025-03-31 14:02:23] Production.INFO: ProcessCDR(1,14803989,1,1,2) [2025-03-31 14:02:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:02:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:02:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:02:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803989', 'tblTempUsageDetail_20' ) start [2025-03-31 14:02:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803989', 'tblTempUsageDetail_20' ) end [2025-03-31 14:02:29] Production.ERROR: pbx prc_insertCDR start [2025-03-31 14:02:29] Production.ERROR: pbx prc_insertCDR end [2025-03-31 14:02:29] Production.INFO: ==26527== Releasing lock... [2025-03-31 14:02:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 14:02:29] Production.INFO: 70 MB #Memory Used# [2025-03-31 14:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 11:03:06 [end_date_ymd] => 2025-03-31 14:03:06 [RateCDR] => 1 ) [2025-03-31 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-31 11:03:06' and `end` < '2025-03-31 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-31 14:03:19] Production.INFO: count ==5579 [2025-03-31 14:03:22] Production.ERROR: pbx CDR StartTime 2025-03-31 11:03:06 - End Time 2025-03-31 14:03:06 [2025-03-31 14:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 14:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803994', 'tblTempUsageDetail_20' ) start [2025-03-31 14:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803994', 'tblTempUsageDetail_20' ) end [2025-03-31 14:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803994', 'tblTempVendorCDR_20' ) start [2025-03-31 14:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803994', 'tblTempVendorCDR_20' ) end [2025-03-31 14:03:23] Production.INFO: ProcessCDR(1,14803994,1,1,2) [2025-03-31 14:03:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:03:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:03:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:03:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803994', 'tblTempUsageDetail_20' ) start [2025-03-31 14:03:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803994', 'tblTempUsageDetail_20' ) end [2025-03-31 14:03:29] Production.ERROR: pbx prc_insertCDR start [2025-03-31 14:03:29] Production.ERROR: pbx prc_insertCDR end [2025-03-31 14:03:29] Production.INFO: ==26603== Releasing lock... [2025-03-31 14:03:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 14:03:29] Production.INFO: 69.75 MB #Memory Used# [2025-03-31 14:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 11:04:06 [end_date_ymd] => 2025-03-31 14:04:06 [RateCDR] => 1 ) [2025-03-31 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-31 11:04:06' and `end` < '2025-03-31 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-31 14:04:20] Production.INFO: count ==5572 [2025-03-31 14:04:23] Production.ERROR: pbx CDR StartTime 2025-03-31 11:04:06 - End Time 2025-03-31 14:04:06 [2025-03-31 14:04:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 14:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803999', 'tblTempUsageDetail_20' ) start [2025-03-31 14:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14803999', 'tblTempUsageDetail_20' ) end [2025-03-31 14:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803999', 'tblTempVendorCDR_20' ) start [2025-03-31 14:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14803999', 'tblTempVendorCDR_20' ) end [2025-03-31 14:04:23] Production.INFO: ProcessCDR(1,14803999,1,1,2) [2025-03-31 14:04:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14803999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:04:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14803999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:04:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14803999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:04:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14803999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:04:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803999', 'tblTempUsageDetail_20' ) start [2025-03-31 14:04:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14803999', 'tblTempUsageDetail_20' ) end [2025-03-31 14:04:29] Production.ERROR: pbx prc_insertCDR start [2025-03-31 14:04:29] Production.ERROR: pbx prc_insertCDR end [2025-03-31 14:04:29] Production.INFO: ==26685== Releasing lock... [2025-03-31 14:04:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 14:04:29] Production.INFO: 69.75 MB #Memory Used# [2025-03-31 14:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 11:05:05 [end_date_ymd] => 2025-03-31 14:05:05 [RateCDR] => 1 ) [2025-03-31 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-31 11:05:05' and `end` < '2025-03-31 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-31 14:05:19] Production.INFO: count ==5555 [2025-03-31 14:05:22] Production.ERROR: pbx CDR StartTime 2025-03-31 11:05:05 - End Time 2025-03-31 14:05:05 [2025-03-31 14:05:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 14:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804004', 'tblTempUsageDetail_20' ) start [2025-03-31 14:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804004', 'tblTempUsageDetail_20' ) end [2025-03-31 14:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804004', 'tblTempVendorCDR_20' ) start [2025-03-31 14:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804004', 'tblTempVendorCDR_20' ) end [2025-03-31 14:05:22] Production.INFO: ProcessCDR(1,14804004,1,1,2) [2025-03-31 14:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:05:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:05:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804004', 'tblTempUsageDetail_20' ) start [2025-03-31 14:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804004', 'tblTempUsageDetail_20' ) end [2025-03-31 14:05:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 14:05:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 14:05:28] Production.INFO: ==26759== Releasing lock... [2025-03-31 14:05:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 14:05:28] Production.INFO: 69.5 MB #Memory Used# [2025-03-31 14:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 11:06:06 [end_date_ymd] => 2025-03-31 14:06:06 [RateCDR] => 1 ) [2025-03-31 14: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-31 11:06:06' and `end` < '2025-03-31 14: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-31 14:06:19] Production.INFO: count ==5567 [2025-03-31 14:06:22] Production.ERROR: pbx CDR StartTime 2025-03-31 11:06:06 - End Time 2025-03-31 14:06:06 [2025-03-31 14:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 14:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804009', 'tblTempUsageDetail_20' ) start [2025-03-31 14:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804009', 'tblTempUsageDetail_20' ) end [2025-03-31 14:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804009', 'tblTempVendorCDR_20' ) start [2025-03-31 14:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804009', 'tblTempVendorCDR_20' ) end [2025-03-31 14:06:22] Production.INFO: ProcessCDR(1,14804009,1,1,2) [2025-03-31 14:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804009', 'tblTempUsageDetail_20' ) start [2025-03-31 14:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804009', 'tblTempUsageDetail_20' ) end [2025-03-31 14:06:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 14:06:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 14:06:27] Production.INFO: ==26835== Releasing lock... [2025-03-31 14:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 14:06:27] Production.INFO: 69.75 MB #Memory Used# [2025-03-31 14:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 11:07:05 [end_date_ymd] => 2025-03-31 14:07:05 [RateCDR] => 1 ) [2025-03-31 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-31 11:07:05' and `end` < '2025-03-31 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-31 14:07:19] Production.INFO: count ==5569 [2025-03-31 14:07:22] Production.ERROR: pbx CDR StartTime 2025-03-31 11:07:05 - End Time 2025-03-31 14:07:05 [2025-03-31 14:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 14:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804014', 'tblTempUsageDetail_20' ) start [2025-03-31 14:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804014', 'tblTempUsageDetail_20' ) end [2025-03-31 14:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804014', 'tblTempVendorCDR_20' ) start [2025-03-31 14:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804014', 'tblTempVendorCDR_20' ) end [2025-03-31 14:07:22] Production.INFO: ProcessCDR(1,14804014,1,1,2) [2025-03-31 14:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:07:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:07:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804014', 'tblTempUsageDetail_20' ) start [2025-03-31 14:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804014', 'tblTempUsageDetail_20' ) end [2025-03-31 14:07:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 14:07:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 14:07:27] Production.INFO: ==26913== Releasing lock... [2025-03-31 14:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 14:07:27] Production.INFO: 69.75 MB #Memory Used# [2025-03-31 14:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 11:08:06 [end_date_ymd] => 2025-03-31 14:08:06 [RateCDR] => 1 ) [2025-03-31 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-31 11:08:06' and `end` < '2025-03-31 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-31 14:08:20] Production.INFO: count ==5562 [2025-03-31 14:08:22] Production.ERROR: pbx CDR StartTime 2025-03-31 11:08:06 - End Time 2025-03-31 14:08:06 [2025-03-31 14:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 14:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804019', 'tblTempUsageDetail_20' ) start [2025-03-31 14:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804019', 'tblTempUsageDetail_20' ) end [2025-03-31 14:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804019', 'tblTempVendorCDR_20' ) start [2025-03-31 14:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804019', 'tblTempVendorCDR_20' ) end [2025-03-31 14:08:22] Production.INFO: ProcessCDR(1,14804019,1,1,2) [2025-03-31 14:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804019', 'tblTempUsageDetail_20' ) start [2025-03-31 14:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804019', 'tblTempUsageDetail_20' ) end [2025-03-31 14:08:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 14:08:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 14:08:27] Production.INFO: ==26997== Releasing lock... [2025-03-31 14:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 14:08:27] Production.INFO: 69.75 MB #Memory Used# [2025-03-31 14:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 11:09:05 [end_date_ymd] => 2025-03-31 14:09:05 [RateCDR] => 1 ) [2025-03-31 14:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 11:09:05' and `end` < '2025-03-31 14:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 14:09:19] Production.INFO: count ==5566 [2025-03-31 14:09:21] Production.ERROR: pbx CDR StartTime 2025-03-31 11:09:05 - End Time 2025-03-31 14:09:05 [2025-03-31 14:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 14:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804024', 'tblTempUsageDetail_20' ) start [2025-03-31 14:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804024', 'tblTempUsageDetail_20' ) end [2025-03-31 14:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804024', 'tblTempVendorCDR_20' ) start [2025-03-31 14:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804024', 'tblTempVendorCDR_20' ) end [2025-03-31 14:09:21] Production.INFO: ProcessCDR(1,14804024,1,1,2) [2025-03-31 14:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804024', 'tblTempUsageDetail_20' ) start [2025-03-31 14:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804024', 'tblTempUsageDetail_20' ) end [2025-03-31 14:09:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 14:09:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 14:09:26] Production.INFO: ==27086== Releasing lock... [2025-03-31 14:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 14:09:26] Production.INFO: 69.75 MB #Memory Used# [2025-03-31 14:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 11:10:06 [end_date_ymd] => 2025-03-31 14:10:06 [RateCDR] => 1 ) [2025-03-31 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-31 11:10:06' and `end` < '2025-03-31 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-31 14:10:20] Production.INFO: count ==5580 [2025-03-31 14:10:23] Production.ERROR: pbx CDR StartTime 2025-03-31 11:10:06 - End Time 2025-03-31 14:10:06 [2025-03-31 14:10:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 14:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804030', 'tblTempUsageDetail_20' ) start [2025-03-31 14:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804030', 'tblTempUsageDetail_20' ) end [2025-03-31 14:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804030', 'tblTempVendorCDR_20' ) start [2025-03-31 14:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804030', 'tblTempVendorCDR_20' ) end [2025-03-31 14:10:23] Production.INFO: ProcessCDR(1,14804030,1,1,2) [2025-03-31 14:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804030', 'tblTempUsageDetail_20' ) start [2025-03-31 14:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804030', 'tblTempUsageDetail_20' ) end [2025-03-31 14:10:29] Production.ERROR: pbx prc_insertCDR start [2025-03-31 14:10:29] Production.ERROR: pbx prc_insertCDR end [2025-03-31 14:10:29] Production.INFO: ==27171== Releasing lock... [2025-03-31 14:10:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 14:10:29] Production.INFO: 69.75 MB #Memory Used# [2025-03-31 14:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 11:11:05 [end_date_ymd] => 2025-03-31 14:11:05 [RateCDR] => 1 ) [2025-03-31 14: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-31 11:11:05' and `end` < '2025-03-31 14: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-31 14:11:19] Production.INFO: count ==5601 [2025-03-31 14:11:21] Production.ERROR: pbx CDR StartTime 2025-03-31 11:11:05 - End Time 2025-03-31 14:11:05 [2025-03-31 14:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 14:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804035', 'tblTempUsageDetail_20' ) start [2025-03-31 14:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804035', 'tblTempUsageDetail_20' ) end [2025-03-31 14:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804035', 'tblTempVendorCDR_20' ) start [2025-03-31 14:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804035', 'tblTempVendorCDR_20' ) end [2025-03-31 14:11:21] Production.INFO: ProcessCDR(1,14804035,1,1,2) [2025-03-31 14:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804035', 'tblTempUsageDetail_20' ) start [2025-03-31 14:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804035', 'tblTempUsageDetail_20' ) end [2025-03-31 14:11:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 14:11:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 14:11:27] Production.INFO: ==27262== Releasing lock... [2025-03-31 14:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 14:11:27] Production.INFO: 70 MB #Memory Used# [2025-03-31 14:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 11:12:05 [end_date_ymd] => 2025-03-31 14:12:05 [RateCDR] => 1 ) [2025-03-31 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-31 11:12:05' and `end` < '2025-03-31 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-31 14:12:19] Production.INFO: count ==5629 [2025-03-31 14:12:22] Production.ERROR: pbx CDR StartTime 2025-03-31 11:12:05 - End Time 2025-03-31 14:12:05 [2025-03-31 14:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 14:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804040', 'tblTempUsageDetail_20' ) start [2025-03-31 14:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804040', 'tblTempUsageDetail_20' ) end [2025-03-31 14:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804040', 'tblTempVendorCDR_20' ) start [2025-03-31 14:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804040', 'tblTempVendorCDR_20' ) end [2025-03-31 14:12:22] Production.INFO: ProcessCDR(1,14804040,1,1,2) [2025-03-31 14:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804040', 'tblTempUsageDetail_20' ) start [2025-03-31 14:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804040', 'tblTempUsageDetail_20' ) end [2025-03-31 14:12:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 14:12:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 14:12:27] Production.INFO: ==27349== Releasing lock... [2025-03-31 14:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 14:12:27] Production.INFO: 70.25 MB #Memory Used# [2025-03-31 14:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 11:13:05 [end_date_ymd] => 2025-03-31 14:13:05 [RateCDR] => 1 ) [2025-03-31 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-31 11:13:05' and `end` < '2025-03-31 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-31 14:13:19] Production.INFO: count ==5632 [2025-03-31 14:13:22] Production.ERROR: pbx CDR StartTime 2025-03-31 11:13:05 - End Time 2025-03-31 14:13:05 [2025-03-31 14:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 14:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804045', 'tblTempUsageDetail_20' ) start [2025-03-31 14:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804045', 'tblTempUsageDetail_20' ) end [2025-03-31 14:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804045', 'tblTempVendorCDR_20' ) start [2025-03-31 14:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804045', 'tblTempVendorCDR_20' ) end [2025-03-31 14:13:22] Production.INFO: ProcessCDR(1,14804045,1,1,2) [2025-03-31 14:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804045', 'tblTempUsageDetail_20' ) start [2025-03-31 14:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804045', 'tblTempUsageDetail_20' ) end [2025-03-31 14:13:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 14:13:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 14:13:27] Production.INFO: ==27434== Releasing lock... [2025-03-31 14:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 14:13:27] Production.INFO: 70.25 MB #Memory Used# [2025-03-31 14:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 11:14:05 [end_date_ymd] => 2025-03-31 14:14:05 [RateCDR] => 1 ) [2025-03-31 14:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 11:14:05' and `end` < '2025-03-31 14:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 14:14:19] Production.INFO: count ==5616 [2025-03-31 14:14:21] Production.ERROR: pbx CDR StartTime 2025-03-31 11:14:05 - End Time 2025-03-31 14:14:05 [2025-03-31 14:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 14:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804050', 'tblTempUsageDetail_20' ) start [2025-03-31 14:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804050', 'tblTempUsageDetail_20' ) end [2025-03-31 14:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804050', 'tblTempVendorCDR_20' ) start [2025-03-31 14:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804050', 'tblTempVendorCDR_20' ) end [2025-03-31 14:14:21] Production.INFO: ProcessCDR(1,14804050,1,1,2) [2025-03-31 14:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804050', 'tblTempUsageDetail_20' ) start [2025-03-31 14:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804050', 'tblTempUsageDetail_20' ) end [2025-03-31 14:14:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 14:14:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 14:14:27] Production.INFO: ==27520== Releasing lock... [2025-03-31 14:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 14:14:27] Production.INFO: 70 MB #Memory Used# [2025-03-31 14:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 11:15:05 [end_date_ymd] => 2025-03-31 14:15:05 [RateCDR] => 1 ) [2025-03-31 14:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 11:15:05' and `end` < '2025-03-31 14:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 14:15:19] Production.INFO: count ==5618 [2025-03-31 14:15:21] Production.ERROR: pbx CDR StartTime 2025-03-31 11:15:05 - End Time 2025-03-31 14:15:05 [2025-03-31 14:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 14:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804055', 'tblTempUsageDetail_20' ) start [2025-03-31 14:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804055', 'tblTempUsageDetail_20' ) end [2025-03-31 14:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804055', 'tblTempVendorCDR_20' ) start [2025-03-31 14:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804055', 'tblTempVendorCDR_20' ) end [2025-03-31 14:15:22] Production.INFO: ProcessCDR(1,14804055,1,1,2) [2025-03-31 14:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804055', 'tblTempUsageDetail_20' ) start [2025-03-31 14:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804055', 'tblTempUsageDetail_20' ) end [2025-03-31 14:15:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 14:15:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 14:15:27] Production.INFO: ==27610== Releasing lock... [2025-03-31 14:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 14:15:27] Production.INFO: 70 MB #Memory Used# [2025-03-31 14:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 11:16:05 [end_date_ymd] => 2025-03-31 14:16:05 [RateCDR] => 1 ) [2025-03-31 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-31 11:16:05' and `end` < '2025-03-31 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-31 14:16:19] Production.INFO: count ==5612 [2025-03-31 14:16:21] Production.ERROR: pbx CDR StartTime 2025-03-31 11:16:05 - End Time 2025-03-31 14:16:05 [2025-03-31 14:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 14:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804060', 'tblTempUsageDetail_20' ) start [2025-03-31 14:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804060', 'tblTempUsageDetail_20' ) end [2025-03-31 14:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804060', 'tblTempVendorCDR_20' ) start [2025-03-31 14:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804060', 'tblTempVendorCDR_20' ) end [2025-03-31 14:16:22] Production.INFO: ProcessCDR(1,14804060,1,1,2) [2025-03-31 14:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804060', 'tblTempUsageDetail_20' ) start [2025-03-31 14:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804060', 'tblTempUsageDetail_20' ) end [2025-03-31 14:16:25] Production.ERROR: pbx prc_insertCDR start [2025-03-31 14:16:25] Production.ERROR: pbx prc_insertCDR end [2025-03-31 14:16:25] Production.INFO: ==27697== Releasing lock... [2025-03-31 14:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 14:16:25] Production.INFO: 70 MB #Memory Used# [2025-03-31 14:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 11:17:04 [end_date_ymd] => 2025-03-31 14:17:04 [RateCDR] => 1 ) [2025-03-31 14: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-31 11:17:04' and `end` < '2025-03-31 14: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-31 14:17:19] Production.INFO: count ==5630 [2025-03-31 14:17:21] Production.ERROR: pbx CDR StartTime 2025-03-31 11:17:04 - End Time 2025-03-31 14:17:04 [2025-03-31 14:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 14:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804065', 'tblTempUsageDetail_20' ) start [2025-03-31 14:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804065', 'tblTempUsageDetail_20' ) end [2025-03-31 14:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804065', 'tblTempVendorCDR_20' ) start [2025-03-31 14:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804065', 'tblTempVendorCDR_20' ) end [2025-03-31 14:17:21] Production.INFO: ProcessCDR(1,14804065,1,1,2) [2025-03-31 14:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804065', 'tblTempUsageDetail_20' ) start [2025-03-31 14:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804065', 'tblTempUsageDetail_20' ) end [2025-03-31 14:17:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 14:17:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 14:17:27] Production.INFO: ==27820== Releasing lock... [2025-03-31 14:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 14:17:27] Production.INFO: 70.25 MB #Memory Used# [2025-03-31 14:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 11:18:06 [end_date_ymd] => 2025-03-31 14:18:06 [RateCDR] => 1 ) [2025-03-31 14: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-31 11:18:06' and `end` < '2025-03-31 14: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-31 14:18:19] Production.INFO: count ==5659 [2025-03-31 14:18:22] Production.ERROR: pbx CDR StartTime 2025-03-31 11:18:06 - End Time 2025-03-31 14:18:06 [2025-03-31 14:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 14:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804070', 'tblTempUsageDetail_20' ) start [2025-03-31 14:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804070', 'tblTempUsageDetail_20' ) end [2025-03-31 14:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804070', 'tblTempVendorCDR_20' ) start [2025-03-31 14:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804070', 'tblTempVendorCDR_20' ) end [2025-03-31 14:18:22] Production.INFO: ProcessCDR(1,14804070,1,1,2) [2025-03-31 14:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:18:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:18:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804070', 'tblTempUsageDetail_20' ) start [2025-03-31 14:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804070', 'tblTempUsageDetail_20' ) end [2025-03-31 14:18:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 14:18:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 14:18:27] Production.INFO: ==27908== Releasing lock... [2025-03-31 14:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 14:18:27] Production.INFO: 70.25 MB #Memory Used# [2025-03-31 14:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 11:19:06 [end_date_ymd] => 2025-03-31 14:19:06 [RateCDR] => 1 ) [2025-03-31 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-31 11:19:06' and `end` < '2025-03-31 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-31 14:19:20] Production.INFO: count ==5673 [2025-03-31 14:19:22] Production.ERROR: pbx CDR StartTime 2025-03-31 11:19:06 - End Time 2025-03-31 14:19:06 [2025-03-31 14:19:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 14:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804075', 'tblTempUsageDetail_20' ) start [2025-03-31 14:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804075', 'tblTempUsageDetail_20' ) end [2025-03-31 14:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804075', 'tblTempVendorCDR_20' ) start [2025-03-31 14:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804075', 'tblTempVendorCDR_20' ) end [2025-03-31 14:19:22] Production.INFO: ProcessCDR(1,14804075,1,1,2) [2025-03-31 14:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:19:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:19:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804075', 'tblTempUsageDetail_20' ) start [2025-03-31 14:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804075', 'tblTempUsageDetail_20' ) end [2025-03-31 14:19:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 14:19:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 14:19:27] Production.INFO: ==27999== Releasing lock... [2025-03-31 14:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 14:19:27] Production.INFO: 70.5 MB #Memory Used# [2025-03-31 14:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 11:20:06 [end_date_ymd] => 2025-03-31 14:20:06 [RateCDR] => 1 ) [2025-03-31 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-31 11:20:06' and `end` < '2025-03-31 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-31 14:20:20] Production.INFO: count ==5655 [2025-03-31 14:20:23] Production.ERROR: pbx CDR StartTime 2025-03-31 11:20:06 - End Time 2025-03-31 14:20:06 [2025-03-31 14:20:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 14:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804081', 'tblTempUsageDetail_20' ) start [2025-03-31 14:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804081', 'tblTempUsageDetail_20' ) end [2025-03-31 14:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804081', 'tblTempVendorCDR_20' ) start [2025-03-31 14:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804081', 'tblTempVendorCDR_20' ) end [2025-03-31 14:20:23] Production.INFO: ProcessCDR(1,14804081,1,1,2) [2025-03-31 14:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804081', 'tblTempUsageDetail_20' ) start [2025-03-31 14:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804081', 'tblTempUsageDetail_20' ) end [2025-03-31 14:20:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 14:20:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 14:20:28] Production.INFO: ==28085== Releasing lock... [2025-03-31 14:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 14:20:28] Production.INFO: 70.25 MB #Memory Used# [2025-03-31 14:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 11:21:06 [end_date_ymd] => 2025-03-31 14:21:06 [RateCDR] => 1 ) [2025-03-31 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-31 11:21:06' and `end` < '2025-03-31 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-31 14:21:20] Production.INFO: count ==5658 [2025-03-31 14:21:22] Production.ERROR: pbx CDR StartTime 2025-03-31 11:21:06 - End Time 2025-03-31 14:21:06 [2025-03-31 14:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 14:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804086', 'tblTempUsageDetail_20' ) start [2025-03-31 14:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804086', 'tblTempUsageDetail_20' ) end [2025-03-31 14:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804086', 'tblTempVendorCDR_20' ) start [2025-03-31 14:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804086', 'tblTempVendorCDR_20' ) end [2025-03-31 14:21:22] Production.INFO: ProcessCDR(1,14804086,1,1,2) [2025-03-31 14:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:21:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:21:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804086', 'tblTempUsageDetail_20' ) start [2025-03-31 14:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804086', 'tblTempUsageDetail_20' ) end [2025-03-31 14:21:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 14:21:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 14:21:27] Production.INFO: ==28173== Releasing lock... [2025-03-31 14:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 14:21:27] Production.INFO: 70.25 MB #Memory Used# [2025-03-31 14:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 11:22:05 [end_date_ymd] => 2025-03-31 14:22:05 [RateCDR] => 1 ) [2025-03-31 14:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 11:22:05' and `end` < '2025-03-31 14:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 14:22:19] Production.INFO: count ==5675 [2025-03-31 14:22:22] Production.ERROR: pbx CDR StartTime 2025-03-31 11:22:05 - End Time 2025-03-31 14:22:05 [2025-03-31 14:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 14:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804091', 'tblTempUsageDetail_20' ) start [2025-03-31 14:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804091', 'tblTempUsageDetail_20' ) end [2025-03-31 14:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804091', 'tblTempVendorCDR_20' ) start [2025-03-31 14:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804091', 'tblTempVendorCDR_20' ) end [2025-03-31 14:22:22] Production.INFO: ProcessCDR(1,14804091,1,1,2) [2025-03-31 14:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804091', 'tblTempUsageDetail_20' ) start [2025-03-31 14:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804091', 'tblTempUsageDetail_20' ) end [2025-03-31 14:22:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 14:22:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 14:22:27] Production.INFO: ==28260== Releasing lock... [2025-03-31 14:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 14:22:27] Production.INFO: 70.5 MB #Memory Used# [2025-03-31 14:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 11:23:06 [end_date_ymd] => 2025-03-31 14:23:06 [RateCDR] => 1 ) [2025-03-31 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-31 11:23:06' and `end` < '2025-03-31 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-31 14:23:19] Production.INFO: count ==5672 [2025-03-31 14:23:22] Production.ERROR: pbx CDR StartTime 2025-03-31 11:23:06 - End Time 2025-03-31 14:23:06 [2025-03-31 14:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 14:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804096', 'tblTempUsageDetail_20' ) start [2025-03-31 14:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804096', 'tblTempUsageDetail_20' ) end [2025-03-31 14:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804096', 'tblTempVendorCDR_20' ) start [2025-03-31 14:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804096', 'tblTempVendorCDR_20' ) end [2025-03-31 14:23:22] Production.INFO: ProcessCDR(1,14804096,1,1,2) [2025-03-31 14:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:23:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:23:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804096', 'tblTempUsageDetail_20' ) start [2025-03-31 14:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804096', 'tblTempUsageDetail_20' ) end [2025-03-31 14:23:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 14:23:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 14:23:27] Production.INFO: ==28347== Releasing lock... [2025-03-31 14:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 14:23:27] Production.INFO: 70.5 MB #Memory Used# [2025-03-31 14:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 11:24:05 [end_date_ymd] => 2025-03-31 14:24:05 [RateCDR] => 1 ) [2025-03-31 14:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 11:24:05' and `end` < '2025-03-31 14:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 14:24:19] Production.INFO: count ==5685 [2025-03-31 14:24:22] Production.ERROR: pbx CDR StartTime 2025-03-31 11:24:05 - End Time 2025-03-31 14:24:05 [2025-03-31 14:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 14:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804101', 'tblTempUsageDetail_20' ) start [2025-03-31 14:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804101', 'tblTempUsageDetail_20' ) end [2025-03-31 14:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804101', 'tblTempVendorCDR_20' ) start [2025-03-31 14:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804101', 'tblTempVendorCDR_20' ) end [2025-03-31 14:24:22] Production.INFO: ProcessCDR(1,14804101,1,1,2) [2025-03-31 14:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804101', 'tblTempUsageDetail_20' ) start [2025-03-31 14:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804101', 'tblTempUsageDetail_20' ) end [2025-03-31 14:24:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 14:24:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 14:24:27] Production.INFO: ==28437== Releasing lock... [2025-03-31 14:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 14:24:27] Production.INFO: 70.5 MB #Memory Used# [2025-03-31 14:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 11:25:06 [end_date_ymd] => 2025-03-31 14:25:06 [RateCDR] => 1 ) [2025-03-31 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-31 11:25:06' and `end` < '2025-03-31 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-31 14:25:20] Production.INFO: count ==5689 [2025-03-31 14:25:22] Production.ERROR: pbx CDR StartTime 2025-03-31 11:25:06 - End Time 2025-03-31 14:25:06 [2025-03-31 14:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804106', 'tblTempUsageDetail_20' ) start [2025-03-31 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804106', 'tblTempUsageDetail_20' ) end [2025-03-31 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804106', 'tblTempVendorCDR_20' ) start [2025-03-31 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804106', 'tblTempVendorCDR_20' ) end [2025-03-31 14:25:22] Production.INFO: ProcessCDR(1,14804106,1,1,2) [2025-03-31 14:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804106', 'tblTempUsageDetail_20' ) start [2025-03-31 14:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804106', 'tblTempUsageDetail_20' ) end [2025-03-31 14:25:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 14:25:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 14:25:27] Production.INFO: ==28525== Releasing lock... [2025-03-31 14:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 14:25:27] Production.INFO: 70.5 MB #Memory Used# [2025-03-31 14:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 11:26:05 [end_date_ymd] => 2025-03-31 14:26:05 [RateCDR] => 1 ) [2025-03-31 14:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 11:26:05' and `end` < '2025-03-31 14:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 14:26:19] Production.INFO: count ==5673 [2025-03-31 14:26:22] Production.ERROR: pbx CDR StartTime 2025-03-31 11:26:05 - End Time 2025-03-31 14:26:05 [2025-03-31 14:26:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 14:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804111', 'tblTempUsageDetail_20' ) start [2025-03-31 14:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804111', 'tblTempUsageDetail_20' ) end [2025-03-31 14:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804111', 'tblTempVendorCDR_20' ) start [2025-03-31 14:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804111', 'tblTempVendorCDR_20' ) end [2025-03-31 14:26:22] Production.INFO: ProcessCDR(1,14804111,1,1,2) [2025-03-31 14:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804111', 'tblTempUsageDetail_20' ) start [2025-03-31 14:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804111', 'tblTempUsageDetail_20' ) end [2025-03-31 14:26:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 14:26:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 14:26:27] Production.INFO: ==28618== Releasing lock... [2025-03-31 14:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 14:26:27] Production.INFO: 70.5 MB #Memory Used# [2025-03-31 14:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 11:27:06 [end_date_ymd] => 2025-03-31 14:27:06 [RateCDR] => 1 ) [2025-03-31 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-31 11:27:06' and `end` < '2025-03-31 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-31 14:27:20] Production.INFO: count ==5676 [2025-03-31 14:27:22] Production.ERROR: pbx CDR StartTime 2025-03-31 11:27:06 - End Time 2025-03-31 14:27:06 [2025-03-31 14:27:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 14:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804116', 'tblTempUsageDetail_20' ) start [2025-03-31 14:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804116', 'tblTempUsageDetail_20' ) end [2025-03-31 14:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804116', 'tblTempVendorCDR_20' ) start [2025-03-31 14:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804116', 'tblTempVendorCDR_20' ) end [2025-03-31 14:27:22] Production.INFO: ProcessCDR(1,14804116,1,1,2) [2025-03-31 14:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804116', 'tblTempUsageDetail_20' ) start [2025-03-31 14:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804116', 'tblTempUsageDetail_20' ) end [2025-03-31 14:27:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 14:27:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 14:27:26] Production.INFO: ==28707== Releasing lock... [2025-03-31 14:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 14:27:26] Production.INFO: 70.5 MB #Memory Used# [2025-03-31 14:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 11:28:06 [end_date_ymd] => 2025-03-31 14:28:06 [RateCDR] => 1 ) [2025-03-31 14: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-31 11:28:06' and `end` < '2025-03-31 14: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-31 14:28:19] Production.INFO: count ==5665 [2025-03-31 14:28:22] Production.ERROR: pbx CDR StartTime 2025-03-31 11:28:06 - End Time 2025-03-31 14:28:06 [2025-03-31 14:28:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 14:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804121', 'tblTempUsageDetail_20' ) start [2025-03-31 14:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804121', 'tblTempUsageDetail_20' ) end [2025-03-31 14:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804121', 'tblTempVendorCDR_20' ) start [2025-03-31 14:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804121', 'tblTempVendorCDR_20' ) end [2025-03-31 14:28:22] Production.INFO: ProcessCDR(1,14804121,1,1,2) [2025-03-31 14:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:28:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:28:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804121', 'tblTempUsageDetail_20' ) start [2025-03-31 14:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804121', 'tblTempUsageDetail_20' ) end [2025-03-31 14:28:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 14:28:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 14:28:27] Production.INFO: ==28796== Releasing lock... [2025-03-31 14:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 14:28:27] Production.INFO: 70.5 MB #Memory Used# [2025-03-31 14:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 11:29:05 [end_date_ymd] => 2025-03-31 14:29:05 [RateCDR] => 1 ) [2025-03-31 14:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 11:29:05' and `end` < '2025-03-31 14:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 14:29:19] Production.INFO: count ==5601 [2025-03-31 14:29:21] Production.ERROR: pbx CDR StartTime 2025-03-31 11:29:05 - End Time 2025-03-31 14:29:05 [2025-03-31 14:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 14:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804126', 'tblTempUsageDetail_20' ) start [2025-03-31 14:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804126', 'tblTempUsageDetail_20' ) end [2025-03-31 14:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804126', 'tblTempVendorCDR_20' ) start [2025-03-31 14:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804126', 'tblTempVendorCDR_20' ) end [2025-03-31 14:29:21] Production.INFO: ProcessCDR(1,14804126,1,1,2) [2025-03-31 14:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804126', 'tblTempUsageDetail_20' ) start [2025-03-31 14:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804126', 'tblTempUsageDetail_20' ) end [2025-03-31 14:29:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 14:29:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 14:29:26] Production.INFO: ==28885== Releasing lock... [2025-03-31 14:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 14:29:26] Production.INFO: 70 MB #Memory Used# [2025-03-31 14:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 11:30:06 [end_date_ymd] => 2025-03-31 14:30:06 [RateCDR] => 1 ) [2025-03-31 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-31 11:30:06' and `end` < '2025-03-31 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-31 14:30:20] Production.INFO: count ==5567 [2025-03-31 14:30:23] Production.ERROR: pbx CDR StartTime 2025-03-31 11:30:06 - End Time 2025-03-31 14:30:06 [2025-03-31 14:30:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 14:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804132', 'tblTempUsageDetail_20' ) start [2025-03-31 14:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804132', 'tblTempUsageDetail_20' ) end [2025-03-31 14:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804132', 'tblTempVendorCDR_20' ) start [2025-03-31 14:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804132', 'tblTempVendorCDR_20' ) end [2025-03-31 14:30:23] Production.INFO: ProcessCDR(1,14804132,1,1,2) [2025-03-31 14:30:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:30:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:30:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:30:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804132', 'tblTempUsageDetail_20' ) start [2025-03-31 14:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804132', 'tblTempUsageDetail_20' ) end [2025-03-31 14:30:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 14:30:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 14:30:28] Production.INFO: ==28974== Releasing lock... [2025-03-31 14:30:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 14:30:28] Production.INFO: 69.75 MB #Memory Used# [2025-03-31 14:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 11:31:05 [end_date_ymd] => 2025-03-31 14:31:05 [RateCDR] => 1 ) [2025-03-31 14:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 11:31:05' and `end` < '2025-03-31 14:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 14:31:19] Production.INFO: count ==5542 [2025-03-31 14:31:21] Production.ERROR: pbx CDR StartTime 2025-03-31 11:31:05 - End Time 2025-03-31 14:31:05 [2025-03-31 14:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 14:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804137', 'tblTempUsageDetail_20' ) start [2025-03-31 14:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804137', 'tblTempUsageDetail_20' ) end [2025-03-31 14:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804137', 'tblTempVendorCDR_20' ) start [2025-03-31 14:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804137', 'tblTempVendorCDR_20' ) end [2025-03-31 14:31:22] Production.INFO: ProcessCDR(1,14804137,1,1,2) [2025-03-31 14:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804137', 'tblTempUsageDetail_20' ) start [2025-03-31 14:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804137', 'tblTempUsageDetail_20' ) end [2025-03-31 14:31:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 14:31:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 14:31:27] Production.INFO: ==29063== Releasing lock... [2025-03-31 14:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 14:31:27] Production.INFO: 69.5 MB #Memory Used# [2025-03-31 14:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 11:32:05 [end_date_ymd] => 2025-03-31 14:32:05 [RateCDR] => 1 ) [2025-03-31 14:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 11:32:05' and `end` < '2025-03-31 14:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 14:32:19] Production.INFO: count ==5534 [2025-03-31 14:32:21] Production.ERROR: pbx CDR StartTime 2025-03-31 11:32:05 - End Time 2025-03-31 14:32:05 [2025-03-31 14:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 14:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804142', 'tblTempUsageDetail_20' ) start [2025-03-31 14:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804142', 'tblTempUsageDetail_20' ) end [2025-03-31 14:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804142', 'tblTempVendorCDR_20' ) start [2025-03-31 14:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804142', 'tblTempVendorCDR_20' ) end [2025-03-31 14:32:22] Production.INFO: ProcessCDR(1,14804142,1,1,2) [2025-03-31 14:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804142', 'tblTempUsageDetail_20' ) start [2025-03-31 14:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804142', 'tblTempUsageDetail_20' ) end [2025-03-31 14:32:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 14:32:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 14:32:27] Production.INFO: ==29188== Releasing lock... [2025-03-31 14:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 14:32:27] Production.INFO: 69.5 MB #Memory Used# [2025-03-31 14:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 11:33:06 [end_date_ymd] => 2025-03-31 14:33:06 [RateCDR] => 1 ) [2025-03-31 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-31 11:33:06' and `end` < '2025-03-31 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-31 14:33:19] Production.INFO: count ==5527 [2025-03-31 14:33:22] Production.ERROR: pbx CDR StartTime 2025-03-31 11:33:06 - End Time 2025-03-31 14:33:06 [2025-03-31 14:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 14:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804147', 'tblTempUsageDetail_20' ) start [2025-03-31 14:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804147', 'tblTempUsageDetail_20' ) end [2025-03-31 14:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804147', 'tblTempVendorCDR_20' ) start [2025-03-31 14:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804147', 'tblTempVendorCDR_20' ) end [2025-03-31 14:33:22] Production.INFO: ProcessCDR(1,14804147,1,1,2) [2025-03-31 14:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804147', 'tblTempUsageDetail_20' ) start [2025-03-31 14:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804147', 'tblTempUsageDetail_20' ) end [2025-03-31 14:33:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 14:33:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 14:33:27] Production.INFO: ==29275== Releasing lock... [2025-03-31 14:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 14:33:27] Production.INFO: 69.5 MB #Memory Used# [2025-03-31 14:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 11:34:05 [end_date_ymd] => 2025-03-31 14:34:05 [RateCDR] => 1 ) [2025-03-31 14:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 11:34:05' and `end` < '2025-03-31 14:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 14:34:19] Production.INFO: count ==5517 [2025-03-31 14:34:22] Production.ERROR: pbx CDR StartTime 2025-03-31 11:34:05 - End Time 2025-03-31 14:34:05 [2025-03-31 14:34:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 14:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804152', 'tblTempUsageDetail_20' ) start [2025-03-31 14:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804152', 'tblTempUsageDetail_20' ) end [2025-03-31 14:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804152', 'tblTempVendorCDR_20' ) start [2025-03-31 14:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804152', 'tblTempVendorCDR_20' ) end [2025-03-31 14:34:22] Production.INFO: ProcessCDR(1,14804152,1,1,2) [2025-03-31 14:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:34:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:34:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804152', 'tblTempUsageDetail_20' ) start [2025-03-31 14:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804152', 'tblTempUsageDetail_20' ) end [2025-03-31 14:34:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 14:34:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 14:34:28] Production.INFO: ==29364== Releasing lock... [2025-03-31 14:34:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 14:34:28] Production.INFO: 69.25 MB #Memory Used# [2025-03-31 14:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 11:35:05 [end_date_ymd] => 2025-03-31 14:35:05 [RateCDR] => 1 ) [2025-03-31 14:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 11:35:05' and `end` < '2025-03-31 14:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 14:35:19] Production.INFO: count ==5507 [2025-03-31 14:35:21] Production.ERROR: pbx CDR StartTime 2025-03-31 11:35:05 - End Time 2025-03-31 14:35:05 [2025-03-31 14:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 14:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804157', 'tblTempUsageDetail_20' ) start [2025-03-31 14:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804157', 'tblTempUsageDetail_20' ) end [2025-03-31 14:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804157', 'tblTempVendorCDR_20' ) start [2025-03-31 14:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804157', 'tblTempVendorCDR_20' ) end [2025-03-31 14:35:22] Production.INFO: ProcessCDR(1,14804157,1,1,2) [2025-03-31 14:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:35:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804157', 'tblTempUsageDetail_20' ) start [2025-03-31 14:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804157', 'tblTempUsageDetail_20' ) end [2025-03-31 14:35:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 14:35:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 14:35:27] Production.INFO: ==29455== Releasing lock... [2025-03-31 14:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 14:35:27] Production.INFO: 69.25 MB #Memory Used# [2025-03-31 14:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 11:36:05 [end_date_ymd] => 2025-03-31 14:36:05 [RateCDR] => 1 ) [2025-03-31 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-31 11:36:05' and `end` < '2025-03-31 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-31 14:36:19] Production.INFO: count ==5496 [2025-03-31 14:36:22] Production.ERROR: pbx CDR StartTime 2025-03-31 11:36:05 - End Time 2025-03-31 14:36:05 [2025-03-31 14:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 14:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804162', 'tblTempUsageDetail_20' ) start [2025-03-31 14:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804162', 'tblTempUsageDetail_20' ) end [2025-03-31 14:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804162', 'tblTempVendorCDR_20' ) start [2025-03-31 14:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804162', 'tblTempVendorCDR_20' ) end [2025-03-31 14:36:22] Production.INFO: ProcessCDR(1,14804162,1,1,2) [2025-03-31 14:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:36:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:36:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804162', 'tblTempUsageDetail_20' ) start [2025-03-31 14:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804162', 'tblTempUsageDetail_20' ) end [2025-03-31 14:36:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 14:36:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 14:36:27] Production.INFO: ==29547== Releasing lock... [2025-03-31 14:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 14:36:27] Production.INFO: 69.25 MB #Memory Used# [2025-03-31 14:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 11:37:06 [end_date_ymd] => 2025-03-31 14:37:06 [RateCDR] => 1 ) [2025-03-31 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-31 11:37:06' and `end` < '2025-03-31 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-31 14:37:19] Production.INFO: count ==5490 [2025-03-31 14:37:22] Production.ERROR: pbx CDR StartTime 2025-03-31 11:37:06 - End Time 2025-03-31 14:37:06 [2025-03-31 14:37:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 14:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804167', 'tblTempUsageDetail_20' ) start [2025-03-31 14:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804167', 'tblTempUsageDetail_20' ) end [2025-03-31 14:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804167', 'tblTempVendorCDR_20' ) start [2025-03-31 14:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804167', 'tblTempVendorCDR_20' ) end [2025-03-31 14:37:22] Production.INFO: ProcessCDR(1,14804167,1,1,2) [2025-03-31 14:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:37:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:37:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:37:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804167', 'tblTempUsageDetail_20' ) start [2025-03-31 14:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804167', 'tblTempUsageDetail_20' ) end [2025-03-31 14:37:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 14:37:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 14:37:28] Production.INFO: ==29637== Releasing lock... [2025-03-31 14:37:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 14:37:28] Production.INFO: 69 MB #Memory Used# [2025-03-31 14:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 11:38:06 [end_date_ymd] => 2025-03-31 14:38:06 [RateCDR] => 1 ) [2025-03-31 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-31 11:38:06' and `end` < '2025-03-31 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-31 14:38:19] Production.INFO: count ==5490 [2025-03-31 14:38:22] Production.ERROR: pbx CDR StartTime 2025-03-31 11:38:06 - End Time 2025-03-31 14:38:06 [2025-03-31 14:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 14:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804172', 'tblTempUsageDetail_20' ) start [2025-03-31 14:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804172', 'tblTempUsageDetail_20' ) end [2025-03-31 14:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804172', 'tblTempVendorCDR_20' ) start [2025-03-31 14:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804172', 'tblTempVendorCDR_20' ) end [2025-03-31 14:38:22] Production.INFO: ProcessCDR(1,14804172,1,1,2) [2025-03-31 14:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804172', 'tblTempUsageDetail_20' ) start [2025-03-31 14:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804172', 'tblTempUsageDetail_20' ) end [2025-03-31 14:38:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 14:38:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 14:38:27] Production.INFO: ==29724== Releasing lock... [2025-03-31 14:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 14:38:27] Production.INFO: 69 MB #Memory Used# [2025-03-31 14:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 11:39:05 [end_date_ymd] => 2025-03-31 14:39:05 [RateCDR] => 1 ) [2025-03-31 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-31 11:39:05' and `end` < '2025-03-31 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-31 14:39:19] Production.INFO: count ==5466 [2025-03-31 14:39:21] Production.ERROR: pbx CDR StartTime 2025-03-31 11:39:05 - End Time 2025-03-31 14:39:05 [2025-03-31 14:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 14:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804177', 'tblTempUsageDetail_20' ) start [2025-03-31 14:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804177', 'tblTempUsageDetail_20' ) end [2025-03-31 14:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804177', 'tblTempVendorCDR_20' ) start [2025-03-31 14:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804177', 'tblTempVendorCDR_20' ) end [2025-03-31 14:39:21] Production.INFO: ProcessCDR(1,14804177,1,1,2) [2025-03-31 14:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804177', 'tblTempUsageDetail_20' ) start [2025-03-31 14:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804177', 'tblTempUsageDetail_20' ) end [2025-03-31 14:39:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 14:39:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 14:39:27] Production.INFO: ==29814== Releasing lock... [2025-03-31 14:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 14:39:27] Production.INFO: 69 MB #Memory Used# [2025-03-31 14:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 11:40:06 [end_date_ymd] => 2025-03-31 14:40:06 [RateCDR] => 1 ) [2025-03-31 14:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 11:40:06' and `end` < '2025-03-31 14:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 14:40:19] Production.INFO: count ==5470 [2025-03-31 14:40:22] Production.ERROR: pbx CDR StartTime 2025-03-31 11:40:06 - End Time 2025-03-31 14:40:06 [2025-03-31 14:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 14:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804183', 'tblTempUsageDetail_20' ) start [2025-03-31 14:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804183', 'tblTempUsageDetail_20' ) end [2025-03-31 14:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804183', 'tblTempVendorCDR_20' ) start [2025-03-31 14:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804183', 'tblTempVendorCDR_20' ) end [2025-03-31 14:40:22] Production.INFO: ProcessCDR(1,14804183,1,1,2) [2025-03-31 14:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804183', 'tblTempUsageDetail_20' ) start [2025-03-31 14:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804183', 'tblTempUsageDetail_20' ) end [2025-03-31 14:40:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 14:40:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 14:40:27] Production.INFO: ==29903== Releasing lock... [2025-03-31 14:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 14:40:27] Production.INFO: 69 MB #Memory Used# [2025-03-31 14:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 11:41:06 [end_date_ymd] => 2025-03-31 14:41:06 [RateCDR] => 1 ) [2025-03-31 14:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 11:41:06' and `end` < '2025-03-31 14:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 14:41:20] Production.INFO: count ==5471 [2025-03-31 14:41:22] Production.ERROR: pbx CDR StartTime 2025-03-31 11:41:06 - End Time 2025-03-31 14:41:06 [2025-03-31 14:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 14:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804188', 'tblTempUsageDetail_20' ) start [2025-03-31 14:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804188', 'tblTempUsageDetail_20' ) end [2025-03-31 14:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804188', 'tblTempVendorCDR_20' ) start [2025-03-31 14:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804188', 'tblTempVendorCDR_20' ) end [2025-03-31 14:41:22] Production.INFO: ProcessCDR(1,14804188,1,1,2) [2025-03-31 14:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:41:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:41:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804188', 'tblTempUsageDetail_20' ) start [2025-03-31 14:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804188', 'tblTempUsageDetail_20' ) end [2025-03-31 14:41:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 14:41:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 14:41:28] Production.INFO: ==29997== Releasing lock... [2025-03-31 14:41:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 14:41:28] Production.INFO: 69 MB #Memory Used# [2025-03-31 14:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 11:42:05 [end_date_ymd] => 2025-03-31 14:42:05 [RateCDR] => 1 ) [2025-03-31 14:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 11:42:05' and `end` < '2025-03-31 14:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 14:42:19] Production.INFO: count ==5451 [2025-03-31 14:42:21] Production.ERROR: pbx CDR StartTime 2025-03-31 11:42:05 - End Time 2025-03-31 14:42:05 [2025-03-31 14:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 14:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804193', 'tblTempUsageDetail_20' ) start [2025-03-31 14:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804193', 'tblTempUsageDetail_20' ) end [2025-03-31 14:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804193', 'tblTempVendorCDR_20' ) start [2025-03-31 14:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804193', 'tblTempVendorCDR_20' ) end [2025-03-31 14:42:21] Production.INFO: ProcessCDR(1,14804193,1,1,2) [2025-03-31 14:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804193', 'tblTempUsageDetail_20' ) start [2025-03-31 14:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804193', 'tblTempUsageDetail_20' ) end [2025-03-31 14:42:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 14:42:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 14:42:27] Production.INFO: ==30086== Releasing lock... [2025-03-31 14:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 14:42:27] Production.INFO: 68.75 MB #Memory Used# [2025-03-31 14:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 11:43:06 [end_date_ymd] => 2025-03-31 14:43:06 [RateCDR] => 1 ) [2025-03-31 14: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-31 11:43:06' and `end` < '2025-03-31 14: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-31 14:43:19] Production.INFO: count ==5464 [2025-03-31 14:43:22] Production.ERROR: pbx CDR StartTime 2025-03-31 11:43:06 - End Time 2025-03-31 14:43:06 [2025-03-31 14:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 14:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804198', 'tblTempUsageDetail_20' ) start [2025-03-31 14:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804198', 'tblTempUsageDetail_20' ) end [2025-03-31 14:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804198', 'tblTempVendorCDR_20' ) start [2025-03-31 14:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804198', 'tblTempVendorCDR_20' ) end [2025-03-31 14:43:22] Production.INFO: ProcessCDR(1,14804198,1,1,2) [2025-03-31 14:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804198', 'tblTempUsageDetail_20' ) start [2025-03-31 14:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804198', 'tblTempUsageDetail_20' ) end [2025-03-31 14:43:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 14:43:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 14:43:27] Production.INFO: ==30174== Releasing lock... [2025-03-31 14:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 14:43:27] Production.INFO: 69 MB #Memory Used# [2025-03-31 14:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 11:44:05 [end_date_ymd] => 2025-03-31 14:44:05 [RateCDR] => 1 ) [2025-03-31 14:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 11:44:05' and `end` < '2025-03-31 14:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 14:44:19] Production.INFO: count ==5453 [2025-03-31 14:44:21] Production.ERROR: pbx CDR StartTime 2025-03-31 11:44:05 - End Time 2025-03-31 14:44:05 [2025-03-31 14:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 14:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804203', 'tblTempUsageDetail_20' ) start [2025-03-31 14:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804203', 'tblTempUsageDetail_20' ) end [2025-03-31 14:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804203', 'tblTempVendorCDR_20' ) start [2025-03-31 14:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804203', 'tblTempVendorCDR_20' ) end [2025-03-31 14:44:21] Production.INFO: ProcessCDR(1,14804203,1,1,2) [2025-03-31 14:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804203', 'tblTempUsageDetail_20' ) start [2025-03-31 14:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804203', 'tblTempUsageDetail_20' ) end [2025-03-31 14:44:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 14:44:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 14:44:27] Production.INFO: ==30256== Releasing lock... [2025-03-31 14:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 14:44:27] Production.INFO: 68.75 MB #Memory Used# [2025-03-31 14:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 11:45:06 [end_date_ymd] => 2025-03-31 14:45:06 [RateCDR] => 1 ) [2025-03-31 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-31 11:45:06' and `end` < '2025-03-31 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-31 14:45:20] Production.INFO: count ==5411 [2025-03-31 14:45:22] Production.ERROR: pbx CDR StartTime 2025-03-31 11:45:06 - End Time 2025-03-31 14:45:06 [2025-03-31 14:45:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 14:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804208', 'tblTempUsageDetail_20' ) start [2025-03-31 14:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804208', 'tblTempUsageDetail_20' ) end [2025-03-31 14:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804208', 'tblTempVendorCDR_20' ) start [2025-03-31 14:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804208', 'tblTempVendorCDR_20' ) end [2025-03-31 14:45:23] Production.INFO: ProcessCDR(1,14804208,1,1,2) [2025-03-31 14:45:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:45:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:45:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:45:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804208', 'tblTempUsageDetail_20' ) start [2025-03-31 14:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804208', 'tblTempUsageDetail_20' ) end [2025-03-31 14:45:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 14:45:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 14:45:28] Production.INFO: ==30340== Releasing lock... [2025-03-31 14:45:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 14:45:28] Production.INFO: 68.5 MB #Memory Used# [2025-03-31 14:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 11:46:05 [end_date_ymd] => 2025-03-31 14:46:05 [RateCDR] => 1 ) [2025-03-31 14:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 11:46:05' and `end` < '2025-03-31 14:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 14:46:19] Production.INFO: count ==5369 [2025-03-31 14:46:21] Production.ERROR: pbx CDR StartTime 2025-03-31 11:46:05 - End Time 2025-03-31 14:46:05 [2025-03-31 14:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 14:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804213', 'tblTempUsageDetail_20' ) start [2025-03-31 14:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804213', 'tblTempUsageDetail_20' ) end [2025-03-31 14:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804213', 'tblTempVendorCDR_20' ) start [2025-03-31 14:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804213', 'tblTempVendorCDR_20' ) end [2025-03-31 14:46:21] Production.INFO: ProcessCDR(1,14804213,1,1,2) [2025-03-31 14:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804213', 'tblTempUsageDetail_20' ) start [2025-03-31 14:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804213', 'tblTempUsageDetail_20' ) end [2025-03-31 14:46:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 14:46:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 14:46:26] Production.INFO: ==30424== Releasing lock... [2025-03-31 14:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 14:46:26] Production.INFO: 68.25 MB #Memory Used# [2025-03-31 14:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 11:47:06 [end_date_ymd] => 2025-03-31 14:47:06 [RateCDR] => 1 ) [2025-03-31 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-31 11:47:06' and `end` < '2025-03-31 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-31 14:47:19] Production.INFO: count ==5338 [2025-03-31 14:47:22] Production.ERROR: pbx CDR StartTime 2025-03-31 11:47:06 - End Time 2025-03-31 14:47:06 [2025-03-31 14:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 14:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804218', 'tblTempUsageDetail_20' ) start [2025-03-31 14:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804218', 'tblTempUsageDetail_20' ) end [2025-03-31 14:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804218', 'tblTempVendorCDR_20' ) start [2025-03-31 14:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804218', 'tblTempVendorCDR_20' ) end [2025-03-31 14:47:22] Production.INFO: ProcessCDR(1,14804218,1,1,2) [2025-03-31 14:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:47:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:47:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:47:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804218', 'tblTempUsageDetail_20' ) start [2025-03-31 14:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804218', 'tblTempUsageDetail_20' ) end [2025-03-31 14:47:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 14:47:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 14:47:27] Production.INFO: ==30548== Releasing lock... [2025-03-31 14:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 14:47:27] Production.INFO: 68 MB #Memory Used# [2025-03-31 14:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 11:48:05 [end_date_ymd] => 2025-03-31 14:48:05 [RateCDR] => 1 ) [2025-03-31 14:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 11:48:05' and `end` < '2025-03-31 14:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 14:48:19] Production.INFO: count ==5295 [2025-03-31 14:48:21] Production.ERROR: pbx CDR StartTime 2025-03-31 11:48:05 - End Time 2025-03-31 14:48:05 [2025-03-31 14:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 14:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804223', 'tblTempUsageDetail_20' ) start [2025-03-31 14:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804223', 'tblTempUsageDetail_20' ) end [2025-03-31 14:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804223', 'tblTempVendorCDR_20' ) start [2025-03-31 14:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804223', 'tblTempVendorCDR_20' ) end [2025-03-31 14:48:21] Production.INFO: ProcessCDR(1,14804223,1,1,2) [2025-03-31 14:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804223', 'tblTempUsageDetail_20' ) start [2025-03-31 14:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804223', 'tblTempUsageDetail_20' ) end [2025-03-31 14:48:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 14:48:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 14:48:26] Production.INFO: ==30628== Releasing lock... [2025-03-31 14:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 14:48:26] Production.INFO: 67.75 MB #Memory Used# [2025-03-31 14:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 11:49:06 [end_date_ymd] => 2025-03-31 14:49:06 [RateCDR] => 1 ) [2025-03-31 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-31 11:49:06' and `end` < '2025-03-31 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-31 14:49:20] Production.INFO: count ==5274 [2025-03-31 14:49:22] Production.ERROR: pbx CDR StartTime 2025-03-31 11:49:06 - End Time 2025-03-31 14:49:06 [2025-03-31 14:49:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 14:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804228', 'tblTempUsageDetail_20' ) start [2025-03-31 14:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804228', 'tblTempUsageDetail_20' ) end [2025-03-31 14:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804228', 'tblTempVendorCDR_20' ) start [2025-03-31 14:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804228', 'tblTempVendorCDR_20' ) end [2025-03-31 14:49:22] Production.INFO: ProcessCDR(1,14804228,1,1,2) [2025-03-31 14:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:49:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:49:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:49:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804228', 'tblTempUsageDetail_20' ) start [2025-03-31 14:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804228', 'tblTempUsageDetail_20' ) end [2025-03-31 14:49:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 14:49:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 14:49:27] Production.INFO: ==30708== Releasing lock... [2025-03-31 14:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 14:49:27] Production.INFO: 67.5 MB #Memory Used# [2025-03-31 14:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 11:50:06 [end_date_ymd] => 2025-03-31 14:50:06 [RateCDR] => 1 ) [2025-03-31 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-31 11:50:06' and `end` < '2025-03-31 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-31 14:50:20] Production.INFO: count ==5221 [2025-03-31 14:50:22] Production.ERROR: pbx CDR StartTime 2025-03-31 11:50:06 - End Time 2025-03-31 14:50:06 [2025-03-31 14:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 14:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804234', 'tblTempUsageDetail_20' ) start [2025-03-31 14:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804234', 'tblTempUsageDetail_20' ) end [2025-03-31 14:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804234', 'tblTempVendorCDR_20' ) start [2025-03-31 14:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804234', 'tblTempVendorCDR_20' ) end [2025-03-31 14:50:22] Production.INFO: ProcessCDR(1,14804234,1,1,2) [2025-03-31 14:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:50:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804234', 'tblTempUsageDetail_20' ) start [2025-03-31 14:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804234', 'tblTempUsageDetail_20' ) end [2025-03-31 14:50:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 14:50:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 14:50:28] Production.INFO: ==30790== Releasing lock... [2025-03-31 14:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 14:50:28] Production.INFO: 67 MB #Memory Used# [2025-03-31 14:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 11:51:05 [end_date_ymd] => 2025-03-31 14:51:05 [RateCDR] => 1 ) [2025-03-31 14:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 11:51:05' and `end` < '2025-03-31 14:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 14:51:19] Production.INFO: count ==5163 [2025-03-31 14:51:21] Production.ERROR: pbx CDR StartTime 2025-03-31 11:51:05 - End Time 2025-03-31 14:51:05 [2025-03-31 14:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 14:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804239', 'tblTempUsageDetail_20' ) start [2025-03-31 14:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804239', 'tblTempUsageDetail_20' ) end [2025-03-31 14:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804239', 'tblTempVendorCDR_20' ) start [2025-03-31 14:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804239', 'tblTempVendorCDR_20' ) end [2025-03-31 14:51:21] Production.INFO: ProcessCDR(1,14804239,1,1,2) [2025-03-31 14:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804239', 'tblTempUsageDetail_20' ) start [2025-03-31 14:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804239', 'tblTempUsageDetail_20' ) end [2025-03-31 14:51:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 14:51:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 14:51:26] Production.INFO: ==30870== Releasing lock... [2025-03-31 14:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 14:51:26] Production.INFO: 66.75 MB #Memory Used# [2025-03-31 14:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 11:52:05 [end_date_ymd] => 2025-03-31 14:52:05 [RateCDR] => 1 ) [2025-03-31 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-31 11:52:05' and `end` < '2025-03-31 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-31 14:52:19] Production.INFO: count ==5150 [2025-03-31 14:52:21] Production.ERROR: pbx CDR StartTime 2025-03-31 11:52:05 - End Time 2025-03-31 14:52:05 [2025-03-31 14:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 14:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804244', 'tblTempUsageDetail_20' ) start [2025-03-31 14:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804244', 'tblTempUsageDetail_20' ) end [2025-03-31 14:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804244', 'tblTempVendorCDR_20' ) start [2025-03-31 14:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804244', 'tblTempVendorCDR_20' ) end [2025-03-31 14:52:21] Production.INFO: ProcessCDR(1,14804244,1,1,2) [2025-03-31 14:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804244', 'tblTempUsageDetail_20' ) start [2025-03-31 14:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804244', 'tblTempUsageDetail_20' ) end [2025-03-31 14:52:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 14:52:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 14:52:27] Production.INFO: ==30947== Releasing lock... [2025-03-31 14:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 14:52:27] Production.INFO: 66.5 MB #Memory Used# [2025-03-31 14:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 11:53:06 [end_date_ymd] => 2025-03-31 14:53:06 [RateCDR] => 1 ) [2025-03-31 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-31 11:53:06' and `end` < '2025-03-31 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-31 14:53:19] Production.INFO: count ==5148 [2025-03-31 14:53:22] Production.ERROR: pbx CDR StartTime 2025-03-31 11:53:06 - End Time 2025-03-31 14:53:06 [2025-03-31 14:53:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 14:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804249', 'tblTempUsageDetail_20' ) start [2025-03-31 14:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804249', 'tblTempUsageDetail_20' ) end [2025-03-31 14:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804249', 'tblTempVendorCDR_20' ) start [2025-03-31 14:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804249', 'tblTempVendorCDR_20' ) end [2025-03-31 14:53:22] Production.INFO: ProcessCDR(1,14804249,1,1,2) [2025-03-31 14:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:53:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804249', 'tblTempUsageDetail_20' ) start [2025-03-31 14:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804249', 'tblTempUsageDetail_20' ) end [2025-03-31 14:53:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 14:53:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 14:53:27] Production.INFO: ==31030== Releasing lock... [2025-03-31 14:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 14:53:27] Production.INFO: 66.5 MB #Memory Used# [2025-03-31 14:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 11:54:06 [end_date_ymd] => 2025-03-31 14:54:06 [RateCDR] => 1 ) [2025-03-31 14:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 11:54:06' and `end` < '2025-03-31 14:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 14:54:22] Production.INFO: count ==5129 [2025-03-31 14:54:25] Production.ERROR: pbx CDR StartTime 2025-03-31 11:54:06 - End Time 2025-03-31 14:54:06 [2025-03-31 14:54:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 14:54:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804254', 'tblTempUsageDetail_20' ) start [2025-03-31 14:54:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804254', 'tblTempUsageDetail_20' ) end [2025-03-31 14:54:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804254', 'tblTempVendorCDR_20' ) start [2025-03-31 14:54:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804254', 'tblTempVendorCDR_20' ) end [2025-03-31 14:54:25] Production.INFO: ProcessCDR(1,14804254,1,1,2) [2025-03-31 14:54:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:54:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:54:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:54:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:54:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804254', 'tblTempUsageDetail_20' ) start [2025-03-31 14:54:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804254', 'tblTempUsageDetail_20' ) end [2025-03-31 14:54:30] Production.ERROR: pbx prc_insertCDR start [2025-03-31 14:54:30] Production.ERROR: pbx prc_insertCDR end [2025-03-31 14:54:30] Production.INFO: ==31113== Releasing lock... [2025-03-31 14:54:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 14:54:30] Production.INFO: 66.5 MB #Memory Used# [2025-03-31 14:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 11:55:05 [end_date_ymd] => 2025-03-31 14:55:05 [RateCDR] => 1 ) [2025-03-31 14:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 11:55:05' and `end` < '2025-03-31 14:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 14:55:19] Production.INFO: count ==5115 [2025-03-31 14:55:22] Production.ERROR: pbx CDR StartTime 2025-03-31 11:55:05 - End Time 2025-03-31 14:55:05 [2025-03-31 14:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 14:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804259', 'tblTempUsageDetail_20' ) start [2025-03-31 14:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804259', 'tblTempUsageDetail_20' ) end [2025-03-31 14:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804259', 'tblTempVendorCDR_20' ) start [2025-03-31 14:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804259', 'tblTempVendorCDR_20' ) end [2025-03-31 14:55:22] Production.INFO: ProcessCDR(1,14804259,1,1,2) [2025-03-31 14:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:55:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:55:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:55:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804259', 'tblTempUsageDetail_20' ) start [2025-03-31 14:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804259', 'tblTempUsageDetail_20' ) end [2025-03-31 14:55:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 14:55:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 14:55:28] Production.INFO: ==31194== Releasing lock... [2025-03-31 14:55:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 14:55:28] Production.INFO: 66.25 MB #Memory Used# [2025-03-31 14:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 11:56:06 [end_date_ymd] => 2025-03-31 14:56:06 [RateCDR] => 1 ) [2025-03-31 14: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-31 11:56:06' and `end` < '2025-03-31 14: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-31 14:56:20] Production.INFO: count ==5125 [2025-03-31 14:56:22] Production.ERROR: pbx CDR StartTime 2025-03-31 11:56:06 - End Time 2025-03-31 14:56:06 [2025-03-31 14:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 14:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804264', 'tblTempUsageDetail_20' ) start [2025-03-31 14:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804264', 'tblTempUsageDetail_20' ) end [2025-03-31 14:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804264', 'tblTempVendorCDR_20' ) start [2025-03-31 14:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804264', 'tblTempVendorCDR_20' ) end [2025-03-31 14:56:22] Production.INFO: ProcessCDR(1,14804264,1,1,2) [2025-03-31 14:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:56:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:56:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:56:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804264', 'tblTempUsageDetail_20' ) start [2025-03-31 14:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804264', 'tblTempUsageDetail_20' ) end [2025-03-31 14:56:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 14:56:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 14:56:28] Production.INFO: ==31279== Releasing lock... [2025-03-31 14:56:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 14:56:28] Production.INFO: 66.5 MB #Memory Used# [2025-03-31 14:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 11:57:05 [end_date_ymd] => 2025-03-31 14:57:05 [RateCDR] => 1 ) [2025-03-31 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-31 11:57:05' and `end` < '2025-03-31 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-31 14:57:19] Production.INFO: count ==5114 [2025-03-31 14:57:21] Production.ERROR: pbx CDR StartTime 2025-03-31 11:57:05 - End Time 2025-03-31 14:57:05 [2025-03-31 14:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804269', 'tblTempUsageDetail_20' ) start [2025-03-31 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804269', 'tblTempUsageDetail_20' ) end [2025-03-31 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804269', 'tblTempVendorCDR_20' ) start [2025-03-31 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804269', 'tblTempVendorCDR_20' ) end [2025-03-31 14:57:21] Production.INFO: ProcessCDR(1,14804269,1,1,2) [2025-03-31 14:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:57:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804269', 'tblTempUsageDetail_20' ) start [2025-03-31 14:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804269', 'tblTempUsageDetail_20' ) end [2025-03-31 14:57:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 14:57:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 14:57:27] Production.INFO: ==31359== Releasing lock... [2025-03-31 14:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 14:57:27] Production.INFO: 66.25 MB #Memory Used# [2025-03-31 14:58:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 11:58:07 [end_date_ymd] => 2025-03-31 14:58:07 [RateCDR] => 1 ) [2025-03-31 14: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-31 11:58:07' and `end` < '2025-03-31 14: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-31 14:58:21] Production.INFO: count ==5085 [2025-03-31 14:58:23] Production.ERROR: pbx CDR StartTime 2025-03-31 11:58:07 - End Time 2025-03-31 14:58:07 [2025-03-31 14:58:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 14:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804274', 'tblTempUsageDetail_20' ) start [2025-03-31 14:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804274', 'tblTempUsageDetail_20' ) end [2025-03-31 14:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804274', 'tblTempVendorCDR_20' ) start [2025-03-31 14:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804274', 'tblTempVendorCDR_20' ) end [2025-03-31 14:58:23] Production.INFO: ProcessCDR(1,14804274,1,1,2) [2025-03-31 14:58:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:58:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:58:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:58:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:58:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804274', 'tblTempUsageDetail_20' ) start [2025-03-31 14:58:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804274', 'tblTempUsageDetail_20' ) end [2025-03-31 14:58:29] Production.ERROR: pbx prc_insertCDR start [2025-03-31 14:58:29] Production.ERROR: pbx prc_insertCDR end [2025-03-31 14:58:29] Production.INFO: ==31439== Releasing lock... [2025-03-31 14:58:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 14:58:29] Production.INFO: 66 MB #Memory Used# [2025-03-31 14:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 11:59:05 [end_date_ymd] => 2025-03-31 14:59:05 [RateCDR] => 1 ) [2025-03-31 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-31 11:59:05' and `end` < '2025-03-31 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-31 14:59:20] Production.INFO: count ==5078 [2025-03-31 14:59:22] Production.ERROR: pbx CDR StartTime 2025-03-31 11:59:05 - End Time 2025-03-31 14:59:05 [2025-03-31 14:59:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 14:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804279', 'tblTempUsageDetail_20' ) start [2025-03-31 14:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804279', 'tblTempUsageDetail_20' ) end [2025-03-31 14:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804279', 'tblTempVendorCDR_20' ) start [2025-03-31 14:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804279', 'tblTempVendorCDR_20' ) end [2025-03-31 14:59:22] Production.INFO: ProcessCDR(1,14804279,1,1,2) [2025-03-31 14:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:59:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 14:59:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 14:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804279', 'tblTempUsageDetail_20' ) start [2025-03-31 14:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804279', 'tblTempUsageDetail_20' ) end [2025-03-31 14:59:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 14:59:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 14:59:28] Production.INFO: ==31522== Releasing lock... [2025-03-31 14:59:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 14:59:28] Production.INFO: 66 MB #Memory Used# [2025-03-31 15:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 12:00:07 [end_date_ymd] => 2025-03-31 15:00:07 [RateCDR] => 1 ) [2025-03-31 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-31 12:00:07' and `end` < '2025-03-31 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-31 15:00:21] Production.INFO: count ==5078 [2025-03-31 15:00:23] Production.ERROR: pbx CDR StartTime 2025-03-31 12:00:07 - End Time 2025-03-31 15:00:07 [2025-03-31 15:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804284', 'tblTempUsageDetail_20' ) start [2025-03-31 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804284', 'tblTempUsageDetail_20' ) end [2025-03-31 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804284', 'tblTempVendorCDR_20' ) start [2025-03-31 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804284', 'tblTempVendorCDR_20' ) end [2025-03-31 15:00:23] Production.INFO: ProcessCDR(1,14804284,1,1,2) [2025-03-31 15:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:00:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:00:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804284', 'tblTempUsageDetail_20' ) start [2025-03-31 15:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804284', 'tblTempUsageDetail_20' ) end [2025-03-31 15:00:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 15:00:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 15:00:29] Production.INFO: ==31605== Releasing lock... [2025-03-31 15:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 15:00:29] Production.INFO: 66 MB #Memory Used# [2025-03-31 15:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 12:01:05 [end_date_ymd] => 2025-03-31 15:01:05 [RateCDR] => 1 ) [2025-03-31 15:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 12:01:05' and `end` < '2025-03-31 15:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 15:01:19] Production.INFO: count ==5059 [2025-03-31 15:01:21] Production.ERROR: pbx CDR StartTime 2025-03-31 12:01:05 - End Time 2025-03-31 15:01:05 [2025-03-31 15:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 15:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804290', 'tblTempUsageDetail_20' ) start [2025-03-31 15:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804290', 'tblTempUsageDetail_20' ) end [2025-03-31 15:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804290', 'tblTempVendorCDR_20' ) start [2025-03-31 15:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804290', 'tblTempVendorCDR_20' ) end [2025-03-31 15:01:22] Production.INFO: ProcessCDR(1,14804290,1,1,2) [2025-03-31 15:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:01:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:01:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804290', 'tblTempUsageDetail_20' ) start [2025-03-31 15:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804290', 'tblTempUsageDetail_20' ) end [2025-03-31 15:01:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 15:01:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 15:01:27] Production.INFO: ==31694== Releasing lock... [2025-03-31 15:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 15:01:27] Production.INFO: 66 MB #Memory Used# [2025-03-31 15:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 12:02:06 [end_date_ymd] => 2025-03-31 15:02:06 [RateCDR] => 1 ) [2025-03-31 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-31 12:02:06' and `end` < '2025-03-31 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-31 15:02:20] Production.INFO: count ==5048 [2025-03-31 15:02:22] Production.ERROR: pbx CDR StartTime 2025-03-31 12:02:06 - End Time 2025-03-31 15:02:06 [2025-03-31 15:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 15:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804295', 'tblTempUsageDetail_20' ) start [2025-03-31 15:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804295', 'tblTempUsageDetail_20' ) end [2025-03-31 15:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804295', 'tblTempVendorCDR_20' ) start [2025-03-31 15:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804295', 'tblTempVendorCDR_20' ) end [2025-03-31 15:02:22] Production.INFO: ProcessCDR(1,14804295,1,1,2) [2025-03-31 15:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:02:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:02:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:02:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804295', 'tblTempUsageDetail_20' ) start [2025-03-31 15:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804295', 'tblTempUsageDetail_20' ) end [2025-03-31 15:02:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 15:02:29] Production.ERROR: pbx prc_insertCDR end [2025-03-31 15:02:29] Production.INFO: ==31855== Releasing lock... [2025-03-31 15:02:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 15:02:29] Production.INFO: 65.75 MB #Memory Used# [2025-03-31 15:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 12:03:06 [end_date_ymd] => 2025-03-31 15:03:06 [RateCDR] => 1 ) [2025-03-31 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-31 12:03:06' and `end` < '2025-03-31 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-31 15:03:20] Production.INFO: count ==5046 [2025-03-31 15:03:22] Production.ERROR: pbx CDR StartTime 2025-03-31 12:03:06 - End Time 2025-03-31 15:03:06 [2025-03-31 15:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 15:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804300', 'tblTempUsageDetail_20' ) start [2025-03-31 15:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804300', 'tblTempUsageDetail_20' ) end [2025-03-31 15:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804300', 'tblTempVendorCDR_20' ) start [2025-03-31 15:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804300', 'tblTempVendorCDR_20' ) end [2025-03-31 15:03:22] Production.INFO: ProcessCDR(1,14804300,1,1,2) [2025-03-31 15:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:03:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804300', 'tblTempUsageDetail_20' ) start [2025-03-31 15:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804300', 'tblTempUsageDetail_20' ) end [2025-03-31 15:03:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 15:03:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 15:03:28] Production.INFO: ==31975== Releasing lock... [2025-03-31 15:03:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 15:03:28] Production.INFO: 65.75 MB #Memory Used# [2025-03-31 15:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 12:04:05 [end_date_ymd] => 2025-03-31 15:04:05 [RateCDR] => 1 ) [2025-03-31 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-31 12:04:05' and `end` < '2025-03-31 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-31 15:04:19] Production.INFO: count ==5045 [2025-03-31 15:04:22] Production.ERROR: pbx CDR StartTime 2025-03-31 12:04:05 - End Time 2025-03-31 15:04:05 [2025-03-31 15:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 15:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804305', 'tblTempUsageDetail_20' ) start [2025-03-31 15:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804305', 'tblTempUsageDetail_20' ) end [2025-03-31 15:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804305', 'tblTempVendorCDR_20' ) start [2025-03-31 15:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804305', 'tblTempVendorCDR_20' ) end [2025-03-31 15:04:22] Production.INFO: ProcessCDR(1,14804305,1,1,2) [2025-03-31 15:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:04:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:04:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:04:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804305', 'tblTempUsageDetail_20' ) start [2025-03-31 15:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804305', 'tblTempUsageDetail_20' ) end [2025-03-31 15:04:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 15:04:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 15:04:28] Production.INFO: ==32053== Releasing lock... [2025-03-31 15:04:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 15:04:28] Production.INFO: 65.75 MB #Memory Used# [2025-03-31 15:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 12:05:06 [end_date_ymd] => 2025-03-31 15:05:06 [RateCDR] => 1 ) [2025-03-31 15:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 12:05:06' and `end` < '2025-03-31 15:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 15:05:20] Production.INFO: count ==5029 [2025-03-31 15:05:22] Production.ERROR: pbx CDR StartTime 2025-03-31 12:05:06 - End Time 2025-03-31 15:05:06 [2025-03-31 15:05:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 15:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804310', 'tblTempUsageDetail_20' ) start [2025-03-31 15:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804310', 'tblTempUsageDetail_20' ) end [2025-03-31 15:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804310', 'tblTempVendorCDR_20' ) start [2025-03-31 15:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804310', 'tblTempVendorCDR_20' ) end [2025-03-31 15:05:22] Production.INFO: ProcessCDR(1,14804310,1,1,2) [2025-03-31 15:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:05:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:05:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:05:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804310', 'tblTempUsageDetail_20' ) start [2025-03-31 15:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804310', 'tblTempUsageDetail_20' ) end [2025-03-31 15:05:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 15:05:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 15:05:28] Production.INFO: ==32216== Releasing lock... [2025-03-31 15:05:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 15:05:28] Production.INFO: 65.75 MB #Memory Used# [2025-03-31 15:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 12:06:06 [end_date_ymd] => 2025-03-31 15:06:06 [RateCDR] => 1 ) [2025-03-31 15:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 12:06:06' and `end` < '2025-03-31 15: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-31 15:06:20] Production.INFO: count ==5038 [2025-03-31 15:06:22] Production.ERROR: pbx CDR StartTime 2025-03-31 12:06:06 - End Time 2025-03-31 15:06:06 [2025-03-31 15:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 15:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804315', 'tblTempUsageDetail_20' ) start [2025-03-31 15:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804315', 'tblTempUsageDetail_20' ) end [2025-03-31 15:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804315', 'tblTempVendorCDR_20' ) start [2025-03-31 15:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804315', 'tblTempVendorCDR_20' ) end [2025-03-31 15:06:22] Production.INFO: ProcessCDR(1,14804315,1,1,2) [2025-03-31 15:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:06:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804315', 'tblTempUsageDetail_20' ) start [2025-03-31 15:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804315', 'tblTempUsageDetail_20' ) end [2025-03-31 15:06:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 15:06:29] Production.ERROR: pbx prc_insertCDR end [2025-03-31 15:06:29] Production.INFO: ==32299== Releasing lock... [2025-03-31 15:06:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 15:06:29] Production.INFO: 65.75 MB #Memory Used# [2025-03-31 15:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 12:07:05 [end_date_ymd] => 2025-03-31 15:07:05 [RateCDR] => 1 ) [2025-03-31 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-31 12:07:05' and `end` < '2025-03-31 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-31 15:07:19] Production.INFO: count ==5044 [2025-03-31 15:07:22] Production.ERROR: pbx CDR StartTime 2025-03-31 12:07:05 - End Time 2025-03-31 15:07:05 [2025-03-31 15:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 15:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804320', 'tblTempUsageDetail_20' ) start [2025-03-31 15:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804320', 'tblTempUsageDetail_20' ) end [2025-03-31 15:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804320', 'tblTempVendorCDR_20' ) start [2025-03-31 15:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804320', 'tblTempVendorCDR_20' ) end [2025-03-31 15:07:22] Production.INFO: ProcessCDR(1,14804320,1,1,2) [2025-03-31 15:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804320', 'tblTempUsageDetail_20' ) start [2025-03-31 15:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804320', 'tblTempUsageDetail_20' ) end [2025-03-31 15:07:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 15:07:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 15:07:27] Production.INFO: ==32381== Releasing lock... [2025-03-31 15:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 15:07:27] Production.INFO: 65.75 MB #Memory Used# [2025-03-31 15:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 12:08:05 [end_date_ymd] => 2025-03-31 15:08:05 [RateCDR] => 1 ) [2025-03-31 15:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 12:08:05' and `end` < '2025-03-31 15:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 15:08:19] Production.INFO: count ==5049 [2025-03-31 15:08:21] Production.ERROR: pbx CDR StartTime 2025-03-31 12:08:05 - End Time 2025-03-31 15:08:05 [2025-03-31 15:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 15:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804325', 'tblTempUsageDetail_20' ) start [2025-03-31 15:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804325', 'tblTempUsageDetail_20' ) end [2025-03-31 15:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804325', 'tblTempVendorCDR_20' ) start [2025-03-31 15:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804325', 'tblTempVendorCDR_20' ) end [2025-03-31 15:08:21] Production.INFO: ProcessCDR(1,14804325,1,1,2) [2025-03-31 15:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804325', 'tblTempUsageDetail_20' ) start [2025-03-31 15:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804325', 'tblTempUsageDetail_20' ) end [2025-03-31 15:08:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 15:08:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 15:08:27] Production.INFO: ==32539== Releasing lock... [2025-03-31 15:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 15:08:27] Production.INFO: 65.75 MB #Memory Used# [2025-03-31 15:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 12:09:05 [end_date_ymd] => 2025-03-31 15:09:05 [RateCDR] => 1 ) [2025-03-31 15:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 12:09:05' and `end` < '2025-03-31 15:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 15:09:19] Production.INFO: count ==5056 [2025-03-31 15:09:21] Production.ERROR: pbx CDR StartTime 2025-03-31 12:09:05 - End Time 2025-03-31 15:09:05 [2025-03-31 15:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 15:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804330', 'tblTempUsageDetail_20' ) start [2025-03-31 15:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804330', 'tblTempUsageDetail_20' ) end [2025-03-31 15:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804330', 'tblTempVendorCDR_20' ) start [2025-03-31 15:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804330', 'tblTempVendorCDR_20' ) end [2025-03-31 15:09:21] Production.INFO: ProcessCDR(1,14804330,1,1,2) [2025-03-31 15:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804330', 'tblTempUsageDetail_20' ) start [2025-03-31 15:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804330', 'tblTempUsageDetail_20' ) end [2025-03-31 15:09:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 15:09:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 15:09:26] Production.INFO: ==32631== Releasing lock... [2025-03-31 15:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 15:09:26] Production.INFO: 65.75 MB #Memory Used# [2025-03-31 15:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 12:10:07 [end_date_ymd] => 2025-03-31 15:10:07 [RateCDR] => 1 ) [2025-03-31 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-31 12:10:07' and `end` < '2025-03-31 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-31 15:10:21] Production.INFO: count ==5106 [2025-03-31 15:10:23] Production.ERROR: pbx CDR StartTime 2025-03-31 12:10:07 - End Time 2025-03-31 15:10:07 [2025-03-31 15:10:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 15:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804336', 'tblTempUsageDetail_20' ) start [2025-03-31 15:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804336', 'tblTempUsageDetail_20' ) end [2025-03-31 15:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804336', 'tblTempVendorCDR_20' ) start [2025-03-31 15:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804336', 'tblTempVendorCDR_20' ) end [2025-03-31 15:10:23] Production.INFO: ProcessCDR(1,14804336,1,1,2) [2025-03-31 15:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:10:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:10:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:10:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804336', 'tblTempUsageDetail_20' ) start [2025-03-31 15:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804336', 'tblTempUsageDetail_20' ) end [2025-03-31 15:10:29] Production.ERROR: pbx prc_insertCDR start [2025-03-31 15:10:29] Production.ERROR: pbx prc_insertCDR end [2025-03-31 15:10:29] Production.INFO: ==32741== Releasing lock... [2025-03-31 15:10:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 15:10:29] Production.INFO: 66.25 MB #Memory Used# [2025-03-31 15:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 12:11:05 [end_date_ymd] => 2025-03-31 15:11:05 [RateCDR] => 1 ) [2025-03-31 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-31 12:11:05' and `end` < '2025-03-31 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-31 15:11:19] Production.INFO: count ==5120 [2025-03-31 15:11:22] Production.ERROR: pbx CDR StartTime 2025-03-31 12:11:05 - End Time 2025-03-31 15:11:05 [2025-03-31 15:11:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 15:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804341', 'tblTempUsageDetail_20' ) start [2025-03-31 15:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804341', 'tblTempUsageDetail_20' ) end [2025-03-31 15:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804341', 'tblTempVendorCDR_20' ) start [2025-03-31 15:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804341', 'tblTempVendorCDR_20' ) end [2025-03-31 15:11:22] Production.INFO: ProcessCDR(1,14804341,1,1,2) [2025-03-31 15:11:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:11:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:11:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804341', 'tblTempUsageDetail_20' ) start [2025-03-31 15:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804341', 'tblTempUsageDetail_20' ) end [2025-03-31 15:11:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 15:11:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 15:11:27] Production.INFO: ==375== Releasing lock... [2025-03-31 15:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 15:11:27] Production.INFO: 66.25 MB #Memory Used# [2025-03-31 15:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 12:12:06 [end_date_ymd] => 2025-03-31 15:12:06 [RateCDR] => 1 ) [2025-03-31 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-31 12:12:06' and `end` < '2025-03-31 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-31 15:12:20] Production.INFO: count ==5136 [2025-03-31 15:12:22] Production.ERROR: pbx CDR StartTime 2025-03-31 12:12:06 - End Time 2025-03-31 15:12:06 [2025-03-31 15:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 15:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804346', 'tblTempUsageDetail_20' ) start [2025-03-31 15:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804346', 'tblTempUsageDetail_20' ) end [2025-03-31 15:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804346', 'tblTempVendorCDR_20' ) start [2025-03-31 15:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804346', 'tblTempVendorCDR_20' ) end [2025-03-31 15:12:22] Production.INFO: ProcessCDR(1,14804346,1,1,2) [2025-03-31 15:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:12:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:12:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:12:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804346', 'tblTempUsageDetail_20' ) start [2025-03-31 15:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804346', 'tblTempUsageDetail_20' ) end [2025-03-31 15:12:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 15:12:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 15:12:28] Production.INFO: ==541== Releasing lock... [2025-03-31 15:12:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 15:12:28] Production.INFO: 66.5 MB #Memory Used# [2025-03-31 15:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 12:13:05 [end_date_ymd] => 2025-03-31 15:13:05 [RateCDR] => 1 ) [2025-03-31 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-31 12:13:05' and `end` < '2025-03-31 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-31 15:13:19] Production.INFO: count ==5136 [2025-03-31 15:13:21] Production.ERROR: pbx CDR StartTime 2025-03-31 12:13:05 - End Time 2025-03-31 15:13:05 [2025-03-31 15:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 15:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804351', 'tblTempUsageDetail_20' ) start [2025-03-31 15:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804351', 'tblTempUsageDetail_20' ) end [2025-03-31 15:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804351', 'tblTempVendorCDR_20' ) start [2025-03-31 15:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804351', 'tblTempVendorCDR_20' ) end [2025-03-31 15:13:21] Production.INFO: ProcessCDR(1,14804351,1,1,2) [2025-03-31 15:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804351', 'tblTempUsageDetail_20' ) start [2025-03-31 15:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804351', 'tblTempUsageDetail_20' ) end [2025-03-31 15:13:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 15:13:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 15:13:27] Production.INFO: ==639== Releasing lock... [2025-03-31 15:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 15:13:27] Production.INFO: 66.5 MB #Memory Used# [2025-03-31 15:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 12:14:06 [end_date_ymd] => 2025-03-31 15:14:06 [RateCDR] => 1 ) [2025-03-31 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-31 12:14:06' and `end` < '2025-03-31 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-31 15:14:20] Production.INFO: count ==5180 [2025-03-31 15:14:22] Production.ERROR: pbx CDR StartTime 2025-03-31 12:14:06 - End Time 2025-03-31 15:14:06 [2025-03-31 15:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 15:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804356', 'tblTempUsageDetail_20' ) start [2025-03-31 15:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804356', 'tblTempUsageDetail_20' ) end [2025-03-31 15:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804356', 'tblTempVendorCDR_20' ) start [2025-03-31 15:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804356', 'tblTempVendorCDR_20' ) end [2025-03-31 15:14:22] Production.INFO: ProcessCDR(1,14804356,1,1,2) [2025-03-31 15:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804356', 'tblTempUsageDetail_20' ) start [2025-03-31 15:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804356', 'tblTempUsageDetail_20' ) end [2025-03-31 15:14:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 15:14:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 15:14:27] Production.INFO: ==749== Releasing lock... [2025-03-31 15:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 15:14:27] Production.INFO: 66.75 MB #Memory Used# [2025-03-31 15:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 12:15:06 [end_date_ymd] => 2025-03-31 15:15:06 [RateCDR] => 1 ) [2025-03-31 15:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 12:15:06' and `end` < '2025-03-31 15:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 15:15:19] Production.INFO: count ==5204 [2025-03-31 15:15:22] Production.ERROR: pbx CDR StartTime 2025-03-31 12:15:06 - End Time 2025-03-31 15:15:06 [2025-03-31 15:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 15:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804361', 'tblTempUsageDetail_20' ) start [2025-03-31 15:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804361', 'tblTempUsageDetail_20' ) end [2025-03-31 15:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804361', 'tblTempVendorCDR_20' ) start [2025-03-31 15:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804361', 'tblTempVendorCDR_20' ) end [2025-03-31 15:15:22] Production.INFO: ProcessCDR(1,14804361,1,1,2) [2025-03-31 15:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:15:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:15:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:15:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804361', 'tblTempUsageDetail_20' ) start [2025-03-31 15:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804361', 'tblTempUsageDetail_20' ) end [2025-03-31 15:15:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 15:15:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 15:15:28] Production.INFO: ==917== Releasing lock... [2025-03-31 15:15:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 15:15:28] Production.INFO: 67 MB #Memory Used# [2025-03-31 15:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 12:16:06 [end_date_ymd] => 2025-03-31 15:16:06 [RateCDR] => 1 ) [2025-03-31 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-31 12:16:06' and `end` < '2025-03-31 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-31 15:16:20] Production.INFO: count ==5184 [2025-03-31 15:16:23] Production.ERROR: pbx CDR StartTime 2025-03-31 12:16:06 - End Time 2025-03-31 15:16:06 [2025-03-31 15:16:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 15:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804366', 'tblTempUsageDetail_20' ) start [2025-03-31 15:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804366', 'tblTempUsageDetail_20' ) end [2025-03-31 15:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804366', 'tblTempVendorCDR_20' ) start [2025-03-31 15:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804366', 'tblTempVendorCDR_20' ) end [2025-03-31 15:16:23] Production.INFO: ProcessCDR(1,14804366,1,1,2) [2025-03-31 15:16:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:16:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:16:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:16:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:16:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804366', 'tblTempUsageDetail_20' ) start [2025-03-31 15:16:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804366', 'tblTempUsageDetail_20' ) end [2025-03-31 15:16:29] Production.ERROR: pbx prc_insertCDR start [2025-03-31 15:16:29] Production.ERROR: pbx prc_insertCDR end [2025-03-31 15:16:29] Production.INFO: ==997== Releasing lock... [2025-03-31 15:16:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 15:16:29] Production.INFO: 66.75 MB #Memory Used# [2025-03-31 15:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 12:17:06 [end_date_ymd] => 2025-03-31 15:17:06 [RateCDR] => 1 ) [2025-03-31 15: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-31 12:17:06' and `end` < '2025-03-31 15: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-31 15:17:19] Production.INFO: count ==5147 [2025-03-31 15:17:21] Production.ERROR: pbx CDR StartTime 2025-03-31 12:17:06 - End Time 2025-03-31 15:17:06 [2025-03-31 15:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804371', 'tblTempUsageDetail_20' ) start [2025-03-31 15:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804371', 'tblTempUsageDetail_20' ) end [2025-03-31 15:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804371', 'tblTempVendorCDR_20' ) start [2025-03-31 15:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804371', 'tblTempVendorCDR_20' ) end [2025-03-31 15:17:22] Production.INFO: ProcessCDR(1,14804371,1,1,2) [2025-03-31 15:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804371', 'tblTempUsageDetail_20' ) start [2025-03-31 15:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804371', 'tblTempUsageDetail_20' ) end [2025-03-31 15:17:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 15:17:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 15:17:27] Production.INFO: ==1084== Releasing lock... [2025-03-31 15:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 15:17:27] Production.INFO: 66.5 MB #Memory Used# [2025-03-31 15:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 12:18:06 [end_date_ymd] => 2025-03-31 15:18:06 [RateCDR] => 1 ) [2025-03-31 15: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-31 12:18:06' and `end` < '2025-03-31 15: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-31 15:18:20] Production.INFO: count ==5173 [2025-03-31 15:18:22] Production.ERROR: pbx CDR StartTime 2025-03-31 12:18:06 - End Time 2025-03-31 15:18:06 [2025-03-31 15:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 15:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804376', 'tblTempUsageDetail_20' ) start [2025-03-31 15:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804376', 'tblTempUsageDetail_20' ) end [2025-03-31 15:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804376', 'tblTempVendorCDR_20' ) start [2025-03-31 15:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804376', 'tblTempVendorCDR_20' ) end [2025-03-31 15:18:22] Production.INFO: ProcessCDR(1,14804376,1,1,2) [2025-03-31 15:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:18:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:18:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:18:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804376', 'tblTempUsageDetail_20' ) start [2025-03-31 15:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804376', 'tblTempUsageDetail_20' ) end [2025-03-31 15:18:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 15:18:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 15:18:28] Production.INFO: ==1219== Releasing lock... [2025-03-31 15:18:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 15:18:28] Production.INFO: 66.75 MB #Memory Used# [2025-03-31 15:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 12:19:05 [end_date_ymd] => 2025-03-31 15:19:05 [RateCDR] => 1 ) [2025-03-31 15:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 12:19:05' and `end` < '2025-03-31 15:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 15:19:19] Production.INFO: count ==5209 [2025-03-31 15:19:21] Production.ERROR: pbx CDR StartTime 2025-03-31 12:19:05 - End Time 2025-03-31 15:19:05 [2025-03-31 15:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 15:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804381', 'tblTempUsageDetail_20' ) start [2025-03-31 15:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804381', 'tblTempUsageDetail_20' ) end [2025-03-31 15:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804381', 'tblTempVendorCDR_20' ) start [2025-03-31 15:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804381', 'tblTempVendorCDR_20' ) end [2025-03-31 15:19:21] Production.INFO: ProcessCDR(1,14804381,1,1,2) [2025-03-31 15:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804381', 'tblTempUsageDetail_20' ) start [2025-03-31 15:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804381', 'tblTempUsageDetail_20' ) end [2025-03-31 15:19:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 15:19:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 15:19:27] Production.INFO: ==1314== Releasing lock... [2025-03-31 15:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 15:19:27] Production.INFO: 67 MB #Memory Used# [2025-03-31 15:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 12:20:07 [end_date_ymd] => 2025-03-31 15:20:07 [RateCDR] => 1 ) [2025-03-31 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-31 12:20:07' and `end` < '2025-03-31 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-31 15:20:21] Production.INFO: count ==5200 [2025-03-31 15:20:23] Production.ERROR: pbx CDR StartTime 2025-03-31 12:20:07 - End Time 2025-03-31 15:20:07 [2025-03-31 15:20:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 15:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804387', 'tblTempUsageDetail_20' ) start [2025-03-31 15:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804387', 'tblTempUsageDetail_20' ) end [2025-03-31 15:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804387', 'tblTempVendorCDR_20' ) start [2025-03-31 15:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804387', 'tblTempVendorCDR_20' ) end [2025-03-31 15:20:23] Production.INFO: ProcessCDR(1,14804387,1,1,2) [2025-03-31 15:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804387', 'tblTempUsageDetail_20' ) start [2025-03-31 15:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804387', 'tblTempUsageDetail_20' ) end [2025-03-31 15:20:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 15:20:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 15:20:28] Production.INFO: ==1396== Releasing lock... [2025-03-31 15:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 15:20:28] Production.INFO: 67 MB #Memory Used# [2025-03-31 15:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 12:21:05 [end_date_ymd] => 2025-03-31 15:21:05 [RateCDR] => 1 ) [2025-03-31 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-31 12:21:05' and `end` < '2025-03-31 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-31 15:21:19] Production.INFO: count ==5203 [2025-03-31 15:21:21] Production.ERROR: pbx CDR StartTime 2025-03-31 12:21:05 - End Time 2025-03-31 15:21:05 [2025-03-31 15:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 15:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804392', 'tblTempUsageDetail_20' ) start [2025-03-31 15:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804392', 'tblTempUsageDetail_20' ) end [2025-03-31 15:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804392', 'tblTempVendorCDR_20' ) start [2025-03-31 15:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804392', 'tblTempVendorCDR_20' ) end [2025-03-31 15:21:21] Production.INFO: ProcessCDR(1,14804392,1,1,2) [2025-03-31 15:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804392', 'tblTempUsageDetail_20' ) start [2025-03-31 15:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804392', 'tblTempUsageDetail_20' ) end [2025-03-31 15:21:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 15:21:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 15:21:27] Production.INFO: ==1478== Releasing lock... [2025-03-31 15:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 15:21:27] Production.INFO: 67 MB #Memory Used# [2025-03-31 15:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 12:22:06 [end_date_ymd] => 2025-03-31 15:22:06 [RateCDR] => 1 ) [2025-03-31 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-31 12:22:06' and `end` < '2025-03-31 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-31 15:22:20] Production.INFO: count ==5211 [2025-03-31 15:22:22] Production.ERROR: pbx CDR StartTime 2025-03-31 12:22:06 - End Time 2025-03-31 15:22:06 [2025-03-31 15:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 15:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804397', 'tblTempUsageDetail_20' ) start [2025-03-31 15:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804397', 'tblTempUsageDetail_20' ) end [2025-03-31 15:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804397', 'tblTempVendorCDR_20' ) start [2025-03-31 15:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804397', 'tblTempVendorCDR_20' ) end [2025-03-31 15:22:22] Production.INFO: ProcessCDR(1,14804397,1,1,2) [2025-03-31 15:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:22:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:22:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804397', 'tblTempUsageDetail_20' ) start [2025-03-31 15:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804397', 'tblTempUsageDetail_20' ) end [2025-03-31 15:22:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 15:22:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 15:22:27] Production.INFO: ==1600== Releasing lock... [2025-03-31 15:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 15:22:27] Production.INFO: 67 MB #Memory Used# [2025-03-31 15:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 12:23:05 [end_date_ymd] => 2025-03-31 15:23:05 [RateCDR] => 1 ) [2025-03-31 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-31 12:23:05' and `end` < '2025-03-31 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-31 15:23:19] Production.INFO: count ==5259 [2025-03-31 15:23:21] Production.ERROR: pbx CDR StartTime 2025-03-31 12:23:05 - End Time 2025-03-31 15:23:05 [2025-03-31 15:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 15:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804402', 'tblTempUsageDetail_20' ) start [2025-03-31 15:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804402', 'tblTempUsageDetail_20' ) end [2025-03-31 15:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804402', 'tblTempVendorCDR_20' ) start [2025-03-31 15:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804402', 'tblTempVendorCDR_20' ) end [2025-03-31 15:23:21] Production.INFO: ProcessCDR(1,14804402,1,1,2) [2025-03-31 15:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804402', 'tblTempUsageDetail_20' ) start [2025-03-31 15:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804402', 'tblTempUsageDetail_20' ) end [2025-03-31 15:23:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 15:23:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 15:23:27] Production.INFO: ==1684== Releasing lock... [2025-03-31 15:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 15:23:27] Production.INFO: 67.5 MB #Memory Used# [2025-03-31 15:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 12:24:06 [end_date_ymd] => 2025-03-31 15:24:06 [RateCDR] => 1 ) [2025-03-31 15: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-31 12:24:06' and `end` < '2025-03-31 15: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-31 15:24:20] Production.INFO: count ==5271 [2025-03-31 15:24:22] Production.ERROR: pbx CDR StartTime 2025-03-31 12:24:06 - End Time 2025-03-31 15:24:06 [2025-03-31 15:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 15:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804407', 'tblTempUsageDetail_20' ) start [2025-03-31 15:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804407', 'tblTempUsageDetail_20' ) end [2025-03-31 15:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804407', 'tblTempVendorCDR_20' ) start [2025-03-31 15:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804407', 'tblTempVendorCDR_20' ) end [2025-03-31 15:24:22] Production.INFO: ProcessCDR(1,14804407,1,1,2) [2025-03-31 15:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:24:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:24:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804407', 'tblTempUsageDetail_20' ) start [2025-03-31 15:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804407', 'tblTempUsageDetail_20' ) end [2025-03-31 15:24:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 15:24:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 15:24:27] Production.INFO: ==1767== Releasing lock... [2025-03-31 15:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 15:24:27] Production.INFO: 67.5 MB #Memory Used# [2025-03-31 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 12:25:05 [end_date_ymd] => 2025-03-31 15:25:05 [RateCDR] => 1 ) [2025-03-31 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-31 12:25:05' and `end` < '2025-03-31 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-31 15:25:19] Production.INFO: count ==5262 [2025-03-31 15:25:21] Production.ERROR: pbx CDR StartTime 2025-03-31 12:25:05 - End Time 2025-03-31 15:25:05 [2025-03-31 15:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804412', 'tblTempUsageDetail_20' ) start [2025-03-31 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804412', 'tblTempUsageDetail_20' ) end [2025-03-31 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804412', 'tblTempVendorCDR_20' ) start [2025-03-31 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804412', 'tblTempVendorCDR_20' ) end [2025-03-31 15:25:21] Production.INFO: ProcessCDR(1,14804412,1,1,2) [2025-03-31 15:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804412', 'tblTempUsageDetail_20' ) start [2025-03-31 15:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804412', 'tblTempUsageDetail_20' ) end [2025-03-31 15:25:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 15:25:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 15:25:26] Production.INFO: ==1856== Releasing lock... [2025-03-31 15:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 15:25:26] Production.INFO: 67.5 MB #Memory Used# [2025-03-31 15:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 12:26:05 [end_date_ymd] => 2025-03-31 15:26:05 [RateCDR] => 1 ) [2025-03-31 15:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 12:26:05' and `end` < '2025-03-31 15:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 15:26:19] Production.INFO: count ==5261 [2025-03-31 15:26:21] Production.ERROR: pbx CDR StartTime 2025-03-31 12:26:05 - End Time 2025-03-31 15:26:05 [2025-03-31 15:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 15:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804417', 'tblTempUsageDetail_20' ) start [2025-03-31 15:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804417', 'tblTempUsageDetail_20' ) end [2025-03-31 15:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804417', 'tblTempVendorCDR_20' ) start [2025-03-31 15:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804417', 'tblTempVendorCDR_20' ) end [2025-03-31 15:26:21] Production.INFO: ProcessCDR(1,14804417,1,1,2) [2025-03-31 15:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804417', 'tblTempUsageDetail_20' ) start [2025-03-31 15:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804417', 'tblTempUsageDetail_20' ) end [2025-03-31 15:26:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 15:26:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 15:26:26] Production.INFO: ==1932== Releasing lock... [2025-03-31 15:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 15:26:26] Production.INFO: 67.5 MB #Memory Used# [2025-03-31 15:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 12:27:05 [end_date_ymd] => 2025-03-31 15:27:05 [RateCDR] => 1 ) [2025-03-31 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-31 12:27:05' and `end` < '2025-03-31 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-31 15:27:19] Production.INFO: count ==5272 [2025-03-31 15:27:21] Production.ERROR: pbx CDR StartTime 2025-03-31 12:27:05 - End Time 2025-03-31 15:27:05 [2025-03-31 15:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 15:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804422', 'tblTempUsageDetail_20' ) start [2025-03-31 15:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804422', 'tblTempUsageDetail_20' ) end [2025-03-31 15:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804422', 'tblTempVendorCDR_20' ) start [2025-03-31 15:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804422', 'tblTempVendorCDR_20' ) end [2025-03-31 15:27:21] Production.INFO: ProcessCDR(1,14804422,1,1,2) [2025-03-31 15:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804422', 'tblTempUsageDetail_20' ) start [2025-03-31 15:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804422', 'tblTempUsageDetail_20' ) end [2025-03-31 15:27:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 15:27:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 15:27:27] Production.INFO: ==2018== Releasing lock... [2025-03-31 15:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 15:27:27] Production.INFO: 67.5 MB #Memory Used# [2025-03-31 15:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 12:28:05 [end_date_ymd] => 2025-03-31 15:28:05 [RateCDR] => 1 ) [2025-03-31 15:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 12:28:05' and `end` < '2025-03-31 15:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 15:28:19] Production.INFO: count ==5257 [2025-03-31 15:28:21] Production.ERROR: pbx CDR StartTime 2025-03-31 12:28:05 - End Time 2025-03-31 15:28:05 [2025-03-31 15:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 15:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804427', 'tblTempUsageDetail_20' ) start [2025-03-31 15:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804427', 'tblTempUsageDetail_20' ) end [2025-03-31 15:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804427', 'tblTempVendorCDR_20' ) start [2025-03-31 15:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804427', 'tblTempVendorCDR_20' ) end [2025-03-31 15:28:21] Production.INFO: ProcessCDR(1,14804427,1,1,2) [2025-03-31 15:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804427', 'tblTempUsageDetail_20' ) start [2025-03-31 15:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804427', 'tblTempUsageDetail_20' ) end [2025-03-31 15:28:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 15:28:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 15:28:26] Production.INFO: ==2101== Releasing lock... [2025-03-31 15:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 15:28:26] Production.INFO: 67.25 MB #Memory Used# [2025-03-31 15:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 12:29:05 [end_date_ymd] => 2025-03-31 15:29:05 [RateCDR] => 1 ) [2025-03-31 15:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 12:29:05' and `end` < '2025-03-31 15:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 15:29:19] Production.INFO: count ==5280 [2025-03-31 15:29:21] Production.ERROR: pbx CDR StartTime 2025-03-31 12:29:05 - End Time 2025-03-31 15:29:05 [2025-03-31 15:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 15:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804432', 'tblTempUsageDetail_20' ) start [2025-03-31 15:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804432', 'tblTempUsageDetail_20' ) end [2025-03-31 15:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804432', 'tblTempVendorCDR_20' ) start [2025-03-31 15:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804432', 'tblTempVendorCDR_20' ) end [2025-03-31 15:29:21] Production.INFO: ProcessCDR(1,14804432,1,1,2) [2025-03-31 15:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804432', 'tblTempUsageDetail_20' ) start [2025-03-31 15:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804432', 'tblTempUsageDetail_20' ) end [2025-03-31 15:29:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 15:29:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 15:29:27] Production.INFO: ==2186== Releasing lock... [2025-03-31 15:29:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 15:29:27] Production.INFO: 67.5 MB #Memory Used# [2025-03-31 15:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 12:30:06 [end_date_ymd] => 2025-03-31 15:30:06 [RateCDR] => 1 ) [2025-03-31 15: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-31 12:30:06' and `end` < '2025-03-31 15: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-31 15:30:20] Production.INFO: count ==5279 [2025-03-31 15:30:22] Production.ERROR: pbx CDR StartTime 2025-03-31 12:30:06 - End Time 2025-03-31 15:30:06 [2025-03-31 15:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 15:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804438', 'tblTempUsageDetail_20' ) start [2025-03-31 15:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804438', 'tblTempUsageDetail_20' ) end [2025-03-31 15:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804438', 'tblTempVendorCDR_20' ) start [2025-03-31 15:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804438', 'tblTempVendorCDR_20' ) end [2025-03-31 15:30:23] Production.INFO: ProcessCDR(1,14804438,1,1,2) [2025-03-31 15:30:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:30:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804438', 'tblTempUsageDetail_20' ) start [2025-03-31 15:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804438', 'tblTempUsageDetail_20' ) end [2025-03-31 15:30:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 15:30:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 15:30:28] Production.INFO: ==2275== Releasing lock... [2025-03-31 15:30:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 15:30:28] Production.INFO: 67.5 MB #Memory Used# [2025-03-31 15:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 12:31:05 [end_date_ymd] => 2025-03-31 15:31:05 [RateCDR] => 1 ) [2025-03-31 15:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 12:31:05' and `end` < '2025-03-31 15:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 15:31:19] Production.INFO: count ==5275 [2025-03-31 15:31:21] Production.ERROR: pbx CDR StartTime 2025-03-31 12:31:05 - End Time 2025-03-31 15:31:05 [2025-03-31 15:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 15:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804443', 'tblTempUsageDetail_20' ) start [2025-03-31 15:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804443', 'tblTempUsageDetail_20' ) end [2025-03-31 15:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804443', 'tblTempVendorCDR_20' ) start [2025-03-31 15:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804443', 'tblTempVendorCDR_20' ) end [2025-03-31 15:31:21] Production.INFO: ProcessCDR(1,14804443,1,1,2) [2025-03-31 15:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804443', 'tblTempUsageDetail_20' ) start [2025-03-31 15:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804443', 'tblTempUsageDetail_20' ) end [2025-03-31 15:31:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 15:31:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 15:31:27] Production.INFO: ==2360== Releasing lock... [2025-03-31 15:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 15:31:27] Production.INFO: 67.5 MB #Memory Used# [2025-03-31 15:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 12:32:06 [end_date_ymd] => 2025-03-31 15:32:06 [RateCDR] => 1 ) [2025-03-31 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-31 12:32:06' and `end` < '2025-03-31 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-31 15:32:20] Production.INFO: count ==5266 [2025-03-31 15:32:22] Production.ERROR: pbx CDR StartTime 2025-03-31 12:32:06 - End Time 2025-03-31 15:32:06 [2025-03-31 15:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 15:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804448', 'tblTempUsageDetail_20' ) start [2025-03-31 15:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804448', 'tblTempUsageDetail_20' ) end [2025-03-31 15:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804448', 'tblTempVendorCDR_20' ) start [2025-03-31 15:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804448', 'tblTempVendorCDR_20' ) end [2025-03-31 15:32:22] Production.INFO: ProcessCDR(1,14804448,1,1,2) [2025-03-31 15:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:32:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:32:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:32:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804448', 'tblTempUsageDetail_20' ) start [2025-03-31 15:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804448', 'tblTempUsageDetail_20' ) end [2025-03-31 15:32:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 15:32:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 15:32:29] Production.INFO: ==2444== Releasing lock... [2025-03-31 15:32:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 15:32:29] Production.INFO: 67.5 MB #Memory Used# [2025-03-31 15:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 12:33:05 [end_date_ymd] => 2025-03-31 15:33:05 [RateCDR] => 1 ) [2025-03-31 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-31 12:33:05' and `end` < '2025-03-31 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-31 15:33:19] Production.INFO: count ==5262 [2025-03-31 15:33:21] Production.ERROR: pbx CDR StartTime 2025-03-31 12:33:05 - End Time 2025-03-31 15:33:05 [2025-03-31 15:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 15:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804453', 'tblTempUsageDetail_20' ) start [2025-03-31 15:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804453', 'tblTempUsageDetail_20' ) end [2025-03-31 15:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804453', 'tblTempVendorCDR_20' ) start [2025-03-31 15:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804453', 'tblTempVendorCDR_20' ) end [2025-03-31 15:33:21] Production.INFO: ProcessCDR(1,14804453,1,1,2) [2025-03-31 15:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804453', 'tblTempUsageDetail_20' ) start [2025-03-31 15:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804453', 'tblTempUsageDetail_20' ) end [2025-03-31 15:33:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 15:33:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 15:33:27] Production.INFO: ==2524== Releasing lock... [2025-03-31 15:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 15:33:27] Production.INFO: 67.5 MB #Memory Used# [2025-03-31 15:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 12:34:05 [end_date_ymd] => 2025-03-31 15:34:05 [RateCDR] => 1 ) [2025-03-31 15:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 12:34:05' and `end` < '2025-03-31 15:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 15:34:19] Production.INFO: count ==5271 [2025-03-31 15:34:21] Production.ERROR: pbx CDR StartTime 2025-03-31 12:34:05 - End Time 2025-03-31 15:34:05 [2025-03-31 15:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 15:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804458', 'tblTempUsageDetail_20' ) start [2025-03-31 15:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804458', 'tblTempUsageDetail_20' ) end [2025-03-31 15:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804458', 'tblTempVendorCDR_20' ) start [2025-03-31 15:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804458', 'tblTempVendorCDR_20' ) end [2025-03-31 15:34:21] Production.INFO: ProcessCDR(1,14804458,1,1,2) [2025-03-31 15:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804458', 'tblTempUsageDetail_20' ) start [2025-03-31 15:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804458', 'tblTempUsageDetail_20' ) end [2025-03-31 15:34:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 15:34:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 15:34:27] Production.INFO: ==2645== Releasing lock... [2025-03-31 15:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 15:34:27] Production.INFO: 67.5 MB #Memory Used# [2025-03-31 15:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 12:35:05 [end_date_ymd] => 2025-03-31 15:35:05 [RateCDR] => 1 ) [2025-03-31 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-31 12:35:05' and `end` < '2025-03-31 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-31 15:35:19] Production.INFO: count ==5282 [2025-03-31 15:35:21] Production.ERROR: pbx CDR StartTime 2025-03-31 12:35:05 - End Time 2025-03-31 15:35:05 [2025-03-31 15:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 15:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804463', 'tblTempUsageDetail_20' ) start [2025-03-31 15:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804463', 'tblTempUsageDetail_20' ) end [2025-03-31 15:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804463', 'tblTempVendorCDR_20' ) start [2025-03-31 15:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804463', 'tblTempVendorCDR_20' ) end [2025-03-31 15:35:21] Production.INFO: ProcessCDR(1,14804463,1,1,2) [2025-03-31 15:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804463', 'tblTempUsageDetail_20' ) start [2025-03-31 15:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804463', 'tblTempUsageDetail_20' ) end [2025-03-31 15:35:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 15:35:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 15:35:26] Production.INFO: ==2741== Releasing lock... [2025-03-31 15:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 15:35:26] Production.INFO: 67.5 MB #Memory Used# [2025-03-31 15:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 12:36:05 [end_date_ymd] => 2025-03-31 15:36:05 [RateCDR] => 1 ) [2025-03-31 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-31 12:36:05' and `end` < '2025-03-31 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-31 15:36:19] Production.INFO: count ==5279 [2025-03-31 15:36:21] Production.ERROR: pbx CDR StartTime 2025-03-31 12:36:05 - End Time 2025-03-31 15:36:05 [2025-03-31 15:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 15:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804468', 'tblTempUsageDetail_20' ) start [2025-03-31 15:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804468', 'tblTempUsageDetail_20' ) end [2025-03-31 15:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804468', 'tblTempVendorCDR_20' ) start [2025-03-31 15:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804468', 'tblTempVendorCDR_20' ) end [2025-03-31 15:36:21] Production.INFO: ProcessCDR(1,14804468,1,1,2) [2025-03-31 15:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804468', 'tblTempUsageDetail_20' ) start [2025-03-31 15:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804468', 'tblTempUsageDetail_20' ) end [2025-03-31 15:36:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 15:36:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 15:36:27] Production.INFO: ==2819== Releasing lock... [2025-03-31 15:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 15:36:27] Production.INFO: 67.5 MB #Memory Used# [2025-03-31 15:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 12:37:04 [end_date_ymd] => 2025-03-31 15:37:04 [RateCDR] => 1 ) [2025-03-31 15: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-31 12:37:04' and `end` < '2025-03-31 15: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-31 15:37:18] Production.INFO: count ==5294 [2025-03-31 15:37:20] Production.ERROR: pbx CDR StartTime 2025-03-31 12:37:04 - End Time 2025-03-31 15:37:04 [2025-03-31 15:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 15:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804473', 'tblTempUsageDetail_20' ) start [2025-03-31 15:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804473', 'tblTempUsageDetail_20' ) end [2025-03-31 15:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804473', 'tblTempVendorCDR_20' ) start [2025-03-31 15:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804473', 'tblTempVendorCDR_20' ) end [2025-03-31 15:37:21] Production.INFO: ProcessCDR(1,14804473,1,1,2) [2025-03-31 15:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804473', 'tblTempUsageDetail_20' ) start [2025-03-31 15:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804473', 'tblTempUsageDetail_20' ) end [2025-03-31 15:37:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 15:37:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 15:37:26] Production.INFO: ==2909== Releasing lock... [2025-03-31 15:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 15:37:26] Production.INFO: 67.75 MB #Memory Used# [2025-03-31 15:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 12:38:05 [end_date_ymd] => 2025-03-31 15:38:05 [RateCDR] => 1 ) [2025-03-31 15:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 12:38:05' and `end` < '2025-03-31 15:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 15:38:19] Production.INFO: count ==5299 [2025-03-31 15:38:21] Production.ERROR: pbx CDR StartTime 2025-03-31 12:38:05 - End Time 2025-03-31 15:38:05 [2025-03-31 15:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 15:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804478', 'tblTempUsageDetail_20' ) start [2025-03-31 15:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804478', 'tblTempUsageDetail_20' ) end [2025-03-31 15:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804478', 'tblTempVendorCDR_20' ) start [2025-03-31 15:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804478', 'tblTempVendorCDR_20' ) end [2025-03-31 15:38:21] Production.INFO: ProcessCDR(1,14804478,1,1,2) [2025-03-31 15:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804478', 'tblTempUsageDetail_20' ) start [2025-03-31 15:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804478', 'tblTempUsageDetail_20' ) end [2025-03-31 15:38:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 15:38:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 15:38:27] Production.INFO: ==2999== Releasing lock... [2025-03-31 15:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 15:38:27] Production.INFO: 67.75 MB #Memory Used# [2025-03-31 15:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 12:39:06 [end_date_ymd] => 2025-03-31 15:39:06 [RateCDR] => 1 ) [2025-03-31 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-31 12:39:06' and `end` < '2025-03-31 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-31 15:39:20] Production.INFO: count ==5312 [2025-03-31 15:39:22] Production.ERROR: pbx CDR StartTime 2025-03-31 12:39:06 - End Time 2025-03-31 15:39:06 [2025-03-31 15:39:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 15:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804483', 'tblTempUsageDetail_20' ) start [2025-03-31 15:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804483', 'tblTempUsageDetail_20' ) end [2025-03-31 15:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804483', 'tblTempVendorCDR_20' ) start [2025-03-31 15:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804483', 'tblTempVendorCDR_20' ) end [2025-03-31 15:39:22] Production.INFO: ProcessCDR(1,14804483,1,1,2) [2025-03-31 15:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:39:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:39:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:39:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804483', 'tblTempUsageDetail_20' ) start [2025-03-31 15:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804483', 'tblTempUsageDetail_20' ) end [2025-03-31 15:39:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 15:39:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 15:39:28] Production.INFO: ==3084== Releasing lock... [2025-03-31 15:39:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 15:39:28] Production.INFO: 67.75 MB #Memory Used# [2025-03-31 15:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 12:40:06 [end_date_ymd] => 2025-03-31 15:40:06 [RateCDR] => 1 ) [2025-03-31 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-31 12:40:06' and `end` < '2025-03-31 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-31 15:40:20] Production.INFO: count ==5324 [2025-03-31 15:40:22] Production.ERROR: pbx CDR StartTime 2025-03-31 12:40:06 - End Time 2025-03-31 15:40:06 [2025-03-31 15:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 15:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804489', 'tblTempUsageDetail_20' ) start [2025-03-31 15:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804489', 'tblTempUsageDetail_20' ) end [2025-03-31 15:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804489', 'tblTempVendorCDR_20' ) start [2025-03-31 15:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804489', 'tblTempVendorCDR_20' ) end [2025-03-31 15:40:22] Production.INFO: ProcessCDR(1,14804489,1,1,2) [2025-03-31 15:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804489', 'tblTempUsageDetail_20' ) start [2025-03-31 15:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804489', 'tblTempUsageDetail_20' ) end [2025-03-31 15:40:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 15:40:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 15:40:27] Production.INFO: ==3170== Releasing lock... [2025-03-31 15:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 15:40:27] Production.INFO: 67.75 MB #Memory Used# [2025-03-31 15:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 12:41:05 [end_date_ymd] => 2025-03-31 15:41:05 [RateCDR] => 1 ) [2025-03-31 15:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 12:41:05' and `end` < '2025-03-31 15:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 15:41:19] Production.INFO: count ==5335 [2025-03-31 15:41:22] Production.ERROR: pbx CDR StartTime 2025-03-31 12:41:05 - End Time 2025-03-31 15:41:05 [2025-03-31 15:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 15:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804494', 'tblTempUsageDetail_20' ) start [2025-03-31 15:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804494', 'tblTempUsageDetail_20' ) end [2025-03-31 15:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804494', 'tblTempVendorCDR_20' ) start [2025-03-31 15:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804494', 'tblTempVendorCDR_20' ) end [2025-03-31 15:41:22] Production.INFO: ProcessCDR(1,14804494,1,1,2) [2025-03-31 15:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:41:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:41:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804494', 'tblTempUsageDetail_20' ) start [2025-03-31 15:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804494', 'tblTempUsageDetail_20' ) end [2025-03-31 15:41:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 15:41:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 15:41:27] Production.INFO: ==3255== Releasing lock... [2025-03-31 15:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 15:41:27] Production.INFO: 68 MB #Memory Used# [2025-03-31 15:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 12:42:05 [end_date_ymd] => 2025-03-31 15:42:05 [RateCDR] => 1 ) [2025-03-31 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-31 12:42:05' and `end` < '2025-03-31 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-31 15:42:19] Production.INFO: count ==5331 [2025-03-31 15:42:22] Production.ERROR: pbx CDR StartTime 2025-03-31 12:42:05 - End Time 2025-03-31 15:42:05 [2025-03-31 15:42:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 15:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804499', 'tblTempUsageDetail_20' ) start [2025-03-31 15:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804499', 'tblTempUsageDetail_20' ) end [2025-03-31 15:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804499', 'tblTempVendorCDR_20' ) start [2025-03-31 15:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804499', 'tblTempVendorCDR_20' ) end [2025-03-31 15:42:22] Production.INFO: ProcessCDR(1,14804499,1,1,2) [2025-03-31 15:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804499', 'tblTempUsageDetail_20' ) start [2025-03-31 15:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804499', 'tblTempUsageDetail_20' ) end [2025-03-31 15:42:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 15:42:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 15:42:27] Production.INFO: ==3335== Releasing lock... [2025-03-31 15:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 15:42:27] Production.INFO: 68 MB #Memory Used# [2025-03-31 15:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 12:43:06 [end_date_ymd] => 2025-03-31 15:43:06 [RateCDR] => 1 ) [2025-03-31 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-31 12:43:06' and `end` < '2025-03-31 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-31 15:43:19] Production.INFO: count ==5334 [2025-03-31 15:43:22] Production.ERROR: pbx CDR StartTime 2025-03-31 12:43:06 - End Time 2025-03-31 15:43:06 [2025-03-31 15:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 15:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804504', 'tblTempUsageDetail_20' ) start [2025-03-31 15:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804504', 'tblTempUsageDetail_20' ) end [2025-03-31 15:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804504', 'tblTempVendorCDR_20' ) start [2025-03-31 15:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804504', 'tblTempVendorCDR_20' ) end [2025-03-31 15:43:22] Production.INFO: ProcessCDR(1,14804504,1,1,2) [2025-03-31 15:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804504', 'tblTempUsageDetail_20' ) start [2025-03-31 15:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804504', 'tblTempUsageDetail_20' ) end [2025-03-31 15:43:25] Production.ERROR: pbx prc_insertCDR start [2025-03-31 15:43:25] Production.ERROR: pbx prc_insertCDR end [2025-03-31 15:43:25] Production.INFO: ==3415== Releasing lock... [2025-03-31 15:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 15:43:25] Production.INFO: 68 MB #Memory Used# [2025-03-31 15:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 12:44:05 [end_date_ymd] => 2025-03-31 15:44:05 [RateCDR] => 1 ) [2025-03-31 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-31 12:44:05' and `end` < '2025-03-31 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-31 15:44:19] Production.INFO: count ==5341 [2025-03-31 15:44:21] Production.ERROR: pbx CDR StartTime 2025-03-31 12:44:05 - End Time 2025-03-31 15:44:05 [2025-03-31 15:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 15:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804509', 'tblTempUsageDetail_20' ) start [2025-03-31 15:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804509', 'tblTempUsageDetail_20' ) end [2025-03-31 15:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804509', 'tblTempVendorCDR_20' ) start [2025-03-31 15:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804509', 'tblTempVendorCDR_20' ) end [2025-03-31 15:44:21] Production.INFO: ProcessCDR(1,14804509,1,1,2) [2025-03-31 15:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804509', 'tblTempUsageDetail_20' ) start [2025-03-31 15:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804509', 'tblTempUsageDetail_20' ) end [2025-03-31 15:44:25] Production.ERROR: pbx prc_insertCDR start [2025-03-31 15:44:25] Production.ERROR: pbx prc_insertCDR end [2025-03-31 15:44:25] Production.INFO: ==3498== Releasing lock... [2025-03-31 15:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 15:44:25] Production.INFO: 68 MB #Memory Used# [2025-03-31 15:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 12:45:05 [end_date_ymd] => 2025-03-31 15:45:05 [RateCDR] => 1 ) [2025-03-31 15:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 12:45:05' and `end` < '2025-03-31 15:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 15:45:19] Production.INFO: count ==5344 [2025-03-31 15:45:21] Production.ERROR: pbx CDR StartTime 2025-03-31 12:45:05 - End Time 2025-03-31 15:45:05 [2025-03-31 15:45:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 15:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804514', 'tblTempUsageDetail_20' ) start [2025-03-31 15:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804514', 'tblTempUsageDetail_20' ) end [2025-03-31 15:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804514', 'tblTempVendorCDR_20' ) start [2025-03-31 15:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804514', 'tblTempVendorCDR_20' ) end [2025-03-31 15:45:22] Production.INFO: ProcessCDR(1,14804514,1,1,2) [2025-03-31 15:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804514', 'tblTempUsageDetail_20' ) start [2025-03-31 15:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804514', 'tblTempUsageDetail_20' ) end [2025-03-31 15:45:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 15:45:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 15:45:27] Production.INFO: ==3582== Releasing lock... [2025-03-31 15:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 15:45:27] Production.INFO: 68 MB #Memory Used# [2025-03-31 15:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 12:46:05 [end_date_ymd] => 2025-03-31 15:46:05 [RateCDR] => 1 ) [2025-03-31 15:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 12:46:05' and `end` < '2025-03-31 15:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 15:46:19] Production.INFO: count ==5363 [2025-03-31 15:46:21] Production.ERROR: pbx CDR StartTime 2025-03-31 12:46:05 - End Time 2025-03-31 15:46:05 [2025-03-31 15:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 15:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804519', 'tblTempUsageDetail_20' ) start [2025-03-31 15:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804519', 'tblTempUsageDetail_20' ) end [2025-03-31 15:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804519', 'tblTempVendorCDR_20' ) start [2025-03-31 15:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804519', 'tblTempVendorCDR_20' ) end [2025-03-31 15:46:21] Production.INFO: ProcessCDR(1,14804519,1,1,2) [2025-03-31 15:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804519', 'tblTempUsageDetail_20' ) start [2025-03-31 15:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804519', 'tblTempUsageDetail_20' ) end [2025-03-31 15:46:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 15:46:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 15:46:27] Production.INFO: ==3665== Releasing lock... [2025-03-31 15:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 15:46:27] Production.INFO: 68.25 MB #Memory Used# [2025-03-31 15:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 12:47:06 [end_date_ymd] => 2025-03-31 15:47:06 [RateCDR] => 1 ) [2025-03-31 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-31 12:47:06' and `end` < '2025-03-31 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-31 15:47:19] Production.INFO: count ==5372 [2025-03-31 15:47:22] Production.ERROR: pbx CDR StartTime 2025-03-31 12:47:06 - End Time 2025-03-31 15:47:06 [2025-03-31 15:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 15:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804524', 'tblTempUsageDetail_20' ) start [2025-03-31 15:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804524', 'tblTempUsageDetail_20' ) end [2025-03-31 15:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804524', 'tblTempVendorCDR_20' ) start [2025-03-31 15:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804524', 'tblTempVendorCDR_20' ) end [2025-03-31 15:47:22] Production.INFO: ProcessCDR(1,14804524,1,1,2) [2025-03-31 15:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:47:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:47:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:47:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804524', 'tblTempUsageDetail_20' ) start [2025-03-31 15:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804524', 'tblTempUsageDetail_20' ) end [2025-03-31 15:47:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 15:47:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 15:47:27] Production.INFO: ==3752== Releasing lock... [2025-03-31 15:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 15:47:27] Production.INFO: 68.25 MB #Memory Used# [2025-03-31 15:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 12:48:05 [end_date_ymd] => 2025-03-31 15:48:05 [RateCDR] => 1 ) [2025-03-31 15:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 12:48:05' and `end` < '2025-03-31 15:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 15:48:19] Production.INFO: count ==5351 [2025-03-31 15:48:21] Production.ERROR: pbx CDR StartTime 2025-03-31 12:48:05 - End Time 2025-03-31 15:48:05 [2025-03-31 15:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 15:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804529', 'tblTempUsageDetail_20' ) start [2025-03-31 15:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804529', 'tblTempUsageDetail_20' ) end [2025-03-31 15:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804529', 'tblTempVendorCDR_20' ) start [2025-03-31 15:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804529', 'tblTempVendorCDR_20' ) end [2025-03-31 15:48:21] Production.INFO: ProcessCDR(1,14804529,1,1,2) [2025-03-31 15:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804529', 'tblTempUsageDetail_20' ) start [2025-03-31 15:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804529', 'tblTempUsageDetail_20' ) end [2025-03-31 15:48:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 15:48:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 15:48:27] Production.INFO: ==3839== Releasing lock... [2025-03-31 15:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 15:48:27] Production.INFO: 68 MB #Memory Used# [2025-03-31 15:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 12:49:06 [end_date_ymd] => 2025-03-31 15:49:06 [RateCDR] => 1 ) [2025-03-31 15: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-31 12:49:06' and `end` < '2025-03-31 15: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-31 15:49:20] Production.INFO: count ==5355 [2025-03-31 15:49:22] Production.ERROR: pbx CDR StartTime 2025-03-31 12:49:06 - End Time 2025-03-31 15:49:06 [2025-03-31 15:49:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 15:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804534', 'tblTempUsageDetail_20' ) start [2025-03-31 15:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804534', 'tblTempUsageDetail_20' ) end [2025-03-31 15:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804534', 'tblTempVendorCDR_20' ) start [2025-03-31 15:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804534', 'tblTempVendorCDR_20' ) end [2025-03-31 15:49:22] Production.INFO: ProcessCDR(1,14804534,1,1,2) [2025-03-31 15:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:49:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:49:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:49:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804534', 'tblTempUsageDetail_20' ) start [2025-03-31 15:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804534', 'tblTempUsageDetail_20' ) end [2025-03-31 15:49:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 15:49:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 15:49:28] Production.INFO: ==3963== Releasing lock... [2025-03-31 15:49:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 15:49:28] Production.INFO: 68 MB #Memory Used# [2025-03-31 15:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 12:50:05 [end_date_ymd] => 2025-03-31 15:50:05 [RateCDR] => 1 ) [2025-03-31 15: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-31 12:50:05' and `end` < '2025-03-31 15: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-31 15:50:19] Production.INFO: count ==5357 [2025-03-31 15:50:22] Production.ERROR: pbx CDR StartTime 2025-03-31 12:50:05 - End Time 2025-03-31 15:50:05 [2025-03-31 15:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 15:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804540', 'tblTempUsageDetail_20' ) start [2025-03-31 15:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804540', 'tblTempUsageDetail_20' ) end [2025-03-31 15:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804540', 'tblTempVendorCDR_20' ) start [2025-03-31 15:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804540', 'tblTempVendorCDR_20' ) end [2025-03-31 15:50:22] Production.INFO: ProcessCDR(1,14804540,1,1,2) [2025-03-31 15:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804540', 'tblTempUsageDetail_20' ) start [2025-03-31 15:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804540', 'tblTempUsageDetail_20' ) end [2025-03-31 15:50:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 15:50:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 15:50:27] Production.INFO: ==4044== Releasing lock... [2025-03-31 15:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 15:50:27] Production.INFO: 68 MB #Memory Used# [2025-03-31 15:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 12:51:05 [end_date_ymd] => 2025-03-31 15:51:05 [RateCDR] => 1 ) [2025-03-31 15:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 12:51:05' and `end` < '2025-03-31 15:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 15:51:19] Production.INFO: count ==5409 [2025-03-31 15:51:22] Production.ERROR: pbx CDR StartTime 2025-03-31 12:51:05 - End Time 2025-03-31 15:51:05 [2025-03-31 15:51:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 15:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804545', 'tblTempUsageDetail_20' ) start [2025-03-31 15:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804545', 'tblTempUsageDetail_20' ) end [2025-03-31 15:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804545', 'tblTempVendorCDR_20' ) start [2025-03-31 15:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804545', 'tblTempVendorCDR_20' ) end [2025-03-31 15:51:22] Production.INFO: ProcessCDR(1,14804545,1,1,2) [2025-03-31 15:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:51:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804545', 'tblTempUsageDetail_20' ) start [2025-03-31 15:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804545', 'tblTempUsageDetail_20' ) end [2025-03-31 15:51:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 15:51:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 15:51:27] Production.INFO: ==4128== Releasing lock... [2025-03-31 15:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 15:51:27] Production.INFO: 68.5 MB #Memory Used# [2025-03-31 15:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 12:52:06 [end_date_ymd] => 2025-03-31 15:52:06 [RateCDR] => 1 ) [2025-03-31 15: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-31 12:52:06' and `end` < '2025-03-31 15: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-31 15:52:20] Production.INFO: count ==5430 [2025-03-31 15:52:22] Production.ERROR: pbx CDR StartTime 2025-03-31 12:52:06 - End Time 2025-03-31 15:52:06 [2025-03-31 15:52:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 15:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804550', 'tblTempUsageDetail_20' ) start [2025-03-31 15:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804550', 'tblTempUsageDetail_20' ) end [2025-03-31 15:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804550', 'tblTempVendorCDR_20' ) start [2025-03-31 15:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804550', 'tblTempVendorCDR_20' ) end [2025-03-31 15:52:23] Production.INFO: ProcessCDR(1,14804550,1,1,2) [2025-03-31 15:52:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:52:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:52:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804550', 'tblTempUsageDetail_20' ) start [2025-03-31 15:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804550', 'tblTempUsageDetail_20' ) end [2025-03-31 15:52:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 15:52:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 15:52:28] Production.INFO: ==4210== Releasing lock... [2025-03-31 15:52:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 15:52:28] Production.INFO: 68.75 MB #Memory Used# [2025-03-31 15:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 12:53:05 [end_date_ymd] => 2025-03-31 15:53:05 [RateCDR] => 1 ) [2025-03-31 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-31 12:53:05' and `end` < '2025-03-31 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-31 15:53:19] Production.INFO: count ==5440 [2025-03-31 15:53:21] Production.ERROR: pbx CDR StartTime 2025-03-31 12:53:05 - End Time 2025-03-31 15:53:05 [2025-03-31 15:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 15:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804555', 'tblTempUsageDetail_20' ) start [2025-03-31 15:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804555', 'tblTempUsageDetail_20' ) end [2025-03-31 15:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804555', 'tblTempVendorCDR_20' ) start [2025-03-31 15:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804555', 'tblTempVendorCDR_20' ) end [2025-03-31 15:53:21] Production.INFO: ProcessCDR(1,14804555,1,1,2) [2025-03-31 15:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804555', 'tblTempUsageDetail_20' ) start [2025-03-31 15:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804555', 'tblTempUsageDetail_20' ) end [2025-03-31 15:53:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 15:53:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 15:53:26] Production.INFO: ==4290== Releasing lock... [2025-03-31 15:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 15:53:26] Production.INFO: 68.75 MB #Memory Used# [2025-03-31 15:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 12:54:06 [end_date_ymd] => 2025-03-31 15:54:06 [RateCDR] => 1 ) [2025-03-31 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-31 12:54:06' and `end` < '2025-03-31 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-31 15:54:19] Production.INFO: count ==5431 [2025-03-31 15:54:22] Production.ERROR: pbx CDR StartTime 2025-03-31 12:54:06 - End Time 2025-03-31 15:54:06 [2025-03-31 15:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 15:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804560', 'tblTempUsageDetail_20' ) start [2025-03-31 15:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804560', 'tblTempUsageDetail_20' ) end [2025-03-31 15:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804560', 'tblTempVendorCDR_20' ) start [2025-03-31 15:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804560', 'tblTempVendorCDR_20' ) end [2025-03-31 15:54:22] Production.INFO: ProcessCDR(1,14804560,1,1,2) [2025-03-31 15:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:54:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:54:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804560', 'tblTempUsageDetail_20' ) start [2025-03-31 15:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804560', 'tblTempUsageDetail_20' ) end [2025-03-31 15:54:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 15:54:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 15:54:27] Production.INFO: ==4368== Releasing lock... [2025-03-31 15:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 15:54:27] Production.INFO: 68.75 MB #Memory Used# [2025-03-31 15:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 12:55:05 [end_date_ymd] => 2025-03-31 15:55:05 [RateCDR] => 1 ) [2025-03-31 15:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 12:55:05' and `end` < '2025-03-31 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-31 15:55:19] Production.INFO: count ==5430 [2025-03-31 15:55:22] Production.ERROR: pbx CDR StartTime 2025-03-31 12:55:05 - End Time 2025-03-31 15:55:05 [2025-03-31 15:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 15:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804565', 'tblTempUsageDetail_20' ) start [2025-03-31 15:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804565', 'tblTempUsageDetail_20' ) end [2025-03-31 15:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804565', 'tblTempVendorCDR_20' ) start [2025-03-31 15:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804565', 'tblTempVendorCDR_20' ) end [2025-03-31 15:55:22] Production.INFO: ProcessCDR(1,14804565,1,1,2) [2025-03-31 15:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:55:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:55:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804565', 'tblTempUsageDetail_20' ) start [2025-03-31 15:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804565', 'tblTempUsageDetail_20' ) end [2025-03-31 15:55:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 15:55:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 15:55:27] Production.INFO: ==4444== Releasing lock... [2025-03-31 15:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 15:55:27] Production.INFO: 68.75 MB #Memory Used# [2025-03-31 15:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 12:56:06 [end_date_ymd] => 2025-03-31 15:56:06 [RateCDR] => 1 ) [2025-03-31 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-31 12:56:06' and `end` < '2025-03-31 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-31 15:56:19] Production.INFO: count ==5440 [2025-03-31 15:56:22] Production.ERROR: pbx CDR StartTime 2025-03-31 12:56:06 - End Time 2025-03-31 15:56:06 [2025-03-31 15:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 15:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804570', 'tblTempUsageDetail_20' ) start [2025-03-31 15:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804570', 'tblTempUsageDetail_20' ) end [2025-03-31 15:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804570', 'tblTempVendorCDR_20' ) start [2025-03-31 15:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804570', 'tblTempVendorCDR_20' ) end [2025-03-31 15:56:22] Production.INFO: ProcessCDR(1,14804570,1,1,2) [2025-03-31 15:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804570', 'tblTempUsageDetail_20' ) start [2025-03-31 15:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804570', 'tblTempUsageDetail_20' ) end [2025-03-31 15:56:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 15:56:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 15:56:27] Production.INFO: ==4531== Releasing lock... [2025-03-31 15:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 15:56:27] Production.INFO: 68.75 MB #Memory Used# [2025-03-31 15:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 12:57:05 [end_date_ymd] => 2025-03-31 15:57:05 [RateCDR] => 1 ) [2025-03-31 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-31 12:57:05' and `end` < '2025-03-31 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-31 15:57:19] Production.INFO: count ==5408 [2025-03-31 15:57:21] Production.ERROR: pbx CDR StartTime 2025-03-31 12:57:05 - End Time 2025-03-31 15:57:05 [2025-03-31 15:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 15:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804575', 'tblTempUsageDetail_20' ) start [2025-03-31 15:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804575', 'tblTempUsageDetail_20' ) end [2025-03-31 15:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804575', 'tblTempVendorCDR_20' ) start [2025-03-31 15:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804575', 'tblTempVendorCDR_20' ) end [2025-03-31 15:57:21] Production.INFO: ProcessCDR(1,14804575,1,1,2) [2025-03-31 15:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804575', 'tblTempUsageDetail_20' ) start [2025-03-31 15:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804575', 'tblTempUsageDetail_20' ) end [2025-03-31 15:57:25] Production.ERROR: pbx prc_insertCDR start [2025-03-31 15:57:25] Production.ERROR: pbx prc_insertCDR end [2025-03-31 15:57:25] Production.INFO: ==4621== Releasing lock... [2025-03-31 15:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 15:57:25] Production.INFO: 68.5 MB #Memory Used# [2025-03-31 15:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 12:58:06 [end_date_ymd] => 2025-03-31 15:58:06 [RateCDR] => 1 ) [2025-03-31 15: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-31 12:58:06' and `end` < '2025-03-31 15: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-31 15:58:20] Production.INFO: count ==5405 [2025-03-31 15:58:22] Production.ERROR: pbx CDR StartTime 2025-03-31 12:58:06 - End Time 2025-03-31 15:58:06 [2025-03-31 15:58:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 15:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804580', 'tblTempUsageDetail_20' ) start [2025-03-31 15:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804580', 'tblTempUsageDetail_20' ) end [2025-03-31 15:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804580', 'tblTempVendorCDR_20' ) start [2025-03-31 15:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804580', 'tblTempVendorCDR_20' ) end [2025-03-31 15:58:22] Production.INFO: ProcessCDR(1,14804580,1,1,2) [2025-03-31 15:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:58:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:58:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804580', 'tblTempUsageDetail_20' ) start [2025-03-31 15:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804580', 'tblTempUsageDetail_20' ) end [2025-03-31 15:58:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 15:58:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 15:58:27] Production.INFO: ==4698== Releasing lock... [2025-03-31 15:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 15:58:27] Production.INFO: 68.5 MB #Memory Used# [2025-03-31 15:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 12:59:05 [end_date_ymd] => 2025-03-31 15:59:05 [RateCDR] => 1 ) [2025-03-31 15:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 12:59:05' and `end` < '2025-03-31 15:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 15:59:19] Production.INFO: count ==5370 [2025-03-31 15:59:21] Production.ERROR: pbx CDR StartTime 2025-03-31 12:59:05 - End Time 2025-03-31 15:59:05 [2025-03-31 15:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 15:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804585', 'tblTempUsageDetail_20' ) start [2025-03-31 15:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804585', 'tblTempUsageDetail_20' ) end [2025-03-31 15:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804585', 'tblTempVendorCDR_20' ) start [2025-03-31 15:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804585', 'tblTempVendorCDR_20' ) end [2025-03-31 15:59:21] Production.INFO: ProcessCDR(1,14804585,1,1,2) [2025-03-31 15:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 15:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 15:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804585', 'tblTempUsageDetail_20' ) start [2025-03-31 15:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804585', 'tblTempUsageDetail_20' ) end [2025-03-31 15:59:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 15:59:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 15:59:26] Production.INFO: ==4776== Releasing lock... [2025-03-31 15:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 15:59:26] Production.INFO: 68.25 MB #Memory Used# [2025-03-31 16:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 13:00:06 [end_date_ymd] => 2025-03-31 16:00:06 [RateCDR] => 1 ) [2025-03-31 16: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-31 13:00:06' and `end` < '2025-03-31 16: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-31 16:00:20] Production.INFO: count ==5371 [2025-03-31 16:00:23] Production.ERROR: pbx CDR StartTime 2025-03-31 13:00:06 - End Time 2025-03-31 16:00:06 [2025-03-31 16:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 16:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804591', 'tblTempUsageDetail_20' ) start [2025-03-31 16:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804591', 'tblTempUsageDetail_20' ) end [2025-03-31 16:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804591', 'tblTempVendorCDR_20' ) start [2025-03-31 16:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804591', 'tblTempVendorCDR_20' ) end [2025-03-31 16:00:23] Production.INFO: ProcessCDR(1,14804591,1,1,2) [2025-03-31 16:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804591', 'tblTempUsageDetail_20' ) start [2025-03-31 16:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804591', 'tblTempUsageDetail_20' ) end [2025-03-31 16:00:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 16:00:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 16:00:28] Production.INFO: ==4859== Releasing lock... [2025-03-31 16:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 16:00:28] Production.INFO: 68.25 MB #Memory Used# [2025-03-31 16:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 13:01:06 [end_date_ymd] => 2025-03-31 16:01:06 [RateCDR] => 1 ) [2025-03-31 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-31 13:01:06' and `end` < '2025-03-31 16:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 16:01:20] Production.INFO: count ==5402 [2025-03-31 16:01:22] Production.ERROR: pbx CDR StartTime 2025-03-31 13:01:06 - End Time 2025-03-31 16:01:06 [2025-03-31 16:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 16:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804596', 'tblTempUsageDetail_20' ) start [2025-03-31 16:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804596', 'tblTempUsageDetail_20' ) end [2025-03-31 16:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804596', 'tblTempVendorCDR_20' ) start [2025-03-31 16:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804596', 'tblTempVendorCDR_20' ) end [2025-03-31 16:01:22] Production.INFO: ProcessCDR(1,14804596,1,1,2) [2025-03-31 16:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:01:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:01:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804596', 'tblTempUsageDetail_20' ) start [2025-03-31 16:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804596', 'tblTempUsageDetail_20' ) end [2025-03-31 16:01:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 16:01:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 16:01:28] Production.INFO: ==4949== Releasing lock... [2025-03-31 16:01:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 16:01:28] Production.INFO: 68.5 MB #Memory Used# [2025-03-31 16:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 13:02:06 [end_date_ymd] => 2025-03-31 16:02:06 [RateCDR] => 1 ) [2025-03-31 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-31 13:02:06' and `end` < '2025-03-31 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-31 16:02:19] Production.INFO: count ==5403 [2025-03-31 16:02:22] Production.ERROR: pbx CDR StartTime 2025-03-31 13:02:06 - End Time 2025-03-31 16:02:06 [2025-03-31 16:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 16:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804601', 'tblTempUsageDetail_20' ) start [2025-03-31 16:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804601', 'tblTempUsageDetail_20' ) end [2025-03-31 16:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804601', 'tblTempVendorCDR_20' ) start [2025-03-31 16:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804601', 'tblTempVendorCDR_20' ) end [2025-03-31 16:02:22] Production.INFO: ProcessCDR(1,14804601,1,1,2) [2025-03-31 16:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804601', 'tblTempUsageDetail_20' ) start [2025-03-31 16:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804601', 'tblTempUsageDetail_20' ) end [2025-03-31 16:02:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 16:02:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 16:02:27] Production.INFO: ==5026== Releasing lock... [2025-03-31 16:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 16:02:27] Production.INFO: 68.5 MB #Memory Used# [2025-03-31 16:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 13:03:05 [end_date_ymd] => 2025-03-31 16:03:05 [RateCDR] => 1 ) [2025-03-31 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-31 13:03:05' and `end` < '2025-03-31 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-31 16:03:18] Production.INFO: count ==5393 [2025-03-31 16:03:21] Production.ERROR: pbx CDR StartTime 2025-03-31 13:03:05 - End Time 2025-03-31 16:03:05 [2025-03-31 16:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 16:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804606', 'tblTempUsageDetail_20' ) start [2025-03-31 16:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804606', 'tblTempUsageDetail_20' ) end [2025-03-31 16:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804606', 'tblTempVendorCDR_20' ) start [2025-03-31 16:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804606', 'tblTempVendorCDR_20' ) end [2025-03-31 16:03:21] Production.INFO: ProcessCDR(1,14804606,1,1,2) [2025-03-31 16:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804606', 'tblTempUsageDetail_20' ) start [2025-03-31 16:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804606', 'tblTempUsageDetail_20' ) end [2025-03-31 16:03:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 16:03:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 16:03:26] Production.INFO: ==5101== Releasing lock... [2025-03-31 16:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 16:03:26] Production.INFO: 68.5 MB #Memory Used# [2025-03-31 16:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 13:04:05 [end_date_ymd] => 2025-03-31 16:04:05 [RateCDR] => 1 ) [2025-03-31 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-31 13:04:05' and `end` < '2025-03-31 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-31 16:04:19] Production.INFO: count ==5398 [2025-03-31 16:04:21] Production.ERROR: pbx CDR StartTime 2025-03-31 13:04:05 - End Time 2025-03-31 16:04:05 [2025-03-31 16:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 16:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804611', 'tblTempUsageDetail_20' ) start [2025-03-31 16:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804611', 'tblTempUsageDetail_20' ) end [2025-03-31 16:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804611', 'tblTempVendorCDR_20' ) start [2025-03-31 16:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804611', 'tblTempVendorCDR_20' ) end [2025-03-31 16:04:22] Production.INFO: ProcessCDR(1,14804611,1,1,2) [2025-03-31 16:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804611', 'tblTempUsageDetail_20' ) start [2025-03-31 16:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804611', 'tblTempUsageDetail_20' ) end [2025-03-31 16:04:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 16:04:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 16:04:27] Production.INFO: ==5178== Releasing lock... [2025-03-31 16:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 16:04:27] Production.INFO: 68.5 MB #Memory Used# [2025-03-31 16:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 13:05:06 [end_date_ymd] => 2025-03-31 16:05:06 [RateCDR] => 1 ) [2025-03-31 16: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-31 13:05:06' and `end` < '2025-03-31 16: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-31 16:05:20] Production.INFO: count ==5376 [2025-03-31 16:05:22] Production.ERROR: pbx CDR StartTime 2025-03-31 13:05:06 - End Time 2025-03-31 16:05:06 [2025-03-31 16:05:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 16:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804616', 'tblTempUsageDetail_20' ) start [2025-03-31 16:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804616', 'tblTempUsageDetail_20' ) end [2025-03-31 16:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804616', 'tblTempVendorCDR_20' ) start [2025-03-31 16:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804616', 'tblTempVendorCDR_20' ) end [2025-03-31 16:05:22] Production.INFO: ProcessCDR(1,14804616,1,1,2) [2025-03-31 16:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:05:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:05:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:05:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804616', 'tblTempUsageDetail_20' ) start [2025-03-31 16:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804616', 'tblTempUsageDetail_20' ) end [2025-03-31 16:05:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 16:05:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 16:05:29] Production.INFO: ==5294== Releasing lock... [2025-03-31 16:05:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 16:05:29] Production.INFO: 68.25 MB #Memory Used# [2025-03-31 16:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 13:06:06 [end_date_ymd] => 2025-03-31 16:06:06 [RateCDR] => 1 ) [2025-03-31 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-31 13:06:06' and `end` < '2025-03-31 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-31 16:06:19] Production.INFO: count ==5391 [2025-03-31 16:06:22] Production.ERROR: pbx CDR StartTime 2025-03-31 13:06:06 - End Time 2025-03-31 16:06:06 [2025-03-31 16:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 16:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804621', 'tblTempUsageDetail_20' ) start [2025-03-31 16:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804621', 'tblTempUsageDetail_20' ) end [2025-03-31 16:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804621', 'tblTempVendorCDR_20' ) start [2025-03-31 16:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804621', 'tblTempVendorCDR_20' ) end [2025-03-31 16:06:22] Production.INFO: ProcessCDR(1,14804621,1,1,2) [2025-03-31 16:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804621', 'tblTempUsageDetail_20' ) start [2025-03-31 16:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804621', 'tblTempUsageDetail_20' ) end [2025-03-31 16:06:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 16:06:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 16:06:27] Production.INFO: ==5368== Releasing lock... [2025-03-31 16:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 16:06:27] Production.INFO: 68.25 MB #Memory Used# [2025-03-31 16:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 13:07:05 [end_date_ymd] => 2025-03-31 16:07:05 [RateCDR] => 1 ) [2025-03-31 16:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 13:07:05' and `end` < '2025-03-31 16:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 16:07:19] Production.INFO: count ==5396 [2025-03-31 16:07:21] Production.ERROR: pbx CDR StartTime 2025-03-31 13:07:05 - End Time 2025-03-31 16:07:05 [2025-03-31 16:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 16:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804626', 'tblTempUsageDetail_20' ) start [2025-03-31 16:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804626', 'tblTempUsageDetail_20' ) end [2025-03-31 16:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804626', 'tblTempVendorCDR_20' ) start [2025-03-31 16:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804626', 'tblTempVendorCDR_20' ) end [2025-03-31 16:07:21] Production.INFO: ProcessCDR(1,14804626,1,1,2) [2025-03-31 16:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804626', 'tblTempUsageDetail_20' ) start [2025-03-31 16:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804626', 'tblTempUsageDetail_20' ) end [2025-03-31 16:07:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 16:07:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 16:07:26] Production.INFO: ==5441== Releasing lock... [2025-03-31 16:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 16:07:26] Production.INFO: 68.5 MB #Memory Used# [2025-03-31 16:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 13:08:06 [end_date_ymd] => 2025-03-31 16:08:06 [RateCDR] => 1 ) [2025-03-31 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-31 13:08:06' and `end` < '2025-03-31 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-31 16:08:19] Production.INFO: count ==5386 [2025-03-31 16:08:22] Production.ERROR: pbx CDR StartTime 2025-03-31 13:08:06 - End Time 2025-03-31 16:08:06 [2025-03-31 16:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 16:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804631', 'tblTempUsageDetail_20' ) start [2025-03-31 16:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804631', 'tblTempUsageDetail_20' ) end [2025-03-31 16:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804631', 'tblTempVendorCDR_20' ) start [2025-03-31 16:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804631', 'tblTempVendorCDR_20' ) end [2025-03-31 16:08:22] Production.INFO: ProcessCDR(1,14804631,1,1,2) [2025-03-31 16:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804631', 'tblTempUsageDetail_20' ) start [2025-03-31 16:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804631', 'tblTempUsageDetail_20' ) end [2025-03-31 16:08:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 16:08:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 16:08:27] Production.INFO: ==5517== Releasing lock... [2025-03-31 16:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 16:08:27] Production.INFO: 68.25 MB #Memory Used# [2025-03-31 16:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 13:09:05 [end_date_ymd] => 2025-03-31 16:09:05 [RateCDR] => 1 ) [2025-03-31 16:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 13:09:05' and `end` < '2025-03-31 16:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 16:09:19] Production.INFO: count ==5393 [2025-03-31 16:09:21] Production.ERROR: pbx CDR StartTime 2025-03-31 13:09:05 - End Time 2025-03-31 16:09:05 [2025-03-31 16:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 16:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804636', 'tblTempUsageDetail_20' ) start [2025-03-31 16:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804636', 'tblTempUsageDetail_20' ) end [2025-03-31 16:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804636', 'tblTempVendorCDR_20' ) start [2025-03-31 16:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804636', 'tblTempVendorCDR_20' ) end [2025-03-31 16:09:21] Production.INFO: ProcessCDR(1,14804636,1,1,2) [2025-03-31 16:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804636', 'tblTempUsageDetail_20' ) start [2025-03-31 16:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804636', 'tblTempUsageDetail_20' ) end [2025-03-31 16:09:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 16:09:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 16:09:27] Production.INFO: ==5591== Releasing lock... [2025-03-31 16:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 16:09:27] Production.INFO: 68.5 MB #Memory Used# [2025-03-31 16:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 13:10:06 [end_date_ymd] => 2025-03-31 16:10:06 [RateCDR] => 1 ) [2025-03-31 16:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 13:10:06' and `end` < '2025-03-31 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-31 16:10:20] Production.INFO: count ==5392 [2025-03-31 16:10:22] Production.ERROR: pbx CDR StartTime 2025-03-31 13:10:06 - End Time 2025-03-31 16:10:06 [2025-03-31 16:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 16:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804642', 'tblTempUsageDetail_20' ) start [2025-03-31 16:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804642', 'tblTempUsageDetail_20' ) end [2025-03-31 16:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804642', 'tblTempVendorCDR_20' ) start [2025-03-31 16:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804642', 'tblTempVendorCDR_20' ) end [2025-03-31 16:10:23] Production.INFO: ProcessCDR(1,14804642,1,1,2) [2025-03-31 16:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804642', 'tblTempUsageDetail_20' ) start [2025-03-31 16:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804642', 'tblTempUsageDetail_20' ) end [2025-03-31 16:10:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 16:10:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 16:10:28] Production.INFO: ==5668== Releasing lock... [2025-03-31 16:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 16:10:28] Production.INFO: 68.5 MB #Memory Used# [2025-03-31 16:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 13:11:05 [end_date_ymd] => 2025-03-31 16:11:05 [RateCDR] => 1 ) [2025-03-31 16:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 13:11:05' and `end` < '2025-03-31 16:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 16:11:18] Production.INFO: count ==5349 [2025-03-31 16:11:21] Production.ERROR: pbx CDR StartTime 2025-03-31 13:11:05 - End Time 2025-03-31 16:11:05 [2025-03-31 16:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 16:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804647', 'tblTempUsageDetail_20' ) start [2025-03-31 16:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804647', 'tblTempUsageDetail_20' ) end [2025-03-31 16:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804647', 'tblTempVendorCDR_20' ) start [2025-03-31 16:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804647', 'tblTempVendorCDR_20' ) end [2025-03-31 16:11:21] Production.INFO: ProcessCDR(1,14804647,1,1,2) [2025-03-31 16:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804647', 'tblTempUsageDetail_20' ) start [2025-03-31 16:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804647', 'tblTempUsageDetail_20' ) end [2025-03-31 16:11:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 16:11:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 16:11:26] Production.INFO: ==5747== Releasing lock... [2025-03-31 16:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 16:11:26] Production.INFO: 68 MB #Memory Used# [2025-03-31 16:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 13:12:05 [end_date_ymd] => 2025-03-31 16:12:05 [RateCDR] => 1 ) [2025-03-31 16:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 13:12:05' and `end` < '2025-03-31 16:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 16:12:19] Production.INFO: count ==5352 [2025-03-31 16:12:21] Production.ERROR: pbx CDR StartTime 2025-03-31 13:12:05 - End Time 2025-03-31 16:12:05 [2025-03-31 16:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804652', 'tblTempUsageDetail_20' ) start [2025-03-31 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804652', 'tblTempUsageDetail_20' ) end [2025-03-31 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804652', 'tblTempVendorCDR_20' ) start [2025-03-31 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804652', 'tblTempVendorCDR_20' ) end [2025-03-31 16:12:21] Production.INFO: ProcessCDR(1,14804652,1,1,2) [2025-03-31 16:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804652', 'tblTempUsageDetail_20' ) start [2025-03-31 16:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804652', 'tblTempUsageDetail_20' ) end [2025-03-31 16:12:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 16:12:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 16:12:26] Production.INFO: ==5824== Releasing lock... [2025-03-31 16:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 16:12:26] Production.INFO: 68 MB #Memory Used# [2025-03-31 16:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 13:13:05 [end_date_ymd] => 2025-03-31 16:13:05 [RateCDR] => 1 ) [2025-03-31 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-31 13:13:05' and `end` < '2025-03-31 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-31 16:13:20] Production.INFO: count ==5353 [2025-03-31 16:13:22] Production.ERROR: pbx CDR StartTime 2025-03-31 13:13:05 - End Time 2025-03-31 16:13:05 [2025-03-31 16:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 16:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804657', 'tblTempUsageDetail_20' ) start [2025-03-31 16:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804657', 'tblTempUsageDetail_20' ) end [2025-03-31 16:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804657', 'tblTempVendorCDR_20' ) start [2025-03-31 16:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804657', 'tblTempVendorCDR_20' ) end [2025-03-31 16:13:22] Production.INFO: ProcessCDR(1,14804657,1,1,2) [2025-03-31 16:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:13:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:13:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804657', 'tblTempUsageDetail_20' ) start [2025-03-31 16:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804657', 'tblTempUsageDetail_20' ) end [2025-03-31 16:13:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 16:13:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 16:13:28] Production.INFO: ==5901== Releasing lock... [2025-03-31 16:13:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 16:13:28] Production.INFO: 68 MB #Memory Used# [2025-03-31 16:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 13:14:05 [end_date_ymd] => 2025-03-31 16:14:05 [RateCDR] => 1 ) [2025-03-31 16: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-31 13:14:05' and `end` < '2025-03-31 16: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-31 16:14:19] Production.INFO: count ==5356 [2025-03-31 16:14:21] Production.ERROR: pbx CDR StartTime 2025-03-31 13:14:05 - End Time 2025-03-31 16:14:05 [2025-03-31 16:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 16:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804662', 'tblTempUsageDetail_20' ) start [2025-03-31 16:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804662', 'tblTempUsageDetail_20' ) end [2025-03-31 16:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804662', 'tblTempVendorCDR_20' ) start [2025-03-31 16:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804662', 'tblTempVendorCDR_20' ) end [2025-03-31 16:14:22] Production.INFO: ProcessCDR(1,14804662,1,1,2) [2025-03-31 16:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804662', 'tblTempUsageDetail_20' ) start [2025-03-31 16:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804662', 'tblTempUsageDetail_20' ) end [2025-03-31 16:14:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 16:14:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 16:14:27] Production.INFO: ==5979== Releasing lock... [2025-03-31 16:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 16:14:27] Production.INFO: 68 MB #Memory Used# [2025-03-31 16:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 13:15:05 [end_date_ymd] => 2025-03-31 16:15:05 [RateCDR] => 1 ) [2025-03-31 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-31 13:15:05' and `end` < '2025-03-31 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-31 16:15:19] Production.INFO: count ==5387 [2025-03-31 16:15:21] Production.ERROR: pbx CDR StartTime 2025-03-31 13:15:05 - End Time 2025-03-31 16:15:05 [2025-03-31 16:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 16:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804667', 'tblTempUsageDetail_20' ) start [2025-03-31 16:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804667', 'tblTempUsageDetail_20' ) end [2025-03-31 16:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804667', 'tblTempVendorCDR_20' ) start [2025-03-31 16:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804667', 'tblTempVendorCDR_20' ) end [2025-03-31 16:15:21] Production.INFO: ProcessCDR(1,14804667,1,1,2) [2025-03-31 16:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804667', 'tblTempUsageDetail_20' ) start [2025-03-31 16:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804667', 'tblTempUsageDetail_20' ) end [2025-03-31 16:15:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 16:15:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 16:15:26] Production.INFO: ==6057== Releasing lock... [2025-03-31 16:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 16:15:26] Production.INFO: 68.25 MB #Memory Used# [2025-03-31 16:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 13:16:06 [end_date_ymd] => 2025-03-31 16:16:06 [RateCDR] => 1 ) [2025-03-31 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-31 13:16:06' and `end` < '2025-03-31 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-31 16:16:19] Production.INFO: count ==5377 [2025-03-31 16:16:22] Production.ERROR: pbx CDR StartTime 2025-03-31 13:16:06 - End Time 2025-03-31 16:16:06 [2025-03-31 16:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 16:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804672', 'tblTempUsageDetail_20' ) start [2025-03-31 16:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804672', 'tblTempUsageDetail_20' ) end [2025-03-31 16:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804672', 'tblTempVendorCDR_20' ) start [2025-03-31 16:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804672', 'tblTempVendorCDR_20' ) end [2025-03-31 16:16:22] Production.INFO: ProcessCDR(1,14804672,1,1,2) [2025-03-31 16:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804672', 'tblTempUsageDetail_20' ) start [2025-03-31 16:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804672', 'tblTempUsageDetail_20' ) end [2025-03-31 16:16:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 16:16:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 16:16:27] Production.INFO: ==6140== Releasing lock... [2025-03-31 16:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 16:16:27] Production.INFO: 68.25 MB #Memory Used# [2025-03-31 16:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 13:17:05 [end_date_ymd] => 2025-03-31 16:17:05 [RateCDR] => 1 ) [2025-03-31 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-31 13:17:05' and `end` < '2025-03-31 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-31 16:17:18] Production.INFO: count ==5392 [2025-03-31 16:17:21] Production.ERROR: pbx CDR StartTime 2025-03-31 13:17:05 - End Time 2025-03-31 16:17:05 [2025-03-31 16:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804677', 'tblTempUsageDetail_20' ) start [2025-03-31 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804677', 'tblTempUsageDetail_20' ) end [2025-03-31 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804677', 'tblTempVendorCDR_20' ) start [2025-03-31 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804677', 'tblTempVendorCDR_20' ) end [2025-03-31 16:17:21] Production.INFO: ProcessCDR(1,14804677,1,1,2) [2025-03-31 16:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804677', 'tblTempUsageDetail_20' ) start [2025-03-31 16:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804677', 'tblTempUsageDetail_20' ) end [2025-03-31 16:17:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 16:17:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 16:17:26] Production.INFO: ==6217== Releasing lock... [2025-03-31 16:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 16:17:26] Production.INFO: 68.5 MB #Memory Used# [2025-03-31 16:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 13:18:05 [end_date_ymd] => 2025-03-31 16:18:05 [RateCDR] => 1 ) [2025-03-31 16: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-31 13:18:05' and `end` < '2025-03-31 16: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-31 16:18:19] Production.INFO: count ==5400 [2025-03-31 16:18:21] Production.ERROR: pbx CDR StartTime 2025-03-31 13:18:05 - End Time 2025-03-31 16:18:05 [2025-03-31 16:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 16:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804682', 'tblTempUsageDetail_20' ) start [2025-03-31 16:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804682', 'tblTempUsageDetail_20' ) end [2025-03-31 16:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804682', 'tblTempVendorCDR_20' ) start [2025-03-31 16:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804682', 'tblTempVendorCDR_20' ) end [2025-03-31 16:18:21] Production.INFO: ProcessCDR(1,14804682,1,1,2) [2025-03-31 16:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804682', 'tblTempUsageDetail_20' ) start [2025-03-31 16:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804682', 'tblTempUsageDetail_20' ) end [2025-03-31 16:18:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 16:18:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 16:18:27] Production.INFO: ==6301== Releasing lock... [2025-03-31 16:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 16:18:27] Production.INFO: 68.5 MB #Memory Used# [2025-03-31 16:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 13:19:05 [end_date_ymd] => 2025-03-31 16:19:05 [RateCDR] => 1 ) [2025-03-31 16: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-31 13:19:05' and `end` < '2025-03-31 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-31 16:19:19] Production.INFO: count ==5403 [2025-03-31 16:19:21] Production.ERROR: pbx CDR StartTime 2025-03-31 13:19:05 - End Time 2025-03-31 16:19:05 [2025-03-31 16:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 16:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804687', 'tblTempUsageDetail_20' ) start [2025-03-31 16:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804687', 'tblTempUsageDetail_20' ) end [2025-03-31 16:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804687', 'tblTempVendorCDR_20' ) start [2025-03-31 16:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804687', 'tblTempVendorCDR_20' ) end [2025-03-31 16:19:22] Production.INFO: ProcessCDR(1,14804687,1,1,2) [2025-03-31 16:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804687', 'tblTempUsageDetail_20' ) start [2025-03-31 16:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804687', 'tblTempUsageDetail_20' ) end [2025-03-31 16:19:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 16:19:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 16:19:27] Production.INFO: ==6377== Releasing lock... [2025-03-31 16:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 16:19:27] Production.INFO: 68.5 MB #Memory Used# [2025-03-31 16:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 13:20:05 [end_date_ymd] => 2025-03-31 16:20:05 [RateCDR] => 1 ) [2025-03-31 16: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-31 13:20:05' and `end` < '2025-03-31 16: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-31 16:20:19] Production.INFO: count ==5412 [2025-03-31 16:20:21] Production.ERROR: pbx CDR StartTime 2025-03-31 13:20:05 - End Time 2025-03-31 16:20:05 [2025-03-31 16:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 16:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804693', 'tblTempUsageDetail_20' ) start [2025-03-31 16:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804693', 'tblTempUsageDetail_20' ) end [2025-03-31 16:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804693', 'tblTempVendorCDR_20' ) start [2025-03-31 16:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804693', 'tblTempVendorCDR_20' ) end [2025-03-31 16:20:21] Production.INFO: ProcessCDR(1,14804693,1,1,2) [2025-03-31 16:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804693', 'tblTempUsageDetail_20' ) start [2025-03-31 16:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804693', 'tblTempUsageDetail_20' ) end [2025-03-31 16:20:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 16:20:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 16:20:27] Production.INFO: ==6499== Releasing lock... [2025-03-31 16:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 16:20:27] Production.INFO: 68.5 MB #Memory Used# [2025-03-31 16:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 13:21:06 [end_date_ymd] => 2025-03-31 16:21:06 [RateCDR] => 1 ) [2025-03-31 16: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-31 13:21:06' and `end` < '2025-03-31 16: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-31 16:21:19] Production.INFO: count ==5429 [2025-03-31 16:21:22] Production.ERROR: pbx CDR StartTime 2025-03-31 13:21:06 - End Time 2025-03-31 16:21:06 [2025-03-31 16:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 16:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804698', 'tblTempUsageDetail_20' ) start [2025-03-31 16:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804698', 'tblTempUsageDetail_20' ) end [2025-03-31 16:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804698', 'tblTempVendorCDR_20' ) start [2025-03-31 16:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804698', 'tblTempVendorCDR_20' ) end [2025-03-31 16:21:22] Production.INFO: ProcessCDR(1,14804698,1,1,2) [2025-03-31 16:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804698', 'tblTempUsageDetail_20' ) start [2025-03-31 16:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804698', 'tblTempUsageDetail_20' ) end [2025-03-31 16:21:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 16:21:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 16:21:27] Production.INFO: ==6583== Releasing lock... [2025-03-31 16:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 16:21:27] Production.INFO: 68.75 MB #Memory Used# [2025-03-31 16:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 13:22:05 [end_date_ymd] => 2025-03-31 16:22:05 [RateCDR] => 1 ) [2025-03-31 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-31 13:22:05' and `end` < '2025-03-31 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-31 16:22:19] Production.INFO: count ==5421 [2025-03-31 16:22:21] Production.ERROR: pbx CDR StartTime 2025-03-31 13:22:05 - End Time 2025-03-31 16:22:05 [2025-03-31 16:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 16:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804703', 'tblTempUsageDetail_20' ) start [2025-03-31 16:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804703', 'tblTempUsageDetail_20' ) end [2025-03-31 16:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804703', 'tblTempVendorCDR_20' ) start [2025-03-31 16:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804703', 'tblTempVendorCDR_20' ) end [2025-03-31 16:22:21] Production.INFO: ProcessCDR(1,14804703,1,1,2) [2025-03-31 16:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804703', 'tblTempUsageDetail_20' ) start [2025-03-31 16:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804703', 'tblTempUsageDetail_20' ) end [2025-03-31 16:22:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 16:22:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 16:22:26] Production.INFO: ==6661== Releasing lock... [2025-03-31 16:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 16:22:26] Production.INFO: 68.5 MB #Memory Used# [2025-03-31 16:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 13:23:06 [end_date_ymd] => 2025-03-31 16:23:06 [RateCDR] => 1 ) [2025-03-31 16:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 13:23:06' and `end` < '2025-03-31 16:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 16:23:20] Production.INFO: count ==5427 [2025-03-31 16:23:22] Production.ERROR: pbx CDR StartTime 2025-03-31 13:23:06 - End Time 2025-03-31 16:23:06 [2025-03-31 16:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 16:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804708', 'tblTempUsageDetail_20' ) start [2025-03-31 16:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804708', 'tblTempUsageDetail_20' ) end [2025-03-31 16:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804708', 'tblTempVendorCDR_20' ) start [2025-03-31 16:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804708', 'tblTempVendorCDR_20' ) end [2025-03-31 16:23:22] Production.INFO: ProcessCDR(1,14804708,1,1,2) [2025-03-31 16:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:23:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:23:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:23:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804708', 'tblTempUsageDetail_20' ) start [2025-03-31 16:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804708', 'tblTempUsageDetail_20' ) end [2025-03-31 16:23:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 16:23:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 16:23:28] Production.INFO: ==6745== Releasing lock... [2025-03-31 16:23:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 16:23:28] Production.INFO: 68.75 MB #Memory Used# [2025-03-31 16:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 13:24:05 [end_date_ymd] => 2025-03-31 16:24:05 [RateCDR] => 1 ) [2025-03-31 16:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 13:24:05' and `end` < '2025-03-31 16:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 16:24:19] Production.INFO: count ==5426 [2025-03-31 16:24:21] Production.ERROR: pbx CDR StartTime 2025-03-31 13:24:05 - End Time 2025-03-31 16:24:05 [2025-03-31 16:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 16:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804713', 'tblTempUsageDetail_20' ) start [2025-03-31 16:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804713', 'tblTempUsageDetail_20' ) end [2025-03-31 16:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804713', 'tblTempVendorCDR_20' ) start [2025-03-31 16:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804713', 'tblTempVendorCDR_20' ) end [2025-03-31 16:24:21] Production.INFO: ProcessCDR(1,14804713,1,1,2) [2025-03-31 16:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804713', 'tblTempUsageDetail_20' ) start [2025-03-31 16:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804713', 'tblTempUsageDetail_20' ) end [2025-03-31 16:24:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 16:24:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 16:24:27] Production.INFO: ==6834== Releasing lock... [2025-03-31 16:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 16:24:27] Production.INFO: 68.75 MB #Memory Used# [2025-03-31 16:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 13:25:06 [end_date_ymd] => 2025-03-31 16:25:06 [RateCDR] => 1 ) [2025-03-31 16:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 13:25:06' and `end` < '2025-03-31 16:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 16:25:20] Production.INFO: count ==5429 [2025-03-31 16:25:22] Production.ERROR: pbx CDR StartTime 2025-03-31 13:25:06 - End Time 2025-03-31 16:25:06 [2025-03-31 16:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804718', 'tblTempUsageDetail_20' ) start [2025-03-31 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804718', 'tblTempUsageDetail_20' ) end [2025-03-31 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804718', 'tblTempVendorCDR_20' ) start [2025-03-31 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804718', 'tblTempVendorCDR_20' ) end [2025-03-31 16:25:22] Production.INFO: ProcessCDR(1,14804718,1,1,2) [2025-03-31 16:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804718', 'tblTempUsageDetail_20' ) start [2025-03-31 16:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804718', 'tblTempUsageDetail_20' ) end [2025-03-31 16:25:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 16:25:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 16:25:27] Production.INFO: ==6921== Releasing lock... [2025-03-31 16:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 16:25:27] Production.INFO: 68.75 MB #Memory Used# [2025-03-31 16:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 13:26:05 [end_date_ymd] => 2025-03-31 16:26:05 [RateCDR] => 1 ) [2025-03-31 16:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 13:26:05' and `end` < '2025-03-31 16:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 16:26:19] Production.INFO: count ==5418 [2025-03-31 16:26:21] Production.ERROR: pbx CDR StartTime 2025-03-31 13:26:05 - End Time 2025-03-31 16:26:05 [2025-03-31 16:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 16:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804723', 'tblTempUsageDetail_20' ) start [2025-03-31 16:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804723', 'tblTempUsageDetail_20' ) end [2025-03-31 16:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804723', 'tblTempVendorCDR_20' ) start [2025-03-31 16:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804723', 'tblTempVendorCDR_20' ) end [2025-03-31 16:26:21] Production.INFO: ProcessCDR(1,14804723,1,1,2) [2025-03-31 16:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804723', 'tblTempUsageDetail_20' ) start [2025-03-31 16:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804723', 'tblTempUsageDetail_20' ) end [2025-03-31 16:26:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 16:26:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 16:26:26] Production.INFO: ==7012== Releasing lock... [2025-03-31 16:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 16:26:26] Production.INFO: 68.5 MB #Memory Used# [2025-03-31 16:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 13:27:06 [end_date_ymd] => 2025-03-31 16:27:06 [RateCDR] => 1 ) [2025-03-31 16: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-31 13:27:06' and `end` < '2025-03-31 16: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-31 16:27:20] Production.INFO: count ==5404 [2025-03-31 16:27:22] Production.ERROR: pbx CDR StartTime 2025-03-31 13:27:06 - End Time 2025-03-31 16:27:06 [2025-03-31 16:27:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 16:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804728', 'tblTempUsageDetail_20' ) start [2025-03-31 16:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804728', 'tblTempUsageDetail_20' ) end [2025-03-31 16:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804728', 'tblTempVendorCDR_20' ) start [2025-03-31 16:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804728', 'tblTempVendorCDR_20' ) end [2025-03-31 16:27:22] Production.INFO: ProcessCDR(1,14804728,1,1,2) [2025-03-31 16:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:27:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804728', 'tblTempUsageDetail_20' ) start [2025-03-31 16:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804728', 'tblTempUsageDetail_20' ) end [2025-03-31 16:27:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 16:27:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 16:27:27] Production.INFO: ==7096== Releasing lock... [2025-03-31 16:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 16:27:27] Production.INFO: 68.5 MB #Memory Used# [2025-03-31 16:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 13:28:05 [end_date_ymd] => 2025-03-31 16:28:05 [RateCDR] => 1 ) [2025-03-31 16:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 13:28:05' and `end` < '2025-03-31 16:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 16:28:19] Production.INFO: count ==5389 [2025-03-31 16:28:22] Production.ERROR: pbx CDR StartTime 2025-03-31 13:28:05 - End Time 2025-03-31 16:28:05 [2025-03-31 16:28:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 16:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804733', 'tblTempUsageDetail_20' ) start [2025-03-31 16:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804733', 'tblTempUsageDetail_20' ) end [2025-03-31 16:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804733', 'tblTempVendorCDR_20' ) start [2025-03-31 16:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804733', 'tblTempVendorCDR_20' ) end [2025-03-31 16:28:22] Production.INFO: ProcessCDR(1,14804733,1,1,2) [2025-03-31 16:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804733', 'tblTempUsageDetail_20' ) start [2025-03-31 16:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804733', 'tblTempUsageDetail_20' ) end [2025-03-31 16:28:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 16:28:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 16:28:27] Production.INFO: ==7180== Releasing lock... [2025-03-31 16:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 16:28:27] Production.INFO: 68.25 MB #Memory Used# [2025-03-31 16:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 13:29:06 [end_date_ymd] => 2025-03-31 16:29:06 [RateCDR] => 1 ) [2025-03-31 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-31 13:29:06' and `end` < '2025-03-31 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-31 16:29:19] Production.INFO: count ==5393 [2025-03-31 16:29:22] Production.ERROR: pbx CDR StartTime 2025-03-31 13:29:06 - End Time 2025-03-31 16:29:06 [2025-03-31 16:29:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 16:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804738', 'tblTempUsageDetail_20' ) start [2025-03-31 16:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804738', 'tblTempUsageDetail_20' ) end [2025-03-31 16:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804738', 'tblTempVendorCDR_20' ) start [2025-03-31 16:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804738', 'tblTempVendorCDR_20' ) end [2025-03-31 16:29:22] Production.INFO: ProcessCDR(1,14804738,1,1,2) [2025-03-31 16:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:29:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:29:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:29:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804738', 'tblTempUsageDetail_20' ) start [2025-03-31 16:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804738', 'tblTempUsageDetail_20' ) end [2025-03-31 16:29:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 16:29:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 16:29:27] Production.INFO: ==7264== Releasing lock... [2025-03-31 16:29:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 16:29:27] Production.INFO: 68.5 MB #Memory Used# [2025-03-31 16:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 13:30:06 [end_date_ymd] => 2025-03-31 16:30:06 [RateCDR] => 1 ) [2025-03-31 16:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 13:30:06' and `end` < '2025-03-31 16:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 16:30:20] Production.INFO: count ==5419 [2025-03-31 16:30:23] Production.ERROR: pbx CDR StartTime 2025-03-31 13:30:06 - End Time 2025-03-31 16:30:06 [2025-03-31 16:30:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 16:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804744', 'tblTempUsageDetail_20' ) start [2025-03-31 16:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804744', 'tblTempUsageDetail_20' ) end [2025-03-31 16:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804744', 'tblTempVendorCDR_20' ) start [2025-03-31 16:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804744', 'tblTempVendorCDR_20' ) end [2025-03-31 16:30:23] Production.INFO: ProcessCDR(1,14804744,1,1,2) [2025-03-31 16:30:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:30:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:30:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:30:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:30:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804744', 'tblTempUsageDetail_20' ) start [2025-03-31 16:30:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804744', 'tblTempUsageDetail_20' ) end [2025-03-31 16:30:29] Production.ERROR: pbx prc_insertCDR start [2025-03-31 16:30:29] Production.ERROR: pbx prc_insertCDR end [2025-03-31 16:30:29] Production.INFO: ==7350== Releasing lock... [2025-03-31 16:30:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 16:30:29] Production.INFO: 68.5 MB #Memory Used# [2025-03-31 16:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 13:31:06 [end_date_ymd] => 2025-03-31 16:31:06 [RateCDR] => 1 ) [2025-03-31 16: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-31 13:31:06' and `end` < '2025-03-31 16: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-31 16:31:20] Production.INFO: count ==5432 [2025-03-31 16:31:22] Production.ERROR: pbx CDR StartTime 2025-03-31 13:31:06 - End Time 2025-03-31 16:31:06 [2025-03-31 16:31:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 16:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804749', 'tblTempUsageDetail_20' ) start [2025-03-31 16:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804749', 'tblTempUsageDetail_20' ) end [2025-03-31 16:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804749', 'tblTempVendorCDR_20' ) start [2025-03-31 16:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804749', 'tblTempVendorCDR_20' ) end [2025-03-31 16:31:23] Production.INFO: ProcessCDR(1,14804749,1,1,2) [2025-03-31 16:31:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:31:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:31:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:31:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804749', 'tblTempUsageDetail_20' ) start [2025-03-31 16:31:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804749', 'tblTempUsageDetail_20' ) end [2025-03-31 16:31:29] Production.ERROR: pbx prc_insertCDR start [2025-03-31 16:31:29] Production.ERROR: pbx prc_insertCDR end [2025-03-31 16:31:29] Production.INFO: ==7439== Releasing lock... [2025-03-31 16:31:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 16:31:29] Production.INFO: 68.75 MB #Memory Used# [2025-03-31 16:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 13:32:06 [end_date_ymd] => 2025-03-31 16:32:06 [RateCDR] => 1 ) [2025-03-31 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-31 13:32:06' and `end` < '2025-03-31 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-31 16:32:20] Production.INFO: count ==5432 [2025-03-31 16:32:22] Production.ERROR: pbx CDR StartTime 2025-03-31 13:32:06 - End Time 2025-03-31 16:32:06 [2025-03-31 16:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 16:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804754', 'tblTempUsageDetail_20' ) start [2025-03-31 16:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804754', 'tblTempUsageDetail_20' ) end [2025-03-31 16:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804754', 'tblTempVendorCDR_20' ) start [2025-03-31 16:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804754', 'tblTempVendorCDR_20' ) end [2025-03-31 16:32:22] Production.INFO: ProcessCDR(1,14804754,1,1,2) [2025-03-31 16:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:32:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:32:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:32:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804754', 'tblTempUsageDetail_20' ) start [2025-03-31 16:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804754', 'tblTempUsageDetail_20' ) end [2025-03-31 16:32:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 16:32:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 16:32:28] Production.INFO: ==7521== Releasing lock... [2025-03-31 16:32:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 16:32:28] Production.INFO: 68.75 MB #Memory Used# [2025-03-31 16:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 13:33:05 [end_date_ymd] => 2025-03-31 16:33:05 [RateCDR] => 1 ) [2025-03-31 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-31 13:33:05' and `end` < '2025-03-31 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-31 16:33:19] Production.INFO: count ==5432 [2025-03-31 16:33:22] Production.ERROR: pbx CDR StartTime 2025-03-31 13:33:05 - End Time 2025-03-31 16:33:05 [2025-03-31 16:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 16:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804759', 'tblTempUsageDetail_20' ) start [2025-03-31 16:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804759', 'tblTempUsageDetail_20' ) end [2025-03-31 16:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804759', 'tblTempVendorCDR_20' ) start [2025-03-31 16:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804759', 'tblTempVendorCDR_20' ) end [2025-03-31 16:33:22] Production.INFO: ProcessCDR(1,14804759,1,1,2) [2025-03-31 16:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804759', 'tblTempUsageDetail_20' ) start [2025-03-31 16:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804759', 'tblTempUsageDetail_20' ) end [2025-03-31 16:33:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 16:33:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 16:33:27] Production.INFO: ==7608== Releasing lock... [2025-03-31 16:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 16:33:27] Production.INFO: 68.75 MB #Memory Used# [2025-03-31 16:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 13:34:05 [end_date_ymd] => 2025-03-31 16:34:05 [RateCDR] => 1 ) [2025-03-31 16:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 13:34:05' and `end` < '2025-03-31 16:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 16:34:18] Production.INFO: count ==5439 [2025-03-31 16:34:21] Production.ERROR: pbx CDR StartTime 2025-03-31 13:34:05 - End Time 2025-03-31 16:34:05 [2025-03-31 16:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 16:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804764', 'tblTempUsageDetail_20' ) start [2025-03-31 16:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804764', 'tblTempUsageDetail_20' ) end [2025-03-31 16:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804764', 'tblTempVendorCDR_20' ) start [2025-03-31 16:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804764', 'tblTempVendorCDR_20' ) end [2025-03-31 16:34:21] Production.INFO: ProcessCDR(1,14804764,1,1,2) [2025-03-31 16:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804764', 'tblTempUsageDetail_20' ) start [2025-03-31 16:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804764', 'tblTempUsageDetail_20' ) end [2025-03-31 16:34:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 16:34:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 16:34:26] Production.INFO: ==7698== Releasing lock... [2025-03-31 16:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 16:34:26] Production.INFO: 68.75 MB #Memory Used# [2025-03-31 16:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 13:35:05 [end_date_ymd] => 2025-03-31 16:35:05 [RateCDR] => 1 ) [2025-03-31 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-31 13:35:05' and `end` < '2025-03-31 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-31 16:35:19] Production.INFO: count ==5410 [2025-03-31 16:35:21] Production.ERROR: pbx CDR StartTime 2025-03-31 13:35:05 - End Time 2025-03-31 16:35:05 [2025-03-31 16:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 16:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804769', 'tblTempUsageDetail_20' ) start [2025-03-31 16:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804769', 'tblTempUsageDetail_20' ) end [2025-03-31 16:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804769', 'tblTempVendorCDR_20' ) start [2025-03-31 16:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804769', 'tblTempVendorCDR_20' ) end [2025-03-31 16:35:21] Production.INFO: ProcessCDR(1,14804769,1,1,2) [2025-03-31 16:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804769', 'tblTempUsageDetail_20' ) start [2025-03-31 16:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804769', 'tblTempUsageDetail_20' ) end [2025-03-31 16:35:25] Production.ERROR: pbx prc_insertCDR start [2025-03-31 16:35:25] Production.ERROR: pbx prc_insertCDR end [2025-03-31 16:35:25] Production.INFO: ==7824== Releasing lock... [2025-03-31 16:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 16:35:25] Production.INFO: 68.5 MB #Memory Used# [2025-03-31 16:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 13:36:06 [end_date_ymd] => 2025-03-31 16:36:06 [RateCDR] => 1 ) [2025-03-31 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-31 13:36:06' and `end` < '2025-03-31 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-31 16:36:19] Production.INFO: count ==5403 [2025-03-31 16:36:21] Production.ERROR: pbx CDR StartTime 2025-03-31 13:36:06 - End Time 2025-03-31 16:36:06 [2025-03-31 16:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 16:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804774', 'tblTempUsageDetail_20' ) start [2025-03-31 16:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804774', 'tblTempUsageDetail_20' ) end [2025-03-31 16:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804774', 'tblTempVendorCDR_20' ) start [2025-03-31 16:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804774', 'tblTempVendorCDR_20' ) end [2025-03-31 16:36:22] Production.INFO: ProcessCDR(1,14804774,1,1,2) [2025-03-31 16:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804774', 'tblTempUsageDetail_20' ) start [2025-03-31 16:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804774', 'tblTempUsageDetail_20' ) end [2025-03-31 16:36:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 16:36:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 16:36:27] Production.INFO: ==7912== Releasing lock... [2025-03-31 16:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 16:36:27] Production.INFO: 68.5 MB #Memory Used# [2025-03-31 16:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 13:37:06 [end_date_ymd] => 2025-03-31 16:37:06 [RateCDR] => 1 ) [2025-03-31 16:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 13:37:06' and `end` < '2025-03-31 16:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 16:37:19] Production.INFO: count ==5395 [2025-03-31 16:37:21] Production.ERROR: pbx CDR StartTime 2025-03-31 13:37:06 - End Time 2025-03-31 16:37:06 [2025-03-31 16:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 16:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804779', 'tblTempUsageDetail_20' ) start [2025-03-31 16:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804779', 'tblTempUsageDetail_20' ) end [2025-03-31 16:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804779', 'tblTempVendorCDR_20' ) start [2025-03-31 16:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804779', 'tblTempVendorCDR_20' ) end [2025-03-31 16:37:22] Production.INFO: ProcessCDR(1,14804779,1,1,2) [2025-03-31 16:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:37:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804779', 'tblTempUsageDetail_20' ) start [2025-03-31 16:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804779', 'tblTempUsageDetail_20' ) end [2025-03-31 16:37:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 16:37:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 16:37:27] Production.INFO: ==8010== Releasing lock... [2025-03-31 16:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 16:37:27] Production.INFO: 68.5 MB #Memory Used# [2025-03-31 16:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 13:38:06 [end_date_ymd] => 2025-03-31 16:38:06 [RateCDR] => 1 ) [2025-03-31 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-31 13:38:06' and `end` < '2025-03-31 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-31 16:38:19] Production.INFO: count ==5382 [2025-03-31 16:38:22] Production.ERROR: pbx CDR StartTime 2025-03-31 13:38:06 - End Time 2025-03-31 16:38:06 [2025-03-31 16:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 16:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804784', 'tblTempUsageDetail_20' ) start [2025-03-31 16:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804784', 'tblTempUsageDetail_20' ) end [2025-03-31 16:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804784', 'tblTempVendorCDR_20' ) start [2025-03-31 16:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804784', 'tblTempVendorCDR_20' ) end [2025-03-31 16:38:22] Production.INFO: ProcessCDR(1,14804784,1,1,2) [2025-03-31 16:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804784', 'tblTempUsageDetail_20' ) start [2025-03-31 16:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804784', 'tblTempUsageDetail_20' ) end [2025-03-31 16:38:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 16:38:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 16:38:27] Production.INFO: ==8104== Releasing lock... [2025-03-31 16:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 16:38:27] Production.INFO: 68.25 MB #Memory Used# [2025-03-31 16:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 13:39:05 [end_date_ymd] => 2025-03-31 16:39:05 [RateCDR] => 1 ) [2025-03-31 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-31 13:39:05' and `end` < '2025-03-31 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-31 16:39:19] Production.INFO: count ==5375 [2025-03-31 16:39:22] Production.ERROR: pbx CDR StartTime 2025-03-31 13:39:05 - End Time 2025-03-31 16:39:05 [2025-03-31 16:39:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 16:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804789', 'tblTempUsageDetail_20' ) start [2025-03-31 16:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804789', 'tblTempUsageDetail_20' ) end [2025-03-31 16:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804789', 'tblTempVendorCDR_20' ) start [2025-03-31 16:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804789', 'tblTempVendorCDR_20' ) end [2025-03-31 16:39:22] Production.INFO: ProcessCDR(1,14804789,1,1,2) [2025-03-31 16:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:39:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:39:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:39:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804789', 'tblTempUsageDetail_20' ) start [2025-03-31 16:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804789', 'tblTempUsageDetail_20' ) end [2025-03-31 16:39:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 16:39:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 16:39:27] Production.INFO: ==8204== Releasing lock... [2025-03-31 16:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 16:39:27] Production.INFO: 68.25 MB #Memory Used# [2025-03-31 16:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 13:40:06 [end_date_ymd] => 2025-03-31 16:40:06 [RateCDR] => 1 ) [2025-03-31 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-31 13:40:06' and `end` < '2025-03-31 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-31 16:40:20] Production.INFO: count ==5379 [2025-03-31 16:40:22] Production.ERROR: pbx CDR StartTime 2025-03-31 13:40:06 - End Time 2025-03-31 16:40:06 [2025-03-31 16:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 16:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804795', 'tblTempUsageDetail_20' ) start [2025-03-31 16:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804795', 'tblTempUsageDetail_20' ) end [2025-03-31 16:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804795', 'tblTempVendorCDR_20' ) start [2025-03-31 16:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804795', 'tblTempVendorCDR_20' ) end [2025-03-31 16:40:22] Production.INFO: ProcessCDR(1,14804795,1,1,2) [2025-03-31 16:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804795', 'tblTempUsageDetail_20' ) start [2025-03-31 16:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804795', 'tblTempUsageDetail_20' ) end [2025-03-31 16:40:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 16:40:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 16:40:28] Production.INFO: ==8306== Releasing lock... [2025-03-31 16:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 16:40:28] Production.INFO: 68.25 MB #Memory Used# [2025-03-31 16:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 13:41:05 [end_date_ymd] => 2025-03-31 16:41:05 [RateCDR] => 1 ) [2025-03-31 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-31 13:41:05' and `end` < '2025-03-31 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-31 16:41:19] Production.INFO: count ==5355 [2025-03-31 16:41:22] Production.ERROR: pbx CDR StartTime 2025-03-31 13:41:05 - End Time 2025-03-31 16:41:05 [2025-03-31 16:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 16:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804800', 'tblTempUsageDetail_20' ) start [2025-03-31 16:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804800', 'tblTempUsageDetail_20' ) end [2025-03-31 16:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804800', 'tblTempVendorCDR_20' ) start [2025-03-31 16:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804800', 'tblTempVendorCDR_20' ) end [2025-03-31 16:41:22] Production.INFO: ProcessCDR(1,14804800,1,1,2) [2025-03-31 16:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:41:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:41:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804800', 'tblTempUsageDetail_20' ) start [2025-03-31 16:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804800', 'tblTempUsageDetail_20' ) end [2025-03-31 16:41:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 16:41:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 16:41:27] Production.INFO: ==8406== Releasing lock... [2025-03-31 16:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 16:41:27] Production.INFO: 68 MB #Memory Used# [2025-03-31 16:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 13:42:05 [end_date_ymd] => 2025-03-31 16:42:05 [RateCDR] => 1 ) [2025-03-31 16:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 13:42:05' and `end` < '2025-03-31 16:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 16:42:19] Production.INFO: count ==5353 [2025-03-31 16:42:21] Production.ERROR: pbx CDR StartTime 2025-03-31 13:42:05 - End Time 2025-03-31 16:42:05 [2025-03-31 16:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 16:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804805', 'tblTempUsageDetail_20' ) start [2025-03-31 16:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804805', 'tblTempUsageDetail_20' ) end [2025-03-31 16:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804805', 'tblTempVendorCDR_20' ) start [2025-03-31 16:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804805', 'tblTempVendorCDR_20' ) end [2025-03-31 16:42:22] Production.INFO: ProcessCDR(1,14804805,1,1,2) [2025-03-31 16:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804805', 'tblTempUsageDetail_20' ) start [2025-03-31 16:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804805', 'tblTempUsageDetail_20' ) end [2025-03-31 16:42:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 16:42:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 16:42:27] Production.INFO: ==8483== Releasing lock... [2025-03-31 16:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 16:42:27] Production.INFO: 68 MB #Memory Used# [2025-03-31 16:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 13:43:05 [end_date_ymd] => 2025-03-31 16:43:05 [RateCDR] => 1 ) [2025-03-31 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-31 13:43:05' and `end` < '2025-03-31 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-31 16:43:19] Production.INFO: count ==5365 [2025-03-31 16:43:21] Production.ERROR: pbx CDR StartTime 2025-03-31 13:43:05 - End Time 2025-03-31 16:43:05 [2025-03-31 16:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 16:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804810', 'tblTempUsageDetail_20' ) start [2025-03-31 16:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804810', 'tblTempUsageDetail_20' ) end [2025-03-31 16:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804810', 'tblTempVendorCDR_20' ) start [2025-03-31 16:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804810', 'tblTempVendorCDR_20' ) end [2025-03-31 16:43:21] Production.INFO: ProcessCDR(1,14804810,1,1,2) [2025-03-31 16:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804810', 'tblTempUsageDetail_20' ) start [2025-03-31 16:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804810', 'tblTempUsageDetail_20' ) end [2025-03-31 16:43:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 16:43:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 16:43:27] Production.INFO: ==8568== Releasing lock... [2025-03-31 16:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 16:43:27] Production.INFO: 68.25 MB #Memory Used# [2025-03-31 16:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 13:44:06 [end_date_ymd] => 2025-03-31 16:44:06 [RateCDR] => 1 ) [2025-03-31 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-31 13:44:06' and `end` < '2025-03-31 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-31 16:44:19] Production.INFO: count ==5365 [2025-03-31 16:44:22] Production.ERROR: pbx CDR StartTime 2025-03-31 13:44:06 - End Time 2025-03-31 16:44:06 [2025-03-31 16:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 16:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804815', 'tblTempUsageDetail_20' ) start [2025-03-31 16:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804815', 'tblTempUsageDetail_20' ) end [2025-03-31 16:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804815', 'tblTempVendorCDR_20' ) start [2025-03-31 16:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804815', 'tblTempVendorCDR_20' ) end [2025-03-31 16:44:22] Production.INFO: ProcessCDR(1,14804815,1,1,2) [2025-03-31 16:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804815', 'tblTempUsageDetail_20' ) start [2025-03-31 16:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804815', 'tblTempUsageDetail_20' ) end [2025-03-31 16:44:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 16:44:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 16:44:27] Production.INFO: ==8652== Releasing lock... [2025-03-31 16:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 16:44:27] Production.INFO: 68.25 MB #Memory Used# [2025-03-31 16:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 13:45:05 [end_date_ymd] => 2025-03-31 16:45:05 [RateCDR] => 1 ) [2025-03-31 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-31 13:45:05' and `end` < '2025-03-31 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-31 16:45:19] Production.INFO: count ==5348 [2025-03-31 16:45:21] Production.ERROR: pbx CDR StartTime 2025-03-31 13:45:05 - End Time 2025-03-31 16:45:05 [2025-03-31 16:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 16:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804820', 'tblTempUsageDetail_20' ) start [2025-03-31 16:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804820', 'tblTempUsageDetail_20' ) end [2025-03-31 16:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804820', 'tblTempVendorCDR_20' ) start [2025-03-31 16:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804820', 'tblTempVendorCDR_20' ) end [2025-03-31 16:45:21] Production.INFO: ProcessCDR(1,14804820,1,1,2) [2025-03-31 16:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804820', 'tblTempUsageDetail_20' ) start [2025-03-31 16:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804820', 'tblTempUsageDetail_20' ) end [2025-03-31 16:45:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 16:45:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 16:45:26] Production.INFO: ==8733== Releasing lock... [2025-03-31 16:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 16:45:26] Production.INFO: 68 MB #Memory Used# [2025-03-31 16:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 13:46:06 [end_date_ymd] => 2025-03-31 16:46:06 [RateCDR] => 1 ) [2025-03-31 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-31 13:46:06' and `end` < '2025-03-31 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-31 16:46:19] Production.INFO: count ==5326 [2025-03-31 16:46:21] Production.ERROR: pbx CDR StartTime 2025-03-31 13:46:06 - End Time 2025-03-31 16:46:06 [2025-03-31 16:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 16:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804825', 'tblTempUsageDetail_20' ) start [2025-03-31 16:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804825', 'tblTempUsageDetail_20' ) end [2025-03-31 16:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804825', 'tblTempVendorCDR_20' ) start [2025-03-31 16:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804825', 'tblTempVendorCDR_20' ) end [2025-03-31 16:46:21] Production.INFO: ProcessCDR(1,14804825,1,1,2) [2025-03-31 16:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804825', 'tblTempUsageDetail_20' ) start [2025-03-31 16:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804825', 'tblTempUsageDetail_20' ) end [2025-03-31 16:46:25] Production.ERROR: pbx prc_insertCDR start [2025-03-31 16:46:25] Production.ERROR: pbx prc_insertCDR end [2025-03-31 16:46:25] Production.INFO: ==8813== Releasing lock... [2025-03-31 16:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 16:46:25] Production.INFO: 67.75 MB #Memory Used# [2025-03-31 16:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 13:47:05 [end_date_ymd] => 2025-03-31 16:47:05 [RateCDR] => 1 ) [2025-03-31 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-31 13:47:05' and `end` < '2025-03-31 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-31 16:47:19] Production.INFO: count ==5345 [2025-03-31 16:47:21] Production.ERROR: pbx CDR StartTime 2025-03-31 13:47:05 - End Time 2025-03-31 16:47:05 [2025-03-31 16:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 16:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804830', 'tblTempUsageDetail_20' ) start [2025-03-31 16:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804830', 'tblTempUsageDetail_20' ) end [2025-03-31 16:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804830', 'tblTempVendorCDR_20' ) start [2025-03-31 16:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804830', 'tblTempVendorCDR_20' ) end [2025-03-31 16:47:21] Production.INFO: ProcessCDR(1,14804830,1,1,2) [2025-03-31 16:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804830', 'tblTempUsageDetail_20' ) start [2025-03-31 16:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804830', 'tblTempUsageDetail_20' ) end [2025-03-31 16:47:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 16:47:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 16:47:27] Production.INFO: ==8898== Releasing lock... [2025-03-31 16:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 16:47:27] Production.INFO: 68 MB #Memory Used# [2025-03-31 16:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 13:48:05 [end_date_ymd] => 2025-03-31 16:48:05 [RateCDR] => 1 ) [2025-03-31 16:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 13:48:05' and `end` < '2025-03-31 16:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 16:48:19] Production.INFO: count ==5366 [2025-03-31 16:48:22] Production.ERROR: pbx CDR StartTime 2025-03-31 13:48:05 - End Time 2025-03-31 16:48:05 [2025-03-31 16:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 16:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804835', 'tblTempUsageDetail_20' ) start [2025-03-31 16:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804835', 'tblTempUsageDetail_20' ) end [2025-03-31 16:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804835', 'tblTempVendorCDR_20' ) start [2025-03-31 16:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804835', 'tblTempVendorCDR_20' ) end [2025-03-31 16:48:22] Production.INFO: ProcessCDR(1,14804835,1,1,2) [2025-03-31 16:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804835', 'tblTempUsageDetail_20' ) start [2025-03-31 16:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804835', 'tblTempUsageDetail_20' ) end [2025-03-31 16:48:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 16:48:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 16:48:27] Production.INFO: ==8984== Releasing lock... [2025-03-31 16:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 16:48:27] Production.INFO: 68.25 MB #Memory Used# [2025-03-31 16:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 13:49:05 [end_date_ymd] => 2025-03-31 16:49:05 [RateCDR] => 1 ) [2025-03-31 16:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 13:49:05' and `end` < '2025-03-31 16:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 16:49:18] Production.INFO: count ==5372 [2025-03-31 16:49:20] Production.ERROR: pbx CDR StartTime 2025-03-31 13:49:05 - End Time 2025-03-31 16:49:05 [2025-03-31 16:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 16:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804840', 'tblTempUsageDetail_20' ) start [2025-03-31 16:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804840', 'tblTempUsageDetail_20' ) end [2025-03-31 16:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804840', 'tblTempVendorCDR_20' ) start [2025-03-31 16:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804840', 'tblTempVendorCDR_20' ) end [2025-03-31 16:49:21] Production.INFO: ProcessCDR(1,14804840,1,1,2) [2025-03-31 16:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804840', 'tblTempUsageDetail_20' ) start [2025-03-31 16:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804840', 'tblTempUsageDetail_20' ) end [2025-03-31 16:49:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 16:49:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 16:49:26] Production.INFO: ==9067== Releasing lock... [2025-03-31 16:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 16:49:26] Production.INFO: 68.25 MB #Memory Used# [2025-03-31 16:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 13:50:06 [end_date_ymd] => 2025-03-31 16:50:06 [RateCDR] => 1 ) [2025-03-31 16:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 13:50:06' and `end` < '2025-03-31 16:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 16:50:20] Production.INFO: count ==5344 [2025-03-31 16:50:22] Production.ERROR: pbx CDR StartTime 2025-03-31 13:50:06 - End Time 2025-03-31 16:50:06 [2025-03-31 16:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 16:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804846', 'tblTempUsageDetail_20' ) start [2025-03-31 16:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804846', 'tblTempUsageDetail_20' ) end [2025-03-31 16:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804846', 'tblTempVendorCDR_20' ) start [2025-03-31 16:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804846', 'tblTempVendorCDR_20' ) end [2025-03-31 16:50:22] Production.INFO: ProcessCDR(1,14804846,1,1,2) [2025-03-31 16:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804846', 'tblTempUsageDetail_20' ) start [2025-03-31 16:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804846', 'tblTempUsageDetail_20' ) end [2025-03-31 16:50:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 16:50:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 16:50:27] Production.INFO: ==9151== Releasing lock... [2025-03-31 16:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 16:50:27] Production.INFO: 68 MB #Memory Used# [2025-03-31 16:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 13:51:05 [end_date_ymd] => 2025-03-31 16:51:05 [RateCDR] => 1 ) [2025-03-31 16:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 13:51:05' and `end` < '2025-03-31 16:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 16:51:19] Production.INFO: count ==5322 [2025-03-31 16:51:21] Production.ERROR: pbx CDR StartTime 2025-03-31 13:51:05 - End Time 2025-03-31 16:51:05 [2025-03-31 16:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 16:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804851', 'tblTempUsageDetail_20' ) start [2025-03-31 16:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804851', 'tblTempUsageDetail_20' ) end [2025-03-31 16:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804851', 'tblTempVendorCDR_20' ) start [2025-03-31 16:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804851', 'tblTempVendorCDR_20' ) end [2025-03-31 16:51:21] Production.INFO: ProcessCDR(1,14804851,1,1,2) [2025-03-31 16:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804851', 'tblTempUsageDetail_20' ) start [2025-03-31 16:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804851', 'tblTempUsageDetail_20' ) end [2025-03-31 16:51:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 16:51:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 16:51:26] Production.INFO: ==9267== Releasing lock... [2025-03-31 16:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 16:51:26] Production.INFO: 67.75 MB #Memory Used# [2025-03-31 16:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 13:52:06 [end_date_ymd] => 2025-03-31 16:52:06 [RateCDR] => 1 ) [2025-03-31 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-31 13:52:06' and `end` < '2025-03-31 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-31 16:52:19] Production.INFO: count ==5308 [2025-03-31 16:52:21] Production.ERROR: pbx CDR StartTime 2025-03-31 13:52:06 - End Time 2025-03-31 16:52:06 [2025-03-31 16:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 16:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804856', 'tblTempUsageDetail_20' ) start [2025-03-31 16:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804856', 'tblTempUsageDetail_20' ) end [2025-03-31 16:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804856', 'tblTempVendorCDR_20' ) start [2025-03-31 16:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804856', 'tblTempVendorCDR_20' ) end [2025-03-31 16:52:22] Production.INFO: ProcessCDR(1,14804856,1,1,2) [2025-03-31 16:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804856', 'tblTempUsageDetail_20' ) start [2025-03-31 16:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804856', 'tblTempUsageDetail_20' ) end [2025-03-31 16:52:25] Production.ERROR: pbx prc_insertCDR start [2025-03-31 16:52:25] Production.ERROR: pbx prc_insertCDR end [2025-03-31 16:52:25] Production.INFO: ==9353== Releasing lock... [2025-03-31 16:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 16:52:25] Production.INFO: 67.75 MB #Memory Used# [2025-03-31 16:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 13:53:06 [end_date_ymd] => 2025-03-31 16:53:06 [RateCDR] => 1 ) [2025-03-31 16: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-31 13:53:06' and `end` < '2025-03-31 16: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-31 16:53:19] Production.INFO: count ==5294 [2025-03-31 16:53:22] Production.ERROR: pbx CDR StartTime 2025-03-31 13:53:06 - End Time 2025-03-31 16:53:06 [2025-03-31 16:53:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 16:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804861', 'tblTempUsageDetail_20' ) start [2025-03-31 16:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804861', 'tblTempUsageDetail_20' ) end [2025-03-31 16:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804861', 'tblTempVendorCDR_20' ) start [2025-03-31 16:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804861', 'tblTempVendorCDR_20' ) end [2025-03-31 16:53:22] Production.INFO: ProcessCDR(1,14804861,1,1,2) [2025-03-31 16:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:53:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804861', 'tblTempUsageDetail_20' ) start [2025-03-31 16:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804861', 'tblTempUsageDetail_20' ) end [2025-03-31 16:53:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 16:53:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 16:53:27] Production.INFO: ==9433== Releasing lock... [2025-03-31 16:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 16:53:27] Production.INFO: 67.75 MB #Memory Used# [2025-03-31 16:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 13:54:06 [end_date_ymd] => 2025-03-31 16:54:06 [RateCDR] => 1 ) [2025-03-31 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-31 13:54:06' and `end` < '2025-03-31 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-31 16:54:20] Production.INFO: count ==5284 [2025-03-31 16:54:22] Production.ERROR: pbx CDR StartTime 2025-03-31 13:54:06 - End Time 2025-03-31 16:54:06 [2025-03-31 16:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 16:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804866', 'tblTempUsageDetail_20' ) start [2025-03-31 16:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804866', 'tblTempUsageDetail_20' ) end [2025-03-31 16:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804866', 'tblTempVendorCDR_20' ) start [2025-03-31 16:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804866', 'tblTempVendorCDR_20' ) end [2025-03-31 16:54:22] Production.INFO: ProcessCDR(1,14804866,1,1,2) [2025-03-31 16:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804866', 'tblTempUsageDetail_20' ) start [2025-03-31 16:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804866', 'tblTempUsageDetail_20' ) end [2025-03-31 16:54:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 16:54:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 16:54:27] Production.INFO: ==9510== Releasing lock... [2025-03-31 16:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 16:54:27] Production.INFO: 67.5 MB #Memory Used# [2025-03-31 16:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 13:55:06 [end_date_ymd] => 2025-03-31 16:55:06 [RateCDR] => 1 ) [2025-03-31 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-31 13:55:06' and `end` < '2025-03-31 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-31 16:55:20] Production.INFO: count ==5288 [2025-03-31 16:55:22] Production.ERROR: pbx CDR StartTime 2025-03-31 13:55:06 - End Time 2025-03-31 16:55:06 [2025-03-31 16:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 16:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804871', 'tblTempUsageDetail_20' ) start [2025-03-31 16:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804871', 'tblTempUsageDetail_20' ) end [2025-03-31 16:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804871', 'tblTempVendorCDR_20' ) start [2025-03-31 16:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804871', 'tblTempVendorCDR_20' ) end [2025-03-31 16:55:22] Production.INFO: ProcessCDR(1,14804871,1,1,2) [2025-03-31 16:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:55:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:55:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804871', 'tblTempUsageDetail_20' ) start [2025-03-31 16:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804871', 'tblTempUsageDetail_20' ) end [2025-03-31 16:55:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 16:55:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 16:55:27] Production.INFO: ==9592== Releasing lock... [2025-03-31 16:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 16:55:27] Production.INFO: 67.5 MB #Memory Used# [2025-03-31 16:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 13:56:05 [end_date_ymd] => 2025-03-31 16:56:05 [RateCDR] => 1 ) [2025-03-31 16:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 13:56:05' and `end` < '2025-03-31 16:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 16:56:19] Production.INFO: count ==5307 [2025-03-31 16:56:21] Production.ERROR: pbx CDR StartTime 2025-03-31 13:56:05 - End Time 2025-03-31 16:56:05 [2025-03-31 16:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 16:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804876', 'tblTempUsageDetail_20' ) start [2025-03-31 16:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804876', 'tblTempUsageDetail_20' ) end [2025-03-31 16:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804876', 'tblTempVendorCDR_20' ) start [2025-03-31 16:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804876', 'tblTempVendorCDR_20' ) end [2025-03-31 16:56:22] Production.INFO: ProcessCDR(1,14804876,1,1,2) [2025-03-31 16:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804876', 'tblTempUsageDetail_20' ) start [2025-03-31 16:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804876', 'tblTempUsageDetail_20' ) end [2025-03-31 16:56:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 16:56:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 16:56:27] Production.INFO: ==9674== Releasing lock... [2025-03-31 16:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 16:56:27] Production.INFO: 67.75 MB #Memory Used# [2025-03-31 16:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 13:57:06 [end_date_ymd] => 2025-03-31 16:57:06 [RateCDR] => 1 ) [2025-03-31 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-31 13:57:06' and `end` < '2025-03-31 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-31 16:57:20] Production.INFO: count ==5292 [2025-03-31 16:57:22] Production.ERROR: pbx CDR StartTime 2025-03-31 13:57:06 - End Time 2025-03-31 16:57:06 [2025-03-31 16:57:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 16:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804881', 'tblTempUsageDetail_20' ) start [2025-03-31 16:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804881', 'tblTempUsageDetail_20' ) end [2025-03-31 16:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804881', 'tblTempVendorCDR_20' ) start [2025-03-31 16:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804881', 'tblTempVendorCDR_20' ) end [2025-03-31 16:57:22] Production.INFO: ProcessCDR(1,14804881,1,1,2) [2025-03-31 16:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:57:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:57:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:57:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804881', 'tblTempUsageDetail_20' ) start [2025-03-31 16:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804881', 'tblTempUsageDetail_20' ) end [2025-03-31 16:57:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 16:57:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 16:57:28] Production.INFO: ==9749== Releasing lock... [2025-03-31 16:57:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 16:57:28] Production.INFO: 67.5 MB #Memory Used# [2025-03-31 16:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 13:58:06 [end_date_ymd] => 2025-03-31 16:58:06 [RateCDR] => 1 ) [2025-03-31 16:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 13:58:06' and `end` < '2025-03-31 16:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 16:58:20] Production.INFO: count ==5268 [2025-03-31 16:58:22] Production.ERROR: pbx CDR StartTime 2025-03-31 13:58:06 - End Time 2025-03-31 16:58:06 [2025-03-31 16:58:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 16:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804886', 'tblTempUsageDetail_20' ) start [2025-03-31 16:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804886', 'tblTempUsageDetail_20' ) end [2025-03-31 16:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804886', 'tblTempVendorCDR_20' ) start [2025-03-31 16:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804886', 'tblTempVendorCDR_20' ) end [2025-03-31 16:58:22] Production.INFO: ProcessCDR(1,14804886,1,1,2) [2025-03-31 16:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:58:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:58:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:58:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804886', 'tblTempUsageDetail_20' ) start [2025-03-31 16:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804886', 'tblTempUsageDetail_20' ) end [2025-03-31 16:58:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 16:58:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 16:58:28] Production.INFO: ==9834== Releasing lock... [2025-03-31 16:58:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 16:58:28] Production.INFO: 67.5 MB #Memory Used# [2025-03-31 16:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 13:59:06 [end_date_ymd] => 2025-03-31 16:59:06 [RateCDR] => 1 ) [2025-03-31 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-31 13:59:06' and `end` < '2025-03-31 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-31 16:59:20] Production.INFO: count ==5253 [2025-03-31 16:59:23] Production.ERROR: pbx CDR StartTime 2025-03-31 13:59:06 - End Time 2025-03-31 16:59:06 [2025-03-31 16:59:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 16:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804891', 'tblTempUsageDetail_20' ) start [2025-03-31 16:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804891', 'tblTempUsageDetail_20' ) end [2025-03-31 16:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804891', 'tblTempVendorCDR_20' ) start [2025-03-31 16:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804891', 'tblTempVendorCDR_20' ) end [2025-03-31 16:59:23] Production.INFO: ProcessCDR(1,14804891,1,1,2) [2025-03-31 16:59:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:59:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 16:59:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:59:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 16:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804891', 'tblTempUsageDetail_20' ) start [2025-03-31 16:59:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804891', 'tblTempUsageDetail_20' ) end [2025-03-31 16:59:29] Production.ERROR: pbx prc_insertCDR start [2025-03-31 16:59:29] Production.ERROR: pbx prc_insertCDR end [2025-03-31 16:59:29] Production.INFO: ==9913== Releasing lock... [2025-03-31 16:59:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 16:59:29] Production.INFO: 67.25 MB #Memory Used# [2025-03-31 17:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 14:00:06 [end_date_ymd] => 2025-03-31 17:00:06 [RateCDR] => 1 ) [2025-03-31 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-31 14:00:06' and `end` < '2025-03-31 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-31 17:00:20] Production.INFO: count ==5235 [2025-03-31 17:00:22] Production.ERROR: pbx CDR StartTime 2025-03-31 14:00:06 - End Time 2025-03-31 17:00:06 [2025-03-31 17:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 17:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804897', 'tblTempUsageDetail_20' ) start [2025-03-31 17:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804897', 'tblTempUsageDetail_20' ) end [2025-03-31 17:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804897', 'tblTempVendorCDR_20' ) start [2025-03-31 17:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804897', 'tblTempVendorCDR_20' ) end [2025-03-31 17:00:22] Production.INFO: ProcessCDR(1,14804897,1,1,2) [2025-03-31 17:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804897', 'tblTempUsageDetail_20' ) start [2025-03-31 17:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804897', 'tblTempUsageDetail_20' ) end [2025-03-31 17:00:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 17:00:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 17:00:27] Production.INFO: ==9998== Releasing lock... [2025-03-31 17:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 17:00:27] Production.INFO: 67.25 MB #Memory Used# [2025-03-31 17:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 14:01:06 [end_date_ymd] => 2025-03-31 17:01:06 [RateCDR] => 1 ) [2025-03-31 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-31 14:01:06' and `end` < '2025-03-31 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-31 17:01:19] Production.INFO: count ==5213 [2025-03-31 17:01:21] Production.ERROR: pbx CDR StartTime 2025-03-31 14:01:06 - End Time 2025-03-31 17:01:06 [2025-03-31 17:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 17:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804902', 'tblTempUsageDetail_20' ) start [2025-03-31 17:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804902', 'tblTempUsageDetail_20' ) end [2025-03-31 17:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804902', 'tblTempVendorCDR_20' ) start [2025-03-31 17:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804902', 'tblTempVendorCDR_20' ) end [2025-03-31 17:01:22] Production.INFO: ProcessCDR(1,14804902,1,1,2) [2025-03-31 17:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804902', 'tblTempUsageDetail_20' ) start [2025-03-31 17:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804902', 'tblTempUsageDetail_20' ) end [2025-03-31 17:01:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 17:01:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 17:01:27] Production.INFO: ==10088== Releasing lock... [2025-03-31 17:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 17:01:27] Production.INFO: 67 MB #Memory Used# [2025-03-31 17:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 14:02:05 [end_date_ymd] => 2025-03-31 17:02:05 [RateCDR] => 1 ) [2025-03-31 17:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 14:02:05' and `end` < '2025-03-31 17:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 17:02:19] Production.INFO: count ==5183 [2025-03-31 17:02:21] Production.ERROR: pbx CDR StartTime 2025-03-31 14:02:05 - End Time 2025-03-31 17:02:05 [2025-03-31 17:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 17:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804907', 'tblTempUsageDetail_20' ) start [2025-03-31 17:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804907', 'tblTempUsageDetail_20' ) end [2025-03-31 17:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804907', 'tblTempVendorCDR_20' ) start [2025-03-31 17:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804907', 'tblTempVendorCDR_20' ) end [2025-03-31 17:02:21] Production.INFO: ProcessCDR(1,14804907,1,1,2) [2025-03-31 17:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804907', 'tblTempUsageDetail_20' ) start [2025-03-31 17:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804907', 'tblTempUsageDetail_20' ) end [2025-03-31 17:02:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 17:02:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 17:02:27] Production.INFO: ==10171== Releasing lock... [2025-03-31 17:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 17:02:27] Production.INFO: 66.75 MB #Memory Used# [2025-03-31 17:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 14:03:05 [end_date_ymd] => 2025-03-31 17:03:05 [RateCDR] => 1 ) [2025-03-31 17:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 14:03:05' and `end` < '2025-03-31 17:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 17:03:19] Production.INFO: count ==5161 [2025-03-31 17:03:21] Production.ERROR: pbx CDR StartTime 2025-03-31 14:03:05 - End Time 2025-03-31 17:03:05 [2025-03-31 17:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804912', 'tblTempUsageDetail_20' ) start [2025-03-31 17:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804912', 'tblTempUsageDetail_20' ) end [2025-03-31 17:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804912', 'tblTempVendorCDR_20' ) start [2025-03-31 17:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804912', 'tblTempVendorCDR_20' ) end [2025-03-31 17:03:22] Production.INFO: ProcessCDR(1,14804912,1,1,2) [2025-03-31 17:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804912', 'tblTempUsageDetail_20' ) start [2025-03-31 17:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804912', 'tblTempUsageDetail_20' ) end [2025-03-31 17:03:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 17:03:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 17:03:28] Production.INFO: ==10253== Releasing lock... [2025-03-31 17:03:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 17:03:28] Production.INFO: 66.75 MB #Memory Used# [2025-03-31 17:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 14:04:05 [end_date_ymd] => 2025-03-31 17:04:05 [RateCDR] => 1 ) [2025-03-31 17:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 14:04:05' and `end` < '2025-03-31 17:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 17:04:18] Production.INFO: count ==5165 [2025-03-31 17:04:21] Production.ERROR: pbx CDR StartTime 2025-03-31 14:04:05 - End Time 2025-03-31 17:04:05 [2025-03-31 17:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 17:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804917', 'tblTempUsageDetail_20' ) start [2025-03-31 17:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804917', 'tblTempUsageDetail_20' ) end [2025-03-31 17:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804917', 'tblTempVendorCDR_20' ) start [2025-03-31 17:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804917', 'tblTempVendorCDR_20' ) end [2025-03-31 17:04:21] Production.INFO: ProcessCDR(1,14804917,1,1,2) [2025-03-31 17:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804917', 'tblTempUsageDetail_20' ) start [2025-03-31 17:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804917', 'tblTempUsageDetail_20' ) end [2025-03-31 17:04:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 17:04:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 17:04:26] Production.INFO: ==10330== Releasing lock... [2025-03-31 17:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 17:04:26] Production.INFO: 66.75 MB #Memory Used# [2025-03-31 17:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 14:05:06 [end_date_ymd] => 2025-03-31 17:05:06 [RateCDR] => 1 ) [2025-03-31 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-31 14:05:06' and `end` < '2025-03-31 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-31 17:05:19] Production.INFO: count ==5163 [2025-03-31 17:05:22] Production.ERROR: pbx CDR StartTime 2025-03-31 14:05:06 - End Time 2025-03-31 17:05:06 [2025-03-31 17:05:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 17:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804922', 'tblTempUsageDetail_20' ) start [2025-03-31 17:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804922', 'tblTempUsageDetail_20' ) end [2025-03-31 17:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804922', 'tblTempVendorCDR_20' ) start [2025-03-31 17:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804922', 'tblTempVendorCDR_20' ) end [2025-03-31 17:05:22] Production.INFO: ProcessCDR(1,14804922,1,1,2) [2025-03-31 17:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:05:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:05:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804922', 'tblTempUsageDetail_20' ) start [2025-03-31 17:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804922', 'tblTempUsageDetail_20' ) end [2025-03-31 17:05:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 17:05:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 17:05:28] Production.INFO: ==10404== Releasing lock... [2025-03-31 17:05:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 17:05:28] Production.INFO: 66.75 MB #Memory Used# [2025-03-31 17:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 14:06:06 [end_date_ymd] => 2025-03-31 17:06:06 [RateCDR] => 1 ) [2025-03-31 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-31 14:06:06' and `end` < '2025-03-31 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-31 17:06:19] Production.INFO: count ==5152 [2025-03-31 17:06:22] Production.ERROR: pbx CDR StartTime 2025-03-31 14:06:06 - End Time 2025-03-31 17:06:06 [2025-03-31 17:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 17:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804927', 'tblTempUsageDetail_20' ) start [2025-03-31 17:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804927', 'tblTempUsageDetail_20' ) end [2025-03-31 17:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804927', 'tblTempVendorCDR_20' ) start [2025-03-31 17:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804927', 'tblTempVendorCDR_20' ) end [2025-03-31 17:06:22] Production.INFO: ProcessCDR(1,14804927,1,1,2) [2025-03-31 17:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804927', 'tblTempUsageDetail_20' ) start [2025-03-31 17:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804927', 'tblTempUsageDetail_20' ) end [2025-03-31 17:06:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 17:06:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 17:06:27] Production.INFO: ==10517== Releasing lock... [2025-03-31 17:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 17:06:27] Production.INFO: 66.5 MB #Memory Used# [2025-03-31 17:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 14:07:06 [end_date_ymd] => 2025-03-31 17:07:06 [RateCDR] => 1 ) [2025-03-31 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-31 14:07:06' and `end` < '2025-03-31 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-31 17:07:20] Production.INFO: count ==5144 [2025-03-31 17:07:22] Production.ERROR: pbx CDR StartTime 2025-03-31 14:07:06 - End Time 2025-03-31 17:07:06 [2025-03-31 17:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 17:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804932', 'tblTempUsageDetail_20' ) start [2025-03-31 17:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804932', 'tblTempUsageDetail_20' ) end [2025-03-31 17:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804932', 'tblTempVendorCDR_20' ) start [2025-03-31 17:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804932', 'tblTempVendorCDR_20' ) end [2025-03-31 17:07:22] Production.INFO: ProcessCDR(1,14804932,1,1,2) [2025-03-31 17:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:07:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:07:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804932', 'tblTempUsageDetail_20' ) start [2025-03-31 17:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804932', 'tblTempUsageDetail_20' ) end [2025-03-31 17:07:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 17:07:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 17:07:27] Production.INFO: ==10592== Releasing lock... [2025-03-31 17:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 17:07:27] Production.INFO: 66.5 MB #Memory Used# [2025-03-31 17:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 14:08:06 [end_date_ymd] => 2025-03-31 17:08:06 [RateCDR] => 1 ) [2025-03-31 17: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-31 14:08:06' and `end` < '2025-03-31 17: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-31 17:08:19] Production.INFO: count ==5136 [2025-03-31 17:08:21] Production.ERROR: pbx CDR StartTime 2025-03-31 14:08:06 - End Time 2025-03-31 17:08:06 [2025-03-31 17:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 17:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804937', 'tblTempUsageDetail_20' ) start [2025-03-31 17:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804937', 'tblTempUsageDetail_20' ) end [2025-03-31 17:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804937', 'tblTempVendorCDR_20' ) start [2025-03-31 17:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804937', 'tblTempVendorCDR_20' ) end [2025-03-31 17:08:21] Production.INFO: ProcessCDR(1,14804937,1,1,2) [2025-03-31 17:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804937', 'tblTempUsageDetail_20' ) start [2025-03-31 17:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804937', 'tblTempUsageDetail_20' ) end [2025-03-31 17:08:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 17:08:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 17:08:26] Production.INFO: ==10669== Releasing lock... [2025-03-31 17:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 17:08:26] Production.INFO: 66.5 MB #Memory Used# [2025-03-31 17:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 14:09:06 [end_date_ymd] => 2025-03-31 17:09:06 [RateCDR] => 1 ) [2025-03-31 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-31 14:09:06' and `end` < '2025-03-31 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-31 17:09:19] Production.INFO: count ==5129 [2025-03-31 17:09:22] Production.ERROR: pbx CDR StartTime 2025-03-31 14:09:06 - End Time 2025-03-31 17:09:06 [2025-03-31 17:09:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 17:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804942', 'tblTempUsageDetail_20' ) start [2025-03-31 17:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804942', 'tblTempUsageDetail_20' ) end [2025-03-31 17:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804942', 'tblTempVendorCDR_20' ) start [2025-03-31 17:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804942', 'tblTempVendorCDR_20' ) end [2025-03-31 17:09:22] Production.INFO: ProcessCDR(1,14804942,1,1,2) [2025-03-31 17:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804942', 'tblTempUsageDetail_20' ) start [2025-03-31 17:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804942', 'tblTempUsageDetail_20' ) end [2025-03-31 17:09:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 17:09:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 17:09:27] Production.INFO: ==10743== Releasing lock... [2025-03-31 17:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 17:09:27] Production.INFO: 66.5 MB #Memory Used# [2025-03-31 17:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 14:10:06 [end_date_ymd] => 2025-03-31 17:10:06 [RateCDR] => 1 ) [2025-03-31 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-31 14:10:06' and `end` < '2025-03-31 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-31 17:10:20] Production.INFO: count ==5085 [2025-03-31 17:10:22] Production.ERROR: pbx CDR StartTime 2025-03-31 14:10:06 - End Time 2025-03-31 17:10:06 [2025-03-31 17:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804948', 'tblTempUsageDetail_20' ) start [2025-03-31 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804948', 'tblTempUsageDetail_20' ) end [2025-03-31 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804948', 'tblTempVendorCDR_20' ) start [2025-03-31 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804948', 'tblTempVendorCDR_20' ) end [2025-03-31 17:10:22] Production.INFO: ProcessCDR(1,14804948,1,1,2) [2025-03-31 17:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804948', 'tblTempUsageDetail_20' ) start [2025-03-31 17:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804948', 'tblTempUsageDetail_20' ) end [2025-03-31 17:10:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 17:10:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 17:10:27] Production.INFO: ==10818== Releasing lock... [2025-03-31 17:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 17:10:27] Production.INFO: 66 MB #Memory Used# [2025-03-31 17:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 14:11:06 [end_date_ymd] => 2025-03-31 17:11:06 [RateCDR] => 1 ) [2025-03-31 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-31 14:11:06' and `end` < '2025-03-31 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-31 17:11:19] Production.INFO: count ==5050 [2025-03-31 17:11:21] Production.ERROR: pbx CDR StartTime 2025-03-31 14:11:06 - End Time 2025-03-31 17:11:06 [2025-03-31 17:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 17:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804953', 'tblTempUsageDetail_20' ) start [2025-03-31 17:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804953', 'tblTempUsageDetail_20' ) end [2025-03-31 17:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804953', 'tblTempVendorCDR_20' ) start [2025-03-31 17:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804953', 'tblTempVendorCDR_20' ) end [2025-03-31 17:11:21] Production.INFO: ProcessCDR(1,14804953,1,1,2) [2025-03-31 17:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804953', 'tblTempUsageDetail_20' ) start [2025-03-31 17:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804953', 'tblTempUsageDetail_20' ) end [2025-03-31 17:11:25] Production.ERROR: pbx prc_insertCDR start [2025-03-31 17:11:25] Production.ERROR: pbx prc_insertCDR end [2025-03-31 17:11:25] Production.INFO: ==10907== Releasing lock... [2025-03-31 17:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 17:11:25] Production.INFO: 65.75 MB #Memory Used# [2025-03-31 17:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 14:12:05 [end_date_ymd] => 2025-03-31 17:12:05 [RateCDR] => 1 ) [2025-03-31 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-31 14:12:05' and `end` < '2025-03-31 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-31 17:12:19] Production.INFO: count ==5032 [2025-03-31 17:12:21] Production.ERROR: pbx CDR StartTime 2025-03-31 14:12:05 - End Time 2025-03-31 17:12:05 [2025-03-31 17:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804958', 'tblTempUsageDetail_20' ) start [2025-03-31 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804958', 'tblTempUsageDetail_20' ) end [2025-03-31 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804958', 'tblTempVendorCDR_20' ) start [2025-03-31 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804958', 'tblTempVendorCDR_20' ) end [2025-03-31 17:12:21] Production.INFO: ProcessCDR(1,14804958,1,1,2) [2025-03-31 17:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804958', 'tblTempUsageDetail_20' ) start [2025-03-31 17:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804958', 'tblTempUsageDetail_20' ) end [2025-03-31 17:12:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 17:12:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 17:12:26] Production.INFO: ==11002== Releasing lock... [2025-03-31 17:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 17:12:26] Production.INFO: 65.75 MB #Memory Used# [2025-03-31 17:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 14:13:06 [end_date_ymd] => 2025-03-31 17:13:06 [RateCDR] => 1 ) [2025-03-31 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-31 14:13:06' and `end` < '2025-03-31 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-31 17:13:20] Production.INFO: count ==5031 [2025-03-31 17:13:22] Production.ERROR: pbx CDR StartTime 2025-03-31 14:13:06 - End Time 2025-03-31 17:13:06 [2025-03-31 17:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 17:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804963', 'tblTempUsageDetail_20' ) start [2025-03-31 17:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804963', 'tblTempUsageDetail_20' ) end [2025-03-31 17:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804963', 'tblTempVendorCDR_20' ) start [2025-03-31 17:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804963', 'tblTempVendorCDR_20' ) end [2025-03-31 17:13:22] Production.INFO: ProcessCDR(1,14804963,1,1,2) [2025-03-31 17:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804963', 'tblTempUsageDetail_20' ) start [2025-03-31 17:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804963', 'tblTempUsageDetail_20' ) end [2025-03-31 17:13:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 17:13:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 17:13:26] Production.INFO: ==11095== Releasing lock... [2025-03-31 17:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 17:13:26] Production.INFO: 65.75 MB #Memory Used# [2025-03-31 17:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 14:14:05 [end_date_ymd] => 2025-03-31 17:14:05 [RateCDR] => 1 ) [2025-03-31 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-31 14:14:05' and `end` < '2025-03-31 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-31 17:14:19] Production.INFO: count ==5026 [2025-03-31 17:14:21] Production.ERROR: pbx CDR StartTime 2025-03-31 14:14:05 - End Time 2025-03-31 17:14:05 [2025-03-31 17:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 17:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804968', 'tblTempUsageDetail_20' ) start [2025-03-31 17:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804968', 'tblTempUsageDetail_20' ) end [2025-03-31 17:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804968', 'tblTempVendorCDR_20' ) start [2025-03-31 17:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804968', 'tblTempVendorCDR_20' ) end [2025-03-31 17:14:21] Production.INFO: ProcessCDR(1,14804968,1,1,2) [2025-03-31 17:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804968', 'tblTempUsageDetail_20' ) start [2025-03-31 17:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804968', 'tblTempUsageDetail_20' ) end [2025-03-31 17:14:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 17:14:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 17:14:26] Production.INFO: ==11195== Releasing lock... [2025-03-31 17:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 17:14:26] Production.INFO: 65.75 MB #Memory Used# [2025-03-31 17:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 14:15:05 [end_date_ymd] => 2025-03-31 17:15:05 [RateCDR] => 1 ) [2025-03-31 17:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 14:15:05' and `end` < '2025-03-31 17:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 17:15:19] Production.INFO: count ==5038 [2025-03-31 17:15:21] Production.ERROR: pbx CDR StartTime 2025-03-31 14:15:05 - End Time 2025-03-31 17:15:05 [2025-03-31 17:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 17:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804973', 'tblTempUsageDetail_20' ) start [2025-03-31 17:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804973', 'tblTempUsageDetail_20' ) end [2025-03-31 17:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804973', 'tblTempVendorCDR_20' ) start [2025-03-31 17:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804973', 'tblTempVendorCDR_20' ) end [2025-03-31 17:15:21] Production.INFO: ProcessCDR(1,14804973,1,1,2) [2025-03-31 17:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804973', 'tblTempUsageDetail_20' ) start [2025-03-31 17:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804973', 'tblTempUsageDetail_20' ) end [2025-03-31 17:15:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 17:15:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 17:15:24] Production.INFO: ==11293== Releasing lock... [2025-03-31 17:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 17:15:24] Production.INFO: 65.75 MB #Memory Used# [2025-03-31 17:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 14:16:05 [end_date_ymd] => 2025-03-31 17:16:05 [RateCDR] => 1 ) [2025-03-31 17:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 14:16:05' and `end` < '2025-03-31 17:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 17:16:19] Production.INFO: count ==5010 [2025-03-31 17:16:21] Production.ERROR: pbx CDR StartTime 2025-03-31 14:16:05 - End Time 2025-03-31 17:16:05 [2025-03-31 17:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 17:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804978', 'tblTempUsageDetail_20' ) start [2025-03-31 17:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804978', 'tblTempUsageDetail_20' ) end [2025-03-31 17:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804978', 'tblTempVendorCDR_20' ) start [2025-03-31 17:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804978', 'tblTempVendorCDR_20' ) end [2025-03-31 17:16:21] Production.INFO: ProcessCDR(1,14804978,1,1,2) [2025-03-31 17:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804978', 'tblTempUsageDetail_20' ) start [2025-03-31 17:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804978', 'tblTempUsageDetail_20' ) end [2025-03-31 17:16:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 17:16:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 17:16:24] Production.INFO: ==11387== Releasing lock... [2025-03-31 17:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 17:16:24] Production.INFO: 65.5 MB #Memory Used# [2025-03-31 17:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 14:17:05 [end_date_ymd] => 2025-03-31 17:17:05 [RateCDR] => 1 ) [2025-03-31 17:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 14:17:05' and `end` < '2025-03-31 17:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 17:17:19] Production.INFO: count ==5004 [2025-03-31 17:17:21] Production.ERROR: pbx CDR StartTime 2025-03-31 14:17:05 - End Time 2025-03-31 17:17:05 [2025-03-31 17:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 17:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804983', 'tblTempUsageDetail_20' ) start [2025-03-31 17:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804983', 'tblTempUsageDetail_20' ) end [2025-03-31 17:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804983', 'tblTempVendorCDR_20' ) start [2025-03-31 17:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804983', 'tblTempVendorCDR_20' ) end [2025-03-31 17:17:21] Production.INFO: ProcessCDR(1,14804983,1,1,2) [2025-03-31 17:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804983', 'tblTempUsageDetail_20' ) start [2025-03-31 17:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804983', 'tblTempUsageDetail_20' ) end [2025-03-31 17:17:25] Production.ERROR: pbx prc_insertCDR start [2025-03-31 17:17:25] Production.ERROR: pbx prc_insertCDR end [2025-03-31 17:17:25] Production.INFO: ==11484== Releasing lock... [2025-03-31 17:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 17:17:25] Production.INFO: 65.5 MB #Memory Used# [2025-03-31 17:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 14:18:06 [end_date_ymd] => 2025-03-31 17:18:06 [RateCDR] => 1 ) [2025-03-31 17: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-31 14:18:06' and `end` < '2025-03-31 17: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-31 17:18:19] Production.INFO: count ==4951 [2025-03-31 17:18:21] Production.ERROR: pbx CDR StartTime 2025-03-31 14:18:06 - End Time 2025-03-31 17:18:06 [2025-03-31 17:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804988', 'tblTempUsageDetail_20' ) start [2025-03-31 17:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804988', 'tblTempUsageDetail_20' ) end [2025-03-31 17:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804988', 'tblTempVendorCDR_20' ) start [2025-03-31 17:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804988', 'tblTempVendorCDR_20' ) end [2025-03-31 17:18:22] Production.INFO: ProcessCDR(1,14804988,1,1,2) [2025-03-31 17:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804988', 'tblTempUsageDetail_20' ) start [2025-03-31 17:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804988', 'tblTempUsageDetail_20' ) end [2025-03-31 17:18:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 17:18:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 17:18:27] Production.INFO: ==11589== Releasing lock... [2025-03-31 17:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 17:18:27] Production.INFO: 65 MB #Memory Used# [2025-03-31 17:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 14:19:05 [end_date_ymd] => 2025-03-31 17:19:05 [RateCDR] => 1 ) [2025-03-31 17:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 14:19:05' and `end` < '2025-03-31 17:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 17:19:19] Production.INFO: count ==4930 [2025-03-31 17:19:21] Production.ERROR: pbx CDR StartTime 2025-03-31 14:19:05 - End Time 2025-03-31 17:19:05 [2025-03-31 17:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804993', 'tblTempUsageDetail_20' ) start [2025-03-31 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804993', 'tblTempUsageDetail_20' ) end [2025-03-31 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804993', 'tblTempVendorCDR_20' ) start [2025-03-31 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804993', 'tblTempVendorCDR_20' ) end [2025-03-31 17:19:21] Production.INFO: ProcessCDR(1,14804993,1,1,2) [2025-03-31 17:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804993', 'tblTempUsageDetail_20' ) start [2025-03-31 17:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804993', 'tblTempUsageDetail_20' ) end [2025-03-31 17:19:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 17:19:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 17:19:26] Production.INFO: ==11683== Releasing lock... [2025-03-31 17:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 17:19:26] Production.INFO: 65 MB #Memory Used# [2025-03-31 17:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 14:20:07 [end_date_ymd] => 2025-03-31 17:20:07 [RateCDR] => 1 ) [2025-03-31 17: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-31 14:20:07' and `end` < '2025-03-31 17: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-31 17:20:20] Production.INFO: count ==4930 [2025-03-31 17:20:22] Production.ERROR: pbx CDR StartTime 2025-03-31 14:20:07 - End Time 2025-03-31 17:20:07 [2025-03-31 17:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 17:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804999', 'tblTempUsageDetail_20' ) start [2025-03-31 17:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14804999', 'tblTempUsageDetail_20' ) end [2025-03-31 17:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804999', 'tblTempVendorCDR_20' ) start [2025-03-31 17:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14804999', 'tblTempVendorCDR_20' ) end [2025-03-31 17:20:22] Production.INFO: ProcessCDR(1,14804999,1,1,2) [2025-03-31 17:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14804999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14804999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14804999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14804999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804999', 'tblTempUsageDetail_20' ) start [2025-03-31 17:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14804999', 'tblTempUsageDetail_20' ) end [2025-03-31 17:20:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 17:20:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 17:20:27] Production.INFO: ==11777== Releasing lock... [2025-03-31 17:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 17:20:27] Production.INFO: 65 MB #Memory Used# [2025-03-31 17:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 14:21:05 [end_date_ymd] => 2025-03-31 17:21:05 [RateCDR] => 1 ) [2025-03-31 17:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 14:21:05' and `end` < '2025-03-31 17:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 17:21:19] Production.INFO: count ==4923 [2025-03-31 17:21:21] Production.ERROR: pbx CDR StartTime 2025-03-31 14:21:05 - End Time 2025-03-31 17:21:05 [2025-03-31 17:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805003', 'tblTempUsageDetail_20' ) start [2025-03-31 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805003', 'tblTempUsageDetail_20' ) end [2025-03-31 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805003', 'tblTempVendorCDR_20' ) start [2025-03-31 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805003', 'tblTempVendorCDR_20' ) end [2025-03-31 17:21:21] Production.INFO: ProcessCDR(1,14805003,1,1,2) [2025-03-31 17:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805003', 'tblTempUsageDetail_20' ) start [2025-03-31 17:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805003', 'tblTempUsageDetail_20' ) end [2025-03-31 17:21:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 17:21:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 17:21:26] Production.INFO: ==11877== Releasing lock... [2025-03-31 17:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 17:21:26] Production.INFO: 64.75 MB #Memory Used# [2025-03-31 17:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 14:22:06 [end_date_ymd] => 2025-03-31 17:22:06 [RateCDR] => 1 ) [2025-03-31 17:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 14:22:06' and `end` < '2025-03-31 17:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 17:22:19] Production.INFO: count ==4932 [2025-03-31 17:22:21] Production.ERROR: pbx CDR StartTime 2025-03-31 14:22:06 - End Time 2025-03-31 17:22:06 [2025-03-31 17:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805009', 'tblTempUsageDetail_20' ) start [2025-03-31 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805009', 'tblTempUsageDetail_20' ) end [2025-03-31 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805009', 'tblTempVendorCDR_20' ) start [2025-03-31 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805009', 'tblTempVendorCDR_20' ) end [2025-03-31 17:22:21] Production.INFO: ProcessCDR(1,14805009,1,1,2) [2025-03-31 17:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805009', 'tblTempUsageDetail_20' ) start [2025-03-31 17:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805009', 'tblTempUsageDetail_20' ) end [2025-03-31 17:22:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 17:22:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 17:22:27] Production.INFO: ==12013== Releasing lock... [2025-03-31 17:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 17:22:27] Production.INFO: 65 MB #Memory Used# [2025-03-31 17:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 14:23:05 [end_date_ymd] => 2025-03-31 17:23:05 [RateCDR] => 1 ) [2025-03-31 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-31 14:23:05' and `end` < '2025-03-31 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-31 17:23:19] Production.INFO: count ==4923 [2025-03-31 17:23:21] Production.ERROR: pbx CDR StartTime 2025-03-31 14:23:05 - End Time 2025-03-31 17:23:05 [2025-03-31 17:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805014', 'tblTempUsageDetail_20' ) start [2025-03-31 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805014', 'tblTempUsageDetail_20' ) end [2025-03-31 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805014', 'tblTempVendorCDR_20' ) start [2025-03-31 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805014', 'tblTempVendorCDR_20' ) end [2025-03-31 17:23:21] Production.INFO: ProcessCDR(1,14805014,1,1,2) [2025-03-31 17:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805014', 'tblTempUsageDetail_20' ) start [2025-03-31 17:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805014', 'tblTempUsageDetail_20' ) end [2025-03-31 17:23:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 17:23:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 17:23:26] Production.INFO: ==12109== Releasing lock... [2025-03-31 17:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 17:23:26] Production.INFO: 64.75 MB #Memory Used# [2025-03-31 17:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 14:24:06 [end_date_ymd] => 2025-03-31 17:24:06 [RateCDR] => 1 ) [2025-03-31 17:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 14:24:06' and `end` < '2025-03-31 17:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 17:24:19] Production.INFO: count ==4918 [2025-03-31 17:24:21] Production.ERROR: pbx CDR StartTime 2025-03-31 14:24:06 - End Time 2025-03-31 17:24:06 [2025-03-31 17:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 17:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805019', 'tblTempUsageDetail_20' ) start [2025-03-31 17:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805019', 'tblTempUsageDetail_20' ) end [2025-03-31 17:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805019', 'tblTempVendorCDR_20' ) start [2025-03-31 17:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805019', 'tblTempVendorCDR_20' ) end [2025-03-31 17:24:21] Production.INFO: ProcessCDR(1,14805019,1,1,2) [2025-03-31 17:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805019', 'tblTempUsageDetail_20' ) start [2025-03-31 17:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805019', 'tblTempUsageDetail_20' ) end [2025-03-31 17:24:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 17:24:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 17:24:26] Production.INFO: ==12202== Releasing lock... [2025-03-31 17:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 17:24:26] Production.INFO: 64.75 MB #Memory Used# [2025-03-31 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 14:25:05 [end_date_ymd] => 2025-03-31 17:25:05 [RateCDR] => 1 ) [2025-03-31 17:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 14:25:05' and `end` < '2025-03-31 17:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 17:25:18] Production.INFO: count ==4927 [2025-03-31 17:25:20] Production.ERROR: pbx CDR StartTime 2025-03-31 14:25:05 - End Time 2025-03-31 17:25:05 [2025-03-31 17:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 17:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805024', 'tblTempUsageDetail_20' ) start [2025-03-31 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805024', 'tblTempUsageDetail_20' ) end [2025-03-31 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805024', 'tblTempVendorCDR_20' ) start [2025-03-31 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805024', 'tblTempVendorCDR_20' ) end [2025-03-31 17:25:21] Production.INFO: ProcessCDR(1,14805024,1,1,2) [2025-03-31 17:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805024', 'tblTempUsageDetail_20' ) start [2025-03-31 17:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805024', 'tblTempUsageDetail_20' ) end [2025-03-31 17:25:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 17:25:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 17:25:26] Production.INFO: ==12296== Releasing lock... [2025-03-31 17:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 17:25:26] Production.INFO: 65 MB #Memory Used# [2025-03-31 17:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 14:26:06 [end_date_ymd] => 2025-03-31 17:26:06 [RateCDR] => 1 ) [2025-03-31 17:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 14:26:06' and `end` < '2025-03-31 17:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 17:26:19] Production.INFO: count ==4940 [2025-03-31 17:26:21] Production.ERROR: pbx CDR StartTime 2025-03-31 14:26:06 - End Time 2025-03-31 17:26:06 [2025-03-31 17:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 17:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805029', 'tblTempUsageDetail_20' ) start [2025-03-31 17:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805029', 'tblTempUsageDetail_20' ) end [2025-03-31 17:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805029', 'tblTempVendorCDR_20' ) start [2025-03-31 17:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805029', 'tblTempVendorCDR_20' ) end [2025-03-31 17:26:21] Production.INFO: ProcessCDR(1,14805029,1,1,2) [2025-03-31 17:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805029', 'tblTempUsageDetail_20' ) start [2025-03-31 17:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805029', 'tblTempUsageDetail_20' ) end [2025-03-31 17:26:25] Production.ERROR: pbx prc_insertCDR start [2025-03-31 17:26:25] Production.ERROR: pbx prc_insertCDR end [2025-03-31 17:26:25] Production.INFO: ==12389== Releasing lock... [2025-03-31 17:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 17:26:25] Production.INFO: 65 MB #Memory Used# [2025-03-31 17:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 14:27:05 [end_date_ymd] => 2025-03-31 17:27:05 [RateCDR] => 1 ) [2025-03-31 17:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 14:27:05' and `end` < '2025-03-31 17:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 17:27:19] Production.INFO: count ==4940 [2025-03-31 17:27:21] Production.ERROR: pbx CDR StartTime 2025-03-31 14:27:05 - End Time 2025-03-31 17:27:05 [2025-03-31 17:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 17:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805034', 'tblTempUsageDetail_20' ) start [2025-03-31 17:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805034', 'tblTempUsageDetail_20' ) end [2025-03-31 17:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805034', 'tblTempVendorCDR_20' ) start [2025-03-31 17:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805034', 'tblTempVendorCDR_20' ) end [2025-03-31 17:27:21] Production.INFO: ProcessCDR(1,14805034,1,1,2) [2025-03-31 17:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805034', 'tblTempUsageDetail_20' ) start [2025-03-31 17:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805034', 'tblTempUsageDetail_20' ) end [2025-03-31 17:27:25] Production.ERROR: pbx prc_insertCDR start [2025-03-31 17:27:25] Production.ERROR: pbx prc_insertCDR end [2025-03-31 17:27:25] Production.INFO: ==12484== Releasing lock... [2025-03-31 17:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 17:27:25] Production.INFO: 65 MB #Memory Used# [2025-03-31 17:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 14:28:05 [end_date_ymd] => 2025-03-31 17:28:05 [RateCDR] => 1 ) [2025-03-31 17:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 14:28:05' and `end` < '2025-03-31 17:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 17:28:19] Production.INFO: count ==4924 [2025-03-31 17:28:21] Production.ERROR: pbx CDR StartTime 2025-03-31 14:28:05 - End Time 2025-03-31 17:28:05 [2025-03-31 17:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 17:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805039', 'tblTempUsageDetail_20' ) start [2025-03-31 17:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805039', 'tblTempUsageDetail_20' ) end [2025-03-31 17:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805039', 'tblTempVendorCDR_20' ) start [2025-03-31 17:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805039', 'tblTempVendorCDR_20' ) end [2025-03-31 17:28:21] Production.INFO: ProcessCDR(1,14805039,1,1,2) [2025-03-31 17:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805039', 'tblTempUsageDetail_20' ) start [2025-03-31 17:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805039', 'tblTempUsageDetail_20' ) end [2025-03-31 17:28:25] Production.ERROR: pbx prc_insertCDR start [2025-03-31 17:28:25] Production.ERROR: pbx prc_insertCDR end [2025-03-31 17:28:25] Production.INFO: ==12579== Releasing lock... [2025-03-31 17:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 17:28:25] Production.INFO: 64.75 MB #Memory Used# [2025-03-31 17:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 14:29:05 [end_date_ymd] => 2025-03-31 17:29:05 [RateCDR] => 1 ) [2025-03-31 17:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 14:29:05' and `end` < '2025-03-31 17:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 17:29:18] Production.INFO: count ==4902 [2025-03-31 17:29:20] Production.ERROR: pbx CDR StartTime 2025-03-31 14:29:05 - End Time 2025-03-31 17:29:05 [2025-03-31 17:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 17:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805044', 'tblTempUsageDetail_20' ) start [2025-03-31 17:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805044', 'tblTempUsageDetail_20' ) end [2025-03-31 17:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805044', 'tblTempVendorCDR_20' ) start [2025-03-31 17:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805044', 'tblTempVendorCDR_20' ) end [2025-03-31 17:29:21] Production.INFO: ProcessCDR(1,14805044,1,1,2) [2025-03-31 17:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805044', 'tblTempUsageDetail_20' ) start [2025-03-31 17:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805044', 'tblTempUsageDetail_20' ) end [2025-03-31 17:29:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 17:29:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 17:29:26] Production.INFO: ==12668== Releasing lock... [2025-03-31 17:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 17:29:26] Production.INFO: 64.75 MB #Memory Used# [2025-03-31 17:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 14:30:07 [end_date_ymd] => 2025-03-31 17:30:07 [RateCDR] => 1 ) [2025-03-31 17: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-31 14:30:07' and `end` < '2025-03-31 17: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-31 17:30:21] Production.INFO: count ==4899 [2025-03-31 17:30:23] Production.ERROR: pbx CDR StartTime 2025-03-31 14:30:07 - End Time 2025-03-31 17:30:07 [2025-03-31 17:30:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 17:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805050', 'tblTempUsageDetail_20' ) start [2025-03-31 17:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805050', 'tblTempUsageDetail_20' ) end [2025-03-31 17:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805050', 'tblTempVendorCDR_20' ) start [2025-03-31 17:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805050', 'tblTempVendorCDR_20' ) end [2025-03-31 17:30:23] Production.INFO: ProcessCDR(1,14805050,1,1,2) [2025-03-31 17:30:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:30:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:30:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:30:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805050', 'tblTempUsageDetail_20' ) start [2025-03-31 17:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805050', 'tblTempUsageDetail_20' ) end [2025-03-31 17:30:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 17:30:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 17:30:28] Production.INFO: ==12764== Releasing lock... [2025-03-31 17:30:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 17:30:28] Production.INFO: 64.75 MB #Memory Used# [2025-03-31 17:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 14:31:05 [end_date_ymd] => 2025-03-31 17:31:05 [RateCDR] => 1 ) [2025-03-31 17:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 14:31:05' and `end` < '2025-03-31 17:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 17:31:18] Production.INFO: count ==4856 [2025-03-31 17:31:20] Production.ERROR: pbx CDR StartTime 2025-03-31 14:31:05 - End Time 2025-03-31 17:31:05 [2025-03-31 17:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 17:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805055', 'tblTempUsageDetail_20' ) start [2025-03-31 17:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805055', 'tblTempUsageDetail_20' ) end [2025-03-31 17:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805055', 'tblTempVendorCDR_20' ) start [2025-03-31 17:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805055', 'tblTempVendorCDR_20' ) end [2025-03-31 17:31:20] Production.INFO: ProcessCDR(1,14805055,1,1,2) [2025-03-31 17:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805055', 'tblTempUsageDetail_20' ) start [2025-03-31 17:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805055', 'tblTempUsageDetail_20' ) end [2025-03-31 17:31:25] Production.ERROR: pbx prc_insertCDR start [2025-03-31 17:31:25] Production.ERROR: pbx prc_insertCDR end [2025-03-31 17:31:25] Production.INFO: ==12862== Releasing lock... [2025-03-31 17:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 17:31:25] Production.INFO: 64.25 MB #Memory Used# [2025-03-31 17:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 14:32:06 [end_date_ymd] => 2025-03-31 17:32:06 [RateCDR] => 1 ) [2025-03-31 17: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-31 14:32:06' and `end` < '2025-03-31 17: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-31 17:32:19] Production.INFO: count ==4864 [2025-03-31 17:32:21] Production.ERROR: pbx CDR StartTime 2025-03-31 14:32:06 - End Time 2025-03-31 17:32:06 [2025-03-31 17:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 17:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805060', 'tblTempUsageDetail_20' ) start [2025-03-31 17:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805060', 'tblTempUsageDetail_20' ) end [2025-03-31 17:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805060', 'tblTempVendorCDR_20' ) start [2025-03-31 17:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805060', 'tblTempVendorCDR_20' ) end [2025-03-31 17:32:21] Production.INFO: ProcessCDR(1,14805060,1,1,2) [2025-03-31 17:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805060', 'tblTempUsageDetail_20' ) start [2025-03-31 17:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805060', 'tblTempUsageDetail_20' ) end [2025-03-31 17:32:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 17:32:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 17:32:27] Production.INFO: ==12956== Releasing lock... [2025-03-31 17:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 17:32:27] Production.INFO: 64.5 MB #Memory Used# [2025-03-31 17:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 14:33:06 [end_date_ymd] => 2025-03-31 17:33:06 [RateCDR] => 1 ) [2025-03-31 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-31 14:33:06' and `end` < '2025-03-31 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-31 17:33:19] Production.INFO: count ==4865 [2025-03-31 17:33:21] Production.ERROR: pbx CDR StartTime 2025-03-31 14:33:06 - End Time 2025-03-31 17:33:06 [2025-03-31 17:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 17:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805065', 'tblTempUsageDetail_20' ) start [2025-03-31 17:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805065', 'tblTempUsageDetail_20' ) end [2025-03-31 17:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805065', 'tblTempVendorCDR_20' ) start [2025-03-31 17:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805065', 'tblTempVendorCDR_20' ) end [2025-03-31 17:33:21] Production.INFO: ProcessCDR(1,14805065,1,1,2) [2025-03-31 17:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805065', 'tblTempUsageDetail_20' ) start [2025-03-31 17:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805065', 'tblTempUsageDetail_20' ) end [2025-03-31 17:33:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 17:33:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 17:33:26] Production.INFO: ==13050== Releasing lock... [2025-03-31 17:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 17:33:26] Production.INFO: 64.5 MB #Memory Used# [2025-03-31 17:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 14:34:05 [end_date_ymd] => 2025-03-31 17:34:05 [RateCDR] => 1 ) [2025-03-31 17:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 14:34:05' and `end` < '2025-03-31 17:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 17:34:19] Production.INFO: count ==4851 [2025-03-31 17:34:21] Production.ERROR: pbx CDR StartTime 2025-03-31 14:34:05 - End Time 2025-03-31 17:34:05 [2025-03-31 17:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805070', 'tblTempUsageDetail_20' ) start [2025-03-31 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805070', 'tblTempUsageDetail_20' ) end [2025-03-31 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805070', 'tblTempVendorCDR_20' ) start [2025-03-31 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805070', 'tblTempVendorCDR_20' ) end [2025-03-31 17:34:21] Production.INFO: ProcessCDR(1,14805070,1,1,2) [2025-03-31 17:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805070', 'tblTempUsageDetail_20' ) start [2025-03-31 17:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805070', 'tblTempUsageDetail_20' ) end [2025-03-31 17:34:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 17:34:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 17:34:24] Production.INFO: ==13154== Releasing lock... [2025-03-31 17:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 17:34:24] Production.INFO: 64.25 MB #Memory Used# [2025-03-31 17:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 14:35:05 [end_date_ymd] => 2025-03-31 17:35:05 [RateCDR] => 1 ) [2025-03-31 17:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 14:35:05' and `end` < '2025-03-31 17:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 17:35:18] Production.INFO: count ==4844 [2025-03-31 17:35:20] Production.ERROR: pbx CDR StartTime 2025-03-31 14:35:05 - End Time 2025-03-31 17:35:05 [2025-03-31 17:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 17:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805075', 'tblTempUsageDetail_20' ) start [2025-03-31 17:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805075', 'tblTempUsageDetail_20' ) end [2025-03-31 17:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805075', 'tblTempVendorCDR_20' ) start [2025-03-31 17:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805075', 'tblTempVendorCDR_20' ) end [2025-03-31 17:35:20] Production.INFO: ProcessCDR(1,14805075,1,1,2) [2025-03-31 17:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805075', 'tblTempUsageDetail_20' ) start [2025-03-31 17:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805075', 'tblTempUsageDetail_20' ) end [2025-03-31 17:35:25] Production.ERROR: pbx prc_insertCDR start [2025-03-31 17:35:25] Production.ERROR: pbx prc_insertCDR end [2025-03-31 17:35:25] Production.INFO: ==13242== Releasing lock... [2025-03-31 17:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 17:35:25] Production.INFO: 64.25 MB #Memory Used# [2025-03-31 17:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 14:36:05 [end_date_ymd] => 2025-03-31 17:36:05 [RateCDR] => 1 ) [2025-03-31 17:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 14:36:05' and `end` < '2025-03-31 17:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 17:36:19] Production.INFO: count ==4831 [2025-03-31 17:36:21] Production.ERROR: pbx CDR StartTime 2025-03-31 14:36:05 - End Time 2025-03-31 17:36:05 [2025-03-31 17:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 17:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805080', 'tblTempUsageDetail_20' ) start [2025-03-31 17:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805080', 'tblTempUsageDetail_20' ) end [2025-03-31 17:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805080', 'tblTempVendorCDR_20' ) start [2025-03-31 17:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805080', 'tblTempVendorCDR_20' ) end [2025-03-31 17:36:21] Production.INFO: ProcessCDR(1,14805080,1,1,2) [2025-03-31 17:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805080', 'tblTempUsageDetail_20' ) start [2025-03-31 17:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805080', 'tblTempUsageDetail_20' ) end [2025-03-31 17:36:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 17:36:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 17:36:26] Production.INFO: ==13332== Releasing lock... [2025-03-31 17:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 17:36:26] Production.INFO: 64.25 MB #Memory Used# [2025-03-31 17:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 14:37:06 [end_date_ymd] => 2025-03-31 17:37:06 [RateCDR] => 1 ) [2025-03-31 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-31 14:37:06' and `end` < '2025-03-31 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-31 17:37:19] Production.INFO: count ==4824 [2025-03-31 17:37:21] Production.ERROR: pbx CDR StartTime 2025-03-31 14:37:06 - End Time 2025-03-31 17:37:06 [2025-03-31 17:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 17:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805085', 'tblTempUsageDetail_20' ) start [2025-03-31 17:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805085', 'tblTempUsageDetail_20' ) end [2025-03-31 17:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805085', 'tblTempVendorCDR_20' ) start [2025-03-31 17:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805085', 'tblTempVendorCDR_20' ) end [2025-03-31 17:37:22] Production.INFO: ProcessCDR(1,14805085,1,1,2) [2025-03-31 17:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805085', 'tblTempUsageDetail_20' ) start [2025-03-31 17:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805085', 'tblTempUsageDetail_20' ) end [2025-03-31 17:37:25] Production.ERROR: pbx prc_insertCDR start [2025-03-31 17:37:25] Production.ERROR: pbx prc_insertCDR end [2025-03-31 17:37:25] Production.INFO: ==13465== Releasing lock... [2025-03-31 17:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 17:37:25] Production.INFO: 64 MB #Memory Used# [2025-03-31 17:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 14:38:06 [end_date_ymd] => 2025-03-31 17:38:06 [RateCDR] => 1 ) [2025-03-31 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-31 14:38:06' and `end` < '2025-03-31 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-31 17:38:19] Production.INFO: count ==4820 [2025-03-31 17:38:21] Production.ERROR: pbx CDR StartTime 2025-03-31 14:38:06 - End Time 2025-03-31 17:38:06 [2025-03-31 17:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 17:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805090', 'tblTempUsageDetail_20' ) start [2025-03-31 17:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805090', 'tblTempUsageDetail_20' ) end [2025-03-31 17:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805090', 'tblTempVendorCDR_20' ) start [2025-03-31 17:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805090', 'tblTempVendorCDR_20' ) end [2025-03-31 17:38:22] Production.INFO: ProcessCDR(1,14805090,1,1,2) [2025-03-31 17:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805090', 'tblTempUsageDetail_20' ) start [2025-03-31 17:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805090', 'tblTempUsageDetail_20' ) end [2025-03-31 17:38:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 17:38:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 17:38:27] Production.INFO: ==13542== Releasing lock... [2025-03-31 17:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 17:38:27] Production.INFO: 64 MB #Memory Used# [2025-03-31 17:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 14:39:06 [end_date_ymd] => 2025-03-31 17:39:06 [RateCDR] => 1 ) [2025-03-31 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-31 14:39:06' and `end` < '2025-03-31 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-31 17:39:19] Production.INFO: count ==4835 [2025-03-31 17:39:21] Production.ERROR: pbx CDR StartTime 2025-03-31 14:39:06 - End Time 2025-03-31 17:39:06 [2025-03-31 17:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805095', 'tblTempUsageDetail_20' ) start [2025-03-31 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805095', 'tblTempUsageDetail_20' ) end [2025-03-31 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805095', 'tblTempVendorCDR_20' ) start [2025-03-31 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805095', 'tblTempVendorCDR_20' ) end [2025-03-31 17:39:21] Production.INFO: ProcessCDR(1,14805095,1,1,2) [2025-03-31 17:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805095', 'tblTempUsageDetail_20' ) start [2025-03-31 17:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805095', 'tblTempUsageDetail_20' ) end [2025-03-31 17:39:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 17:39:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 17:39:27] Production.INFO: ==13619== Releasing lock... [2025-03-31 17:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 17:39:27] Production.INFO: 64.25 MB #Memory Used# [2025-03-31 17:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 14:40:06 [end_date_ymd] => 2025-03-31 17:40:06 [RateCDR] => 1 ) [2025-03-31 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-31 14:40:06' and `end` < '2025-03-31 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-31 17:40:19] Production.INFO: count ==4832 [2025-03-31 17:40:21] Production.ERROR: pbx CDR StartTime 2025-03-31 14:40:06 - End Time 2025-03-31 17:40:06 [2025-03-31 17:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 17:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805101', 'tblTempUsageDetail_20' ) start [2025-03-31 17:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805101', 'tblTempUsageDetail_20' ) end [2025-03-31 17:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805101', 'tblTempVendorCDR_20' ) start [2025-03-31 17:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805101', 'tblTempVendorCDR_20' ) end [2025-03-31 17:40:21] Production.INFO: ProcessCDR(1,14805101,1,1,2) [2025-03-31 17:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805101', 'tblTempUsageDetail_20' ) start [2025-03-31 17:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805101', 'tblTempUsageDetail_20' ) end [2025-03-31 17:40:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 17:40:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 17:40:27] Production.INFO: ==13693== Releasing lock... [2025-03-31 17:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 17:40:27] Production.INFO: 64.25 MB #Memory Used# [2025-03-31 17:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 14:41:06 [end_date_ymd] => 2025-03-31 17:41:06 [RateCDR] => 1 ) [2025-03-31 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-31 14:41:06' and `end` < '2025-03-31 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-31 17:41:19] Production.INFO: count ==4798 [2025-03-31 17:41:21] Production.ERROR: pbx CDR StartTime 2025-03-31 14:41:06 - End Time 2025-03-31 17:41:06 [2025-03-31 17:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 17:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805106', 'tblTempUsageDetail_20' ) start [2025-03-31 17:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805106', 'tblTempUsageDetail_20' ) end [2025-03-31 17:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805106', 'tblTempVendorCDR_20' ) start [2025-03-31 17:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805106', 'tblTempVendorCDR_20' ) end [2025-03-31 17:41:21] Production.INFO: ProcessCDR(1,14805106,1,1,2) [2025-03-31 17:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805106', 'tblTempUsageDetail_20' ) start [2025-03-31 17:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805106', 'tblTempUsageDetail_20' ) end [2025-03-31 17:41:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 17:41:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 17:41:27] Production.INFO: ==13770== Releasing lock... [2025-03-31 17:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 17:41:27] Production.INFO: 64 MB #Memory Used# [2025-03-31 17:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 14:42:05 [end_date_ymd] => 2025-03-31 17:42:05 [RateCDR] => 1 ) [2025-03-31 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-31 14:42:05' and `end` < '2025-03-31 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-31 17:42:18] Production.INFO: count ==4775 [2025-03-31 17:42:20] Production.ERROR: pbx CDR StartTime 2025-03-31 14:42:05 - End Time 2025-03-31 17:42:05 [2025-03-31 17:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 17:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805111', 'tblTempUsageDetail_20' ) start [2025-03-31 17:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805111', 'tblTempUsageDetail_20' ) end [2025-03-31 17:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805111', 'tblTempVendorCDR_20' ) start [2025-03-31 17:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805111', 'tblTempVendorCDR_20' ) end [2025-03-31 17:42:20] Production.INFO: ProcessCDR(1,14805111,1,1,2) [2025-03-31 17:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805111', 'tblTempUsageDetail_20' ) start [2025-03-31 17:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805111', 'tblTempUsageDetail_20' ) end [2025-03-31 17:42:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 17:42:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 17:42:24] Production.INFO: ==13842== Releasing lock... [2025-03-31 17:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 17:42:24] Production.INFO: 63.75 MB #Memory Used# [2025-03-31 17:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 14:43:05 [end_date_ymd] => 2025-03-31 17:43:05 [RateCDR] => 1 ) [2025-03-31 17:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 14:43:05' and `end` < '2025-03-31 17:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 17:43:19] Production.INFO: count ==4778 [2025-03-31 17:43:21] Production.ERROR: pbx CDR StartTime 2025-03-31 14:43:05 - End Time 2025-03-31 17:43:05 [2025-03-31 17:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 17:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805116', 'tblTempUsageDetail_20' ) start [2025-03-31 17:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805116', 'tblTempUsageDetail_20' ) end [2025-03-31 17:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805116', 'tblTempVendorCDR_20' ) start [2025-03-31 17:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805116', 'tblTempVendorCDR_20' ) end [2025-03-31 17:43:21] Production.INFO: ProcessCDR(1,14805116,1,1,2) [2025-03-31 17:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805116', 'tblTempUsageDetail_20' ) start [2025-03-31 17:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805116', 'tblTempUsageDetail_20' ) end [2025-03-31 17:43:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 17:43:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 17:43:26] Production.INFO: ==13914== Releasing lock... [2025-03-31 17:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 17:43:26] Production.INFO: 63.75 MB #Memory Used# [2025-03-31 17:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 14:44:06 [end_date_ymd] => 2025-03-31 17:44:06 [RateCDR] => 1 ) [2025-03-31 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-31 14:44:06' and `end` < '2025-03-31 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-31 17:44:19] Production.INFO: count ==4755 [2025-03-31 17:44:21] Production.ERROR: pbx CDR StartTime 2025-03-31 14:44:06 - End Time 2025-03-31 17:44:06 [2025-03-31 17:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805121', 'tblTempUsageDetail_20' ) start [2025-03-31 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805121', 'tblTempUsageDetail_20' ) end [2025-03-31 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805121', 'tblTempVendorCDR_20' ) start [2025-03-31 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805121', 'tblTempVendorCDR_20' ) end [2025-03-31 17:44:21] Production.INFO: ProcessCDR(1,14805121,1,1,2) [2025-03-31 17:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805121', 'tblTempUsageDetail_20' ) start [2025-03-31 17:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805121', 'tblTempUsageDetail_20' ) end [2025-03-31 17:44:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 17:44:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 17:44:26] Production.INFO: ==13984== Releasing lock... [2025-03-31 17:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 17:44:26] Production.INFO: 63.5 MB #Memory Used# [2025-03-31 17:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 14:45:06 [end_date_ymd] => 2025-03-31 17:45:06 [RateCDR] => 1 ) [2025-03-31 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-31 14:45:06' and `end` < '2025-03-31 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-31 17:45:19] Production.INFO: count ==4752 [2025-03-31 17:45:21] Production.ERROR: pbx CDR StartTime 2025-03-31 14:45:06 - End Time 2025-03-31 17:45:06 [2025-03-31 17:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 17:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805126', 'tblTempUsageDetail_20' ) start [2025-03-31 17:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805126', 'tblTempUsageDetail_20' ) end [2025-03-31 17:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805126', 'tblTempVendorCDR_20' ) start [2025-03-31 17:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805126', 'tblTempVendorCDR_20' ) end [2025-03-31 17:45:21] Production.INFO: ProcessCDR(1,14805126,1,1,2) [2025-03-31 17:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805126', 'tblTempUsageDetail_20' ) start [2025-03-31 17:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805126', 'tblTempUsageDetail_20' ) end [2025-03-31 17:45:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 17:45:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 17:45:27] Production.INFO: ==14065== Releasing lock... [2025-03-31 17:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 17:45:27] Production.INFO: 63.5 MB #Memory Used# [2025-03-31 17:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 14:46:05 [end_date_ymd] => 2025-03-31 17:46:05 [RateCDR] => 1 ) [2025-03-31 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-31 14:46:05' and `end` < '2025-03-31 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-31 17:46:18] Production.INFO: count ==4749 [2025-03-31 17:46:20] Production.ERROR: pbx CDR StartTime 2025-03-31 14:46:05 - End Time 2025-03-31 17:46:05 [2025-03-31 17:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 17:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805131', 'tblTempUsageDetail_20' ) start [2025-03-31 17:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805131', 'tblTempUsageDetail_20' ) end [2025-03-31 17:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805131', 'tblTempVendorCDR_20' ) start [2025-03-31 17:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805131', 'tblTempVendorCDR_20' ) end [2025-03-31 17:46:20] Production.INFO: ProcessCDR(1,14805131,1,1,2) [2025-03-31 17:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805131', 'tblTempUsageDetail_20' ) start [2025-03-31 17:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805131', 'tblTempUsageDetail_20' ) end [2025-03-31 17:46:25] Production.ERROR: pbx prc_insertCDR start [2025-03-31 17:46:25] Production.ERROR: pbx prc_insertCDR end [2025-03-31 17:46:25] Production.INFO: ==14138== Releasing lock... [2025-03-31 17:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 17:46:25] Production.INFO: 63.5 MB #Memory Used# [2025-03-31 17:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 14:47:05 [end_date_ymd] => 2025-03-31 17:47:05 [RateCDR] => 1 ) [2025-03-31 17:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 14:47:05' and `end` < '2025-03-31 17:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 17:47:19] Production.INFO: count ==4738 [2025-03-31 17:47:21] Production.ERROR: pbx CDR StartTime 2025-03-31 14:47:05 - End Time 2025-03-31 17:47:05 [2025-03-31 17:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 17:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805136', 'tblTempUsageDetail_20' ) start [2025-03-31 17:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805136', 'tblTempUsageDetail_20' ) end [2025-03-31 17:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805136', 'tblTempVendorCDR_20' ) start [2025-03-31 17:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805136', 'tblTempVendorCDR_20' ) end [2025-03-31 17:47:21] Production.INFO: ProcessCDR(1,14805136,1,1,2) [2025-03-31 17:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805136', 'tblTempUsageDetail_20' ) start [2025-03-31 17:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805136', 'tblTempUsageDetail_20' ) end [2025-03-31 17:47:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 17:47:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 17:47:26] Production.INFO: ==14212== Releasing lock... [2025-03-31 17:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 17:47:26] Production.INFO: 63.5 MB #Memory Used# [2025-03-31 17:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 14:48:04 [end_date_ymd] => 2025-03-31 17:48:04 [RateCDR] => 1 ) [2025-03-31 17:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 14:48:04' and `end` < '2025-03-31 17:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 17:48:18] Production.INFO: count ==4730 [2025-03-31 17:48:20] Production.ERROR: pbx CDR StartTime 2025-03-31 14:48:04 - End Time 2025-03-31 17:48:04 [2025-03-31 17:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 17:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805141', 'tblTempUsageDetail_20' ) start [2025-03-31 17:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805141', 'tblTempUsageDetail_20' ) end [2025-03-31 17:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805141', 'tblTempVendorCDR_20' ) start [2025-03-31 17:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805141', 'tblTempVendorCDR_20' ) end [2025-03-31 17:48:20] Production.INFO: ProcessCDR(1,14805141,1,1,2) [2025-03-31 17:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805141', 'tblTempUsageDetail_20' ) start [2025-03-31 17:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805141', 'tblTempUsageDetail_20' ) end [2025-03-31 17:48:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 17:48:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 17:48:23] Production.INFO: ==14281== Releasing lock... [2025-03-31 17:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 17:48:23] Production.INFO: 63.5 MB #Memory Used# [2025-03-31 17:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 14:49:05 [end_date_ymd] => 2025-03-31 17:49:05 [RateCDR] => 1 ) [2025-03-31 17:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 14:49:05' and `end` < '2025-03-31 17:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 17:49:18] Production.INFO: count ==4716 [2025-03-31 17:49:20] Production.ERROR: pbx CDR StartTime 2025-03-31 14:49:05 - End Time 2025-03-31 17:49:05 [2025-03-31 17:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 17:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805146', 'tblTempUsageDetail_20' ) start [2025-03-31 17:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805146', 'tblTempUsageDetail_20' ) end [2025-03-31 17:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805146', 'tblTempVendorCDR_20' ) start [2025-03-31 17:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805146', 'tblTempVendorCDR_20' ) end [2025-03-31 17:49:20] Production.INFO: ProcessCDR(1,14805146,1,1,2) [2025-03-31 17:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805146', 'tblTempUsageDetail_20' ) start [2025-03-31 17:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805146', 'tblTempUsageDetail_20' ) end [2025-03-31 17:49:25] Production.ERROR: pbx prc_insertCDR start [2025-03-31 17:49:25] Production.ERROR: pbx prc_insertCDR end [2025-03-31 17:49:25] Production.INFO: ==14355== Releasing lock... [2025-03-31 17:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 17:49:25] Production.INFO: 63.25 MB #Memory Used# [2025-03-31 17:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 14:50:06 [end_date_ymd] => 2025-03-31 17:50:06 [RateCDR] => 1 ) [2025-03-31 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-31 14:50:06' and `end` < '2025-03-31 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-31 17:50:20] Production.INFO: count ==4723 [2025-03-31 17:50:22] Production.ERROR: pbx CDR StartTime 2025-03-31 14:50:06 - End Time 2025-03-31 17:50:06 [2025-03-31 17:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 17:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805152', 'tblTempUsageDetail_20' ) start [2025-03-31 17:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805152', 'tblTempUsageDetail_20' ) end [2025-03-31 17:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805152', 'tblTempVendorCDR_20' ) start [2025-03-31 17:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805152', 'tblTempVendorCDR_20' ) end [2025-03-31 17:50:22] Production.INFO: ProcessCDR(1,14805152,1,1,2) [2025-03-31 17:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805152', 'tblTempUsageDetail_20' ) start [2025-03-31 17:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805152', 'tblTempUsageDetail_20' ) end [2025-03-31 17:50:25] Production.ERROR: pbx prc_insertCDR start [2025-03-31 17:50:25] Production.ERROR: pbx prc_insertCDR end [2025-03-31 17:50:25] Production.INFO: ==14430== Releasing lock... [2025-03-31 17:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 17:50:25] Production.INFO: 63.25 MB #Memory Used# [2025-03-31 17:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 14:51:05 [end_date_ymd] => 2025-03-31 17:51:05 [RateCDR] => 1 ) [2025-03-31 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-31 14:51:05' and `end` < '2025-03-31 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-31 17:51:18] Production.INFO: count ==4720 [2025-03-31 17:51:20] Production.ERROR: pbx CDR StartTime 2025-03-31 14:51:05 - End Time 2025-03-31 17:51:05 [2025-03-31 17:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805157', 'tblTempUsageDetail_20' ) start [2025-03-31 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805157', 'tblTempUsageDetail_20' ) end [2025-03-31 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805157', 'tblTempVendorCDR_20' ) start [2025-03-31 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805157', 'tblTempVendorCDR_20' ) end [2025-03-31 17:51:20] Production.INFO: ProcessCDR(1,14805157,1,1,2) [2025-03-31 17:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805157', 'tblTempUsageDetail_20' ) start [2025-03-31 17:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805157', 'tblTempUsageDetail_20' ) end [2025-03-31 17:51:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 17:51:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 17:51:24] Production.INFO: ==14504== Releasing lock... [2025-03-31 17:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 17:51:24] Production.INFO: 63.25 MB #Memory Used# [2025-03-31 17:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 14:52:05 [end_date_ymd] => 2025-03-31 17:52:05 [RateCDR] => 1 ) [2025-03-31 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-31 14:52:05' and `end` < '2025-03-31 17:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 17:52:19] Production.INFO: count ==4692 [2025-03-31 17:52:21] Production.ERROR: pbx CDR StartTime 2025-03-31 14:52:05 - End Time 2025-03-31 17:52:05 [2025-03-31 17:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805162', 'tblTempUsageDetail_20' ) start [2025-03-31 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805162', 'tblTempUsageDetail_20' ) end [2025-03-31 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805162', 'tblTempVendorCDR_20' ) start [2025-03-31 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805162', 'tblTempVendorCDR_20' ) end [2025-03-31 17:52:21] Production.INFO: ProcessCDR(1,14805162,1,1,2) [2025-03-31 17:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805162', 'tblTempUsageDetail_20' ) start [2025-03-31 17:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805162', 'tblTempUsageDetail_20' ) end [2025-03-31 17:52:25] Production.ERROR: pbx prc_insertCDR start [2025-03-31 17:52:25] Production.ERROR: pbx prc_insertCDR end [2025-03-31 17:52:25] Production.INFO: ==14577== Releasing lock... [2025-03-31 17:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 17:52:25] Production.INFO: 63 MB #Memory Used# [2025-03-31 17:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 14:53:05 [end_date_ymd] => 2025-03-31 17:53:05 [RateCDR] => 1 ) [2025-03-31 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-31 14:53:05' and `end` < '2025-03-31 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-31 17:53:19] Production.INFO: count ==4700 [2025-03-31 17:53:20] Production.ERROR: pbx CDR StartTime 2025-03-31 14:53:05 - End Time 2025-03-31 17:53:05 [2025-03-31 17:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805167', 'tblTempUsageDetail_20' ) start [2025-03-31 17:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805167', 'tblTempUsageDetail_20' ) end [2025-03-31 17:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805167', 'tblTempVendorCDR_20' ) start [2025-03-31 17:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805167', 'tblTempVendorCDR_20' ) end [2025-03-31 17:53:21] Production.INFO: ProcessCDR(1,14805167,1,1,2) [2025-03-31 17:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805167', 'tblTempUsageDetail_20' ) start [2025-03-31 17:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805167', 'tblTempUsageDetail_20' ) end [2025-03-31 17:53:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 17:53:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 17:53:26] Production.INFO: ==14697== Releasing lock... [2025-03-31 17:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 17:53:26] Production.INFO: 63.25 MB #Memory Used# [2025-03-31 17:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 14:54:06 [end_date_ymd] => 2025-03-31 17:54:06 [RateCDR] => 1 ) [2025-03-31 17: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-31 14:54:06' and `end` < '2025-03-31 17: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-31 17:54:19] Production.INFO: count ==4692 [2025-03-31 17:54:21] Production.ERROR: pbx CDR StartTime 2025-03-31 14:54:06 - End Time 2025-03-31 17:54:06 [2025-03-31 17:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 17:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805172', 'tblTempUsageDetail_20' ) start [2025-03-31 17:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805172', 'tblTempUsageDetail_20' ) end [2025-03-31 17:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805172', 'tblTempVendorCDR_20' ) start [2025-03-31 17:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805172', 'tblTempVendorCDR_20' ) end [2025-03-31 17:54:21] Production.INFO: ProcessCDR(1,14805172,1,1,2) [2025-03-31 17:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805172', 'tblTempUsageDetail_20' ) start [2025-03-31 17:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805172', 'tblTempUsageDetail_20' ) end [2025-03-31 17:54:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 17:54:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 17:54:27] Production.INFO: ==14771== Releasing lock... [2025-03-31 17:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 17:54:27] Production.INFO: 63 MB #Memory Used# [2025-03-31 17:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 14:55:05 [end_date_ymd] => 2025-03-31 17:55:05 [RateCDR] => 1 ) [2025-03-31 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-31 14:55:05' and `end` < '2025-03-31 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-31 17:55:19] Production.INFO: count ==4687 [2025-03-31 17:55:20] Production.ERROR: pbx CDR StartTime 2025-03-31 14:55:05 - End Time 2025-03-31 17:55:05 [2025-03-31 17:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 17:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805177', 'tblTempUsageDetail_20' ) start [2025-03-31 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805177', 'tblTempUsageDetail_20' ) end [2025-03-31 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805177', 'tblTempVendorCDR_20' ) start [2025-03-31 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805177', 'tblTempVendorCDR_20' ) end [2025-03-31 17:55:21] Production.INFO: ProcessCDR(1,14805177,1,1,2) [2025-03-31 17:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805177', 'tblTempUsageDetail_20' ) start [2025-03-31 17:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805177', 'tblTempUsageDetail_20' ) end [2025-03-31 17:55:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 17:55:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 17:55:26] Production.INFO: ==14845== Releasing lock... [2025-03-31 17:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 17:55:26] Production.INFO: 63 MB #Memory Used# [2025-03-31 17:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 14:56:06 [end_date_ymd] => 2025-03-31 17:56:06 [RateCDR] => 1 ) [2025-03-31 17:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 14:56:06' and `end` < '2025-03-31 17:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 17:56:19] Production.INFO: count ==4684 [2025-03-31 17:56:21] Production.ERROR: pbx CDR StartTime 2025-03-31 14:56:06 - End Time 2025-03-31 17:56:06 [2025-03-31 17:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 17:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805182', 'tblTempUsageDetail_20' ) start [2025-03-31 17:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805182', 'tblTempUsageDetail_20' ) end [2025-03-31 17:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805182', 'tblTempVendorCDR_20' ) start [2025-03-31 17:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805182', 'tblTempVendorCDR_20' ) end [2025-03-31 17:56:22] Production.INFO: ProcessCDR(1,14805182,1,1,2) [2025-03-31 17:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805182', 'tblTempUsageDetail_20' ) start [2025-03-31 17:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805182', 'tblTempUsageDetail_20' ) end [2025-03-31 17:56:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 17:56:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 17:56:27] Production.INFO: ==14921== Releasing lock... [2025-03-31 17:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 17:56:27] Production.INFO: 63 MB #Memory Used# [2025-03-31 17:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 14:57:05 [end_date_ymd] => 2025-03-31 17:57:05 [RateCDR] => 1 ) [2025-03-31 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-31 14:57:05' and `end` < '2025-03-31 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-31 17:57:19] Production.INFO: count ==4690 [2025-03-31 17:57:20] Production.ERROR: pbx CDR StartTime 2025-03-31 14:57:05 - End Time 2025-03-31 17:57:05 [2025-03-31 17:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805187', 'tblTempUsageDetail_20' ) start [2025-03-31 17:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805187', 'tblTempUsageDetail_20' ) end [2025-03-31 17:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805187', 'tblTempVendorCDR_20' ) start [2025-03-31 17:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805187', 'tblTempVendorCDR_20' ) end [2025-03-31 17:57:21] Production.INFO: ProcessCDR(1,14805187,1,1,2) [2025-03-31 17:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805187', 'tblTempUsageDetail_20' ) start [2025-03-31 17:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805187', 'tblTempUsageDetail_20' ) end [2025-03-31 17:57:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 17:57:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 17:57:26] Production.INFO: ==14995== Releasing lock... [2025-03-31 17:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 17:57:26] Production.INFO: 63 MB #Memory Used# [2025-03-31 17:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 14:58:06 [end_date_ymd] => 2025-03-31 17:58:06 [RateCDR] => 1 ) [2025-03-31 17: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-31 14:58:06' and `end` < '2025-03-31 17: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-31 17:58:19] Production.INFO: count ==4706 [2025-03-31 17:58:21] Production.ERROR: pbx CDR StartTime 2025-03-31 14:58:06 - End Time 2025-03-31 17:58:06 [2025-03-31 17:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805192', 'tblTempUsageDetail_20' ) start [2025-03-31 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805192', 'tblTempUsageDetail_20' ) end [2025-03-31 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805192', 'tblTempVendorCDR_20' ) start [2025-03-31 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805192', 'tblTempVendorCDR_20' ) end [2025-03-31 17:58:21] Production.INFO: ProcessCDR(1,14805192,1,1,2) [2025-03-31 17:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805192', 'tblTempUsageDetail_20' ) start [2025-03-31 17:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805192', 'tblTempUsageDetail_20' ) end [2025-03-31 17:58:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 17:58:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 17:58:27] Production.INFO: ==15067== Releasing lock... [2025-03-31 17:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 17:58:27] Production.INFO: 63.25 MB #Memory Used# [2025-03-31 17:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 14:59:05 [end_date_ymd] => 2025-03-31 17:59:05 [RateCDR] => 1 ) [2025-03-31 17:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 14:59:05' and `end` < '2025-03-31 17:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 17:59:18] Production.INFO: count ==4719 [2025-03-31 17:59:20] Production.ERROR: pbx CDR StartTime 2025-03-31 14:59:05 - End Time 2025-03-31 17:59:05 [2025-03-31 17:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805197', 'tblTempUsageDetail_20' ) start [2025-03-31 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805197', 'tblTempUsageDetail_20' ) end [2025-03-31 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805197', 'tblTempVendorCDR_20' ) start [2025-03-31 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805197', 'tblTempVendorCDR_20' ) end [2025-03-31 17:59:20] Production.INFO: ProcessCDR(1,14805197,1,1,2) [2025-03-31 17:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 17:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 17:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805197', 'tblTempUsageDetail_20' ) start [2025-03-31 17:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805197', 'tblTempUsageDetail_20' ) end [2025-03-31 17:59:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 17:59:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 17:59:26] Production.INFO: ==15143== Releasing lock... [2025-03-31 17:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 17:59:26] Production.INFO: 63.25 MB #Memory Used# [2025-03-31 18:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 15:00:07 [end_date_ymd] => 2025-03-31 18:00:07 [RateCDR] => 1 ) [2025-03-31 18:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 15:00:07' and `end` < '2025-03-31 18:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 18:00:20] Production.INFO: count ==4728 [2025-03-31 18:00:22] Production.ERROR: pbx CDR StartTime 2025-03-31 15:00:07 - End Time 2025-03-31 18:00:07 [2025-03-31 18:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805203', 'tblTempUsageDetail_20' ) start [2025-03-31 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805203', 'tblTempUsageDetail_20' ) end [2025-03-31 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805203', 'tblTempVendorCDR_20' ) start [2025-03-31 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805203', 'tblTempVendorCDR_20' ) end [2025-03-31 18:00:22] Production.INFO: ProcessCDR(1,14805203,1,1,2) [2025-03-31 18:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 18:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 18:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 18:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 18:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805203', 'tblTempUsageDetail_20' ) start [2025-03-31 18:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805203', 'tblTempUsageDetail_20' ) end [2025-03-31 18:00:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 18:00:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 18:00:27] Production.INFO: ==15222== Releasing lock... [2025-03-31 18:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 18:00:27] Production.INFO: 63.25 MB #Memory Used# [2025-03-31 18:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 15:01:05 [end_date_ymd] => 2025-03-31 18:01:05 [RateCDR] => 1 ) [2025-03-31 18:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 15:01:05' and `end` < '2025-03-31 18:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 18:01:19] Production.INFO: count ==4831 [2025-03-31 18:01:21] Production.ERROR: pbx CDR StartTime 2025-03-31 15:01:05 - End Time 2025-03-31 18:01:05 [2025-03-31 18:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 18:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805208', 'tblTempUsageDetail_20' ) start [2025-03-31 18:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805208', 'tblTempUsageDetail_20' ) end [2025-03-31 18:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805208', 'tblTempVendorCDR_20' ) start [2025-03-31 18:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805208', 'tblTempVendorCDR_20' ) end [2025-03-31 18:01:21] Production.INFO: ProcessCDR(1,14805208,1,1,2) [2025-03-31 18:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 18:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 18:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 18:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 18:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805208', 'tblTempUsageDetail_20' ) start [2025-03-31 18:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805208', 'tblTempUsageDetail_20' ) end [2025-03-31 18:01:25] Production.ERROR: pbx prc_insertCDR start [2025-03-31 18:01:25] Production.ERROR: pbx prc_insertCDR end [2025-03-31 18:01:25] Production.INFO: ==15306== Releasing lock... [2025-03-31 18:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 18:01:25] Production.INFO: 64.25 MB #Memory Used# [2025-03-31 18:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 15:02:06 [end_date_ymd] => 2025-03-31 18:02:06 [RateCDR] => 1 ) [2025-03-31 18:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 15:02:06' and `end` < '2025-03-31 18:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 18:02:19] Production.INFO: count ==4964 [2025-03-31 18:02:21] Production.ERROR: pbx CDR StartTime 2025-03-31 15:02:06 - End Time 2025-03-31 18:02:06 [2025-03-31 18:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805213', 'tblTempUsageDetail_20' ) start [2025-03-31 18:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805213', 'tblTempUsageDetail_20' ) end [2025-03-31 18:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805213', 'tblTempVendorCDR_20' ) start [2025-03-31 18:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805213', 'tblTempVendorCDR_20' ) end [2025-03-31 18:02:22] Production.INFO: ProcessCDR(1,14805213,1,1,2) [2025-03-31 18:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 18:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 18:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 18:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 18:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805213', 'tblTempUsageDetail_20' ) start [2025-03-31 18:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805213', 'tblTempUsageDetail_20' ) end [2025-03-31 18:02:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 18:02:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 18:02:27] Production.INFO: ==15379== Releasing lock... [2025-03-31 18:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 18:02:27] Production.INFO: 65.25 MB #Memory Used# [2025-03-31 18:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 15:03:05 [end_date_ymd] => 2025-03-31 18:03:05 [RateCDR] => 1 ) [2025-03-31 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-31 15:03:05' and `end` < '2025-03-31 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-31 18:03:19] Production.INFO: count ==4994 [2025-03-31 18:03:21] Production.ERROR: pbx CDR StartTime 2025-03-31 15:03:05 - End Time 2025-03-31 18:03:05 [2025-03-31 18:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 18:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805218', 'tblTempUsageDetail_20' ) start [2025-03-31 18:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805218', 'tblTempUsageDetail_20' ) end [2025-03-31 18:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805218', 'tblTempVendorCDR_20' ) start [2025-03-31 18:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805218', 'tblTempVendorCDR_20' ) end [2025-03-31 18:03:21] Production.INFO: ProcessCDR(1,14805218,1,1,2) [2025-03-31 18:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 18:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 18:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 18:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 18:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805218', 'tblTempUsageDetail_20' ) start [2025-03-31 18:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805218', 'tblTempUsageDetail_20' ) end [2025-03-31 18:03:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 18:03:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 18:03:26] Production.INFO: ==15453== Releasing lock... [2025-03-31 18:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 18:03:26] Production.INFO: 65.25 MB #Memory Used# [2025-03-31 18:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 15:04:06 [end_date_ymd] => 2025-03-31 18:04:06 [RateCDR] => 1 ) [2025-03-31 18: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-31 15:04:06' and `end` < '2025-03-31 18: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-31 18:04:19] Production.INFO: count ==4984 [2025-03-31 18:04:21] Production.ERROR: pbx CDR StartTime 2025-03-31 15:04:06 - End Time 2025-03-31 18:04:06 [2025-03-31 18:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805223', 'tblTempUsageDetail_20' ) start [2025-03-31 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805223', 'tblTempUsageDetail_20' ) end [2025-03-31 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805223', 'tblTempVendorCDR_20' ) start [2025-03-31 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805223', 'tblTempVendorCDR_20' ) end [2025-03-31 18:04:21] Production.INFO: ProcessCDR(1,14805223,1,1,2) [2025-03-31 18:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 18:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 18:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 18:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 18:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805223', 'tblTempUsageDetail_20' ) start [2025-03-31 18:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805223', 'tblTempUsageDetail_20' ) end [2025-03-31 18:04:25] Production.ERROR: pbx prc_insertCDR start [2025-03-31 18:04:25] Production.ERROR: pbx prc_insertCDR end [2025-03-31 18:04:25] Production.INFO: ==15527== Releasing lock... [2025-03-31 18:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 18:04:25] Production.INFO: 65.25 MB #Memory Used# [2025-03-31 18:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 15:05:06 [end_date_ymd] => 2025-03-31 18:05:06 [RateCDR] => 1 ) [2025-03-31 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-31 15:05:06' and `end` < '2025-03-31 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-31 18:05:19] Production.INFO: count ==4972 [2025-03-31 18:05:22] Production.ERROR: pbx CDR StartTime 2025-03-31 15:05:06 - End Time 2025-03-31 18:05:06 [2025-03-31 18:05:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 18:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805228', 'tblTempUsageDetail_20' ) start [2025-03-31 18:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805228', 'tblTempUsageDetail_20' ) end [2025-03-31 18:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805228', 'tblTempVendorCDR_20' ) start [2025-03-31 18:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805228', 'tblTempVendorCDR_20' ) end [2025-03-31 18:05:22] Production.INFO: ProcessCDR(1,14805228,1,1,2) [2025-03-31 18:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 18:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 18:05:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 18:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 18:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805228', 'tblTempUsageDetail_20' ) start [2025-03-31 18:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805228', 'tblTempUsageDetail_20' ) end [2025-03-31 18:05:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 18:05:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 18:05:27] Production.INFO: ==15600== Releasing lock... [2025-03-31 18:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 18:05:27] Production.INFO: 65.25 MB #Memory Used# [2025-03-31 18:06:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 15:06:07 [end_date_ymd] => 2025-03-31 18:06:07 [RateCDR] => 1 ) [2025-03-31 18: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-31 15:06:07' and `end` < '2025-03-31 18: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-31 18:06:20] Production.INFO: count ==5112 [2025-03-31 18:06:22] Production.ERROR: pbx CDR StartTime 2025-03-31 15:06:07 - End Time 2025-03-31 18:06:07 [2025-03-31 18:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 18:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805233', 'tblTempUsageDetail_20' ) start [2025-03-31 18:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805233', 'tblTempUsageDetail_20' ) end [2025-03-31 18:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805233', 'tblTempVendorCDR_20' ) start [2025-03-31 18:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805233', 'tblTempVendorCDR_20' ) end [2025-03-31 18:06:23] Production.INFO: ProcessCDR(1,14805233,1,1,2) [2025-03-31 18:06:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 18:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 18:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 18:06:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 18:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805233', 'tblTempUsageDetail_20' ) start [2025-03-31 18:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805233', 'tblTempUsageDetail_20' ) end [2025-03-31 18:06:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 18:06:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 18:06:28] Production.INFO: ==15678== Releasing lock... [2025-03-31 18:06:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 18:06:28] Production.INFO: 66.25 MB #Memory Used# [2025-03-31 18:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 15:07:06 [end_date_ymd] => 2025-03-31 18:07:06 [RateCDR] => 1 ) [2025-03-31 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-31 15:07:06' and `end` < '2025-03-31 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-31 18:07:20] Production.INFO: count ==5120 [2025-03-31 18:07:22] Production.ERROR: pbx CDR StartTime 2025-03-31 15:07:06 - End Time 2025-03-31 18:07:06 [2025-03-31 18:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 18:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805238', 'tblTempUsageDetail_20' ) start [2025-03-31 18:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805238', 'tblTempUsageDetail_20' ) end [2025-03-31 18:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805238', 'tblTempVendorCDR_20' ) start [2025-03-31 18:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805238', 'tblTempVendorCDR_20' ) end [2025-03-31 18:07:22] Production.INFO: ProcessCDR(1,14805238,1,1,2) [2025-03-31 18:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 18:07:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 18:07:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 18:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 18:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805238', 'tblTempUsageDetail_20' ) start [2025-03-31 18:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805238', 'tblTempUsageDetail_20' ) end [2025-03-31 18:07:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 18:07:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 18:07:27] Production.INFO: ==15749== Releasing lock... [2025-03-31 18:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 18:07:27] Production.INFO: 66.25 MB #Memory Used# [2025-03-31 18:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 15:08:05 [end_date_ymd] => 2025-03-31 18:08:05 [RateCDR] => 1 ) [2025-03-31 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-31 15:08:05' and `end` < '2025-03-31 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-31 18:08:19] Production.INFO: count ==5113 [2025-03-31 18:08:21] Production.ERROR: pbx CDR StartTime 2025-03-31 15:08:05 - End Time 2025-03-31 18:08:05 [2025-03-31 18:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 18:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805243', 'tblTempUsageDetail_20' ) start [2025-03-31 18:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805243', 'tblTempUsageDetail_20' ) end [2025-03-31 18:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805243', 'tblTempVendorCDR_20' ) start [2025-03-31 18:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805243', 'tblTempVendorCDR_20' ) end [2025-03-31 18:08:21] Production.INFO: ProcessCDR(1,14805243,1,1,2) [2025-03-31 18:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 18:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 18:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 18:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 18:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805243', 'tblTempUsageDetail_20' ) start [2025-03-31 18:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805243', 'tblTempUsageDetail_20' ) end [2025-03-31 18:08:25] Production.ERROR: pbx prc_insertCDR start [2025-03-31 18:08:25] Production.ERROR: pbx prc_insertCDR end [2025-03-31 18:08:26] Production.INFO: ==15865== Releasing lock... [2025-03-31 18:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 18:08:26] Production.INFO: 66.25 MB #Memory Used# [2025-03-31 18:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 15:09:05 [end_date_ymd] => 2025-03-31 18:09:05 [RateCDR] => 1 ) [2025-03-31 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-31 15:09:05' and `end` < '2025-03-31 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-31 18:09:19] Production.INFO: count ==5190 [2025-03-31 18:09:21] Production.ERROR: pbx CDR StartTime 2025-03-31 15:09:05 - End Time 2025-03-31 18:09:05 [2025-03-31 18:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 18:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805248', 'tblTempUsageDetail_20' ) start [2025-03-31 18:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805248', 'tblTempUsageDetail_20' ) end [2025-03-31 18:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805248', 'tblTempVendorCDR_20' ) start [2025-03-31 18:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805248', 'tblTempVendorCDR_20' ) end [2025-03-31 18:09:21] Production.INFO: ProcessCDR(1,14805248,1,1,2) [2025-03-31 18:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 18:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 18:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 18:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 18:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805248', 'tblTempUsageDetail_20' ) start [2025-03-31 18:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805248', 'tblTempUsageDetail_20' ) end [2025-03-31 18:09:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 18:09:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 18:09:26] Production.INFO: ==15942== Releasing lock... [2025-03-31 18:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 18:09:26] Production.INFO: 66.75 MB #Memory Used# [2025-03-31 18:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 15:10:05 [end_date_ymd] => 2025-03-31 18:10:05 [RateCDR] => 1 ) [2025-03-31 18:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 15:10:05' and `end` < '2025-03-31 18:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 18:10:19] Production.INFO: count ==5174 [2025-03-31 18:10:21] Production.ERROR: pbx CDR StartTime 2025-03-31 15:10:05 - End Time 2025-03-31 18:10:05 [2025-03-31 18:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805254', 'tblTempUsageDetail_20' ) start [2025-03-31 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805254', 'tblTempUsageDetail_20' ) end [2025-03-31 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805254', 'tblTempVendorCDR_20' ) start [2025-03-31 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805254', 'tblTempVendorCDR_20' ) end [2025-03-31 18:10:21] Production.INFO: ProcessCDR(1,14805254,1,1,2) [2025-03-31 18:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 18:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 18:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 18:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 18:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805254', 'tblTempUsageDetail_20' ) start [2025-03-31 18:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805254', 'tblTempUsageDetail_20' ) end [2025-03-31 18:10:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 18:10:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 18:10:26] Production.INFO: ==16016== Releasing lock... [2025-03-31 18:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 18:10:26] Production.INFO: 66.75 MB #Memory Used# [2025-03-31 18:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 15:11:05 [end_date_ymd] => 2025-03-31 18:11:05 [RateCDR] => 1 ) [2025-03-31 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-31 15:11:05' and `end` < '2025-03-31 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-31 18:11:19] Production.INFO: count ==5104 [2025-03-31 18:11:21] Production.ERROR: pbx CDR StartTime 2025-03-31 15:11:05 - End Time 2025-03-31 18:11:05 [2025-03-31 18:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 18:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805258', 'tblTempUsageDetail_20' ) start [2025-03-31 18:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805258', 'tblTempUsageDetail_20' ) end [2025-03-31 18:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805258', 'tblTempVendorCDR_20' ) start [2025-03-31 18:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805258', 'tblTempVendorCDR_20' ) end [2025-03-31 18:11:21] Production.INFO: ProcessCDR(1,14805258,1,1,2) [2025-03-31 18:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 18:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 18:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 18:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 18:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805258', 'tblTempUsageDetail_20' ) start [2025-03-31 18:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805258', 'tblTempUsageDetail_20' ) end [2025-03-31 18:11:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 18:11:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 18:11:26] Production.INFO: ==16092== Releasing lock... [2025-03-31 18:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 18:11:26] Production.INFO: 66.25 MB #Memory Used# [2025-03-31 18:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 15:12:06 [end_date_ymd] => 2025-03-31 18:12:06 [RateCDR] => 1 ) [2025-03-31 18: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-31 15:12:06' and `end` < '2025-03-31 18: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-31 18:12:19] Production.INFO: count ==5078 [2025-03-31 18:12:21] Production.ERROR: pbx CDR StartTime 2025-03-31 15:12:06 - End Time 2025-03-31 18:12:06 [2025-03-31 18:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 18:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805264', 'tblTempUsageDetail_20' ) start [2025-03-31 18:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805264', 'tblTempUsageDetail_20' ) end [2025-03-31 18:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805264', 'tblTempVendorCDR_20' ) start [2025-03-31 18:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805264', 'tblTempVendorCDR_20' ) end [2025-03-31 18:12:21] Production.INFO: ProcessCDR(1,14805264,1,1,2) [2025-03-31 18:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 18:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 18:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 18:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 18:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805264', 'tblTempUsageDetail_20' ) start [2025-03-31 18:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805264', 'tblTempUsageDetail_20' ) end [2025-03-31 18:12:25] Production.ERROR: pbx prc_insertCDR start [2025-03-31 18:12:25] Production.ERROR: pbx prc_insertCDR end [2025-03-31 18:12:25] Production.INFO: ==16173== Releasing lock... [2025-03-31 18:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 18:12:25] Production.INFO: 66 MB #Memory Used# [2025-03-31 18:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 15:13:05 [end_date_ymd] => 2025-03-31 18:13:05 [RateCDR] => 1 ) [2025-03-31 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-31 15:13:05' and `end` < '2025-03-31 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-31 18:13:19] Production.INFO: count ==5058 [2025-03-31 18:13:21] Production.ERROR: pbx CDR StartTime 2025-03-31 15:13:05 - End Time 2025-03-31 18:13:05 [2025-03-31 18:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 18:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805269', 'tblTempUsageDetail_20' ) start [2025-03-31 18:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805269', 'tblTempUsageDetail_20' ) end [2025-03-31 18:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805269', 'tblTempVendorCDR_20' ) start [2025-03-31 18:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805269', 'tblTempVendorCDR_20' ) end [2025-03-31 18:13:21] Production.INFO: ProcessCDR(1,14805269,1,1,2) [2025-03-31 18:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 18:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 18:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 18:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 18:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805269', 'tblTempUsageDetail_20' ) start [2025-03-31 18:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805269', 'tblTempUsageDetail_20' ) end [2025-03-31 18:13:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 18:13:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 18:13:26] Production.INFO: ==16247== Releasing lock... [2025-03-31 18:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 18:13:26] Production.INFO: 65.75 MB #Memory Used# [2025-03-31 18:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 15:14:06 [end_date_ymd] => 2025-03-31 18:14:06 [RateCDR] => 1 ) [2025-03-31 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-31 15:14:06' and `end` < '2025-03-31 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-31 18:14:19] Production.INFO: count ==5022 [2025-03-31 18:14:21] Production.ERROR: pbx CDR StartTime 2025-03-31 15:14:06 - End Time 2025-03-31 18:14:06 [2025-03-31 18:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805274', 'tblTempUsageDetail_20' ) start [2025-03-31 18:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805274', 'tblTempUsageDetail_20' ) end [2025-03-31 18:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805274', 'tblTempVendorCDR_20' ) start [2025-03-31 18:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805274', 'tblTempVendorCDR_20' ) end [2025-03-31 18:14:22] Production.INFO: ProcessCDR(1,14805274,1,1,2) [2025-03-31 18:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 18:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 18:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 18:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 18:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805274', 'tblTempUsageDetail_20' ) start [2025-03-31 18:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805274', 'tblTempUsageDetail_20' ) end [2025-03-31 18:14:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 18:14:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 18:14:27] Production.INFO: ==16320== Releasing lock... [2025-03-31 18:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 18:14:27] Production.INFO: 65.5 MB #Memory Used# [2025-03-31 18:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 15:15:05 [end_date_ymd] => 2025-03-31 18:15:05 [RateCDR] => 1 ) [2025-03-31 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-31 15:15:05' and `end` < '2025-03-31 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-31 18:15:19] Production.INFO: count ==5490 [2025-03-31 18:15:21] Production.ERROR: pbx CDR StartTime 2025-03-31 15:15:05 - End Time 2025-03-31 18:15:05 [2025-03-31 18:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 18:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805279', 'tblTempUsageDetail_20' ) start [2025-03-31 18:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805279', 'tblTempUsageDetail_20' ) end [2025-03-31 18:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805279', 'tblTempVendorCDR_20' ) start [2025-03-31 18:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805279', 'tblTempVendorCDR_20' ) end [2025-03-31 18:15:21] Production.INFO: ProcessCDR(1,14805279,1,1,2) [2025-03-31 18:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 18:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 18:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 18:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 18:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805279', 'tblTempUsageDetail_20' ) start [2025-03-31 18:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805279', 'tblTempUsageDetail_20' ) end [2025-03-31 18:15:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 18:15:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 18:15:27] Production.INFO: ==16396== Releasing lock... [2025-03-31 18:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 18:15:27] Production.INFO: 69 MB #Memory Used# [2025-03-31 18:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 15:16:06 [end_date_ymd] => 2025-03-31 18:16:06 [RateCDR] => 1 ) [2025-03-31 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-31 15:16:06' and `end` < '2025-03-31 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-31 18:16:19] Production.INFO: count ==5500 [2025-03-31 18:16:21] Production.ERROR: pbx CDR StartTime 2025-03-31 15:16:06 - End Time 2025-03-31 18:16:06 [2025-03-31 18:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 18:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805284', 'tblTempUsageDetail_20' ) start [2025-03-31 18:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805284', 'tblTempUsageDetail_20' ) end [2025-03-31 18:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805284', 'tblTempVendorCDR_20' ) start [2025-03-31 18:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805284', 'tblTempVendorCDR_20' ) end [2025-03-31 18:16:22] Production.INFO: ProcessCDR(1,14805284,1,1,2) [2025-03-31 18:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 18:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 18:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 18:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 18:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805284', 'tblTempUsageDetail_20' ) start [2025-03-31 18:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805284', 'tblTempUsageDetail_20' ) end [2025-03-31 18:16:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 18:16:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 18:16:27] Production.INFO: ==16468== Releasing lock... [2025-03-31 18:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 18:16:27] Production.INFO: 69 MB #Memory Used# [2025-03-31 18:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 15:17:05 [end_date_ymd] => 2025-03-31 18:17:05 [RateCDR] => 1 ) [2025-03-31 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-31 15:17:05' and `end` < '2025-03-31 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-31 18:17:19] Production.INFO: count ==5497 [2025-03-31 18:17:21] Production.ERROR: pbx CDR StartTime 2025-03-31 15:17:05 - End Time 2025-03-31 18:17:05 [2025-03-31 18:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 18:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805289', 'tblTempUsageDetail_20' ) start [2025-03-31 18:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805289', 'tblTempUsageDetail_20' ) end [2025-03-31 18:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805289', 'tblTempVendorCDR_20' ) start [2025-03-31 18:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805289', 'tblTempVendorCDR_20' ) end [2025-03-31 18:17:21] Production.INFO: ProcessCDR(1,14805289,1,1,2) [2025-03-31 18:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 18:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 18:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 18:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 18:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805289', 'tblTempUsageDetail_20' ) start [2025-03-31 18:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805289', 'tblTempUsageDetail_20' ) end [2025-03-31 18:17:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 18:17:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 18:17:26] Production.INFO: ==16541== Releasing lock... [2025-03-31 18:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 18:17:26] Production.INFO: 69 MB #Memory Used# [2025-03-31 18:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 15:18:05 [end_date_ymd] => 2025-03-31 18:18:05 [RateCDR] => 1 ) [2025-03-31 18:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 15:18:05' and `end` < '2025-03-31 18:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 18:18:19] Production.INFO: count ==5456 [2025-03-31 18:18:21] Production.ERROR: pbx CDR StartTime 2025-03-31 15:18:05 - End Time 2025-03-31 18:18:05 [2025-03-31 18:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805294', 'tblTempUsageDetail_20' ) start [2025-03-31 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805294', 'tblTempUsageDetail_20' ) end [2025-03-31 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805294', 'tblTempVendorCDR_20' ) start [2025-03-31 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805294', 'tblTempVendorCDR_20' ) end [2025-03-31 18:18:21] Production.INFO: ProcessCDR(1,14805294,1,1,2) [2025-03-31 18:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 18:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 18:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 18:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 18:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805294', 'tblTempUsageDetail_20' ) start [2025-03-31 18:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805294', 'tblTempUsageDetail_20' ) end [2025-03-31 18:18:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 18:18:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 18:18:26] Production.INFO: ==16614== Releasing lock... [2025-03-31 18:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 18:18:26] Production.INFO: 68.75 MB #Memory Used# [2025-03-31 18:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 15:19:04 [end_date_ymd] => 2025-03-31 18:19:04 [RateCDR] => 1 ) [2025-03-31 18: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-31 15:19:04' and `end` < '2025-03-31 18: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-31 18:19:18] Production.INFO: count ==5428 [2025-03-31 18:19:20] Production.ERROR: pbx CDR StartTime 2025-03-31 15:19:04 - End Time 2025-03-31 18:19:04 [2025-03-31 18:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805299', 'tblTempUsageDetail_20' ) start [2025-03-31 18:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805299', 'tblTempUsageDetail_20' ) end [2025-03-31 18:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805299', 'tblTempVendorCDR_20' ) start [2025-03-31 18:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805299', 'tblTempVendorCDR_20' ) end [2025-03-31 18:19:21] Production.INFO: ProcessCDR(1,14805299,1,1,2) [2025-03-31 18:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 18:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 18:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 18:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 18:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805299', 'tblTempUsageDetail_20' ) start [2025-03-31 18:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805299', 'tblTempUsageDetail_20' ) end [2025-03-31 18:19:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 18:19:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 18:19:26] Production.INFO: ==16687== Releasing lock... [2025-03-31 18:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 18:19:26] Production.INFO: 68.5 MB #Memory Used# [2025-03-31 18:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 15:20:06 [end_date_ymd] => 2025-03-31 18:20:06 [RateCDR] => 1 ) [2025-03-31 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-31 15:20:06' and `end` < '2025-03-31 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-31 18:20:20] Production.INFO: count ==5409 [2025-03-31 18:20:22] Production.ERROR: pbx CDR StartTime 2025-03-31 15:20:06 - End Time 2025-03-31 18:20:06 [2025-03-31 18:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 18:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805305', 'tblTempUsageDetail_20' ) start [2025-03-31 18:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805305', 'tblTempUsageDetail_20' ) end [2025-03-31 18:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805305', 'tblTempVendorCDR_20' ) start [2025-03-31 18:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805305', 'tblTempVendorCDR_20' ) end [2025-03-31 18:20:22] Production.INFO: ProcessCDR(1,14805305,1,1,2) [2025-03-31 18:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 18:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 18:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 18:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 18:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805305', 'tblTempUsageDetail_20' ) start [2025-03-31 18:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805305', 'tblTempUsageDetail_20' ) end [2025-03-31 18:20:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 18:20:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 18:20:27] Production.INFO: ==16764== Releasing lock... [2025-03-31 18:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 18:20:27] Production.INFO: 68.5 MB #Memory Used# [2025-03-31 18:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 15:21:05 [end_date_ymd] => 2025-03-31 18:21:05 [RateCDR] => 1 ) [2025-03-31 18:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 15:21:05' and `end` < '2025-03-31 18:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 18:21:19] Production.INFO: count ==5405 [2025-03-31 18:21:21] Production.ERROR: pbx CDR StartTime 2025-03-31 15:21:05 - End Time 2025-03-31 18:21:05 [2025-03-31 18:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 18:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805310', 'tblTempUsageDetail_20' ) start [2025-03-31 18:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805310', 'tblTempUsageDetail_20' ) end [2025-03-31 18:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805310', 'tblTempVendorCDR_20' ) start [2025-03-31 18:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805310', 'tblTempVendorCDR_20' ) end [2025-03-31 18:21:21] Production.INFO: ProcessCDR(1,14805310,1,1,2) [2025-03-31 18:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 18:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 18:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 18:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 18:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805310', 'tblTempUsageDetail_20' ) start [2025-03-31 18:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805310', 'tblTempUsageDetail_20' ) end [2025-03-31 18:21:25] Production.ERROR: pbx prc_insertCDR start [2025-03-31 18:21:25] Production.ERROR: pbx prc_insertCDR end [2025-03-31 18:21:25] Production.INFO: ==16839== Releasing lock... [2025-03-31 18:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 18:21:25] Production.INFO: 68.5 MB #Memory Used# [2025-03-31 18:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 15:22:06 [end_date_ymd] => 2025-03-31 18:22:06 [RateCDR] => 1 ) [2025-03-31 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-31 15:22:06' and `end` < '2025-03-31 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-31 18:22:19] Production.INFO: count ==5572 [2025-03-31 18:22:21] Production.ERROR: pbx CDR StartTime 2025-03-31 15:22:06 - End Time 2025-03-31 18:22:06 [2025-03-31 18:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805315', 'tblTempUsageDetail_20' ) start [2025-03-31 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805315', 'tblTempUsageDetail_20' ) end [2025-03-31 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805315', 'tblTempVendorCDR_20' ) start [2025-03-31 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805315', 'tblTempVendorCDR_20' ) end [2025-03-31 18:22:21] Production.INFO: ProcessCDR(1,14805315,1,1,2) [2025-03-31 18:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 18:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 18:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 18:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 18:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805315', 'tblTempUsageDetail_20' ) start [2025-03-31 18:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805315', 'tblTempUsageDetail_20' ) end [2025-03-31 18:22:25] Production.ERROR: pbx prc_insertCDR start [2025-03-31 18:22:25] Production.ERROR: pbx prc_insertCDR end [2025-03-31 18:22:25] Production.INFO: ==16911== Releasing lock... [2025-03-31 18:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 18:22:25] Production.INFO: 69.75 MB #Memory Used# [2025-03-31 18:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 15:23:05 [end_date_ymd] => 2025-03-31 18:23:05 [RateCDR] => 1 ) [2025-03-31 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-31 15:23:05' and `end` < '2025-03-31 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-31 18:23:19] Production.INFO: count ==5558 [2025-03-31 18:23:21] Production.ERROR: pbx CDR StartTime 2025-03-31 15:23:05 - End Time 2025-03-31 18:23:05 [2025-03-31 18:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 18:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805320', 'tblTempUsageDetail_20' ) start [2025-03-31 18:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805320', 'tblTempUsageDetail_20' ) end [2025-03-31 18:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805320', 'tblTempVendorCDR_20' ) start [2025-03-31 18:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805320', 'tblTempVendorCDR_20' ) end [2025-03-31 18:23:21] Production.INFO: ProcessCDR(1,14805320,1,1,2) [2025-03-31 18:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 18:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 18:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 18:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 18:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805320', 'tblTempUsageDetail_20' ) start [2025-03-31 18:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805320', 'tblTempUsageDetail_20' ) end [2025-03-31 18:23:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 18:23:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 18:23:26] Production.INFO: ==16985== Releasing lock... [2025-03-31 18:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 18:23:26] Production.INFO: 69.5 MB #Memory Used# [2025-03-31 18:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 15:24:06 [end_date_ymd] => 2025-03-31 18:24:06 [RateCDR] => 1 ) [2025-03-31 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-31 15:24:06' and `end` < '2025-03-31 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-31 18:24:19] Production.INFO: count ==5555 [2025-03-31 18:24:22] Production.ERROR: pbx CDR StartTime 2025-03-31 15:24:06 - End Time 2025-03-31 18:24:06 [2025-03-31 18:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 18:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805325', 'tblTempUsageDetail_20' ) start [2025-03-31 18:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805325', 'tblTempUsageDetail_20' ) end [2025-03-31 18:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805325', 'tblTempVendorCDR_20' ) start [2025-03-31 18:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805325', 'tblTempVendorCDR_20' ) end [2025-03-31 18:24:22] Production.INFO: ProcessCDR(1,14805325,1,1,2) [2025-03-31 18:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 18:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 18:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 18:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 18:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805325', 'tblTempUsageDetail_20' ) start [2025-03-31 18:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805325', 'tblTempUsageDetail_20' ) end [2025-03-31 18:24:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 18:24:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 18:24:27] Production.INFO: ==17095== Releasing lock... [2025-03-31 18:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 18:24:27] Production.INFO: 69.5 MB #Memory Used# [2025-03-31 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 15:25:05 [end_date_ymd] => 2025-03-31 18:25:05 [RateCDR] => 1 ) [2025-03-31 18:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 15:25:05' and `end` < '2025-03-31 18:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 18:25:18] Production.INFO: count ==5531 [2025-03-31 18:25:21] Production.ERROR: pbx CDR StartTime 2025-03-31 15:25:05 - End Time 2025-03-31 18:25:05 [2025-03-31 18:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805330', 'tblTempUsageDetail_20' ) start [2025-03-31 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805330', 'tblTempUsageDetail_20' ) end [2025-03-31 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805330', 'tblTempVendorCDR_20' ) start [2025-03-31 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805330', 'tblTempVendorCDR_20' ) end [2025-03-31 18:25:21] Production.INFO: ProcessCDR(1,14805330,1,1,2) [2025-03-31 18:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 18:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 18:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 18:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 18:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805330', 'tblTempUsageDetail_20' ) start [2025-03-31 18:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805330', 'tblTempUsageDetail_20' ) end [2025-03-31 18:25:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 18:25:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 18:25:26] Production.INFO: ==17165== Releasing lock... [2025-03-31 18:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 18:25:26] Production.INFO: 69.25 MB #Memory Used# [2025-03-31 18:26:26] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 15:26:26 [end_date_ymd] => 2025-03-31 18:26:26 [RateCDR] => 1 ) [2025-03-31 18:26:26] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 15:26:26' and `end` < '2025-03-31 18:26:26' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 18:26:39] Production.INFO: count ==5510 [2025-03-31 18:28:05] Production.ERROR: pbx CDR StartTime 2025-03-31 15:26:26 - End Time 2025-03-31 18:26:26 [2025-03-31 18:28:05] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 18:28:05] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805335', 'tblTempUsageDetail_20' ) start [2025-03-31 18:28:11] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805335', 'tblTempUsageDetail_20' ) end [2025-03-31 18:28:11] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805335', 'tblTempVendorCDR_20' ) start [2025-03-31 18:28:11] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805335', 'tblTempVendorCDR_20' ) end [2025-03-31 18:28:11] Production.INFO: ProcessCDR(1,14805335,1,1,2) [2025-03-31 18:28:11] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 18:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 18:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 18:29:00] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 18:29:00] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805335', 'tblTempUsageDetail_20' ) start [2025-03-31 18:29:15] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805335', 'tblTempUsageDetail_20' ) end [2025-03-31 18:29:15] Production.ERROR: pbx prc_insertCDR start [2025-03-31 18:29:15] Production.ERROR: pbx prc_insertCDR end [2025-03-31 18:29:21] Production.INFO: ==17244== Releasing lock... [2025-03-31 18:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 18:29:21] Production.INFO: 69.25 MB #Memory Used# [2025-03-31 18:30:27] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 15:30:27 [end_date_ymd] => 2025-03-31 18:30:27 [RateCDR] => 1 ) [2025-03-31 18:30:27] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 15:30:27' and `end` < '2025-03-31 18:30:27' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 18:30:40] Production.INFO: count ==5499 [2025-03-31 18:31:31] Production.ERROR: pbx CDR StartTime 2025-03-31 15:30:27 - End Time 2025-03-31 18:30:27 [2025-03-31 18:31:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 18:31:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805350', 'tblTempUsageDetail_20' ) start [2025-03-31 18:31:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805350', 'tblTempUsageDetail_20' ) end [2025-03-31 18:31:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805350', 'tblTempVendorCDR_20' ) start [2025-03-31 18:31:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805350', 'tblTempVendorCDR_20' ) end [2025-03-31 18:31:36] Production.INFO: ProcessCDR(1,14805350,1,1,2) [2025-03-31 18:31:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 18:31:52] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 18:31:52] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 18:32:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 18:32:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805350', 'tblTempUsageDetail_20' ) start [2025-03-31 18:32:58] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805350', 'tblTempUsageDetail_20' ) end [2025-03-31 18:32:58] Production.ERROR: pbx prc_insertCDR start [2025-03-31 18:32:58] Production.ERROR: pbx prc_insertCDR end [2025-03-31 18:33:05] Production.INFO: ==17524== Releasing lock... [2025-03-31 18:33:05] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 18:33:05] Production.INFO: 69 MB #Memory Used# [2025-03-31 18:34:15] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 15:34:15 [end_date_ymd] => 2025-03-31 18:34:15 [RateCDR] => 1 ) [2025-03-31 18:34:15] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 15:34:15' and `end` < '2025-03-31 18:34:15' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 18:34:29] Production.INFO: count ==5409 [2025-03-31 18:34:31] Production.ERROR: pbx CDR StartTime 2025-03-31 15:34:15 - End Time 2025-03-31 18:34:15 [2025-03-31 18:34:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 18:34:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805364', 'tblTempUsageDetail_20' ) start [2025-03-31 18:34:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805364', 'tblTempUsageDetail_20' ) end [2025-03-31 18:34:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805364', 'tblTempVendorCDR_20' ) start [2025-03-31 18:34:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805364', 'tblTempVendorCDR_20' ) end [2025-03-31 18:34:31] Production.INFO: ProcessCDR(1,14805364,1,1,2) [2025-03-31 18:34:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 18:34:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 18:34:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 18:34:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 18:34:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805364', 'tblTempUsageDetail_20' ) start [2025-03-31 18:34:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805364', 'tblTempUsageDetail_20' ) end [2025-03-31 18:34:36] Production.ERROR: pbx prc_insertCDR start [2025-03-31 18:34:36] Production.ERROR: pbx prc_insertCDR end [2025-03-31 18:34:36] Production.INFO: ==17806== Releasing lock... [2025-03-31 18:34:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 18:34:36] Production.INFO: 68.5 MB #Memory Used# [2025-03-31 18:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 15:35:05 [end_date_ymd] => 2025-03-31 18:35:05 [RateCDR] => 1 ) [2025-03-31 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-31 15:35:05' and `end` < '2025-03-31 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-31 18:35:19] Production.INFO: count ==5412 [2025-03-31 18:35:21] Production.ERROR: pbx CDR StartTime 2025-03-31 15:35:05 - End Time 2025-03-31 18:35:05 [2025-03-31 18:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 18:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805369', 'tblTempUsageDetail_20' ) start [2025-03-31 18:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805369', 'tblTempUsageDetail_20' ) end [2025-03-31 18:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805369', 'tblTempVendorCDR_20' ) start [2025-03-31 18:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805369', 'tblTempVendorCDR_20' ) end [2025-03-31 18:35:22] Production.INFO: ProcessCDR(1,14805369,1,1,2) [2025-03-31 18:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 18:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 18:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 18:35:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 18:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805369', 'tblTempUsageDetail_20' ) start [2025-03-31 18:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805369', 'tblTempUsageDetail_20' ) end [2025-03-31 18:35:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 18:35:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 18:35:27] Production.INFO: ==17882== Releasing lock... [2025-03-31 18:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 18:35:27] Production.INFO: 68.5 MB #Memory Used# [2025-03-31 18:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 15:36:05 [end_date_ymd] => 2025-03-31 18:36:05 [RateCDR] => 1 ) [2025-03-31 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-31 15:36:05' and `end` < '2025-03-31 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-31 18:36:19] Production.INFO: count ==5393 [2025-03-31 18:36:21] Production.ERROR: pbx CDR StartTime 2025-03-31 15:36:05 - End Time 2025-03-31 18:36:05 [2025-03-31 18:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 18:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805374', 'tblTempUsageDetail_20' ) start [2025-03-31 18:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805374', 'tblTempUsageDetail_20' ) end [2025-03-31 18:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805374', 'tblTempVendorCDR_20' ) start [2025-03-31 18:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805374', 'tblTempVendorCDR_20' ) end [2025-03-31 18:36:21] Production.INFO: ProcessCDR(1,14805374,1,1,2) [2025-03-31 18:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 18:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 18:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 18:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 18:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805374', 'tblTempUsageDetail_20' ) start [2025-03-31 18:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805374', 'tblTempUsageDetail_20' ) end [2025-03-31 18:36:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 18:36:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 18:36:26] Production.INFO: ==17956== Releasing lock... [2025-03-31 18:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 18:36:26] Production.INFO: 68.25 MB #Memory Used# [2025-03-31 18:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 15:37:05 [end_date_ymd] => 2025-03-31 18:37:05 [RateCDR] => 1 ) [2025-03-31 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-31 15:37:05' and `end` < '2025-03-31 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-31 18:37:18] Production.INFO: count ==5356 [2025-03-31 18:37:20] Production.ERROR: pbx CDR StartTime 2025-03-31 15:37:05 - End Time 2025-03-31 18:37:05 [2025-03-31 18:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805379', 'tblTempUsageDetail_20' ) start [2025-03-31 18:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805379', 'tblTempUsageDetail_20' ) end [2025-03-31 18:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805379', 'tblTempVendorCDR_20' ) start [2025-03-31 18:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805379', 'tblTempVendorCDR_20' ) end [2025-03-31 18:37:21] Production.INFO: ProcessCDR(1,14805379,1,1,2) [2025-03-31 18:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 18:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 18:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 18:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 18:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805379', 'tblTempUsageDetail_20' ) start [2025-03-31 18:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805379', 'tblTempUsageDetail_20' ) end [2025-03-31 18:37:25] Production.ERROR: pbx prc_insertCDR start [2025-03-31 18:37:25] Production.ERROR: pbx prc_insertCDR end [2025-03-31 18:37:25] Production.INFO: ==18027== Releasing lock... [2025-03-31 18:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 18:37:25] Production.INFO: 68 MB #Memory Used# [2025-03-31 18:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 15:38:05 [end_date_ymd] => 2025-03-31 18:38:05 [RateCDR] => 1 ) [2025-03-31 18: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-31 15:38:05' and `end` < '2025-03-31 18: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-31 18:38:19] Production.INFO: count ==5341 [2025-03-31 18:38:21] Production.ERROR: pbx CDR StartTime 2025-03-31 15:38:05 - End Time 2025-03-31 18:38:05 [2025-03-31 18:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 18:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805384', 'tblTempUsageDetail_20' ) start [2025-03-31 18:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805384', 'tblTempUsageDetail_20' ) end [2025-03-31 18:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805384', 'tblTempVendorCDR_20' ) start [2025-03-31 18:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805384', 'tblTempVendorCDR_20' ) end [2025-03-31 18:38:21] Production.INFO: ProcessCDR(1,14805384,1,1,2) [2025-03-31 18:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 18:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 18:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 18:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 18:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805384', 'tblTempUsageDetail_20' ) start [2025-03-31 18:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805384', 'tblTempUsageDetail_20' ) end [2025-03-31 18:38:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 18:38:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 18:38:26] Production.INFO: ==18099== Releasing lock... [2025-03-31 18:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 18:38:26] Production.INFO: 68 MB #Memory Used# [2025-03-31 18:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 15:39:05 [end_date_ymd] => 2025-03-31 18:39:05 [RateCDR] => 1 ) [2025-03-31 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-31 15:39:05' and `end` < '2025-03-31 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-31 18:39:18] Production.INFO: count ==5368 [2025-03-31 18:39:20] Production.ERROR: pbx CDR StartTime 2025-03-31 15:39:05 - End Time 2025-03-31 18:39:05 [2025-03-31 18:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 18:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805389', 'tblTempUsageDetail_20' ) start [2025-03-31 18:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805389', 'tblTempUsageDetail_20' ) end [2025-03-31 18:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805389', 'tblTempVendorCDR_20' ) start [2025-03-31 18:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805389', 'tblTempVendorCDR_20' ) end [2025-03-31 18:39:21] Production.INFO: ProcessCDR(1,14805389,1,1,2) [2025-03-31 18:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 18:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 18:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 18:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 18:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805389', 'tblTempUsageDetail_20' ) start [2025-03-31 18:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805389', 'tblTempUsageDetail_20' ) end [2025-03-31 18:39:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 18:39:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 18:39:26] Production.INFO: ==18217== Releasing lock... [2025-03-31 18:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 18:39:26] Production.INFO: 68 MB #Memory Used# [2025-03-31 18:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 15:40:07 [end_date_ymd] => 2025-03-31 18:40:07 [RateCDR] => 1 ) [2025-03-31 18: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-31 15:40:07' and `end` < '2025-03-31 18: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-31 18:40:20] Production.INFO: count ==5366 [2025-03-31 18:40:23] Production.ERROR: pbx CDR StartTime 2025-03-31 15:40:07 - End Time 2025-03-31 18:40:07 [2025-03-31 18:40:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 18:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805395', 'tblTempUsageDetail_20' ) start [2025-03-31 18:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805395', 'tblTempUsageDetail_20' ) end [2025-03-31 18:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805395', 'tblTempVendorCDR_20' ) start [2025-03-31 18:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805395', 'tblTempVendorCDR_20' ) end [2025-03-31 18:40:23] Production.INFO: ProcessCDR(1,14805395,1,1,2) [2025-03-31 18:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 18:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 18:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 18:40:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 18:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805395', 'tblTempUsageDetail_20' ) start [2025-03-31 18:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805395', 'tblTempUsageDetail_20' ) end [2025-03-31 18:40:28] Production.ERROR: pbx prc_insertCDR start [2025-03-31 18:40:28] Production.ERROR: pbx prc_insertCDR end [2025-03-31 18:40:28] Production.INFO: ==18298== Releasing lock... [2025-03-31 18:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 18:40:28] Production.INFO: 68 MB #Memory Used# [2025-03-31 18:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 15:41:05 [end_date_ymd] => 2025-03-31 18:41:05 [RateCDR] => 1 ) [2025-03-31 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-31 15:41:05' and `end` < '2025-03-31 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-31 18:41:19] Production.INFO: count ==5382 [2025-03-31 18:41:21] Production.ERROR: pbx CDR StartTime 2025-03-31 15:41:05 - End Time 2025-03-31 18:41:05 [2025-03-31 18:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 18:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805400', 'tblTempUsageDetail_20' ) start [2025-03-31 18:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805400', 'tblTempUsageDetail_20' ) end [2025-03-31 18:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805400', 'tblTempVendorCDR_20' ) start [2025-03-31 18:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805400', 'tblTempVendorCDR_20' ) end [2025-03-31 18:41:21] Production.INFO: ProcessCDR(1,14805400,1,1,2) [2025-03-31 18:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 18:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 18:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 18:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 18:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805400', 'tblTempUsageDetail_20' ) start [2025-03-31 18:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805400', 'tblTempUsageDetail_20' ) end [2025-03-31 18:41:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 18:41:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 18:41:26] Production.INFO: ==18371== Releasing lock... [2025-03-31 18:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 18:41:26] Production.INFO: 68.25 MB #Memory Used# [2025-03-31 18:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 15:42:05 [end_date_ymd] => 2025-03-31 18:42:05 [RateCDR] => 1 ) [2025-03-31 18:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 15:42:05' and `end` < '2025-03-31 18:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 18:42:19] Production.INFO: count ==5394 [2025-03-31 18:42:21] Production.ERROR: pbx CDR StartTime 2025-03-31 15:42:05 - End Time 2025-03-31 18:42:05 [2025-03-31 18:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 18:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805405', 'tblTempUsageDetail_20' ) start [2025-03-31 18:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805405', 'tblTempUsageDetail_20' ) end [2025-03-31 18:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805405', 'tblTempVendorCDR_20' ) start [2025-03-31 18:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805405', 'tblTempVendorCDR_20' ) end [2025-03-31 18:42:21] Production.INFO: ProcessCDR(1,14805405,1,1,2) [2025-03-31 18:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 18:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 18:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 18:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 18:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805405', 'tblTempUsageDetail_20' ) start [2025-03-31 18:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805405', 'tblTempUsageDetail_20' ) end [2025-03-31 18:42:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 18:42:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 18:42:24] Production.INFO: ==18451== Releasing lock... [2025-03-31 18:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 18:42:24] Production.INFO: 68.25 MB #Memory Used# [2025-03-31 18:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 15:43:05 [end_date_ymd] => 2025-03-31 18:43:05 [RateCDR] => 1 ) [2025-03-31 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-31 15:43:05' and `end` < '2025-03-31 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-31 18:43:18] Production.INFO: count ==5424 [2025-03-31 18:43:21] Production.ERROR: pbx CDR StartTime 2025-03-31 15:43:05 - End Time 2025-03-31 18:43:05 [2025-03-31 18:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 18:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805410', 'tblTempUsageDetail_20' ) start [2025-03-31 18:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805410', 'tblTempUsageDetail_20' ) end [2025-03-31 18:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805410', 'tblTempVendorCDR_20' ) start [2025-03-31 18:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805410', 'tblTempVendorCDR_20' ) end [2025-03-31 18:43:21] Production.INFO: ProcessCDR(1,14805410,1,1,2) [2025-03-31 18:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 18:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 18:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 18:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 18:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805410', 'tblTempUsageDetail_20' ) start [2025-03-31 18:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805410', 'tblTempUsageDetail_20' ) end [2025-03-31 18:43:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 18:43:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 18:43:24] Production.INFO: ==18524== Releasing lock... [2025-03-31 18:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 18:43:24] Production.INFO: 68.5 MB #Memory Used# [2025-03-31 18:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 15:44:05 [end_date_ymd] => 2025-03-31 18:44:05 [RateCDR] => 1 ) [2025-03-31 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-31 15:44:05' and `end` < '2025-03-31 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-31 18:44:19] Production.INFO: count ==5569 [2025-03-31 18:44:21] Production.ERROR: pbx CDR StartTime 2025-03-31 15:44:05 - End Time 2025-03-31 18:44:05 [2025-03-31 18:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 18:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805415', 'tblTempUsageDetail_20' ) start [2025-03-31 18:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805415', 'tblTempUsageDetail_20' ) end [2025-03-31 18:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805415', 'tblTempVendorCDR_20' ) start [2025-03-31 18:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805415', 'tblTempVendorCDR_20' ) end [2025-03-31 18:44:21] Production.INFO: ProcessCDR(1,14805415,1,1,2) [2025-03-31 18:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 18:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 18:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 18:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 18:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805415', 'tblTempUsageDetail_20' ) start [2025-03-31 18:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805415', 'tblTempUsageDetail_20' ) end [2025-03-31 18:44:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 18:44:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 18:44:26] Production.INFO: ==18596== Releasing lock... [2025-03-31 18:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 18:44:26] Production.INFO: 69.5 MB #Memory Used# [2025-03-31 18:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 15:45:05 [end_date_ymd] => 2025-03-31 18:45:05 [RateCDR] => 1 ) [2025-03-31 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-31 15:45:05' and `end` < '2025-03-31 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-31 18:45:18] Production.INFO: count ==5561 [2025-03-31 18:45:21] Production.ERROR: pbx CDR StartTime 2025-03-31 15:45:05 - End Time 2025-03-31 18:45:05 [2025-03-31 18:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 18:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805420', 'tblTempUsageDetail_20' ) start [2025-03-31 18:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805420', 'tblTempUsageDetail_20' ) end [2025-03-31 18:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805420', 'tblTempVendorCDR_20' ) start [2025-03-31 18:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805420', 'tblTempVendorCDR_20' ) end [2025-03-31 18:45:21] Production.INFO: ProcessCDR(1,14805420,1,1,2) [2025-03-31 18:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 18:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 18:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 18:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 18:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805420', 'tblTempUsageDetail_20' ) start [2025-03-31 18:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805420', 'tblTempUsageDetail_20' ) end [2025-03-31 18:45:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 18:45:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 18:45:27] Production.INFO: ==18670== Releasing lock... [2025-03-31 18:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 18:45:27] Production.INFO: 69.5 MB #Memory Used# [2025-03-31 18:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 15:46:05 [end_date_ymd] => 2025-03-31 18:46:05 [RateCDR] => 1 ) [2025-03-31 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-31 15:46:05' and `end` < '2025-03-31 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-31 18:46:19] Production.INFO: count ==5534 [2025-03-31 18:46:21] Production.ERROR: pbx CDR StartTime 2025-03-31 15:46:05 - End Time 2025-03-31 18:46:05 [2025-03-31 18:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 18:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805425', 'tblTempUsageDetail_20' ) start [2025-03-31 18:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805425', 'tblTempUsageDetail_20' ) end [2025-03-31 18:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805425', 'tblTempVendorCDR_20' ) start [2025-03-31 18:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805425', 'tblTempVendorCDR_20' ) end [2025-03-31 18:46:22] Production.INFO: ProcessCDR(1,14805425,1,1,2) [2025-03-31 18:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 18:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 18:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 18:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 18:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805425', 'tblTempUsageDetail_20' ) start [2025-03-31 18:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805425', 'tblTempUsageDetail_20' ) end [2025-03-31 18:46:25] Production.ERROR: pbx prc_insertCDR start [2025-03-31 18:46:25] Production.ERROR: pbx prc_insertCDR end [2025-03-31 18:46:25] Production.INFO: ==18744== Releasing lock... [2025-03-31 18:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 18:46:25] Production.INFO: 69.25 MB #Memory Used# [2025-03-31 18:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 15:47:06 [end_date_ymd] => 2025-03-31 18:47:06 [RateCDR] => 1 ) [2025-03-31 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-31 15:47:06' and `end` < '2025-03-31 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-31 18:47:19] Production.INFO: count ==5539 [2025-03-31 18:47:22] Production.ERROR: pbx CDR StartTime 2025-03-31 15:47:06 - End Time 2025-03-31 18:47:06 [2025-03-31 18:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 18:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805430', 'tblTempUsageDetail_20' ) start [2025-03-31 18:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805430', 'tblTempUsageDetail_20' ) end [2025-03-31 18:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805430', 'tblTempVendorCDR_20' ) start [2025-03-31 18:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805430', 'tblTempVendorCDR_20' ) end [2025-03-31 18:47:22] Production.INFO: ProcessCDR(1,14805430,1,1,2) [2025-03-31 18:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 18:47:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 18:47:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 18:47:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 18:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805430', 'tblTempUsageDetail_20' ) start [2025-03-31 18:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805430', 'tblTempUsageDetail_20' ) end [2025-03-31 18:47:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 18:47:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 18:47:27] Production.INFO: ==18817== Releasing lock... [2025-03-31 18:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 18:47:27] Production.INFO: 69.5 MB #Memory Used# [2025-03-31 18:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 15:48:05 [end_date_ymd] => 2025-03-31 18:48:05 [RateCDR] => 1 ) [2025-03-31 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-31 15:48:05' and `end` < '2025-03-31 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-31 18:48:19] Production.INFO: count ==5532 [2025-03-31 18:48:21] Production.ERROR: pbx CDR StartTime 2025-03-31 15:48:05 - End Time 2025-03-31 18:48:05 [2025-03-31 18:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 18:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805435', 'tblTempUsageDetail_20' ) start [2025-03-31 18:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805435', 'tblTempUsageDetail_20' ) end [2025-03-31 18:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805435', 'tblTempVendorCDR_20' ) start [2025-03-31 18:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805435', 'tblTempVendorCDR_20' ) end [2025-03-31 18:48:21] Production.INFO: ProcessCDR(1,14805435,1,1,2) [2025-03-31 18:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 18:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 18:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 18:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 18:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805435', 'tblTempUsageDetail_20' ) start [2025-03-31 18:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805435', 'tblTempUsageDetail_20' ) end [2025-03-31 18:48:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 18:48:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 18:48:26] Production.INFO: ==18889== Releasing lock... [2025-03-31 18:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 18:48:26] Production.INFO: 69.25 MB #Memory Used# [2025-03-31 18:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 15:49:06 [end_date_ymd] => 2025-03-31 18:49:06 [RateCDR] => 1 ) [2025-03-31 18: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-31 15:49:06' and `end` < '2025-03-31 18: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-31 18:49:19] Production.INFO: count ==5503 [2025-03-31 18:49:22] Production.ERROR: pbx CDR StartTime 2025-03-31 15:49:06 - End Time 2025-03-31 18:49:06 [2025-03-31 18:49:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 18:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805440', 'tblTempUsageDetail_20' ) start [2025-03-31 18:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805440', 'tblTempUsageDetail_20' ) end [2025-03-31 18:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805440', 'tblTempVendorCDR_20' ) start [2025-03-31 18:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805440', 'tblTempVendorCDR_20' ) end [2025-03-31 18:49:22] Production.INFO: ProcessCDR(1,14805440,1,1,2) [2025-03-31 18:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 18:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 18:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 18:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 18:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805440', 'tblTempUsageDetail_20' ) start [2025-03-31 18:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805440', 'tblTempUsageDetail_20' ) end [2025-03-31 18:49:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 18:49:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 18:49:26] Production.INFO: ==18967== Releasing lock... [2025-03-31 18:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 18:49:26] Production.INFO: 69 MB #Memory Used# [2025-03-31 18:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 15:50:06 [end_date_ymd] => 2025-03-31 18:50:06 [RateCDR] => 1 ) [2025-03-31 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-31 15:50:06' and `end` < '2025-03-31 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-31 18:50:20] Production.INFO: count ==5489 [2025-03-31 18:50:22] Production.ERROR: pbx CDR StartTime 2025-03-31 15:50:06 - End Time 2025-03-31 18:50:06 [2025-03-31 18:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 18:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805446', 'tblTempUsageDetail_20' ) start [2025-03-31 18:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805446', 'tblTempUsageDetail_20' ) end [2025-03-31 18:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805446', 'tblTempVendorCDR_20' ) start [2025-03-31 18:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805446', 'tblTempVendorCDR_20' ) end [2025-03-31 18:50:22] Production.INFO: ProcessCDR(1,14805446,1,1,2) [2025-03-31 18:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 18:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 18:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 18:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 18:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805446', 'tblTempUsageDetail_20' ) start [2025-03-31 18:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805446', 'tblTempUsageDetail_20' ) end [2025-03-31 18:50:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 18:50:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 18:50:26] Production.INFO: ==19041== Releasing lock... [2025-03-31 18:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 18:50:26] Production.INFO: 69 MB #Memory Used# [2025-03-31 18:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 15:51:06 [end_date_ymd] => 2025-03-31 18:51:06 [RateCDR] => 1 ) [2025-03-31 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-31 15:51:06' and `end` < '2025-03-31 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-31 18:51:19] Production.INFO: count ==5381 [2025-03-31 18:51:21] Production.ERROR: pbx CDR StartTime 2025-03-31 15:51:06 - End Time 2025-03-31 18:51:06 [2025-03-31 18:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 18:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805451', 'tblTempUsageDetail_20' ) start [2025-03-31 18:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805451', 'tblTempUsageDetail_20' ) end [2025-03-31 18:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805451', 'tblTempVendorCDR_20' ) start [2025-03-31 18:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805451', 'tblTempVendorCDR_20' ) end [2025-03-31 18:51:22] Production.INFO: ProcessCDR(1,14805451,1,1,2) [2025-03-31 18:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 18:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 18:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 18:51:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 18:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805451', 'tblTempUsageDetail_20' ) start [2025-03-31 18:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805451', 'tblTempUsageDetail_20' ) end [2025-03-31 18:51:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 18:51:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 18:51:27] Production.INFO: ==19129== Releasing lock... [2025-03-31 18:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 18:51:27] Production.INFO: 68.25 MB #Memory Used# [2025-03-31 18:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 15:52:05 [end_date_ymd] => 2025-03-31 18:52:05 [RateCDR] => 1 ) [2025-03-31 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-31 15:52:05' and `end` < '2025-03-31 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-31 18:52:18] Production.INFO: count ==5357 [2025-03-31 18:52:20] Production.ERROR: pbx CDR StartTime 2025-03-31 15:52:05 - End Time 2025-03-31 18:52:05 [2025-03-31 18:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805456', 'tblTempUsageDetail_20' ) start [2025-03-31 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805456', 'tblTempUsageDetail_20' ) end [2025-03-31 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805456', 'tblTempVendorCDR_20' ) start [2025-03-31 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805456', 'tblTempVendorCDR_20' ) end [2025-03-31 18:52:20] Production.INFO: ProcessCDR(1,14805456,1,1,2) [2025-03-31 18:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 18:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 18:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 18:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 18:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805456', 'tblTempUsageDetail_20' ) start [2025-03-31 18:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805456', 'tblTempUsageDetail_20' ) end [2025-03-31 18:52:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 18:52:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 18:52:26] Production.INFO: ==19200== Releasing lock... [2025-03-31 18:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 18:52:26] Production.INFO: 68 MB #Memory Used# [2025-03-31 18:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 15:53:05 [end_date_ymd] => 2025-03-31 18:53:05 [RateCDR] => 1 ) [2025-03-31 18:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 15:53:05' and `end` < '2025-03-31 18:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 18:53:18] Production.INFO: count ==5347 [2025-03-31 18:53:21] Production.ERROR: pbx CDR StartTime 2025-03-31 15:53:05 - End Time 2025-03-31 18:53:05 [2025-03-31 18:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 18:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805461', 'tblTempUsageDetail_20' ) start [2025-03-31 18:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805461', 'tblTempUsageDetail_20' ) end [2025-03-31 18:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805461', 'tblTempVendorCDR_20' ) start [2025-03-31 18:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805461', 'tblTempVendorCDR_20' ) end [2025-03-31 18:53:21] Production.INFO: ProcessCDR(1,14805461,1,1,2) [2025-03-31 18:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 18:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 18:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 18:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 18:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805461', 'tblTempUsageDetail_20' ) start [2025-03-31 18:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805461', 'tblTempUsageDetail_20' ) end [2025-03-31 18:53:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 18:53:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 18:53:26] Production.INFO: ==19274== Releasing lock... [2025-03-31 18:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 18:53:26] Production.INFO: 68 MB #Memory Used# [2025-03-31 18:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 15:54:05 [end_date_ymd] => 2025-03-31 18:54:05 [RateCDR] => 1 ) [2025-03-31 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-31 15:54:05' and `end` < '2025-03-31 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-31 18:54:19] Production.INFO: count ==5345 [2025-03-31 18:54:21] Production.ERROR: pbx CDR StartTime 2025-03-31 15:54:05 - End Time 2025-03-31 18:54:05 [2025-03-31 18:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 18:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805466', 'tblTempUsageDetail_20' ) start [2025-03-31 18:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805466', 'tblTempUsageDetail_20' ) end [2025-03-31 18:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805466', 'tblTempVendorCDR_20' ) start [2025-03-31 18:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805466', 'tblTempVendorCDR_20' ) end [2025-03-31 18:54:21] Production.INFO: ProcessCDR(1,14805466,1,1,2) [2025-03-31 18:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 18:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 18:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 18:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 18:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805466', 'tblTempUsageDetail_20' ) start [2025-03-31 18:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805466', 'tblTempUsageDetail_20' ) end [2025-03-31 18:54:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 18:54:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 18:54:27] Production.INFO: ==19386== Releasing lock... [2025-03-31 18:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 18:54:27] Production.INFO: 68 MB #Memory Used# [2025-03-31 18:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 15:55:05 [end_date_ymd] => 2025-03-31 18:55:05 [RateCDR] => 1 ) [2025-03-31 18:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 15:55:05' and `end` < '2025-03-31 18:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 18:55:19] Production.INFO: count ==5342 [2025-03-31 18:55:21] Production.ERROR: pbx CDR StartTime 2025-03-31 15:55:05 - End Time 2025-03-31 18:55:05 [2025-03-31 18:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 18:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805471', 'tblTempUsageDetail_20' ) start [2025-03-31 18:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805471', 'tblTempUsageDetail_20' ) end [2025-03-31 18:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805471', 'tblTempVendorCDR_20' ) start [2025-03-31 18:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805471', 'tblTempVendorCDR_20' ) end [2025-03-31 18:55:21] Production.INFO: ProcessCDR(1,14805471,1,1,2) [2025-03-31 18:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 18:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 18:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 18:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 18:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805471', 'tblTempUsageDetail_20' ) start [2025-03-31 18:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805471', 'tblTempUsageDetail_20' ) end [2025-03-31 18:55:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 18:55:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 18:55:26] Production.INFO: ==19462== Releasing lock... [2025-03-31 18:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 18:55:26] Production.INFO: 68 MB #Memory Used# [2025-03-31 18:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 15:56:05 [end_date_ymd] => 2025-03-31 18:56:05 [RateCDR] => 1 ) [2025-03-31 18:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 15:56:05' and `end` < '2025-03-31 18:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 18:56:18] Production.INFO: count ==5334 [2025-03-31 18:56:21] Production.ERROR: pbx CDR StartTime 2025-03-31 15:56:05 - End Time 2025-03-31 18:56:05 [2025-03-31 18:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 18:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805476', 'tblTempUsageDetail_20' ) start [2025-03-31 18:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805476', 'tblTempUsageDetail_20' ) end [2025-03-31 18:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805476', 'tblTempVendorCDR_20' ) start [2025-03-31 18:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805476', 'tblTempVendorCDR_20' ) end [2025-03-31 18:56:21] Production.INFO: ProcessCDR(1,14805476,1,1,2) [2025-03-31 18:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 18:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 18:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 18:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 18:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805476', 'tblTempUsageDetail_20' ) start [2025-03-31 18:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805476', 'tblTempUsageDetail_20' ) end [2025-03-31 18:56:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 18:56:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 18:56:26] Production.INFO: ==19541== Releasing lock... [2025-03-31 18:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 18:56:26] Production.INFO: 67.75 MB #Memory Used# [2025-03-31 18:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 15:57:05 [end_date_ymd] => 2025-03-31 18:57:05 [RateCDR] => 1 ) [2025-03-31 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-31 15:57:05' and `end` < '2025-03-31 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-31 18:57:19] Production.INFO: count ==5340 [2025-03-31 18:57:21] Production.ERROR: pbx CDR StartTime 2025-03-31 15:57:05 - End Time 2025-03-31 18:57:05 [2025-03-31 18:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 18:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805481', 'tblTempUsageDetail_20' ) start [2025-03-31 18:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805481', 'tblTempUsageDetail_20' ) end [2025-03-31 18:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805481', 'tblTempVendorCDR_20' ) start [2025-03-31 18:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805481', 'tblTempVendorCDR_20' ) end [2025-03-31 18:57:21] Production.INFO: ProcessCDR(1,14805481,1,1,2) [2025-03-31 18:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 18:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 18:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 18:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 18:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805481', 'tblTempUsageDetail_20' ) start [2025-03-31 18:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805481', 'tblTempUsageDetail_20' ) end [2025-03-31 18:57:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 18:57:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 18:57:26] Production.INFO: ==19613== Releasing lock... [2025-03-31 18:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 18:57:26] Production.INFO: 68 MB #Memory Used# [2025-03-31 18:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 15:58:05 [end_date_ymd] => 2025-03-31 18:58:05 [RateCDR] => 1 ) [2025-03-31 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-31 15:58:05' and `end` < '2025-03-31 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-31 18:58:18] Production.INFO: count ==5315 [2025-03-31 18:58:20] Production.ERROR: pbx CDR StartTime 2025-03-31 15:58:05 - End Time 2025-03-31 18:58:05 [2025-03-31 18:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 18:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805486', 'tblTempUsageDetail_20' ) start [2025-03-31 18:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805486', 'tblTempUsageDetail_20' ) end [2025-03-31 18:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805486', 'tblTempVendorCDR_20' ) start [2025-03-31 18:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805486', 'tblTempVendorCDR_20' ) end [2025-03-31 18:58:21] Production.INFO: ProcessCDR(1,14805486,1,1,2) [2025-03-31 18:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 18:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 18:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 18:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 18:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805486', 'tblTempUsageDetail_20' ) start [2025-03-31 18:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805486', 'tblTempUsageDetail_20' ) end [2025-03-31 18:58:25] Production.ERROR: pbx prc_insertCDR start [2025-03-31 18:58:25] Production.ERROR: pbx prc_insertCDR end [2025-03-31 18:58:25] Production.INFO: ==19687== Releasing lock... [2025-03-31 18:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 18:58:25] Production.INFO: 67.75 MB #Memory Used# [2025-03-31 18:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 15:59:05 [end_date_ymd] => 2025-03-31 18:59:05 [RateCDR] => 1 ) [2025-03-31 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-31 15:59:05' and `end` < '2025-03-31 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-31 18:59:18] Production.INFO: count ==5319 [2025-03-31 18:59:21] Production.ERROR: pbx CDR StartTime 2025-03-31 15:59:05 - End Time 2025-03-31 18:59:05 [2025-03-31 18:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 18:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805491', 'tblTempUsageDetail_20' ) start [2025-03-31 18:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805491', 'tblTempUsageDetail_20' ) end [2025-03-31 18:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805491', 'tblTempVendorCDR_20' ) start [2025-03-31 18:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805491', 'tblTempVendorCDR_20' ) end [2025-03-31 18:59:21] Production.INFO: ProcessCDR(1,14805491,1,1,2) [2025-03-31 18:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 18:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 18:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 18:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 18:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805491', 'tblTempUsageDetail_20' ) start [2025-03-31 18:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805491', 'tblTempUsageDetail_20' ) end [2025-03-31 18:59:25] Production.ERROR: pbx prc_insertCDR start [2025-03-31 18:59:25] Production.ERROR: pbx prc_insertCDR end [2025-03-31 18:59:25] Production.INFO: ==19762== Releasing lock... [2025-03-31 18:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 18:59:25] Production.INFO: 67.75 MB #Memory Used# [2025-03-31 19:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 16:00:07 [end_date_ymd] => 2025-03-31 19:00:07 [RateCDR] => 1 ) [2025-03-31 19:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 16:00:07' and `end` < '2025-03-31 19:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 19:00:20] Production.INFO: count ==5293 [2025-03-31 19:00:23] Production.ERROR: pbx CDR StartTime 2025-03-31 16:00:07 - End Time 2025-03-31 19:00:07 [2025-03-31 19:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 19:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805497', 'tblTempUsageDetail_20' ) start [2025-03-31 19:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805497', 'tblTempUsageDetail_20' ) end [2025-03-31 19:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805497', 'tblTempVendorCDR_20' ) start [2025-03-31 19:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805497', 'tblTempVendorCDR_20' ) end [2025-03-31 19:00:23] Production.INFO: ProcessCDR(1,14805497,1,1,2) [2025-03-31 19:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805497', 'tblTempUsageDetail_20' ) start [2025-03-31 19:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805497', 'tblTempUsageDetail_20' ) end [2025-03-31 19:00:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 19:00:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 19:00:27] Production.INFO: ==19837== Releasing lock... [2025-03-31 19:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 19:00:27] Production.INFO: 67.5 MB #Memory Used# [2025-03-31 19:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 16:01:05 [end_date_ymd] => 2025-03-31 19:01:05 [RateCDR] => 1 ) [2025-03-31 19:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 16:01:05' and `end` < '2025-03-31 19:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 19:01:18] Production.INFO: count ==5201 [2025-03-31 19:01:20] Production.ERROR: pbx CDR StartTime 2025-03-31 16:01:05 - End Time 2025-03-31 19:01:05 [2025-03-31 19:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805502', 'tblTempUsageDetail_20' ) start [2025-03-31 19:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805502', 'tblTempUsageDetail_20' ) end [2025-03-31 19:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805502', 'tblTempVendorCDR_20' ) start [2025-03-31 19:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805502', 'tblTempVendorCDR_20' ) end [2025-03-31 19:01:21] Production.INFO: ProcessCDR(1,14805502,1,1,2) [2025-03-31 19:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805502', 'tblTempUsageDetail_20' ) start [2025-03-31 19:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805502', 'tblTempUsageDetail_20' ) end [2025-03-31 19:01:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 19:01:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 19:01:26] Production.INFO: ==19961== Releasing lock... [2025-03-31 19:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 19:01:26] Production.INFO: 66.75 MB #Memory Used# [2025-03-31 19:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 16:02:05 [end_date_ymd] => 2025-03-31 19:02:05 [RateCDR] => 1 ) [2025-03-31 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-31 16:02:05' and `end` < '2025-03-31 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-31 19:02:18] Production.INFO: count ==5205 [2025-03-31 19:02:21] Production.ERROR: pbx CDR StartTime 2025-03-31 16:02:05 - End Time 2025-03-31 19:02:05 [2025-03-31 19:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 19:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805507', 'tblTempUsageDetail_20' ) start [2025-03-31 19:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805507', 'tblTempUsageDetail_20' ) end [2025-03-31 19:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805507', 'tblTempVendorCDR_20' ) start [2025-03-31 19:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805507', 'tblTempVendorCDR_20' ) end [2025-03-31 19:02:21] Production.INFO: ProcessCDR(1,14805507,1,1,2) [2025-03-31 19:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805507', 'tblTempUsageDetail_20' ) start [2025-03-31 19:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805507', 'tblTempUsageDetail_20' ) end [2025-03-31 19:02:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 19:02:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 19:02:27] Production.INFO: ==20073== Releasing lock... [2025-03-31 19:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 19:02:27] Production.INFO: 67 MB #Memory Used# [2025-03-31 19:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 16:03:06 [end_date_ymd] => 2025-03-31 19:03:06 [RateCDR] => 1 ) [2025-03-31 19:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 16:03:06' and `end` < '2025-03-31 19:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 19:03:20] Production.INFO: count ==5197 [2025-03-31 19:03:22] Production.ERROR: pbx CDR StartTime 2025-03-31 16:03:06 - End Time 2025-03-31 19:03:06 [2025-03-31 19:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 19:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805512', 'tblTempUsageDetail_20' ) start [2025-03-31 19:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805512', 'tblTempUsageDetail_20' ) end [2025-03-31 19:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805512', 'tblTempVendorCDR_20' ) start [2025-03-31 19:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805512', 'tblTempVendorCDR_20' ) end [2025-03-31 19:03:22] Production.INFO: ProcessCDR(1,14805512,1,1,2) [2025-03-31 19:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:03:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:03:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:03:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805512', 'tblTempUsageDetail_20' ) start [2025-03-31 19:03:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805512', 'tblTempUsageDetail_20' ) end [2025-03-31 19:03:29] Production.ERROR: pbx prc_insertCDR start [2025-03-31 19:03:29] Production.ERROR: pbx prc_insertCDR end [2025-03-31 19:03:29] Production.INFO: ==20143== Releasing lock... [2025-03-31 19:03:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 19:03:29] Production.INFO: 66.75 MB #Memory Used# [2025-03-31 19:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 16:04:06 [end_date_ymd] => 2025-03-31 19:04:06 [RateCDR] => 1 ) [2025-03-31 19:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 16:04:06' and `end` < '2025-03-31 19:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 19:04:19] Production.INFO: count ==5183 [2025-03-31 19:04:22] Production.ERROR: pbx CDR StartTime 2025-03-31 16:04:06 - End Time 2025-03-31 19:04:06 [2025-03-31 19:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 19:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805517', 'tblTempUsageDetail_20' ) start [2025-03-31 19:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805517', 'tblTempUsageDetail_20' ) end [2025-03-31 19:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805517', 'tblTempVendorCDR_20' ) start [2025-03-31 19:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805517', 'tblTempVendorCDR_20' ) end [2025-03-31 19:04:22] Production.INFO: ProcessCDR(1,14805517,1,1,2) [2025-03-31 19:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805517', 'tblTempUsageDetail_20' ) start [2025-03-31 19:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805517', 'tblTempUsageDetail_20' ) end [2025-03-31 19:04:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 19:04:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 19:04:26] Production.INFO: ==20226== Releasing lock... [2025-03-31 19:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 19:04:26] Production.INFO: 66.75 MB #Memory Used# [2025-03-31 19:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 16:05:06 [end_date_ymd] => 2025-03-31 19:05:06 [RateCDR] => 1 ) [2025-03-31 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-31 16:05:06' and `end` < '2025-03-31 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-31 19:05:19] Production.INFO: count ==5172 [2025-03-31 19:05:21] Production.ERROR: pbx CDR StartTime 2025-03-31 16:05:06 - End Time 2025-03-31 19:05:06 [2025-03-31 19:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 19:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805522', 'tblTempUsageDetail_20' ) start [2025-03-31 19:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805522', 'tblTempUsageDetail_20' ) end [2025-03-31 19:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805522', 'tblTempVendorCDR_20' ) start [2025-03-31 19:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805522', 'tblTempVendorCDR_20' ) end [2025-03-31 19:05:22] Production.INFO: ProcessCDR(1,14805522,1,1,2) [2025-03-31 19:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805522', 'tblTempUsageDetail_20' ) start [2025-03-31 19:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805522', 'tblTempUsageDetail_20' ) end [2025-03-31 19:05:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 19:05:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 19:05:27] Production.INFO: ==20382== Releasing lock... [2025-03-31 19:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 19:05:27] Production.INFO: 66.75 MB #Memory Used# [2025-03-31 19:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 16:06:06 [end_date_ymd] => 2025-03-31 19:06:06 [RateCDR] => 1 ) [2025-03-31 19:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 16:06:06' and `end` < '2025-03-31 19:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 19:06:20] Production.INFO: count ==5162 [2025-03-31 19:06:22] Production.ERROR: pbx CDR StartTime 2025-03-31 16:06:06 - End Time 2025-03-31 19:06:06 [2025-03-31 19:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 19:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805527', 'tblTempUsageDetail_20' ) start [2025-03-31 19:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805527', 'tblTempUsageDetail_20' ) end [2025-03-31 19:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805527', 'tblTempVendorCDR_20' ) start [2025-03-31 19:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805527', 'tblTempVendorCDR_20' ) end [2025-03-31 19:06:22] Production.INFO: ProcessCDR(1,14805527,1,1,2) [2025-03-31 19:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805527', 'tblTempUsageDetail_20' ) start [2025-03-31 19:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805527', 'tblTempUsageDetail_20' ) end [2025-03-31 19:06:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 19:06:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 19:06:26] Production.INFO: ==20452== Releasing lock... [2025-03-31 19:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 19:06:26] Production.INFO: 66.5 MB #Memory Used# [2025-03-31 19:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 16:07:06 [end_date_ymd] => 2025-03-31 19:07:06 [RateCDR] => 1 ) [2025-03-31 19:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 16:07:06' and `end` < '2025-03-31 19:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 19:07:19] Production.INFO: count ==5155 [2025-03-31 19:07:21] Production.ERROR: pbx CDR StartTime 2025-03-31 16:07:06 - End Time 2025-03-31 19:07:06 [2025-03-31 19:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 19:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805532', 'tblTempUsageDetail_20' ) start [2025-03-31 19:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805532', 'tblTempUsageDetail_20' ) end [2025-03-31 19:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805532', 'tblTempVendorCDR_20' ) start [2025-03-31 19:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805532', 'tblTempVendorCDR_20' ) end [2025-03-31 19:07:22] Production.INFO: ProcessCDR(1,14805532,1,1,2) [2025-03-31 19:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805532', 'tblTempUsageDetail_20' ) start [2025-03-31 19:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805532', 'tblTempUsageDetail_20' ) end [2025-03-31 19:07:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 19:07:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 19:07:26] Production.INFO: ==20527== Releasing lock... [2025-03-31 19:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 19:07:26] Production.INFO: 66.5 MB #Memory Used# [2025-03-31 19:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 16:08:05 [end_date_ymd] => 2025-03-31 19:08:05 [RateCDR] => 1 ) [2025-03-31 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-31 16:08:05' and `end` < '2025-03-31 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-31 19:08:18] Production.INFO: count ==5145 [2025-03-31 19:08:21] Production.ERROR: pbx CDR StartTime 2025-03-31 16:08:05 - End Time 2025-03-31 19:08:05 [2025-03-31 19:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 19:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805537', 'tblTempUsageDetail_20' ) start [2025-03-31 19:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805537', 'tblTempUsageDetail_20' ) end [2025-03-31 19:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805537', 'tblTempVendorCDR_20' ) start [2025-03-31 19:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805537', 'tblTempVendorCDR_20' ) end [2025-03-31 19:08:21] Production.INFO: ProcessCDR(1,14805537,1,1,2) [2025-03-31 19:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805537', 'tblTempUsageDetail_20' ) start [2025-03-31 19:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805537', 'tblTempUsageDetail_20' ) end [2025-03-31 19:08:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 19:08:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 19:08:27] Production.INFO: ==20676== Releasing lock... [2025-03-31 19:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 19:08:27] Production.INFO: 66.5 MB #Memory Used# [2025-03-31 19:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 16:09:06 [end_date_ymd] => 2025-03-31 19:09:06 [RateCDR] => 1 ) [2025-03-31 19: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-31 16:09:06' and `end` < '2025-03-31 19: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-31 19:09:19] Production.INFO: count ==5119 [2025-03-31 19:09:21] Production.ERROR: pbx CDR StartTime 2025-03-31 16:09:06 - End Time 2025-03-31 19:09:06 [2025-03-31 19:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 19:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805542', 'tblTempUsageDetail_20' ) start [2025-03-31 19:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805542', 'tblTempUsageDetail_20' ) end [2025-03-31 19:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805542', 'tblTempVendorCDR_20' ) start [2025-03-31 19:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805542', 'tblTempVendorCDR_20' ) end [2025-03-31 19:09:21] Production.INFO: ProcessCDR(1,14805542,1,1,2) [2025-03-31 19:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805542', 'tblTempUsageDetail_20' ) start [2025-03-31 19:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805542', 'tblTempUsageDetail_20' ) end [2025-03-31 19:09:25] Production.ERROR: pbx prc_insertCDR start [2025-03-31 19:09:25] Production.ERROR: pbx prc_insertCDR end [2025-03-31 19:09:25] Production.INFO: ==20752== Releasing lock... [2025-03-31 19:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 19:09:25] Production.INFO: 66.25 MB #Memory Used# [2025-03-31 19:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 16:10:06 [end_date_ymd] => 2025-03-31 19:10:06 [RateCDR] => 1 ) [2025-03-31 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-31 16:10:06' and `end` < '2025-03-31 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-31 19:10:19] Production.INFO: count ==5106 [2025-03-31 19:10:21] Production.ERROR: pbx CDR StartTime 2025-03-31 16:10:06 - End Time 2025-03-31 19:10:06 [2025-03-31 19:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 19:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805548', 'tblTempUsageDetail_20' ) start [2025-03-31 19:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805548', 'tblTempUsageDetail_20' ) end [2025-03-31 19:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805548', 'tblTempVendorCDR_20' ) start [2025-03-31 19:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805548', 'tblTempVendorCDR_20' ) end [2025-03-31 19:10:21] Production.INFO: ProcessCDR(1,14805548,1,1,2) [2025-03-31 19:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805548', 'tblTempUsageDetail_20' ) start [2025-03-31 19:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805548', 'tblTempUsageDetail_20' ) end [2025-03-31 19:10:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 19:10:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 19:10:26] Production.INFO: ==20870== Releasing lock... [2025-03-31 19:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 19:10:26] Production.INFO: 66.25 MB #Memory Used# [2025-03-31 19:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 16:11:05 [end_date_ymd] => 2025-03-31 19:11:05 [RateCDR] => 1 ) [2025-03-31 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-31 16:11:05' and `end` < '2025-03-31 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-31 19:11:19] Production.INFO: count ==5059 [2025-03-31 19:11:21] Production.ERROR: pbx CDR StartTime 2025-03-31 16:11:05 - End Time 2025-03-31 19:11:05 [2025-03-31 19:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 19:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805553', 'tblTempUsageDetail_20' ) start [2025-03-31 19:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805553', 'tblTempUsageDetail_20' ) end [2025-03-31 19:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805553', 'tblTempVendorCDR_20' ) start [2025-03-31 19:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805553', 'tblTempVendorCDR_20' ) end [2025-03-31 19:11:21] Production.INFO: ProcessCDR(1,14805553,1,1,2) [2025-03-31 19:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805553', 'tblTempUsageDetail_20' ) start [2025-03-31 19:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805553', 'tblTempUsageDetail_20' ) end [2025-03-31 19:11:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 19:11:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 19:11:26] Production.INFO: ==20954== Releasing lock... [2025-03-31 19:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 19:11:26] Production.INFO: 65.75 MB #Memory Used# [2025-03-31 19:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 16:12:05 [end_date_ymd] => 2025-03-31 19:12:05 [RateCDR] => 1 ) [2025-03-31 19:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 16:12:05' and `end` < '2025-03-31 19:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 19:12:18] Production.INFO: count ==5039 [2025-03-31 19:12:20] Production.ERROR: pbx CDR StartTime 2025-03-31 16:12:05 - End Time 2025-03-31 19:12:05 [2025-03-31 19:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805558', 'tblTempUsageDetail_20' ) start [2025-03-31 19:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805558', 'tblTempUsageDetail_20' ) end [2025-03-31 19:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805558', 'tblTempVendorCDR_20' ) start [2025-03-31 19:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805558', 'tblTempVendorCDR_20' ) end [2025-03-31 19:12:21] Production.INFO: ProcessCDR(1,14805558,1,1,2) [2025-03-31 19:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805558', 'tblTempUsageDetail_20' ) start [2025-03-31 19:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805558', 'tblTempUsageDetail_20' ) end [2025-03-31 19:12:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 19:12:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 19:12:26] Production.INFO: ==21102== Releasing lock... [2025-03-31 19:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 19:12:26] Production.INFO: 65.75 MB #Memory Used# [2025-03-31 19:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 16:13:06 [end_date_ymd] => 2025-03-31 19:13:06 [RateCDR] => 1 ) [2025-03-31 19: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-31 16:13:06' and `end` < '2025-03-31 19: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-31 19:13:19] Production.INFO: count ==5018 [2025-03-31 19:13:21] Production.ERROR: pbx CDR StartTime 2025-03-31 16:13:06 - End Time 2025-03-31 19:13:06 [2025-03-31 19:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 19:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805563', 'tblTempUsageDetail_20' ) start [2025-03-31 19:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805563', 'tblTempUsageDetail_20' ) end [2025-03-31 19:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805563', 'tblTempVendorCDR_20' ) start [2025-03-31 19:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805563', 'tblTempVendorCDR_20' ) end [2025-03-31 19:13:21] Production.INFO: ProcessCDR(1,14805563,1,1,2) [2025-03-31 19:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805563', 'tblTempUsageDetail_20' ) start [2025-03-31 19:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805563', 'tblTempUsageDetail_20' ) end [2025-03-31 19:13:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 19:13:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 19:13:26] Production.INFO: ==21174== Releasing lock... [2025-03-31 19:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 19:13:26] Production.INFO: 65.5 MB #Memory Used# [2025-03-31 19:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 16:14:05 [end_date_ymd] => 2025-03-31 19:14:05 [RateCDR] => 1 ) [2025-03-31 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-31 16:14:05' and `end` < '2025-03-31 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-31 19:14:18] Production.INFO: count ==5011 [2025-03-31 19:14:20] Production.ERROR: pbx CDR StartTime 2025-03-31 16:14:05 - End Time 2025-03-31 19:14:05 [2025-03-31 19:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 19:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805568', 'tblTempUsageDetail_20' ) start [2025-03-31 19:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805568', 'tblTempUsageDetail_20' ) end [2025-03-31 19:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805568', 'tblTempVendorCDR_20' ) start [2025-03-31 19:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805568', 'tblTempVendorCDR_20' ) end [2025-03-31 19:14:20] Production.INFO: ProcessCDR(1,14805568,1,1,2) [2025-03-31 19:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805568', 'tblTempUsageDetail_20' ) start [2025-03-31 19:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805568', 'tblTempUsageDetail_20' ) end [2025-03-31 19:14:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 19:14:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 19:14:26] Production.INFO: ==21249== Releasing lock... [2025-03-31 19:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 19:14:26] Production.INFO: 65.5 MB #Memory Used# [2025-03-31 19:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 16:15:05 [end_date_ymd] => 2025-03-31 19:15:05 [RateCDR] => 1 ) [2025-03-31 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-31 16:15:05' and `end` < '2025-03-31 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-31 19:15:18] Production.INFO: count ==4982 [2025-03-31 19:15:20] Production.ERROR: pbx CDR StartTime 2025-03-31 16:15:05 - End Time 2025-03-31 19:15:05 [2025-03-31 19:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 19:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805573', 'tblTempUsageDetail_20' ) start [2025-03-31 19:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805573', 'tblTempUsageDetail_20' ) end [2025-03-31 19:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805573', 'tblTempVendorCDR_20' ) start [2025-03-31 19:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805573', 'tblTempVendorCDR_20' ) end [2025-03-31 19:15:20] Production.INFO: ProcessCDR(1,14805573,1,1,2) [2025-03-31 19:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805573', 'tblTempUsageDetail_20' ) start [2025-03-31 19:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805573', 'tblTempUsageDetail_20' ) end [2025-03-31 19:15:25] Production.ERROR: pbx prc_insertCDR start [2025-03-31 19:15:25] Production.ERROR: pbx prc_insertCDR end [2025-03-31 19:15:25] Production.INFO: ==21401== Releasing lock... [2025-03-31 19:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 19:15:25] Production.INFO: 65.25 MB #Memory Used# [2025-03-31 19:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 16:16:05 [end_date_ymd] => 2025-03-31 19:16:05 [RateCDR] => 1 ) [2025-03-31 19: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-31 16:16:05' and `end` < '2025-03-31 19: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-31 19:16:18] Production.INFO: count ==4980 [2025-03-31 19:16:20] Production.ERROR: pbx CDR StartTime 2025-03-31 16:16:05 - End Time 2025-03-31 19:16:05 [2025-03-31 19:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805578', 'tblTempUsageDetail_20' ) start [2025-03-31 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805578', 'tblTempUsageDetail_20' ) end [2025-03-31 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805578', 'tblTempVendorCDR_20' ) start [2025-03-31 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805578', 'tblTempVendorCDR_20' ) end [2025-03-31 19:16:20] Production.INFO: ProcessCDR(1,14805578,1,1,2) [2025-03-31 19:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805578', 'tblTempUsageDetail_20' ) start [2025-03-31 19:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805578', 'tblTempUsageDetail_20' ) end [2025-03-31 19:16:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 19:16:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 19:16:26] Production.INFO: ==21473== Releasing lock... [2025-03-31 19:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 19:16:26] Production.INFO: 65.25 MB #Memory Used# [2025-03-31 19:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 16:17:06 [end_date_ymd] => 2025-03-31 19:17:06 [RateCDR] => 1 ) [2025-03-31 19:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 16:17:06' and `end` < '2025-03-31 19:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 19:17:19] Production.INFO: count ==4965 [2025-03-31 19:17:21] Production.ERROR: pbx CDR StartTime 2025-03-31 16:17:06 - End Time 2025-03-31 19:17:06 [2025-03-31 19:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 19:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805583', 'tblTempUsageDetail_20' ) start [2025-03-31 19:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805583', 'tblTempUsageDetail_20' ) end [2025-03-31 19:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805583', 'tblTempVendorCDR_20' ) start [2025-03-31 19:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805583', 'tblTempVendorCDR_20' ) end [2025-03-31 19:17:21] Production.INFO: ProcessCDR(1,14805583,1,1,2) [2025-03-31 19:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805583', 'tblTempUsageDetail_20' ) start [2025-03-31 19:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805583', 'tblTempUsageDetail_20' ) end [2025-03-31 19:17:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 19:17:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 19:17:26] Production.INFO: ==21547== Releasing lock... [2025-03-31 19:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 19:17:26] Production.INFO: 65 MB #Memory Used# [2025-03-31 19:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 16:18:06 [end_date_ymd] => 2025-03-31 19:18:06 [RateCDR] => 1 ) [2025-03-31 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-31 16:18:06' and `end` < '2025-03-31 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-31 19:18:19] Production.INFO: count ==4956 [2025-03-31 19:18:21] Production.ERROR: pbx CDR StartTime 2025-03-31 16:18:06 - End Time 2025-03-31 19:18:06 [2025-03-31 19:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 19:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805588', 'tblTempUsageDetail_20' ) start [2025-03-31 19:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805588', 'tblTempUsageDetail_20' ) end [2025-03-31 19:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805588', 'tblTempVendorCDR_20' ) start [2025-03-31 19:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805588', 'tblTempVendorCDR_20' ) end [2025-03-31 19:18:21] Production.INFO: ProcessCDR(1,14805588,1,1,2) [2025-03-31 19:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805588', 'tblTempUsageDetail_20' ) start [2025-03-31 19:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805588', 'tblTempUsageDetail_20' ) end [2025-03-31 19:18:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 19:18:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 19:18:26] Production.INFO: ==21621== Releasing lock... [2025-03-31 19:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 19:18:26] Production.INFO: 65 MB #Memory Used# [2025-03-31 19:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 16:19:06 [end_date_ymd] => 2025-03-31 19:19:06 [RateCDR] => 1 ) [2025-03-31 19: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-31 16:19:06' and `end` < '2025-03-31 19: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-31 19:19:19] Production.INFO: count ==4956 [2025-03-31 19:19:21] Production.ERROR: pbx CDR StartTime 2025-03-31 16:19:06 - End Time 2025-03-31 19:19:06 [2025-03-31 19:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 19:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805593', 'tblTempUsageDetail_20' ) start [2025-03-31 19:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805593', 'tblTempUsageDetail_20' ) end [2025-03-31 19:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805593', 'tblTempVendorCDR_20' ) start [2025-03-31 19:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805593', 'tblTempVendorCDR_20' ) end [2025-03-31 19:19:21] Production.INFO: ProcessCDR(1,14805593,1,1,2) [2025-03-31 19:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805593', 'tblTempUsageDetail_20' ) start [2025-03-31 19:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805593', 'tblTempUsageDetail_20' ) end [2025-03-31 19:19:25] Production.ERROR: pbx prc_insertCDR start [2025-03-31 19:19:25] Production.ERROR: pbx prc_insertCDR end [2025-03-31 19:19:25] Production.INFO: ==21694== Releasing lock... [2025-03-31 19:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 19:19:25] Production.INFO: 65 MB #Memory Used# [2025-03-31 19:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 16:20:06 [end_date_ymd] => 2025-03-31 19:20:06 [RateCDR] => 1 ) [2025-03-31 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-31 16:20:06' and `end` < '2025-03-31 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-31 19:20:19] Production.INFO: count ==4952 [2025-03-31 19:20:22] Production.ERROR: pbx CDR StartTime 2025-03-31 16:20:06 - End Time 2025-03-31 19:20:06 [2025-03-31 19:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 19:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805598', 'tblTempUsageDetail_20' ) start [2025-03-31 19:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805598', 'tblTempUsageDetail_20' ) end [2025-03-31 19:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805598', 'tblTempVendorCDR_20' ) start [2025-03-31 19:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805598', 'tblTempVendorCDR_20' ) end [2025-03-31 19:20:22] Production.INFO: ProcessCDR(1,14805598,1,1,2) [2025-03-31 19:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805598', 'tblTempUsageDetail_20' ) start [2025-03-31 19:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805598', 'tblTempUsageDetail_20' ) end [2025-03-31 19:20:25] Production.ERROR: pbx prc_insertCDR start [2025-03-31 19:20:25] Production.ERROR: pbx prc_insertCDR end [2025-03-31 19:20:25] Production.INFO: ==21769== Releasing lock... [2025-03-31 19:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 19:20:25] Production.INFO: 65 MB #Memory Used# [2025-03-31 19:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 16:21:05 [end_date_ymd] => 2025-03-31 19:21:05 [RateCDR] => 1 ) [2025-03-31 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-31 16:21:05' and `end` < '2025-03-31 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-31 19:21:18] Production.INFO: count ==4896 [2025-03-31 19:21:20] Production.ERROR: pbx CDR StartTime 2025-03-31 16:21:05 - End Time 2025-03-31 19:21:05 [2025-03-31 19:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805604', 'tblTempUsageDetail_20' ) start [2025-03-31 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805604', 'tblTempUsageDetail_20' ) end [2025-03-31 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805604', 'tblTempVendorCDR_20' ) start [2025-03-31 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805604', 'tblTempVendorCDR_20' ) end [2025-03-31 19:21:20] Production.INFO: ProcessCDR(1,14805604,1,1,2) [2025-03-31 19:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805604', 'tblTempUsageDetail_20' ) start [2025-03-31 19:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805604', 'tblTempUsageDetail_20' ) end [2025-03-31 19:21:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 19:21:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 19:21:24] Production.INFO: ==21842== Releasing lock... [2025-03-31 19:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 19:21:24] Production.INFO: 64.5 MB #Memory Used# [2025-03-31 19:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 16:22:06 [end_date_ymd] => 2025-03-31 19:22:06 [RateCDR] => 1 ) [2025-03-31 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-31 16:22:06' and `end` < '2025-03-31 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-31 19:22:19] Production.INFO: count ==4886 [2025-03-31 19:22:21] Production.ERROR: pbx CDR StartTime 2025-03-31 16:22:06 - End Time 2025-03-31 19:22:06 [2025-03-31 19:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 19:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805609', 'tblTempUsageDetail_20' ) start [2025-03-31 19:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805609', 'tblTempUsageDetail_20' ) end [2025-03-31 19:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805609', 'tblTempVendorCDR_20' ) start [2025-03-31 19:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805609', 'tblTempVendorCDR_20' ) end [2025-03-31 19:22:21] Production.INFO: ProcessCDR(1,14805609,1,1,2) [2025-03-31 19:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805609', 'tblTempUsageDetail_20' ) start [2025-03-31 19:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805609', 'tblTempUsageDetail_20' ) end [2025-03-31 19:22:25] Production.ERROR: pbx prc_insertCDR start [2025-03-31 19:22:25] Production.ERROR: pbx prc_insertCDR end [2025-03-31 19:22:25] Production.INFO: ==21914== Releasing lock... [2025-03-31 19:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 19:22:25] Production.INFO: 64.5 MB #Memory Used# [2025-03-31 19:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 16:23:05 [end_date_ymd] => 2025-03-31 19:23:05 [RateCDR] => 1 ) [2025-03-31 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-31 16:23:05' and `end` < '2025-03-31 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-31 19:23:18] Production.INFO: count ==4867 [2025-03-31 19:23:20] Production.ERROR: pbx CDR StartTime 2025-03-31 16:23:05 - End Time 2025-03-31 19:23:05 [2025-03-31 19:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 19:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805614', 'tblTempUsageDetail_20' ) start [2025-03-31 19:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805614', 'tblTempUsageDetail_20' ) end [2025-03-31 19:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805614', 'tblTempVendorCDR_20' ) start [2025-03-31 19:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805614', 'tblTempVendorCDR_20' ) end [2025-03-31 19:23:21] Production.INFO: ProcessCDR(1,14805614,1,1,2) [2025-03-31 19:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805614', 'tblTempUsageDetail_20' ) start [2025-03-31 19:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805614', 'tblTempUsageDetail_20' ) end [2025-03-31 19:23:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 19:23:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 19:23:26] Production.INFO: ==21987== Releasing lock... [2025-03-31 19:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 19:23:26] Production.INFO: 64.25 MB #Memory Used# [2025-03-31 19:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 16:24:06 [end_date_ymd] => 2025-03-31 19:24:06 [RateCDR] => 1 ) [2025-03-31 19:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 16:24:06' and `end` < '2025-03-31 19:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 19:24:19] Production.INFO: count ==4864 [2025-03-31 19:24:21] Production.ERROR: pbx CDR StartTime 2025-03-31 16:24:06 - End Time 2025-03-31 19:24:06 [2025-03-31 19:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 19:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805619', 'tblTempUsageDetail_20' ) start [2025-03-31 19:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805619', 'tblTempUsageDetail_20' ) end [2025-03-31 19:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805619', 'tblTempVendorCDR_20' ) start [2025-03-31 19:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805619', 'tblTempVendorCDR_20' ) end [2025-03-31 19:24:21] Production.INFO: ProcessCDR(1,14805619,1,1,2) [2025-03-31 19:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805619', 'tblTempUsageDetail_20' ) start [2025-03-31 19:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805619', 'tblTempUsageDetail_20' ) end [2025-03-31 19:24:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 19:24:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 19:24:26] Production.INFO: ==22067== Releasing lock... [2025-03-31 19:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 19:24:26] Production.INFO: 64.25 MB #Memory Used# [2025-03-31 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 16:25:05 [end_date_ymd] => 2025-03-31 19:25:05 [RateCDR] => 1 ) [2025-03-31 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-31 16:25:05' and `end` < '2025-03-31 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-31 19:25:18] Production.INFO: count ==4854 [2025-03-31 19:25:20] Production.ERROR: pbx CDR StartTime 2025-03-31 16:25:05 - End Time 2025-03-31 19:25:05 [2025-03-31 19:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805624', 'tblTempUsageDetail_20' ) start [2025-03-31 19:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805624', 'tblTempUsageDetail_20' ) end [2025-03-31 19:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805624', 'tblTempVendorCDR_20' ) start [2025-03-31 19:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805624', 'tblTempVendorCDR_20' ) end [2025-03-31 19:25:21] Production.INFO: ProcessCDR(1,14805624,1,1,2) [2025-03-31 19:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805624', 'tblTempUsageDetail_20' ) start [2025-03-31 19:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805624', 'tblTempUsageDetail_20' ) end [2025-03-31 19:25:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 19:25:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 19:25:26] Production.INFO: ==22179== Releasing lock... [2025-03-31 19:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 19:25:26] Production.INFO: 64.25 MB #Memory Used# [2025-03-31 19:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 16:26:05 [end_date_ymd] => 2025-03-31 19:26:05 [RateCDR] => 1 ) [2025-03-31 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-31 16:26:05' and `end` < '2025-03-31 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-31 19:26:19] Production.INFO: count ==4849 [2025-03-31 19:26:21] Production.ERROR: pbx CDR StartTime 2025-03-31 16:26:05 - End Time 2025-03-31 19:26:05 [2025-03-31 19:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 19:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805629', 'tblTempUsageDetail_20' ) start [2025-03-31 19:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805629', 'tblTempUsageDetail_20' ) end [2025-03-31 19:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805629', 'tblTempVendorCDR_20' ) start [2025-03-31 19:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805629', 'tblTempVendorCDR_20' ) end [2025-03-31 19:26:21] Production.INFO: ProcessCDR(1,14805629,1,1,2) [2025-03-31 19:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805629', 'tblTempUsageDetail_20' ) start [2025-03-31 19:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805629', 'tblTempUsageDetail_20' ) end [2025-03-31 19:26:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 19:26:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 19:26:26] Production.INFO: ==22254== Releasing lock... [2025-03-31 19:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 19:26:26] Production.INFO: 64.25 MB #Memory Used# [2025-03-31 19:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 16:27:05 [end_date_ymd] => 2025-03-31 19:27:05 [RateCDR] => 1 ) [2025-03-31 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-31 16:27:05' and `end` < '2025-03-31 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-31 19:27:19] Production.INFO: count ==4830 [2025-03-31 19:27:21] Production.ERROR: pbx CDR StartTime 2025-03-31 16:27:05 - End Time 2025-03-31 19:27:05 [2025-03-31 19:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 19:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805634', 'tblTempUsageDetail_20' ) start [2025-03-31 19:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805634', 'tblTempUsageDetail_20' ) end [2025-03-31 19:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805634', 'tblTempVendorCDR_20' ) start [2025-03-31 19:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805634', 'tblTempVendorCDR_20' ) end [2025-03-31 19:27:21] Production.INFO: ProcessCDR(1,14805634,1,1,2) [2025-03-31 19:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805634', 'tblTempUsageDetail_20' ) start [2025-03-31 19:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805634', 'tblTempUsageDetail_20' ) end [2025-03-31 19:27:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 19:27:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 19:27:26] Production.INFO: ==22332== Releasing lock... [2025-03-31 19:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 19:27:26] Production.INFO: 64 MB #Memory Used# [2025-03-31 19:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 16:28:05 [end_date_ymd] => 2025-03-31 19:28:05 [RateCDR] => 1 ) [2025-03-31 19: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-31 16:28:05' and `end` < '2025-03-31 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-31 19:28:19] Production.INFO: count ==4816 [2025-03-31 19:28:21] Production.ERROR: pbx CDR StartTime 2025-03-31 16:28:05 - End Time 2025-03-31 19:28:05 [2025-03-31 19:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 19:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805639', 'tblTempUsageDetail_20' ) start [2025-03-31 19:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805639', 'tblTempUsageDetail_20' ) end [2025-03-31 19:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805639', 'tblTempVendorCDR_20' ) start [2025-03-31 19:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805639', 'tblTempVendorCDR_20' ) end [2025-03-31 19:28:21] Production.INFO: ProcessCDR(1,14805639,1,1,2) [2025-03-31 19:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805639', 'tblTempUsageDetail_20' ) start [2025-03-31 19:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805639', 'tblTempUsageDetail_20' ) end [2025-03-31 19:28:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 19:28:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 19:28:26] Production.INFO: ==22403== Releasing lock... [2025-03-31 19:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 19:28:26] Production.INFO: 64 MB #Memory Used# [2025-03-31 19:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 16:29:05 [end_date_ymd] => 2025-03-31 19:29:05 [RateCDR] => 1 ) [2025-03-31 19:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 16:29:05' and `end` < '2025-03-31 19:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 19:29:18] Production.INFO: count ==4805 [2025-03-31 19:29:20] Production.ERROR: pbx CDR StartTime 2025-03-31 16:29:05 - End Time 2025-03-31 19:29:05 [2025-03-31 19:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805644', 'tblTempUsageDetail_20' ) start [2025-03-31 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805644', 'tblTempUsageDetail_20' ) end [2025-03-31 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805644', 'tblTempVendorCDR_20' ) start [2025-03-31 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805644', 'tblTempVendorCDR_20' ) end [2025-03-31 19:29:20] Production.INFO: ProcessCDR(1,14805644,1,1,2) [2025-03-31 19:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805644', 'tblTempUsageDetail_20' ) start [2025-03-31 19:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805644', 'tblTempUsageDetail_20' ) end [2025-03-31 19:29:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 19:29:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 19:29:26] Production.INFO: ==22475== Releasing lock... [2025-03-31 19:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 19:29:26] Production.INFO: 64 MB #Memory Used# [2025-03-31 19:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 16:30:07 [end_date_ymd] => 2025-03-31 19:30:07 [RateCDR] => 1 ) [2025-03-31 19: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-31 16:30:07' and `end` < '2025-03-31 19: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-31 19:30:20] Production.INFO: count ==4786 [2025-03-31 19:30:22] Production.ERROR: pbx CDR StartTime 2025-03-31 16:30:07 - End Time 2025-03-31 19:30:07 [2025-03-31 19:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 19:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805650', 'tblTempUsageDetail_20' ) start [2025-03-31 19:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805650', 'tblTempUsageDetail_20' ) end [2025-03-31 19:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805650', 'tblTempVendorCDR_20' ) start [2025-03-31 19:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805650', 'tblTempVendorCDR_20' ) end [2025-03-31 19:30:22] Production.INFO: ProcessCDR(1,14805650,1,1,2) [2025-03-31 19:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805650', 'tblTempUsageDetail_20' ) start [2025-03-31 19:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805650', 'tblTempUsageDetail_20' ) end [2025-03-31 19:30:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 19:30:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 19:30:27] Production.INFO: ==22554== Releasing lock... [2025-03-31 19:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 19:30:27] Production.INFO: 63.75 MB #Memory Used# [2025-03-31 19:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 16:31:05 [end_date_ymd] => 2025-03-31 19:31:05 [RateCDR] => 1 ) [2025-03-31 19:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 16:31:05' and `end` < '2025-03-31 19:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 19:31:18] Production.INFO: count ==4727 [2025-03-31 19:31:20] Production.ERROR: pbx CDR StartTime 2025-03-31 16:31:05 - End Time 2025-03-31 19:31:05 [2025-03-31 19:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 19:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805655', 'tblTempUsageDetail_20' ) start [2025-03-31 19:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805655', 'tblTempUsageDetail_20' ) end [2025-03-31 19:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805655', 'tblTempVendorCDR_20' ) start [2025-03-31 19:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805655', 'tblTempVendorCDR_20' ) end [2025-03-31 19:31:20] Production.INFO: ProcessCDR(1,14805655,1,1,2) [2025-03-31 19:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805655', 'tblTempUsageDetail_20' ) start [2025-03-31 19:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805655', 'tblTempUsageDetail_20' ) end [2025-03-31 19:31:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 19:31:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 19:31:24] Production.INFO: ==22627== Releasing lock... [2025-03-31 19:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 19:31:24] Production.INFO: 63.25 MB #Memory Used# [2025-03-31 19:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 16:32:05 [end_date_ymd] => 2025-03-31 19:32:05 [RateCDR] => 1 ) [2025-03-31 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-31 16:32:05' and `end` < '2025-03-31 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-31 19:32:18] Production.INFO: count ==4720 [2025-03-31 19:32:20] Production.ERROR: pbx CDR StartTime 2025-03-31 16:32:05 - End Time 2025-03-31 19:32:05 [2025-03-31 19:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805660', 'tblTempUsageDetail_20' ) start [2025-03-31 19:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805660', 'tblTempUsageDetail_20' ) end [2025-03-31 19:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805660', 'tblTempVendorCDR_20' ) start [2025-03-31 19:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805660', 'tblTempVendorCDR_20' ) end [2025-03-31 19:32:21] Production.INFO: ProcessCDR(1,14805660,1,1,2) [2025-03-31 19:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805660', 'tblTempUsageDetail_20' ) start [2025-03-31 19:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805660', 'tblTempUsageDetail_20' ) end [2025-03-31 19:32:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 19:32:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 19:32:24] Production.INFO: ==22702== Releasing lock... [2025-03-31 19:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 19:32:24] Production.INFO: 63.25 MB #Memory Used# [2025-03-31 19:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 16:33:05 [end_date_ymd] => 2025-03-31 19:33:05 [RateCDR] => 1 ) [2025-03-31 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-31 16:33:05' and `end` < '2025-03-31 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-31 19:33:18] Production.INFO: count ==4714 [2025-03-31 19:33:20] Production.ERROR: pbx CDR StartTime 2025-03-31 16:33:05 - End Time 2025-03-31 19:33:05 [2025-03-31 19:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 19:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805665', 'tblTempUsageDetail_20' ) start [2025-03-31 19:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805665', 'tblTempUsageDetail_20' ) end [2025-03-31 19:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805665', 'tblTempVendorCDR_20' ) start [2025-03-31 19:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805665', 'tblTempVendorCDR_20' ) end [2025-03-31 19:33:20] Production.INFO: ProcessCDR(1,14805665,1,1,2) [2025-03-31 19:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805665', 'tblTempUsageDetail_20' ) start [2025-03-31 19:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805665', 'tblTempUsageDetail_20' ) end [2025-03-31 19:33:25] Production.ERROR: pbx prc_insertCDR start [2025-03-31 19:33:25] Production.ERROR: pbx prc_insertCDR end [2025-03-31 19:33:25] Production.INFO: ==22776== Releasing lock... [2025-03-31 19:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 19:33:25] Production.INFO: 63.25 MB #Memory Used# [2025-03-31 19:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 16:34:06 [end_date_ymd] => 2025-03-31 19:34:06 [RateCDR] => 1 ) [2025-03-31 19: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-31 16:34:06' and `end` < '2025-03-31 19: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-31 19:34:19] Production.INFO: count ==4709 [2025-03-31 19:34:21] Production.ERROR: pbx CDR StartTime 2025-03-31 16:34:06 - End Time 2025-03-31 19:34:06 [2025-03-31 19:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 19:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805670', 'tblTempUsageDetail_20' ) start [2025-03-31 19:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805670', 'tblTempUsageDetail_20' ) end [2025-03-31 19:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805670', 'tblTempVendorCDR_20' ) start [2025-03-31 19:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805670', 'tblTempVendorCDR_20' ) end [2025-03-31 19:34:21] Production.INFO: ProcessCDR(1,14805670,1,1,2) [2025-03-31 19:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805670', 'tblTempUsageDetail_20' ) start [2025-03-31 19:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805670', 'tblTempUsageDetail_20' ) end [2025-03-31 19:34:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 19:34:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 19:34:26] Production.INFO: ==22852== Releasing lock... [2025-03-31 19:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 19:34:26] Production.INFO: 63.25 MB #Memory Used# [2025-03-31 19:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 16:35:05 [end_date_ymd] => 2025-03-31 19:35:05 [RateCDR] => 1 ) [2025-03-31 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-31 16:35:05' and `end` < '2025-03-31 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-31 19:35:18] Production.INFO: count ==4708 [2025-03-31 19:35:20] Production.ERROR: pbx CDR StartTime 2025-03-31 16:35:05 - End Time 2025-03-31 19:35:05 [2025-03-31 19:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 19:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805675', 'tblTempUsageDetail_20' ) start [2025-03-31 19:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805675', 'tblTempUsageDetail_20' ) end [2025-03-31 19:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805675', 'tblTempVendorCDR_20' ) start [2025-03-31 19:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805675', 'tblTempVendorCDR_20' ) end [2025-03-31 19:35:20] Production.INFO: ProcessCDR(1,14805675,1,1,2) [2025-03-31 19:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805675', 'tblTempUsageDetail_20' ) start [2025-03-31 19:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805675', 'tblTempUsageDetail_20' ) end [2025-03-31 19:35:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 19:35:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 19:35:26] Production.INFO: ==22924== Releasing lock... [2025-03-31 19:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 19:35:26] Production.INFO: 63.25 MB #Memory Used# [2025-03-31 19:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 16:36:05 [end_date_ymd] => 2025-03-31 19:36:05 [RateCDR] => 1 ) [2025-03-31 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-31 16:36:05' and `end` < '2025-03-31 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-31 19:36:18] Production.INFO: count ==4705 [2025-03-31 19:36:20] Production.ERROR: pbx CDR StartTime 2025-03-31 16:36:05 - End Time 2025-03-31 19:36:05 [2025-03-31 19:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 19:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805680', 'tblTempUsageDetail_20' ) start [2025-03-31 19:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805680', 'tblTempUsageDetail_20' ) end [2025-03-31 19:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805680', 'tblTempVendorCDR_20' ) start [2025-03-31 19:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805680', 'tblTempVendorCDR_20' ) end [2025-03-31 19:36:20] Production.INFO: ProcessCDR(1,14805680,1,1,2) [2025-03-31 19:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805680', 'tblTempUsageDetail_20' ) start [2025-03-31 19:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805680', 'tblTempUsageDetail_20' ) end [2025-03-31 19:36:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 19:36:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 19:36:24] Production.INFO: ==22997== Releasing lock... [2025-03-31 19:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 19:36:24] Production.INFO: 63.25 MB #Memory Used# [2025-03-31 19:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 16:37:05 [end_date_ymd] => 2025-03-31 19:37:05 [RateCDR] => 1 ) [2025-03-31 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-31 16:37:05' and `end` < '2025-03-31 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-31 19:37:18] Production.INFO: count ==4706 [2025-03-31 19:37:20] Production.ERROR: pbx CDR StartTime 2025-03-31 16:37:05 - End Time 2025-03-31 19:37:05 [2025-03-31 19:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 19:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805685', 'tblTempUsageDetail_20' ) start [2025-03-31 19:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805685', 'tblTempUsageDetail_20' ) end [2025-03-31 19:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805685', 'tblTempVendorCDR_20' ) start [2025-03-31 19:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805685', 'tblTempVendorCDR_20' ) end [2025-03-31 19:37:20] Production.INFO: ProcessCDR(1,14805685,1,1,2) [2025-03-31 19:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805685', 'tblTempUsageDetail_20' ) start [2025-03-31 19:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805685', 'tblTempUsageDetail_20' ) end [2025-03-31 19:37:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 19:37:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 19:37:26] Production.INFO: ==23070== Releasing lock... [2025-03-31 19:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 19:37:26] Production.INFO: 63.25 MB #Memory Used# [2025-03-31 19:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 16:38:06 [end_date_ymd] => 2025-03-31 19:38:06 [RateCDR] => 1 ) [2025-03-31 19: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-31 16:38:06' and `end` < '2025-03-31 19: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-31 19:38:19] Production.INFO: count ==4691 [2025-03-31 19:38:21] Production.ERROR: pbx CDR StartTime 2025-03-31 16:38:06 - End Time 2025-03-31 19:38:06 [2025-03-31 19:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 19:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805690', 'tblTempUsageDetail_20' ) start [2025-03-31 19:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805690', 'tblTempUsageDetail_20' ) end [2025-03-31 19:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805690', 'tblTempVendorCDR_20' ) start [2025-03-31 19:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805690', 'tblTempVendorCDR_20' ) end [2025-03-31 19:38:21] Production.INFO: ProcessCDR(1,14805690,1,1,2) [2025-03-31 19:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805690', 'tblTempUsageDetail_20' ) start [2025-03-31 19:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805690', 'tblTempUsageDetail_20' ) end [2025-03-31 19:38:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 19:38:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 19:38:26] Production.INFO: ==23147== Releasing lock... [2025-03-31 19:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 19:38:26] Production.INFO: 63 MB #Memory Used# [2025-03-31 19:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 16:39:05 [end_date_ymd] => 2025-03-31 19:39:05 [RateCDR] => 1 ) [2025-03-31 19:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 16:39:05' and `end` < '2025-03-31 19:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 19:39:18] Production.INFO: count ==4688 [2025-03-31 19:39:20] Production.ERROR: pbx CDR StartTime 2025-03-31 16:39:05 - End Time 2025-03-31 19:39:05 [2025-03-31 19:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 19:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805695', 'tblTempUsageDetail_20' ) start [2025-03-31 19:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805695', 'tblTempUsageDetail_20' ) end [2025-03-31 19:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805695', 'tblTempVendorCDR_20' ) start [2025-03-31 19:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805695', 'tblTempVendorCDR_20' ) end [2025-03-31 19:39:20] Production.INFO: ProcessCDR(1,14805695,1,1,2) [2025-03-31 19:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805695', 'tblTempUsageDetail_20' ) start [2025-03-31 19:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805695', 'tblTempUsageDetail_20' ) end [2025-03-31 19:39:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 19:39:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 19:39:24] Production.INFO: ==23221== Releasing lock... [2025-03-31 19:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 19:39:24] Production.INFO: 63 MB #Memory Used# [2025-03-31 19:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 16:40:07 [end_date_ymd] => 2025-03-31 19:40:07 [RateCDR] => 1 ) [2025-03-31 19: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-31 16:40:07' and `end` < '2025-03-31 19: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-31 19:40:20] Production.INFO: count ==4668 [2025-03-31 19:40:22] Production.ERROR: pbx CDR StartTime 2025-03-31 16:40:07 - End Time 2025-03-31 19:40:07 [2025-03-31 19:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 19:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805701', 'tblTempUsageDetail_20' ) start [2025-03-31 19:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805701', 'tblTempUsageDetail_20' ) end [2025-03-31 19:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805701', 'tblTempVendorCDR_20' ) start [2025-03-31 19:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805701', 'tblTempVendorCDR_20' ) end [2025-03-31 19:40:22] Production.INFO: ProcessCDR(1,14805701,1,1,2) [2025-03-31 19:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805701', 'tblTempUsageDetail_20' ) start [2025-03-31 19:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805701', 'tblTempUsageDetail_20' ) end [2025-03-31 19:40:25] Production.ERROR: pbx prc_insertCDR start [2025-03-31 19:40:25] Production.ERROR: pbx prc_insertCDR end [2025-03-31 19:40:25] Production.INFO: ==23295== Releasing lock... [2025-03-31 19:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 19:40:25] Production.INFO: 62.75 MB #Memory Used# [2025-03-31 19:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 16:41:05 [end_date_ymd] => 2025-03-31 19:41:05 [RateCDR] => 1 ) [2025-03-31 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-31 16:41:05' and `end` < '2025-03-31 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-31 19:41:18] Production.INFO: count ==4584 [2025-03-31 19:41:20] Production.ERROR: pbx CDR StartTime 2025-03-31 16:41:05 - End Time 2025-03-31 19:41:05 [2025-03-31 19:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 19:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805706', 'tblTempUsageDetail_20' ) start [2025-03-31 19:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805706', 'tblTempUsageDetail_20' ) end [2025-03-31 19:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805706', 'tblTempVendorCDR_20' ) start [2025-03-31 19:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805706', 'tblTempVendorCDR_20' ) end [2025-03-31 19:41:20] Production.INFO: ProcessCDR(1,14805706,1,1,2) [2025-03-31 19:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805706', 'tblTempUsageDetail_20' ) start [2025-03-31 19:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805706', 'tblTempUsageDetail_20' ) end [2025-03-31 19:41:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 19:41:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 19:41:23] Production.INFO: ==23407== Releasing lock... [2025-03-31 19:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 19:41:23] Production.INFO: 62.25 MB #Memory Used# [2025-03-31 19:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 16:42:05 [end_date_ymd] => 2025-03-31 19:42:05 [RateCDR] => 1 ) [2025-03-31 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-31 16:42:05' and `end` < '2025-03-31 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-31 19:42:18] Production.INFO: count ==4573 [2025-03-31 19:42:20] Production.ERROR: pbx CDR StartTime 2025-03-31 16:42:05 - End Time 2025-03-31 19:42:05 [2025-03-31 19:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 19:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805711', 'tblTempUsageDetail_20' ) start [2025-03-31 19:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805711', 'tblTempUsageDetail_20' ) end [2025-03-31 19:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805711', 'tblTempVendorCDR_20' ) start [2025-03-31 19:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805711', 'tblTempVendorCDR_20' ) end [2025-03-31 19:42:20] Production.INFO: ProcessCDR(1,14805711,1,1,2) [2025-03-31 19:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805711', 'tblTempUsageDetail_20' ) start [2025-03-31 19:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805711', 'tblTempUsageDetail_20' ) end [2025-03-31 19:42:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 19:42:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 19:42:24] Production.INFO: ==23483== Releasing lock... [2025-03-31 19:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 19:42:24] Production.INFO: 62.25 MB #Memory Used# [2025-03-31 19:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 16:43:05 [end_date_ymd] => 2025-03-31 19:43:05 [RateCDR] => 1 ) [2025-03-31 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-31 16:43:05' and `end` < '2025-03-31 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-31 19:43:18] Production.INFO: count ==4556 [2025-03-31 19:43:20] Production.ERROR: pbx CDR StartTime 2025-03-31 16:43:05 - End Time 2025-03-31 19:43:05 [2025-03-31 19:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 19:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805716', 'tblTempUsageDetail_20' ) start [2025-03-31 19:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805716', 'tblTempUsageDetail_20' ) end [2025-03-31 19:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805716', 'tblTempVendorCDR_20' ) start [2025-03-31 19:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805716', 'tblTempVendorCDR_20' ) end [2025-03-31 19:43:20] Production.INFO: ProcessCDR(1,14805716,1,1,2) [2025-03-31 19:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805716', 'tblTempUsageDetail_20' ) start [2025-03-31 19:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805716', 'tblTempUsageDetail_20' ) end [2025-03-31 19:43:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 19:43:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 19:43:23] Production.INFO: ==23559== Releasing lock... [2025-03-31 19:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 19:43:23] Production.INFO: 62 MB #Memory Used# [2025-03-31 19:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 16:44:06 [end_date_ymd] => 2025-03-31 19:44:06 [RateCDR] => 1 ) [2025-03-31 19: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-31 16:44:06' and `end` < '2025-03-31 19: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-31 19:44:19] Production.INFO: count ==4559 [2025-03-31 19:44:21] Production.ERROR: pbx CDR StartTime 2025-03-31 16:44:06 - End Time 2025-03-31 19:44:06 [2025-03-31 19:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 19:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805721', 'tblTempUsageDetail_20' ) start [2025-03-31 19:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805721', 'tblTempUsageDetail_20' ) end [2025-03-31 19:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805721', 'tblTempVendorCDR_20' ) start [2025-03-31 19:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805721', 'tblTempVendorCDR_20' ) end [2025-03-31 19:44:21] Production.INFO: ProcessCDR(1,14805721,1,1,2) [2025-03-31 19:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805721', 'tblTempUsageDetail_20' ) start [2025-03-31 19:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805721', 'tblTempUsageDetail_20' ) end [2025-03-31 19:44:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 19:44:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 19:44:24] Production.INFO: ==23629== Releasing lock... [2025-03-31 19:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 19:44:24] Production.INFO: 62 MB #Memory Used# [2025-03-31 19:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 16:45:05 [end_date_ymd] => 2025-03-31 19:45:05 [RateCDR] => 1 ) [2025-03-31 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-31 16:45:05' and `end` < '2025-03-31 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-31 19:45:18] Production.INFO: count ==4556 [2025-03-31 19:45:20] Production.ERROR: pbx CDR StartTime 2025-03-31 16:45:05 - End Time 2025-03-31 19:45:05 [2025-03-31 19:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 19:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805726', 'tblTempUsageDetail_20' ) start [2025-03-31 19:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805726', 'tblTempUsageDetail_20' ) end [2025-03-31 19:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805726', 'tblTempVendorCDR_20' ) start [2025-03-31 19:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805726', 'tblTempVendorCDR_20' ) end [2025-03-31 19:45:20] Production.INFO: ProcessCDR(1,14805726,1,1,2) [2025-03-31 19:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805726', 'tblTempUsageDetail_20' ) start [2025-03-31 19:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805726', 'tblTempUsageDetail_20' ) end [2025-03-31 19:45:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 19:45:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 19:45:24] Production.INFO: ==23704== Releasing lock... [2025-03-31 19:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 19:45:24] Production.INFO: 62 MB #Memory Used# [2025-03-31 19:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 16:46:06 [end_date_ymd] => 2025-03-31 19:46:06 [RateCDR] => 1 ) [2025-03-31 19: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-31 16:46:06' and `end` < '2025-03-31 19: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-31 19:46:19] Production.INFO: count ==4554 [2025-03-31 19:46:21] Production.ERROR: pbx CDR StartTime 2025-03-31 16:46:06 - End Time 2025-03-31 19:46:06 [2025-03-31 19:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 19:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805731', 'tblTempUsageDetail_20' ) start [2025-03-31 19:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805731', 'tblTempUsageDetail_20' ) end [2025-03-31 19:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805731', 'tblTempVendorCDR_20' ) start [2025-03-31 19:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805731', 'tblTempVendorCDR_20' ) end [2025-03-31 19:46:21] Production.INFO: ProcessCDR(1,14805731,1,1,2) [2025-03-31 19:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805731', 'tblTempUsageDetail_20' ) start [2025-03-31 19:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805731', 'tblTempUsageDetail_20' ) end [2025-03-31 19:46:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 19:46:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 19:46:25] Production.INFO: ==23777== Releasing lock... [2025-03-31 19:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 19:46:25] Production.INFO: 62 MB #Memory Used# [2025-03-31 19:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 16:47:05 [end_date_ymd] => 2025-03-31 19:47:05 [RateCDR] => 1 ) [2025-03-31 19:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 16:47:05' and `end` < '2025-03-31 19:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 19:47:19] Production.INFO: count ==4522 [2025-03-31 19:47:20] Production.ERROR: pbx CDR StartTime 2025-03-31 16:47:05 - End Time 2025-03-31 19:47:05 [2025-03-31 19:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 19:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805736', 'tblTempUsageDetail_20' ) start [2025-03-31 19:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805736', 'tblTempUsageDetail_20' ) end [2025-03-31 19:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805736', 'tblTempVendorCDR_20' ) start [2025-03-31 19:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805736', 'tblTempVendorCDR_20' ) end [2025-03-31 19:47:21] Production.INFO: ProcessCDR(1,14805736,1,1,2) [2025-03-31 19:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805736', 'tblTempUsageDetail_20' ) start [2025-03-31 19:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805736', 'tblTempUsageDetail_20' ) end [2025-03-31 19:47:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 19:47:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 19:47:24] Production.INFO: ==23846== Releasing lock... [2025-03-31 19:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 19:47:24] Production.INFO: 61.75 MB #Memory Used# [2025-03-31 19:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 16:48:05 [end_date_ymd] => 2025-03-31 19:48:05 [RateCDR] => 1 ) [2025-03-31 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-31 16:48:05' and `end` < '2025-03-31 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-31 19:48:18] Production.INFO: count ==4515 [2025-03-31 19:48:20] Production.ERROR: pbx CDR StartTime 2025-03-31 16:48:05 - End Time 2025-03-31 19:48:05 [2025-03-31 19:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 19:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805741', 'tblTempUsageDetail_20' ) start [2025-03-31 19:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805741', 'tblTempUsageDetail_20' ) end [2025-03-31 19:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805741', 'tblTempVendorCDR_20' ) start [2025-03-31 19:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805741', 'tblTempVendorCDR_20' ) end [2025-03-31 19:48:20] Production.INFO: ProcessCDR(1,14805741,1,1,2) [2025-03-31 19:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805741', 'tblTempUsageDetail_20' ) start [2025-03-31 19:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805741', 'tblTempUsageDetail_20' ) end [2025-03-31 19:48:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 19:48:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 19:48:24] Production.INFO: ==23923== Releasing lock... [2025-03-31 19:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 19:48:24] Production.INFO: 61.75 MB #Memory Used# [2025-03-31 19:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 16:49:06 [end_date_ymd] => 2025-03-31 19:49:06 [RateCDR] => 1 ) [2025-03-31 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-31 16:49:06' and `end` < '2025-03-31 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-31 19:49:19] Production.INFO: count ==4498 [2025-03-31 19:49:20] Production.ERROR: pbx CDR StartTime 2025-03-31 16:49:06 - End Time 2025-03-31 19:49:06 [2025-03-31 19:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 19:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805746', 'tblTempUsageDetail_20' ) start [2025-03-31 19:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805746', 'tblTempUsageDetail_20' ) end [2025-03-31 19:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805746', 'tblTempVendorCDR_20' ) start [2025-03-31 19:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805746', 'tblTempVendorCDR_20' ) end [2025-03-31 19:49:21] Production.INFO: ProcessCDR(1,14805746,1,1,2) [2025-03-31 19:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805746', 'tblTempUsageDetail_20' ) start [2025-03-31 19:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805746', 'tblTempUsageDetail_20' ) end [2025-03-31 19:49:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 19:49:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 19:49:26] Production.INFO: ==24004== Releasing lock... [2025-03-31 19:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 19:49:26] Production.INFO: 61.5 MB #Memory Used# [2025-03-31 19:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 16:50:05 [end_date_ymd] => 2025-03-31 19:50:05 [RateCDR] => 1 ) [2025-03-31 19: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-31 16:50:05' and `end` < '2025-03-31 19:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 19:50:18] Production.INFO: count ==4502 [2025-03-31 19:50:20] Production.ERROR: pbx CDR StartTime 2025-03-31 16:50:05 - End Time 2025-03-31 19:50:05 [2025-03-31 19:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805751', 'tblTempUsageDetail_20' ) start [2025-03-31 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805751', 'tblTempUsageDetail_20' ) end [2025-03-31 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805751', 'tblTempVendorCDR_20' ) start [2025-03-31 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805751', 'tblTempVendorCDR_20' ) end [2025-03-31 19:50:20] Production.INFO: ProcessCDR(1,14805751,1,1,2) [2025-03-31 19:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805751', 'tblTempUsageDetail_20' ) start [2025-03-31 19:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805751', 'tblTempUsageDetail_20' ) end [2025-03-31 19:50:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 19:50:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 19:50:24] Production.INFO: ==24077== Releasing lock... [2025-03-31 19:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 19:50:24] Production.INFO: 61.5 MB #Memory Used# [2025-03-31 19:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 16:51:06 [end_date_ymd] => 2025-03-31 19:51:06 [RateCDR] => 1 ) [2025-03-31 19: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-31 16:51:06' and `end` < '2025-03-31 19: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-31 19:51:19] Production.INFO: count ==4424 [2025-03-31 19:51:21] Production.ERROR: pbx CDR StartTime 2025-03-31 16:51:06 - End Time 2025-03-31 19:51:06 [2025-03-31 19:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 19:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805757', 'tblTempUsageDetail_20' ) start [2025-03-31 19:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805757', 'tblTempUsageDetail_20' ) end [2025-03-31 19:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805757', 'tblTempVendorCDR_20' ) start [2025-03-31 19:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805757', 'tblTempVendorCDR_20' ) end [2025-03-31 19:51:21] Production.INFO: ProcessCDR(1,14805757,1,1,2) [2025-03-31 19:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805757', 'tblTempUsageDetail_20' ) start [2025-03-31 19:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805757', 'tblTempUsageDetail_20' ) end [2025-03-31 19:51:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 19:51:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 19:51:24] Production.INFO: ==24152== Releasing lock... [2025-03-31 19:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 19:51:24] Production.INFO: 61 MB #Memory Used# [2025-03-31 19:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 16:52:05 [end_date_ymd] => 2025-03-31 19:52:05 [RateCDR] => 1 ) [2025-03-31 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-31 16:52:05' and `end` < '2025-03-31 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-31 19:52:18] Production.INFO: count ==4416 [2025-03-31 19:52:19] Production.ERROR: pbx CDR StartTime 2025-03-31 16:52:05 - End Time 2025-03-31 19:52:05 [2025-03-31 19:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805762', 'tblTempUsageDetail_20' ) start [2025-03-31 19:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805762', 'tblTempUsageDetail_20' ) end [2025-03-31 19:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805762', 'tblTempVendorCDR_20' ) start [2025-03-31 19:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805762', 'tblTempVendorCDR_20' ) end [2025-03-31 19:52:20] Production.INFO: ProcessCDR(1,14805762,1,1,2) [2025-03-31 19:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805762', 'tblTempUsageDetail_20' ) start [2025-03-31 19:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805762', 'tblTempUsageDetail_20' ) end [2025-03-31 19:52:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 19:52:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 19:52:23] Production.INFO: ==24225== Releasing lock... [2025-03-31 19:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 19:52:23] Production.INFO: 61.25 MB #Memory Used# [2025-03-31 19:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 16:53:06 [end_date_ymd] => 2025-03-31 19:53:06 [RateCDR] => 1 ) [2025-03-31 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-31 16:53:06' and `end` < '2025-03-31 19:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 19:53:19] Production.INFO: count ==4411 [2025-03-31 19:53:20] Production.ERROR: pbx CDR StartTime 2025-03-31 16:53:06 - End Time 2025-03-31 19:53:06 [2025-03-31 19:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 19:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805767', 'tblTempUsageDetail_20' ) start [2025-03-31 19:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805767', 'tblTempUsageDetail_20' ) end [2025-03-31 19:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805767', 'tblTempVendorCDR_20' ) start [2025-03-31 19:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805767', 'tblTempVendorCDR_20' ) end [2025-03-31 19:53:21] Production.INFO: ProcessCDR(1,14805767,1,1,2) [2025-03-31 19:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805767', 'tblTempUsageDetail_20' ) start [2025-03-31 19:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805767', 'tblTempUsageDetail_20' ) end [2025-03-31 19:53:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 19:53:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 19:53:26] Production.INFO: ==24305== Releasing lock... [2025-03-31 19:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 19:53:26] Production.INFO: 61 MB #Memory Used# [2025-03-31 19:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 16:54:05 [end_date_ymd] => 2025-03-31 19:54:05 [RateCDR] => 1 ) [2025-03-31 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-31 16:54:05' and `end` < '2025-03-31 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-31 19:54:18] Production.INFO: count ==4400 [2025-03-31 19:54:20] Production.ERROR: pbx CDR StartTime 2025-03-31 16:54:05 - End Time 2025-03-31 19:54:05 [2025-03-31 19:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 19:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805772', 'tblTempUsageDetail_20' ) start [2025-03-31 19:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805772', 'tblTempUsageDetail_20' ) end [2025-03-31 19:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805772', 'tblTempVendorCDR_20' ) start [2025-03-31 19:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805772', 'tblTempVendorCDR_20' ) end [2025-03-31 19:54:20] Production.INFO: ProcessCDR(1,14805772,1,1,2) [2025-03-31 19:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805772', 'tblTempUsageDetail_20' ) start [2025-03-31 19:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805772', 'tblTempUsageDetail_20' ) end [2025-03-31 19:54:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 19:54:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 19:54:24] Production.INFO: ==24377== Releasing lock... [2025-03-31 19:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 19:54:24] Production.INFO: 60.75 MB #Memory Used# [2025-03-31 19:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 16:55:05 [end_date_ymd] => 2025-03-31 19:55:05 [RateCDR] => 1 ) [2025-03-31 19:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 16:55:05' and `end` < '2025-03-31 19:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 19:55:18] Production.INFO: count ==4400 [2025-03-31 19:55:20] Production.ERROR: pbx CDR StartTime 2025-03-31 16:55:05 - End Time 2025-03-31 19:55:05 [2025-03-31 19:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 19:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805777', 'tblTempUsageDetail_20' ) start [2025-03-31 19:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805777', 'tblTempUsageDetail_20' ) end [2025-03-31 19:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805777', 'tblTempVendorCDR_20' ) start [2025-03-31 19:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805777', 'tblTempVendorCDR_20' ) end [2025-03-31 19:55:20] Production.INFO: ProcessCDR(1,14805777,1,1,2) [2025-03-31 19:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805777', 'tblTempUsageDetail_20' ) start [2025-03-31 19:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805777', 'tblTempUsageDetail_20' ) end [2025-03-31 19:55:25] Production.ERROR: pbx prc_insertCDR start [2025-03-31 19:55:25] Production.ERROR: pbx prc_insertCDR end [2025-03-31 19:55:25] Production.INFO: ==24456== Releasing lock... [2025-03-31 19:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 19:55:25] Production.INFO: 60.75 MB #Memory Used# [2025-03-31 19:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 16:56:06 [end_date_ymd] => 2025-03-31 19:56:06 [RateCDR] => 1 ) [2025-03-31 19: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-31 16:56:06' and `end` < '2025-03-31 19: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-31 19:56:19] Production.INFO: count ==4398 [2025-03-31 19:56:21] Production.ERROR: pbx CDR StartTime 2025-03-31 16:56:06 - End Time 2025-03-31 19:56:06 [2025-03-31 19:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 19:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805782', 'tblTempUsageDetail_20' ) start [2025-03-31 19:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805782', 'tblTempUsageDetail_20' ) end [2025-03-31 19:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805782', 'tblTempVendorCDR_20' ) start [2025-03-31 19:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805782', 'tblTempVendorCDR_20' ) end [2025-03-31 19:56:21] Production.INFO: ProcessCDR(1,14805782,1,1,2) [2025-03-31 19:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805782', 'tblTempUsageDetail_20' ) start [2025-03-31 19:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805782', 'tblTempUsageDetail_20' ) end [2025-03-31 19:56:25] Production.ERROR: pbx prc_insertCDR start [2025-03-31 19:56:25] Production.ERROR: pbx prc_insertCDR end [2025-03-31 19:56:25] Production.INFO: ==24573== Releasing lock... [2025-03-31 19:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 19:56:25] Production.INFO: 60.75 MB #Memory Used# [2025-03-31 19:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 16:57:06 [end_date_ymd] => 2025-03-31 19:57:06 [RateCDR] => 1 ) [2025-03-31 19: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-31 16:57:06' and `end` < '2025-03-31 19: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-31 19:57:19] Production.INFO: count ==4381 [2025-03-31 19:57:20] Production.ERROR: pbx CDR StartTime 2025-03-31 16:57:06 - End Time 2025-03-31 19:57:06 [2025-03-31 19:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 19:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805787', 'tblTempUsageDetail_20' ) start [2025-03-31 19:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805787', 'tblTempUsageDetail_20' ) end [2025-03-31 19:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805787', 'tblTempVendorCDR_20' ) start [2025-03-31 19:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805787', 'tblTempVendorCDR_20' ) end [2025-03-31 19:57:21] Production.INFO: ProcessCDR(1,14805787,1,1,2) [2025-03-31 19:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805787', 'tblTempUsageDetail_20' ) start [2025-03-31 19:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805787', 'tblTempUsageDetail_20' ) end [2025-03-31 19:57:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 19:57:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 19:57:24] Production.INFO: ==24647== Releasing lock... [2025-03-31 19:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 19:57:24] Production.INFO: 60.75 MB #Memory Used# [2025-03-31 19:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 16:58:06 [end_date_ymd] => 2025-03-31 19:58:06 [RateCDR] => 1 ) [2025-03-31 19: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-31 16:58:06' and `end` < '2025-03-31 19: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-31 19:58:19] Production.INFO: count ==4381 [2025-03-31 19:58:21] Production.ERROR: pbx CDR StartTime 2025-03-31 16:58:06 - End Time 2025-03-31 19:58:06 [2025-03-31 19:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 19:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805792', 'tblTempUsageDetail_20' ) start [2025-03-31 19:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805792', 'tblTempUsageDetail_20' ) end [2025-03-31 19:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805792', 'tblTempVendorCDR_20' ) start [2025-03-31 19:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805792', 'tblTempVendorCDR_20' ) end [2025-03-31 19:58:21] Production.INFO: ProcessCDR(1,14805792,1,1,2) [2025-03-31 19:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805792', 'tblTempUsageDetail_20' ) start [2025-03-31 19:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805792', 'tblTempUsageDetail_20' ) end [2025-03-31 19:58:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 19:58:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 19:58:26] Production.INFO: ==24721== Releasing lock... [2025-03-31 19:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 19:58:26] Production.INFO: 60.75 MB #Memory Used# [2025-03-31 19:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 16:59:05 [end_date_ymd] => 2025-03-31 19:59:05 [RateCDR] => 1 ) [2025-03-31 19:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 16:59:05' and `end` < '2025-03-31 19:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 19:59:18] Production.INFO: count ==4380 [2025-03-31 19:59:20] Production.ERROR: pbx CDR StartTime 2025-03-31 16:59:05 - End Time 2025-03-31 19:59:05 [2025-03-31 19:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 19:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805797', 'tblTempUsageDetail_20' ) start [2025-03-31 19:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805797', 'tblTempUsageDetail_20' ) end [2025-03-31 19:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805797', 'tblTempVendorCDR_20' ) start [2025-03-31 19:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805797', 'tblTempVendorCDR_20' ) end [2025-03-31 19:59:20] Production.INFO: ProcessCDR(1,14805797,1,1,2) [2025-03-31 19:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 19:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 19:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805797', 'tblTempUsageDetail_20' ) start [2025-03-31 19:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805797', 'tblTempUsageDetail_20' ) end [2025-03-31 19:59:25] Production.ERROR: pbx prc_insertCDR start [2025-03-31 19:59:25] Production.ERROR: pbx prc_insertCDR end [2025-03-31 19:59:25] Production.INFO: ==24816== Releasing lock... [2025-03-31 19:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 19:59:25] Production.INFO: 60.75 MB #Memory Used# [2025-03-31 20:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 17:00:06 [end_date_ymd] => 2025-03-31 20:00:06 [RateCDR] => 1 ) [2025-03-31 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-31 17:00:06' and `end` < '2025-03-31 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-31 20:00:19] Production.INFO: count ==4374 [2025-03-31 20:00:21] Production.ERROR: pbx CDR StartTime 2025-03-31 17:00:06 - End Time 2025-03-31 20:00:06 [2025-03-31 20:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 20:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805803', 'tblTempUsageDetail_20' ) start [2025-03-31 20:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805803', 'tblTempUsageDetail_20' ) end [2025-03-31 20:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805803', 'tblTempVendorCDR_20' ) start [2025-03-31 20:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805803', 'tblTempVendorCDR_20' ) end [2025-03-31 20:00:21] Production.INFO: ProcessCDR(1,14805803,1,1,2) [2025-03-31 20:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805803', 'tblTempUsageDetail_20' ) start [2025-03-31 20:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805803', 'tblTempUsageDetail_20' ) end [2025-03-31 20:00:25] Production.ERROR: pbx prc_insertCDR start [2025-03-31 20:00:25] Production.ERROR: pbx prc_insertCDR end [2025-03-31 20:00:25] Production.INFO: ==24892== Releasing lock... [2025-03-31 20:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 20:00:25] Production.INFO: 60.75 MB #Memory Used# [2025-03-31 20:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 17:01:05 [end_date_ymd] => 2025-03-31 20:01:05 [RateCDR] => 1 ) [2025-03-31 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-31 17:01:05' and `end` < '2025-03-31 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-31 20:01:18] Production.INFO: count ==4328 [2025-03-31 20:01:20] Production.ERROR: pbx CDR StartTime 2025-03-31 17:01:05 - End Time 2025-03-31 20:01:05 [2025-03-31 20:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 20:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805806', 'tblTempUsageDetail_20' ) start [2025-03-31 20:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805806', 'tblTempUsageDetail_20' ) end [2025-03-31 20:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805806', 'tblTempVendorCDR_20' ) start [2025-03-31 20:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805806', 'tblTempVendorCDR_20' ) end [2025-03-31 20:01:20] Production.INFO: ProcessCDR(1,14805806,1,1,2) [2025-03-31 20:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805806', 'tblTempUsageDetail_20' ) start [2025-03-31 20:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805806', 'tblTempUsageDetail_20' ) end [2025-03-31 20:01:25] Production.ERROR: pbx prc_insertCDR start [2025-03-31 20:01:25] Production.ERROR: pbx prc_insertCDR end [2025-03-31 20:01:25] Production.INFO: ==25019== Releasing lock... [2025-03-31 20:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 20:01:25] Production.INFO: 60.25 MB #Memory Used# [2025-03-31 20:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 17:02:05 [end_date_ymd] => 2025-03-31 20:02:05 [RateCDR] => 1 ) [2025-03-31 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-31 17:02:05' and `end` < '2025-03-31 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-31 20:02:18] Production.INFO: count ==4328 [2025-03-31 20:02:20] Production.ERROR: pbx CDR StartTime 2025-03-31 17:02:05 - End Time 2025-03-31 20:02:05 [2025-03-31 20:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 20:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805813', 'tblTempUsageDetail_20' ) start [2025-03-31 20:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805813', 'tblTempUsageDetail_20' ) end [2025-03-31 20:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805813', 'tblTempVendorCDR_20' ) start [2025-03-31 20:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805813', 'tblTempVendorCDR_20' ) end [2025-03-31 20:02:20] Production.INFO: ProcessCDR(1,14805813,1,1,2) [2025-03-31 20:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805813', 'tblTempUsageDetail_20' ) start [2025-03-31 20:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805813', 'tblTempUsageDetail_20' ) end [2025-03-31 20:02:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 20:02:25] Production.ERROR: pbx prc_insertCDR end [2025-03-31 20:02:25] Production.INFO: ==25092== Releasing lock... [2025-03-31 20:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 20:02:25] Production.INFO: 60.25 MB #Memory Used# [2025-03-31 20:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 17:03:06 [end_date_ymd] => 2025-03-31 20:03:06 [RateCDR] => 1 ) [2025-03-31 20:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 17:03:06' and `end` < '2025-03-31 20:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 20:03:19] Production.INFO: count ==4339 [2025-03-31 20:03:21] Production.ERROR: pbx CDR StartTime 2025-03-31 17:03:06 - End Time 2025-03-31 20:03:06 [2025-03-31 20:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 20:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805818', 'tblTempUsageDetail_20' ) start [2025-03-31 20:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805818', 'tblTempUsageDetail_20' ) end [2025-03-31 20:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805818', 'tblTempVendorCDR_20' ) start [2025-03-31 20:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805818', 'tblTempVendorCDR_20' ) end [2025-03-31 20:03:21] Production.INFO: ProcessCDR(1,14805818,1,1,2) [2025-03-31 20:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805818', 'tblTempUsageDetail_20' ) start [2025-03-31 20:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805818', 'tblTempUsageDetail_20' ) end [2025-03-31 20:03:27] Production.ERROR: pbx prc_insertCDR start [2025-03-31 20:03:27] Production.ERROR: pbx prc_insertCDR end [2025-03-31 20:03:27] Production.INFO: ==25167== Releasing lock... [2025-03-31 20:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 20:03:27] Production.INFO: 60.25 MB #Memory Used# [2025-03-31 20:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 17:04:05 [end_date_ymd] => 2025-03-31 20:04:05 [RateCDR] => 1 ) [2025-03-31 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-31 17:04:05' and `end` < '2025-03-31 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-31 20:04:18] Production.INFO: count ==4350 [2025-03-31 20:04:20] Production.ERROR: pbx CDR StartTime 2025-03-31 17:04:05 - End Time 2025-03-31 20:04:05 [2025-03-31 20:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 20:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805823', 'tblTempUsageDetail_20' ) start [2025-03-31 20:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805823', 'tblTempUsageDetail_20' ) end [2025-03-31 20:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805823', 'tblTempVendorCDR_20' ) start [2025-03-31 20:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805823', 'tblTempVendorCDR_20' ) end [2025-03-31 20:04:21] Production.INFO: ProcessCDR(1,14805823,1,1,2) [2025-03-31 20:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805823', 'tblTempUsageDetail_20' ) start [2025-03-31 20:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805823', 'tblTempUsageDetail_20' ) end [2025-03-31 20:04:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 20:04:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 20:04:26] Production.INFO: ==25240== Releasing lock... [2025-03-31 20:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 20:04:26] Production.INFO: 60.5 MB #Memory Used# [2025-03-31 20:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 17:05:05 [end_date_ymd] => 2025-03-31 20:05:05 [RateCDR] => 1 ) [2025-03-31 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-31 17:05:05' and `end` < '2025-03-31 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-31 20:05:18] Production.INFO: count ==4346 [2025-03-31 20:05:20] Production.ERROR: pbx CDR StartTime 2025-03-31 17:05:05 - End Time 2025-03-31 20:05:05 [2025-03-31 20:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 20:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805828', 'tblTempUsageDetail_20' ) start [2025-03-31 20:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805828', 'tblTempUsageDetail_20' ) end [2025-03-31 20:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805828', 'tblTempVendorCDR_20' ) start [2025-03-31 20:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805828', 'tblTempVendorCDR_20' ) end [2025-03-31 20:05:20] Production.INFO: ProcessCDR(1,14805828,1,1,2) [2025-03-31 20:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805828', 'tblTempUsageDetail_20' ) start [2025-03-31 20:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805828', 'tblTempUsageDetail_20' ) end [2025-03-31 20:05:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 20:05:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 20:05:26] Production.INFO: ==25315== Releasing lock... [2025-03-31 20:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 20:05:26] Production.INFO: 60.5 MB #Memory Used# [2025-03-31 20:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 17:06:06 [end_date_ymd] => 2025-03-31 20:06:06 [RateCDR] => 1 ) [2025-03-31 20: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-31 17:06:06' and `end` < '2025-03-31 20: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-31 20:06:19] Production.INFO: count ==4347 [2025-03-31 20:06:21] Production.ERROR: pbx CDR StartTime 2025-03-31 17:06:06 - End Time 2025-03-31 20:06:06 [2025-03-31 20:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 20:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805833', 'tblTempUsageDetail_20' ) start [2025-03-31 20:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805833', 'tblTempUsageDetail_20' ) end [2025-03-31 20:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805833', 'tblTempVendorCDR_20' ) start [2025-03-31 20:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805833', 'tblTempVendorCDR_20' ) end [2025-03-31 20:06:21] Production.INFO: ProcessCDR(1,14805833,1,1,2) [2025-03-31 20:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805833', 'tblTempUsageDetail_20' ) start [2025-03-31 20:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805833', 'tblTempUsageDetail_20' ) end [2025-03-31 20:06:25] Production.ERROR: pbx prc_insertCDR start [2025-03-31 20:06:25] Production.ERROR: pbx prc_insertCDR end [2025-03-31 20:06:25] Production.INFO: ==25389== Releasing lock... [2025-03-31 20:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 20:06:25] Production.INFO: 60.5 MB #Memory Used# [2025-03-31 20:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 17:07:05 [end_date_ymd] => 2025-03-31 20:07:05 [RateCDR] => 1 ) [2025-03-31 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-31 17:07:05' and `end` < '2025-03-31 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-31 20:07:18] Production.INFO: count ==4340 [2025-03-31 20:07:20] Production.ERROR: pbx CDR StartTime 2025-03-31 17:07:05 - End Time 2025-03-31 20:07:05 [2025-03-31 20:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 20:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805838', 'tblTempUsageDetail_20' ) start [2025-03-31 20:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805838', 'tblTempUsageDetail_20' ) end [2025-03-31 20:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805838', 'tblTempVendorCDR_20' ) start [2025-03-31 20:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805838', 'tblTempVendorCDR_20' ) end [2025-03-31 20:07:20] Production.INFO: ProcessCDR(1,14805838,1,1,2) [2025-03-31 20:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805838', 'tblTempUsageDetail_20' ) start [2025-03-31 20:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805838', 'tblTempUsageDetail_20' ) end [2025-03-31 20:07:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 20:07:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 20:07:24] Production.INFO: ==25472== Releasing lock... [2025-03-31 20:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 20:07:24] Production.INFO: 60.5 MB #Memory Used# [2025-03-31 20:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 17:08:06 [end_date_ymd] => 2025-03-31 20:08:06 [RateCDR] => 1 ) [2025-03-31 20: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-31 17:08:06' and `end` < '2025-03-31 20: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-31 20:08:19] Production.INFO: count ==4328 [2025-03-31 20:08:21] Production.ERROR: pbx CDR StartTime 2025-03-31 17:08:06 - End Time 2025-03-31 20:08:06 [2025-03-31 20:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 20:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805843', 'tblTempUsageDetail_20' ) start [2025-03-31 20:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805843', 'tblTempUsageDetail_20' ) end [2025-03-31 20:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805843', 'tblTempVendorCDR_20' ) start [2025-03-31 20:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805843', 'tblTempVendorCDR_20' ) end [2025-03-31 20:08:21] Production.INFO: ProcessCDR(1,14805843,1,1,2) [2025-03-31 20:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805843', 'tblTempUsageDetail_20' ) start [2025-03-31 20:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805843', 'tblTempUsageDetail_20' ) end [2025-03-31 20:08:25] Production.ERROR: pbx prc_insertCDR start [2025-03-31 20:08:25] Production.ERROR: pbx prc_insertCDR end [2025-03-31 20:08:25] Production.INFO: ==25547== Releasing lock... [2025-03-31 20:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 20:08:25] Production.INFO: 60.25 MB #Memory Used# [2025-03-31 20:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 17:09:05 [end_date_ymd] => 2025-03-31 20:09:05 [RateCDR] => 1 ) [2025-03-31 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-31 17:09:05' and `end` < '2025-03-31 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-31 20:09:18] Production.INFO: count ==4326 [2025-03-31 20:09:20] Production.ERROR: pbx CDR StartTime 2025-03-31 17:09:05 - End Time 2025-03-31 20:09:05 [2025-03-31 20:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 20:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805848', 'tblTempUsageDetail_20' ) start [2025-03-31 20:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805848', 'tblTempUsageDetail_20' ) end [2025-03-31 20:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805848', 'tblTempVendorCDR_20' ) start [2025-03-31 20:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805848', 'tblTempVendorCDR_20' ) end [2025-03-31 20:09:20] Production.INFO: ProcessCDR(1,14805848,1,1,2) [2025-03-31 20:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805848', 'tblTempUsageDetail_20' ) start [2025-03-31 20:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805848', 'tblTempUsageDetail_20' ) end [2025-03-31 20:09:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 20:09:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 20:09:24] Production.INFO: ==25626== Releasing lock... [2025-03-31 20:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 20:09:24] Production.INFO: 60.25 MB #Memory Used# [2025-03-31 20:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 17:10:06 [end_date_ymd] => 2025-03-31 20:10:06 [RateCDR] => 1 ) [2025-03-31 20:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 17:10:06' and `end` < '2025-03-31 20:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 20:10:19] Production.INFO: count ==4337 [2025-03-31 20:10:21] Production.ERROR: pbx CDR StartTime 2025-03-31 17:10:06 - End Time 2025-03-31 20:10:06 [2025-03-31 20:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 20:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805854', 'tblTempUsageDetail_20' ) start [2025-03-31 20:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805854', 'tblTempUsageDetail_20' ) end [2025-03-31 20:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805854', 'tblTempVendorCDR_20' ) start [2025-03-31 20:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805854', 'tblTempVendorCDR_20' ) end [2025-03-31 20:10:21] Production.INFO: ProcessCDR(1,14805854,1,1,2) [2025-03-31 20:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805854', 'tblTempUsageDetail_20' ) start [2025-03-31 20:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805854', 'tblTempUsageDetail_20' ) end [2025-03-31 20:10:25] Production.ERROR: pbx prc_insertCDR start [2025-03-31 20:10:25] Production.ERROR: pbx prc_insertCDR end [2025-03-31 20:10:25] Production.INFO: ==25708== Releasing lock... [2025-03-31 20:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 20:10:25] Production.INFO: 60.25 MB #Memory Used# [2025-03-31 20:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 17:11:05 [end_date_ymd] => 2025-03-31 20:11:05 [RateCDR] => 1 ) [2025-03-31 20:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 17:11:05' and `end` < '2025-03-31 20:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 20:11:19] Production.INFO: count ==4266 [2025-03-31 20:11:21] Production.ERROR: pbx CDR StartTime 2025-03-31 17:11:05 - End Time 2025-03-31 20:11:05 [2025-03-31 20:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 20:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805859', 'tblTempUsageDetail_20' ) start [2025-03-31 20:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805859', 'tblTempUsageDetail_20' ) end [2025-03-31 20:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805859', 'tblTempVendorCDR_20' ) start [2025-03-31 20:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805859', 'tblTempVendorCDR_20' ) end [2025-03-31 20:11:21] Production.INFO: ProcessCDR(1,14805859,1,1,2) [2025-03-31 20:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805859', 'tblTempUsageDetail_20' ) start [2025-03-31 20:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805859', 'tblTempUsageDetail_20' ) end [2025-03-31 20:11:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 20:11:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 20:11:24] Production.INFO: ==25786== Releasing lock... [2025-03-31 20:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 20:11:24] Production.INFO: 59.75 MB #Memory Used# [2025-03-31 20:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 17:12:06 [end_date_ymd] => 2025-03-31 20:12:06 [RateCDR] => 1 ) [2025-03-31 20: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-31 17:12:06' and `end` < '2025-03-31 20: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-31 20:12:19] Production.INFO: count ==4267 [2025-03-31 20:12:21] Production.ERROR: pbx CDR StartTime 2025-03-31 17:12:06 - End Time 2025-03-31 20:12:06 [2025-03-31 20:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 20:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805864', 'tblTempUsageDetail_20' ) start [2025-03-31 20:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805864', 'tblTempUsageDetail_20' ) end [2025-03-31 20:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805864', 'tblTempVendorCDR_20' ) start [2025-03-31 20:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805864', 'tblTempVendorCDR_20' ) end [2025-03-31 20:12:21] Production.INFO: ProcessCDR(1,14805864,1,1,2) [2025-03-31 20:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805864', 'tblTempUsageDetail_20' ) start [2025-03-31 20:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805864', 'tblTempUsageDetail_20' ) end [2025-03-31 20:12:25] Production.ERROR: pbx prc_insertCDR start [2025-03-31 20:12:25] Production.ERROR: pbx prc_insertCDR end [2025-03-31 20:12:25] Production.INFO: ==25902== Releasing lock... [2025-03-31 20:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 20:12:25] Production.INFO: 59.75 MB #Memory Used# [2025-03-31 20:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 17:13:05 [end_date_ymd] => 2025-03-31 20:13:05 [RateCDR] => 1 ) [2025-03-31 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-31 17:13:05' and `end` < '2025-03-31 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-31 20:13:18] Production.INFO: count ==4264 [2025-03-31 20:13:20] Production.ERROR: pbx CDR StartTime 2025-03-31 17:13:05 - End Time 2025-03-31 20:13:05 [2025-03-31 20:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 20:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805869', 'tblTempUsageDetail_20' ) start [2025-03-31 20:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805869', 'tblTempUsageDetail_20' ) end [2025-03-31 20:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805869', 'tblTempVendorCDR_20' ) start [2025-03-31 20:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805869', 'tblTempVendorCDR_20' ) end [2025-03-31 20:13:21] Production.INFO: ProcessCDR(1,14805869,1,1,2) [2025-03-31 20:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805869', 'tblTempUsageDetail_20' ) start [2025-03-31 20:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805869', 'tblTempUsageDetail_20' ) end [2025-03-31 20:13:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 20:13:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 20:13:24] Production.INFO: ==25980== Releasing lock... [2025-03-31 20:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 20:13:24] Production.INFO: 59.75 MB #Memory Used# [2025-03-31 20:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 17:14:05 [end_date_ymd] => 2025-03-31 20:14:05 [RateCDR] => 1 ) [2025-03-31 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-31 17:14:05' and `end` < '2025-03-31 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-31 20:14:18] Production.INFO: count ==4262 [2025-03-31 20:14:20] Production.ERROR: pbx CDR StartTime 2025-03-31 17:14:05 - End Time 2025-03-31 20:14:05 [2025-03-31 20:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 20:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805874', 'tblTempUsageDetail_20' ) start [2025-03-31 20:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805874', 'tblTempUsageDetail_20' ) end [2025-03-31 20:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805874', 'tblTempVendorCDR_20' ) start [2025-03-31 20:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805874', 'tblTempVendorCDR_20' ) end [2025-03-31 20:14:20] Production.INFO: ProcessCDR(1,14805874,1,1,2) [2025-03-31 20:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805874', 'tblTempUsageDetail_20' ) start [2025-03-31 20:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805874', 'tblTempUsageDetail_20' ) end [2025-03-31 20:14:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 20:14:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 20:14:24] Production.INFO: ==26060== Releasing lock... [2025-03-31 20:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 20:14:24] Production.INFO: 59.75 MB #Memory Used# [2025-03-31 20:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 17:15:05 [end_date_ymd] => 2025-03-31 20:15:05 [RateCDR] => 1 ) [2025-03-31 20:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 17:15:05' and `end` < '2025-03-31 20:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 20:15:18] Production.INFO: count ==4244 [2025-03-31 20:15:20] Production.ERROR: pbx CDR StartTime 2025-03-31 17:15:05 - End Time 2025-03-31 20:15:05 [2025-03-31 20:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 20:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805879', 'tblTempUsageDetail_20' ) start [2025-03-31 20:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805879', 'tblTempUsageDetail_20' ) end [2025-03-31 20:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805879', 'tblTempVendorCDR_20' ) start [2025-03-31 20:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805879', 'tblTempVendorCDR_20' ) end [2025-03-31 20:15:20] Production.INFO: ProcessCDR(1,14805879,1,1,2) [2025-03-31 20:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805879', 'tblTempUsageDetail_20' ) start [2025-03-31 20:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805879', 'tblTempUsageDetail_20' ) end [2025-03-31 20:15:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 20:15:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 20:15:23] Production.INFO: ==26138== Releasing lock... [2025-03-31 20:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 20:15:23] Production.INFO: 59.75 MB #Memory Used# [2025-03-31 20:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 17:16:06 [end_date_ymd] => 2025-03-31 20:16:06 [RateCDR] => 1 ) [2025-03-31 20: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-31 17:16:06' and `end` < '2025-03-31 20: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-31 20:16:19] Production.INFO: count ==4250 [2025-03-31 20:16:21] Production.ERROR: pbx CDR StartTime 2025-03-31 17:16:06 - End Time 2025-03-31 20:16:06 [2025-03-31 20:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 20:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805884', 'tblTempUsageDetail_20' ) start [2025-03-31 20:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805884', 'tblTempUsageDetail_20' ) end [2025-03-31 20:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805884', 'tblTempVendorCDR_20' ) start [2025-03-31 20:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805884', 'tblTempVendorCDR_20' ) end [2025-03-31 20:16:21] Production.INFO: ProcessCDR(1,14805884,1,1,2) [2025-03-31 20:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805884', 'tblTempUsageDetail_20' ) start [2025-03-31 20:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805884', 'tblTempUsageDetail_20' ) end [2025-03-31 20:16:25] Production.ERROR: pbx prc_insertCDR start [2025-03-31 20:16:25] Production.ERROR: pbx prc_insertCDR end [2025-03-31 20:16:25] Production.INFO: ==26216== Releasing lock... [2025-03-31 20:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 20:16:25] Production.INFO: 59.75 MB #Memory Used# [2025-03-31 20:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 17:17:05 [end_date_ymd] => 2025-03-31 20:17:05 [RateCDR] => 1 ) [2025-03-31 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-31 17:17:05' and `end` < '2025-03-31 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-31 20:17:18] Production.INFO: count ==4262 [2025-03-31 20:17:20] Production.ERROR: pbx CDR StartTime 2025-03-31 17:17:05 - End Time 2025-03-31 20:17:05 [2025-03-31 20:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 20:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805889', 'tblTempUsageDetail_20' ) start [2025-03-31 20:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805889', 'tblTempUsageDetail_20' ) end [2025-03-31 20:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805889', 'tblTempVendorCDR_20' ) start [2025-03-31 20:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805889', 'tblTempVendorCDR_20' ) end [2025-03-31 20:17:20] Production.INFO: ProcessCDR(1,14805889,1,1,2) [2025-03-31 20:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805889', 'tblTempUsageDetail_20' ) start [2025-03-31 20:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805889', 'tblTempUsageDetail_20' ) end [2025-03-31 20:17:25] Production.ERROR: pbx prc_insertCDR start [2025-03-31 20:17:25] Production.ERROR: pbx prc_insertCDR end [2025-03-31 20:17:25] Production.INFO: ==26295== Releasing lock... [2025-03-31 20:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 20:17:25] Production.INFO: 59.75 MB #Memory Used# [2025-03-31 20:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 17:18:05 [end_date_ymd] => 2025-03-31 20:18:05 [RateCDR] => 1 ) [2025-03-31 20:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 17:18:05' and `end` < '2025-03-31 20:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 20:18:18] Production.INFO: count ==4275 [2025-03-31 20:18:20] Production.ERROR: pbx CDR StartTime 2025-03-31 17:18:05 - End Time 2025-03-31 20:18:05 [2025-03-31 20:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 20:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805894', 'tblTempUsageDetail_20' ) start [2025-03-31 20:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805894', 'tblTempUsageDetail_20' ) end [2025-03-31 20:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805894', 'tblTempVendorCDR_20' ) start [2025-03-31 20:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805894', 'tblTempVendorCDR_20' ) end [2025-03-31 20:18:20] Production.INFO: ProcessCDR(1,14805894,1,1,2) [2025-03-31 20:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805894', 'tblTempUsageDetail_20' ) start [2025-03-31 20:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805894', 'tblTempUsageDetail_20' ) end [2025-03-31 20:18:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 20:18:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 20:18:24] Production.INFO: ==26372== Releasing lock... [2025-03-31 20:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 20:18:24] Production.INFO: 60 MB #Memory Used# [2025-03-31 20:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 17:19:05 [end_date_ymd] => 2025-03-31 20:19:05 [RateCDR] => 1 ) [2025-03-31 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-31 17:19:05' and `end` < '2025-03-31 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-31 20:19:18] Production.INFO: count ==4274 [2025-03-31 20:19:20] Production.ERROR: pbx CDR StartTime 2025-03-31 17:19:05 - End Time 2025-03-31 20:19:05 [2025-03-31 20:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 20:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805899', 'tblTempUsageDetail_20' ) start [2025-03-31 20:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805899', 'tblTempUsageDetail_20' ) end [2025-03-31 20:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805899', 'tblTempVendorCDR_20' ) start [2025-03-31 20:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805899', 'tblTempVendorCDR_20' ) end [2025-03-31 20:19:20] Production.INFO: ProcessCDR(1,14805899,1,1,2) [2025-03-31 20:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805899', 'tblTempUsageDetail_20' ) start [2025-03-31 20:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805899', 'tblTempUsageDetail_20' ) end [2025-03-31 20:19:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 20:19:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 20:19:24] Production.INFO: ==26449== Releasing lock... [2025-03-31 20:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 20:19:24] Production.INFO: 60 MB #Memory Used# [2025-03-31 20:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 17:20:06 [end_date_ymd] => 2025-03-31 20:20:06 [RateCDR] => 1 ) [2025-03-31 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-31 17:20:06' and `end` < '2025-03-31 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-31 20:20:19] Production.INFO: count ==4274 [2025-03-31 20:20:21] Production.ERROR: pbx CDR StartTime 2025-03-31 17:20:06 - End Time 2025-03-31 20:20:06 [2025-03-31 20:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 20:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805904', 'tblTempUsageDetail_20' ) start [2025-03-31 20:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805904', 'tblTempUsageDetail_20' ) end [2025-03-31 20:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805904', 'tblTempVendorCDR_20' ) start [2025-03-31 20:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805904', 'tblTempVendorCDR_20' ) end [2025-03-31 20:20:22] Production.INFO: ProcessCDR(1,14805904,1,1,2) [2025-03-31 20:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805904', 'tblTempUsageDetail_20' ) start [2025-03-31 20:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805904', 'tblTempUsageDetail_20' ) end [2025-03-31 20:20:25] Production.ERROR: pbx prc_insertCDR start [2025-03-31 20:20:25] Production.ERROR: pbx prc_insertCDR end [2025-03-31 20:20:25] Production.INFO: ==26535== Releasing lock... [2025-03-31 20:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 20:20:25] Production.INFO: 60 MB #Memory Used# [2025-03-31 20:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 17:21:05 [end_date_ymd] => 2025-03-31 20:21:05 [RateCDR] => 1 ) [2025-03-31 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-31 17:21:05' and `end` < '2025-03-31 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-31 20:21:18] Production.INFO: count ==4188 [2025-03-31 20:21:20] Production.ERROR: pbx CDR StartTime 2025-03-31 17:21:05 - End Time 2025-03-31 20:21:05 [2025-03-31 20:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 20:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805910', 'tblTempUsageDetail_20' ) start [2025-03-31 20:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805910', 'tblTempUsageDetail_20' ) end [2025-03-31 20:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805910', 'tblTempVendorCDR_20' ) start [2025-03-31 20:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805910', 'tblTempVendorCDR_20' ) end [2025-03-31 20:21:20] Production.INFO: ProcessCDR(1,14805910,1,1,2) [2025-03-31 20:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805910', 'tblTempUsageDetail_20' ) start [2025-03-31 20:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805910', 'tblTempUsageDetail_20' ) end [2025-03-31 20:21:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 20:21:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 20:21:24] Production.INFO: ==26619== Releasing lock... [2025-03-31 20:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 20:21:24] Production.INFO: 59.25 MB #Memory Used# [2025-03-31 20:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 17:22:05 [end_date_ymd] => 2025-03-31 20:22:05 [RateCDR] => 1 ) [2025-03-31 20:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 17:22:05' and `end` < '2025-03-31 20:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 20:22:19] Production.INFO: count ==4158 [2025-03-31 20:22:20] Production.ERROR: pbx CDR StartTime 2025-03-31 17:22:05 - End Time 2025-03-31 20:22:05 [2025-03-31 20:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 20:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805915', 'tblTempUsageDetail_20' ) start [2025-03-31 20:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805915', 'tblTempUsageDetail_20' ) end [2025-03-31 20:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805915', 'tblTempVendorCDR_20' ) start [2025-03-31 20:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805915', 'tblTempVendorCDR_20' ) end [2025-03-31 20:22:20] Production.INFO: ProcessCDR(1,14805915,1,1,2) [2025-03-31 20:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805915', 'tblTempUsageDetail_20' ) start [2025-03-31 20:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805915', 'tblTempUsageDetail_20' ) end [2025-03-31 20:22:26] Production.ERROR: pbx prc_insertCDR start [2025-03-31 20:22:26] Production.ERROR: pbx prc_insertCDR end [2025-03-31 20:22:26] Production.INFO: ==26704== Releasing lock... [2025-03-31 20:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 20:22:26] Production.INFO: 59 MB #Memory Used# [2025-03-31 20:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 17:23:05 [end_date_ymd] => 2025-03-31 20:23:05 [RateCDR] => 1 ) [2025-03-31 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-31 17:23:05' and `end` < '2025-03-31 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-31 20:23:18] Production.INFO: count ==4138 [2025-03-31 20:23:20] Production.ERROR: pbx CDR StartTime 2025-03-31 17:23:05 - End Time 2025-03-31 20:23:05 [2025-03-31 20:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 20:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805920', 'tblTempUsageDetail_20' ) start [2025-03-31 20:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805920', 'tblTempUsageDetail_20' ) end [2025-03-31 20:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805920', 'tblTempVendorCDR_20' ) start [2025-03-31 20:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805920', 'tblTempVendorCDR_20' ) end [2025-03-31 20:23:20] Production.INFO: ProcessCDR(1,14805920,1,1,2) [2025-03-31 20:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805920', 'tblTempUsageDetail_20' ) start [2025-03-31 20:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805920', 'tblTempUsageDetail_20' ) end [2025-03-31 20:23:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 20:23:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 20:23:24] Production.INFO: ==26780== Releasing lock... [2025-03-31 20:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 20:23:24] Production.INFO: 58.75 MB #Memory Used# [2025-03-31 20:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 17:24:05 [end_date_ymd] => 2025-03-31 20:24:05 [RateCDR] => 1 ) [2025-03-31 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-31 17:24:05' and `end` < '2025-03-31 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-31 20:24:19] Production.INFO: count ==4127 [2025-03-31 20:24:20] Production.ERROR: pbx CDR StartTime 2025-03-31 17:24:05 - End Time 2025-03-31 20:24:05 [2025-03-31 20:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 20:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805925', 'tblTempUsageDetail_20' ) start [2025-03-31 20:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805925', 'tblTempUsageDetail_20' ) end [2025-03-31 20:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805925', 'tblTempVendorCDR_20' ) start [2025-03-31 20:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805925', 'tblTempVendorCDR_20' ) end [2025-03-31 20:24:21] Production.INFO: ProcessCDR(1,14805925,1,1,2) [2025-03-31 20:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805925', 'tblTempUsageDetail_20' ) start [2025-03-31 20:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805925', 'tblTempUsageDetail_20' ) end [2025-03-31 20:24:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 20:24:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 20:24:24] Production.INFO: ==26858== Releasing lock... [2025-03-31 20:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 20:24:24] Production.INFO: 58.75 MB #Memory Used# [2025-03-31 20:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 17:25:04 [end_date_ymd] => 2025-03-31 20:25:04 [RateCDR] => 1 ) [2025-03-31 20: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-31 17:25:04' and `end` < '2025-03-31 20: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-31 20:25:17] Production.INFO: count ==4113 [2025-03-31 20:25:19] Production.ERROR: pbx CDR StartTime 2025-03-31 17:25:04 - End Time 2025-03-31 20:25:04 [2025-03-31 20:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805930', 'tblTempUsageDetail_20' ) start [2025-03-31 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805930', 'tblTempUsageDetail_20' ) end [2025-03-31 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805930', 'tblTempVendorCDR_20' ) start [2025-03-31 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805930', 'tblTempVendorCDR_20' ) end [2025-03-31 20:25:19] Production.INFO: ProcessCDR(1,14805930,1,1,2) [2025-03-31 20:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805930', 'tblTempUsageDetail_20' ) start [2025-03-31 20:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805930', 'tblTempUsageDetail_20' ) end [2025-03-31 20:25:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 20:25:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 20:25:23] Production.INFO: ==26932== Releasing lock... [2025-03-31 20:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 20:25:23] Production.INFO: 58.75 MB #Memory Used# [2025-03-31 20:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 17:26:05 [end_date_ymd] => 2025-03-31 20:26:05 [RateCDR] => 1 ) [2025-03-31 20:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 17:26:05' and `end` < '2025-03-31 20:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 20:26:18] Production.INFO: count ==4103 [2025-03-31 20:26:20] Production.ERROR: pbx CDR StartTime 2025-03-31 17:26:05 - End Time 2025-03-31 20:26:05 [2025-03-31 20:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 20:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805935', 'tblTempUsageDetail_20' ) start [2025-03-31 20:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805935', 'tblTempUsageDetail_20' ) end [2025-03-31 20:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805935', 'tblTempVendorCDR_20' ) start [2025-03-31 20:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805935', 'tblTempVendorCDR_20' ) end [2025-03-31 20:26:20] Production.INFO: ProcessCDR(1,14805935,1,1,2) [2025-03-31 20:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805935', 'tblTempUsageDetail_20' ) start [2025-03-31 20:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805935', 'tblTempUsageDetail_20' ) end [2025-03-31 20:26:25] Production.ERROR: pbx prc_insertCDR start [2025-03-31 20:26:25] Production.ERROR: pbx prc_insertCDR end [2025-03-31 20:26:25] Production.INFO: ==27009== Releasing lock... [2025-03-31 20:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 20:26:25] Production.INFO: 58.5 MB #Memory Used# [2025-03-31 20:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 17:27:06 [end_date_ymd] => 2025-03-31 20:27:06 [RateCDR] => 1 ) [2025-03-31 20: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-31 17:27:06' and `end` < '2025-03-31 20: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-31 20:27:19] Production.INFO: count ==4105 [2025-03-31 20:27:21] Production.ERROR: pbx CDR StartTime 2025-03-31 17:27:06 - End Time 2025-03-31 20:27:06 [2025-03-31 20:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 20:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805940', 'tblTempUsageDetail_20' ) start [2025-03-31 20:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805940', 'tblTempUsageDetail_20' ) end [2025-03-31 20:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805940', 'tblTempVendorCDR_20' ) start [2025-03-31 20:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805940', 'tblTempVendorCDR_20' ) end [2025-03-31 20:27:21] Production.INFO: ProcessCDR(1,14805940,1,1,2) [2025-03-31 20:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805940', 'tblTempUsageDetail_20' ) start [2025-03-31 20:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805940', 'tblTempUsageDetail_20' ) end [2025-03-31 20:27:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 20:27:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 20:27:24] Production.INFO: ==27129== Releasing lock... [2025-03-31 20:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 20:27:24] Production.INFO: 58.5 MB #Memory Used# [2025-03-31 20:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 17:28:05 [end_date_ymd] => 2025-03-31 20:28:05 [RateCDR] => 1 ) [2025-03-31 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-31 17:28:05' and `end` < '2025-03-31 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-31 20:28:18] Production.INFO: count ==4099 [2025-03-31 20:28:20] Production.ERROR: pbx CDR StartTime 2025-03-31 17:28:05 - End Time 2025-03-31 20:28:05 [2025-03-31 20:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 20:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805945', 'tblTempUsageDetail_20' ) start [2025-03-31 20:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805945', 'tblTempUsageDetail_20' ) end [2025-03-31 20:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805945', 'tblTempVendorCDR_20' ) start [2025-03-31 20:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805945', 'tblTempVendorCDR_20' ) end [2025-03-31 20:28:20] Production.INFO: ProcessCDR(1,14805945,1,1,2) [2025-03-31 20:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805945', 'tblTempUsageDetail_20' ) start [2025-03-31 20:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805945', 'tblTempUsageDetail_20' ) end [2025-03-31 20:28:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 20:28:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 20:28:24] Production.INFO: ==27205== Releasing lock... [2025-03-31 20:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 20:28:24] Production.INFO: 58.75 MB #Memory Used# [2025-03-31 20:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 17:29:06 [end_date_ymd] => 2025-03-31 20:29:06 [RateCDR] => 1 ) [2025-03-31 20: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-31 17:29:06' and `end` < '2025-03-31 20: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-31 20:29:19] Production.INFO: count ==4098 [2025-03-31 20:29:20] Production.ERROR: pbx CDR StartTime 2025-03-31 17:29:06 - End Time 2025-03-31 20:29:06 [2025-03-31 20:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 20:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805950', 'tblTempUsageDetail_20' ) start [2025-03-31 20:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805950', 'tblTempUsageDetail_20' ) end [2025-03-31 20:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805950', 'tblTempVendorCDR_20' ) start [2025-03-31 20:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805950', 'tblTempVendorCDR_20' ) end [2025-03-31 20:29:21] Production.INFO: ProcessCDR(1,14805950,1,1,2) [2025-03-31 20:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805950', 'tblTempUsageDetail_20' ) start [2025-03-31 20:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805950', 'tblTempUsageDetail_20' ) end [2025-03-31 20:29:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 20:29:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 20:29:24] Production.INFO: ==27285== Releasing lock... [2025-03-31 20:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 20:29:24] Production.INFO: 58.5 MB #Memory Used# [2025-03-31 20:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 17:30:06 [end_date_ymd] => 2025-03-31 20:30:06 [RateCDR] => 1 ) [2025-03-31 20:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 17:30:06' and `end` < '2025-03-31 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-31 20:30:19] Production.INFO: count ==4096 [2025-03-31 20:30:21] Production.ERROR: pbx CDR StartTime 2025-03-31 17:30:06 - End Time 2025-03-31 20:30:06 [2025-03-31 20:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 20:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805956', 'tblTempUsageDetail_20' ) start [2025-03-31 20:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805956', 'tblTempUsageDetail_20' ) end [2025-03-31 20:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805956', 'tblTempVendorCDR_20' ) start [2025-03-31 20:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805956', 'tblTempVendorCDR_20' ) end [2025-03-31 20:30:21] Production.INFO: ProcessCDR(1,14805956,1,1,2) [2025-03-31 20:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805956', 'tblTempUsageDetail_20' ) start [2025-03-31 20:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805956', 'tblTempUsageDetail_20' ) end [2025-03-31 20:30:25] Production.ERROR: pbx prc_insertCDR start [2025-03-31 20:30:25] Production.ERROR: pbx prc_insertCDR end [2025-03-31 20:30:25] Production.INFO: ==27368== Releasing lock... [2025-03-31 20:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 20:30:25] Production.INFO: 58.5 MB #Memory Used# [2025-03-31 20:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 17:31:06 [end_date_ymd] => 2025-03-31 20:31:06 [RateCDR] => 1 ) [2025-03-31 20: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-31 17:31:06' and `end` < '2025-03-31 20: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-31 20:31:19] Production.INFO: count ==4059 [2025-03-31 20:31:21] Production.ERROR: pbx CDR StartTime 2025-03-31 17:31:06 - End Time 2025-03-31 20:31:06 [2025-03-31 20:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 20:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805961', 'tblTempUsageDetail_20' ) start [2025-03-31 20:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805961', 'tblTempUsageDetail_20' ) end [2025-03-31 20:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805961', 'tblTempVendorCDR_20' ) start [2025-03-31 20:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805961', 'tblTempVendorCDR_20' ) end [2025-03-31 20:31:21] Production.INFO: ProcessCDR(1,14805961,1,1,2) [2025-03-31 20:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805961', 'tblTempUsageDetail_20' ) start [2025-03-31 20:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805961', 'tblTempUsageDetail_20' ) end [2025-03-31 20:31:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 20:31:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 20:31:24] Production.INFO: ==27445== Releasing lock... [2025-03-31 20:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 20:31:24] Production.INFO: 58.5 MB #Memory Used# [2025-03-31 20:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 17:32:06 [end_date_ymd] => 2025-03-31 20:32:06 [RateCDR] => 1 ) [2025-03-31 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-31 17:32:06' and `end` < '2025-03-31 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-31 20:32:19] Production.INFO: count ==4045 [2025-03-31 20:32:21] Production.ERROR: pbx CDR StartTime 2025-03-31 17:32:06 - End Time 2025-03-31 20:32:06 [2025-03-31 20:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 20:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805966', 'tblTempUsageDetail_20' ) start [2025-03-31 20:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805966', 'tblTempUsageDetail_20' ) end [2025-03-31 20:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805966', 'tblTempVendorCDR_20' ) start [2025-03-31 20:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805966', 'tblTempVendorCDR_20' ) end [2025-03-31 20:32:21] Production.INFO: ProcessCDR(1,14805966,1,1,2) [2025-03-31 20:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805966', 'tblTempUsageDetail_20' ) start [2025-03-31 20:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805966', 'tblTempUsageDetail_20' ) end [2025-03-31 20:32:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 20:32:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 20:32:24] Production.INFO: ==27528== Releasing lock... [2025-03-31 20:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 20:32:24] Production.INFO: 58 MB #Memory Used# [2025-03-31 20:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 17:33:05 [end_date_ymd] => 2025-03-31 20:33:05 [RateCDR] => 1 ) [2025-03-31 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-31 17:33:05' and `end` < '2025-03-31 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-31 20:33:19] Production.INFO: count ==4044 [2025-03-31 20:33:20] Production.ERROR: pbx CDR StartTime 2025-03-31 17:33:05 - End Time 2025-03-31 20:33:05 [2025-03-31 20:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 20:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805971', 'tblTempUsageDetail_20' ) start [2025-03-31 20:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805971', 'tblTempUsageDetail_20' ) end [2025-03-31 20:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805971', 'tblTempVendorCDR_20' ) start [2025-03-31 20:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805971', 'tblTempVendorCDR_20' ) end [2025-03-31 20:33:20] Production.INFO: ProcessCDR(1,14805971,1,1,2) [2025-03-31 20:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805971', 'tblTempUsageDetail_20' ) start [2025-03-31 20:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805971', 'tblTempUsageDetail_20' ) end [2025-03-31 20:33:25] Production.ERROR: pbx prc_insertCDR start [2025-03-31 20:33:25] Production.ERROR: pbx prc_insertCDR end [2025-03-31 20:33:25] Production.INFO: ==27612== Releasing lock... [2025-03-31 20:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 20:33:25] Production.INFO: 58 MB #Memory Used# [2025-03-31 20:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 17:34:05 [end_date_ymd] => 2025-03-31 20:34:05 [RateCDR] => 1 ) [2025-03-31 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-31 17:34:05' and `end` < '2025-03-31 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-31 20:34:18] Production.INFO: count ==4038 [2025-03-31 20:34:20] Production.ERROR: pbx CDR StartTime 2025-03-31 17:34:05 - End Time 2025-03-31 20:34:05 [2025-03-31 20:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 20:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805976', 'tblTempUsageDetail_20' ) start [2025-03-31 20:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805976', 'tblTempUsageDetail_20' ) end [2025-03-31 20:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805976', 'tblTempVendorCDR_20' ) start [2025-03-31 20:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805976', 'tblTempVendorCDR_20' ) end [2025-03-31 20:34:20] Production.INFO: ProcessCDR(1,14805976,1,1,2) [2025-03-31 20:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805976', 'tblTempUsageDetail_20' ) start [2025-03-31 20:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805976', 'tblTempUsageDetail_20' ) end [2025-03-31 20:34:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 20:34:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 20:34:23] Production.INFO: ==27689== Releasing lock... [2025-03-31 20:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 20:34:23] Production.INFO: 58 MB #Memory Used# [2025-03-31 20:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 17:35:06 [end_date_ymd] => 2025-03-31 20:35:06 [RateCDR] => 1 ) [2025-03-31 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-31 17:35:06' and `end` < '2025-03-31 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-31 20:35:19] Production.INFO: count ==4030 [2025-03-31 20:35:20] Production.ERROR: pbx CDR StartTime 2025-03-31 17:35:06 - End Time 2025-03-31 20:35:06 [2025-03-31 20:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 20:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805981', 'tblTempUsageDetail_20' ) start [2025-03-31 20:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805981', 'tblTempUsageDetail_20' ) end [2025-03-31 20:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805981', 'tblTempVendorCDR_20' ) start [2025-03-31 20:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805981', 'tblTempVendorCDR_20' ) end [2025-03-31 20:35:20] Production.INFO: ProcessCDR(1,14805981,1,1,2) [2025-03-31 20:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805981', 'tblTempUsageDetail_20' ) start [2025-03-31 20:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805981', 'tblTempUsageDetail_20' ) end [2025-03-31 20:35:25] Production.ERROR: pbx prc_insertCDR start [2025-03-31 20:35:25] Production.ERROR: pbx prc_insertCDR end [2025-03-31 20:35:26] Production.INFO: ==27772== Releasing lock... [2025-03-31 20:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 20:35:26] Production.INFO: 58 MB #Memory Used# [2025-03-31 20:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 17:36:05 [end_date_ymd] => 2025-03-31 20:36:05 [RateCDR] => 1 ) [2025-03-31 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-31 17:36:05' and `end` < '2025-03-31 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-31 20:36:18] Production.INFO: count ==4030 [2025-03-31 20:36:20] Production.ERROR: pbx CDR StartTime 2025-03-31 17:36:05 - End Time 2025-03-31 20:36:05 [2025-03-31 20:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 20:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805986', 'tblTempUsageDetail_20' ) start [2025-03-31 20:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805986', 'tblTempUsageDetail_20' ) end [2025-03-31 20:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805986', 'tblTempVendorCDR_20' ) start [2025-03-31 20:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805986', 'tblTempVendorCDR_20' ) end [2025-03-31 20:36:20] Production.INFO: ProcessCDR(1,14805986,1,1,2) [2025-03-31 20:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805986', 'tblTempUsageDetail_20' ) start [2025-03-31 20:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805986', 'tblTempUsageDetail_20' ) end [2025-03-31 20:36:25] Production.ERROR: pbx prc_insertCDR start [2025-03-31 20:36:25] Production.ERROR: pbx prc_insertCDR end [2025-03-31 20:36:25] Production.INFO: ==27854== Releasing lock... [2025-03-31 20:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 20:36:25] Production.INFO: 58 MB #Memory Used# [2025-03-31 20:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 17:37:05 [end_date_ymd] => 2025-03-31 20:37:05 [RateCDR] => 1 ) [2025-03-31 20:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 17:37:05' and `end` < '2025-03-31 20:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 20:37:18] Production.INFO: count ==4019 [2025-03-31 20:37:20] Production.ERROR: pbx CDR StartTime 2025-03-31 17:37:05 - End Time 2025-03-31 20:37:05 [2025-03-31 20:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 20:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805991', 'tblTempUsageDetail_20' ) start [2025-03-31 20:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805991', 'tblTempUsageDetail_20' ) end [2025-03-31 20:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805991', 'tblTempVendorCDR_20' ) start [2025-03-31 20:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805991', 'tblTempVendorCDR_20' ) end [2025-03-31 20:37:20] Production.INFO: ProcessCDR(1,14805991,1,1,2) [2025-03-31 20:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805991', 'tblTempUsageDetail_20' ) start [2025-03-31 20:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805991', 'tblTempUsageDetail_20' ) end [2025-03-31 20:37:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 20:37:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 20:37:24] Production.INFO: ==27933== Releasing lock... [2025-03-31 20:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 20:37:24] Production.INFO: 58 MB #Memory Used# [2025-03-31 20:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 17:38:05 [end_date_ymd] => 2025-03-31 20:38:05 [RateCDR] => 1 ) [2025-03-31 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-31 17:38:05' and `end` < '2025-03-31 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-31 20:38:18] Production.INFO: count ==4029 [2025-03-31 20:38:20] Production.ERROR: pbx CDR StartTime 2025-03-31 17:38:05 - End Time 2025-03-31 20:38:05 [2025-03-31 20:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 20:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805996', 'tblTempUsageDetail_20' ) start [2025-03-31 20:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14805996', 'tblTempUsageDetail_20' ) end [2025-03-31 20:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805996', 'tblTempVendorCDR_20' ) start [2025-03-31 20:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14805996', 'tblTempVendorCDR_20' ) end [2025-03-31 20:38:21] Production.INFO: ProcessCDR(1,14805996,1,1,2) [2025-03-31 20:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14805996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14805996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14805996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14805996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805996', 'tblTempUsageDetail_20' ) start [2025-03-31 20:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14805996', 'tblTempUsageDetail_20' ) end [2025-03-31 20:38:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 20:38:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 20:38:24] Production.INFO: ==28029== Releasing lock... [2025-03-31 20:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 20:38:24] Production.INFO: 58 MB #Memory Used# [2025-03-31 20:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 17:39:06 [end_date_ymd] => 2025-03-31 20:39:06 [RateCDR] => 1 ) [2025-03-31 20: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-31 17:39:06' and `end` < '2025-03-31 20: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-31 20:39:19] Production.INFO: count ==4013 [2025-03-31 20:39:21] Production.ERROR: pbx CDR StartTime 2025-03-31 17:39:06 - End Time 2025-03-31 20:39:06 [2025-03-31 20:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 20:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806001', 'tblTempUsageDetail_20' ) start [2025-03-31 20:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806001', 'tblTempUsageDetail_20' ) end [2025-03-31 20:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806001', 'tblTempVendorCDR_20' ) start [2025-03-31 20:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806001', 'tblTempVendorCDR_20' ) end [2025-03-31 20:39:21] Production.INFO: ProcessCDR(1,14806001,1,1,2) [2025-03-31 20:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806001', 'tblTempUsageDetail_20' ) start [2025-03-31 20:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806001', 'tblTempUsageDetail_20' ) end [2025-03-31 20:39:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 20:39:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 20:39:24] Production.INFO: ==28120== Releasing lock... [2025-03-31 20:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 20:39:24] Production.INFO: 58 MB #Memory Used# [2025-03-31 20:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 17:40:05 [end_date_ymd] => 2025-03-31 20:40:05 [RateCDR] => 1 ) [2025-03-31 20:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 17:40:05' and `end` < '2025-03-31 20:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 20:40:18] Production.INFO: count ==4015 [2025-03-31 20:40:20] Production.ERROR: pbx CDR StartTime 2025-03-31 17:40:05 - End Time 2025-03-31 20:40:05 [2025-03-31 20:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806007', 'tblTempUsageDetail_20' ) start [2025-03-31 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806007', 'tblTempUsageDetail_20' ) end [2025-03-31 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806007', 'tblTempVendorCDR_20' ) start [2025-03-31 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806007', 'tblTempVendorCDR_20' ) end [2025-03-31 20:40:20] Production.INFO: ProcessCDR(1,14806007,1,1,2) [2025-03-31 20:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806007', 'tblTempUsageDetail_20' ) start [2025-03-31 20:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806007', 'tblTempUsageDetail_20' ) end [2025-03-31 20:40:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 20:40:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 20:40:24] Production.INFO: ==28220== Releasing lock... [2025-03-31 20:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 20:40:24] Production.INFO: 58 MB #Memory Used# [2025-03-31 20:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 17:41:06 [end_date_ymd] => 2025-03-31 20:41:06 [RateCDR] => 1 ) [2025-03-31 20: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-31 17:41:06' and `end` < '2025-03-31 20: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-31 20:41:19] Production.INFO: count ==3976 [2025-03-31 20:41:21] Production.ERROR: pbx CDR StartTime 2025-03-31 17:41:06 - End Time 2025-03-31 20:41:06 [2025-03-31 20:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 20:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806012', 'tblTempUsageDetail_20' ) start [2025-03-31 20:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806012', 'tblTempUsageDetail_20' ) end [2025-03-31 20:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806012', 'tblTempVendorCDR_20' ) start [2025-03-31 20:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806012', 'tblTempVendorCDR_20' ) end [2025-03-31 20:41:21] Production.INFO: ProcessCDR(1,14806012,1,1,2) [2025-03-31 20:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806012', 'tblTempUsageDetail_20' ) start [2025-03-31 20:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806012', 'tblTempUsageDetail_20' ) end [2025-03-31 20:41:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 20:41:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 20:41:24] Production.INFO: ==28325== Releasing lock... [2025-03-31 20:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 20:41:24] Production.INFO: 57.5 MB #Memory Used# [2025-03-31 20:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 17:42:05 [end_date_ymd] => 2025-03-31 20:42:05 [RateCDR] => 1 ) [2025-03-31 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-31 17:42:05' and `end` < '2025-03-31 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-31 20:42:18] Production.INFO: count ==3982 [2025-03-31 20:42:20] Production.ERROR: pbx CDR StartTime 2025-03-31 17:42:05 - End Time 2025-03-31 20:42:05 [2025-03-31 20:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 20:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806017', 'tblTempUsageDetail_20' ) start [2025-03-31 20:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806017', 'tblTempUsageDetail_20' ) end [2025-03-31 20:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806017', 'tblTempVendorCDR_20' ) start [2025-03-31 20:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806017', 'tblTempVendorCDR_20' ) end [2025-03-31 20:42:20] Production.INFO: ProcessCDR(1,14806017,1,1,2) [2025-03-31 20:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806017', 'tblTempUsageDetail_20' ) start [2025-03-31 20:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806017', 'tblTempUsageDetail_20' ) end [2025-03-31 20:42:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 20:42:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 20:42:24] Production.INFO: ==28461== Releasing lock... [2025-03-31 20:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 20:42:24] Production.INFO: 57.75 MB #Memory Used# [2025-03-31 20:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 17:43:05 [end_date_ymd] => 2025-03-31 20:43:05 [RateCDR] => 1 ) [2025-03-31 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-31 17:43:05' and `end` < '2025-03-31 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-31 20:43:18] Production.INFO: count ==3975 [2025-03-31 20:43:20] Production.ERROR: pbx CDR StartTime 2025-03-31 17:43:05 - End Time 2025-03-31 20:43:05 [2025-03-31 20:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 20:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806022', 'tblTempUsageDetail_20' ) start [2025-03-31 20:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806022', 'tblTempUsageDetail_20' ) end [2025-03-31 20:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806022', 'tblTempVendorCDR_20' ) start [2025-03-31 20:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806022', 'tblTempVendorCDR_20' ) end [2025-03-31 20:43:20] Production.INFO: ProcessCDR(1,14806022,1,1,2) [2025-03-31 20:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806022', 'tblTempUsageDetail_20' ) start [2025-03-31 20:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806022', 'tblTempUsageDetail_20' ) end [2025-03-31 20:43:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 20:43:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 20:43:24] Production.INFO: ==28543== Releasing lock... [2025-03-31 20:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 20:43:24] Production.INFO: 57.75 MB #Memory Used# [2025-03-31 20:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 17:44:04 [end_date_ymd] => 2025-03-31 20:44:04 [RateCDR] => 1 ) [2025-03-31 20: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-31 17:44:04' and `end` < '2025-03-31 20: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-31 20:44:17] Production.INFO: count ==3968 [2025-03-31 20:44:19] Production.ERROR: pbx CDR StartTime 2025-03-31 17:44:04 - End Time 2025-03-31 20:44:04 [2025-03-31 20:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806027', 'tblTempUsageDetail_20' ) start [2025-03-31 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806027', 'tblTempUsageDetail_20' ) end [2025-03-31 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806027', 'tblTempVendorCDR_20' ) start [2025-03-31 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806027', 'tblTempVendorCDR_20' ) end [2025-03-31 20:44:19] Production.INFO: ProcessCDR(1,14806027,1,1,2) [2025-03-31 20:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806027', 'tblTempUsageDetail_20' ) start [2025-03-31 20:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806027', 'tblTempUsageDetail_20' ) end [2025-03-31 20:44:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 20:44:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 20:44:23] Production.INFO: ==28621== Releasing lock... [2025-03-31 20:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 20:44:23] Production.INFO: 57.5 MB #Memory Used# [2025-03-31 20:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 17:45:05 [end_date_ymd] => 2025-03-31 20:45:05 [RateCDR] => 1 ) [2025-03-31 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-31 17:45:05' and `end` < '2025-03-31 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-31 20:45:18] Production.INFO: count ==3955 [2025-03-31 20:45:20] Production.ERROR: pbx CDR StartTime 2025-03-31 17:45:05 - End Time 2025-03-31 20:45:05 [2025-03-31 20:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 20:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806032', 'tblTempUsageDetail_20' ) start [2025-03-31 20:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806032', 'tblTempUsageDetail_20' ) end [2025-03-31 20:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806032', 'tblTempVendorCDR_20' ) start [2025-03-31 20:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806032', 'tblTempVendorCDR_20' ) end [2025-03-31 20:45:20] Production.INFO: ProcessCDR(1,14806032,1,1,2) [2025-03-31 20:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806032', 'tblTempUsageDetail_20' ) start [2025-03-31 20:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806032', 'tblTempUsageDetail_20' ) end [2025-03-31 20:45:25] Production.ERROR: pbx prc_insertCDR start [2025-03-31 20:45:25] Production.ERROR: pbx prc_insertCDR end [2025-03-31 20:45:25] Production.INFO: ==28699== Releasing lock... [2025-03-31 20:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 20:45:25] Production.INFO: 57.5 MB #Memory Used# [2025-03-31 20:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 17:46:06 [end_date_ymd] => 2025-03-31 20:46:06 [RateCDR] => 1 ) [2025-03-31 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-31 17:46:06' and `end` < '2025-03-31 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-31 20:46:19] Production.INFO: count ==3954 [2025-03-31 20:46:20] Production.ERROR: pbx CDR StartTime 2025-03-31 17:46:06 - End Time 2025-03-31 20:46:06 [2025-03-31 20:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 20:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806037', 'tblTempUsageDetail_20' ) start [2025-03-31 20:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806037', 'tblTempUsageDetail_20' ) end [2025-03-31 20:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806037', 'tblTempVendorCDR_20' ) start [2025-03-31 20:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806037', 'tblTempVendorCDR_20' ) end [2025-03-31 20:46:21] Production.INFO: ProcessCDR(1,14806037,1,1,2) [2025-03-31 20:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806037', 'tblTempUsageDetail_20' ) start [2025-03-31 20:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806037', 'tblTempUsageDetail_20' ) end [2025-03-31 20:46:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 20:46:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 20:46:24] Production.INFO: ==28778== Releasing lock... [2025-03-31 20:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 20:46:24] Production.INFO: 57.5 MB #Memory Used# [2025-03-31 20:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 17:47:05 [end_date_ymd] => 2025-03-31 20:47:05 [RateCDR] => 1 ) [2025-03-31 20:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 17:47:05' and `end` < '2025-03-31 20:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 20:47:18] Production.INFO: count ==3953 [2025-03-31 20:47:20] Production.ERROR: pbx CDR StartTime 2025-03-31 17:47:05 - End Time 2025-03-31 20:47:05 [2025-03-31 20:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 20:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806042', 'tblTempUsageDetail_20' ) start [2025-03-31 20:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806042', 'tblTempUsageDetail_20' ) end [2025-03-31 20:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806042', 'tblTempVendorCDR_20' ) start [2025-03-31 20:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806042', 'tblTempVendorCDR_20' ) end [2025-03-31 20:47:20] Production.INFO: ProcessCDR(1,14806042,1,1,2) [2025-03-31 20:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806042', 'tblTempUsageDetail_20' ) start [2025-03-31 20:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806042', 'tblTempUsageDetail_20' ) end [2025-03-31 20:47:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 20:47:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 20:47:23] Production.INFO: ==28865== Releasing lock... [2025-03-31 20:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 20:47:23] Production.INFO: 57.5 MB #Memory Used# [2025-03-31 20:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 17:48:06 [end_date_ymd] => 2025-03-31 20:48:06 [RateCDR] => 1 ) [2025-03-31 20: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-31 17:48:06' and `end` < '2025-03-31 20: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-31 20:48:19] Production.INFO: count ==3954 [2025-03-31 20:48:20] Production.ERROR: pbx CDR StartTime 2025-03-31 17:48:06 - End Time 2025-03-31 20:48:06 [2025-03-31 20:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 20:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806047', 'tblTempUsageDetail_20' ) start [2025-03-31 20:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806047', 'tblTempUsageDetail_20' ) end [2025-03-31 20:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806047', 'tblTempVendorCDR_20' ) start [2025-03-31 20:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806047', 'tblTempVendorCDR_20' ) end [2025-03-31 20:48:21] Production.INFO: ProcessCDR(1,14806047,1,1,2) [2025-03-31 20:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806047', 'tblTempUsageDetail_20' ) start [2025-03-31 20:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806047', 'tblTempUsageDetail_20' ) end [2025-03-31 20:48:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 20:48:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 20:48:24] Production.INFO: ==28946== Releasing lock... [2025-03-31 20:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 20:48:24] Production.INFO: 57.5 MB #Memory Used# [2025-03-31 20:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 17:49:06 [end_date_ymd] => 2025-03-31 20:49:06 [RateCDR] => 1 ) [2025-03-31 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-31 17:49:06' and `end` < '2025-03-31 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-31 20:49:19] Production.INFO: count ==3947 [2025-03-31 20:49:20] Production.ERROR: pbx CDR StartTime 2025-03-31 17:49:06 - End Time 2025-03-31 20:49:06 [2025-03-31 20:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 20:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806052', 'tblTempUsageDetail_20' ) start [2025-03-31 20:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806052', 'tblTempUsageDetail_20' ) end [2025-03-31 20:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806052', 'tblTempVendorCDR_20' ) start [2025-03-31 20:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806052', 'tblTempVendorCDR_20' ) end [2025-03-31 20:49:20] Production.INFO: ProcessCDR(1,14806052,1,1,2) [2025-03-31 20:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806052', 'tblTempUsageDetail_20' ) start [2025-03-31 20:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806052', 'tblTempUsageDetail_20' ) end [2025-03-31 20:49:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 20:49:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 20:49:24] Production.INFO: ==29027== Releasing lock... [2025-03-31 20:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 20:49:24] Production.INFO: 57.5 MB #Memory Used# [2025-03-31 20:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 17:50:06 [end_date_ymd] => 2025-03-31 20:50:06 [RateCDR] => 1 ) [2025-03-31 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-31 17:50:06' and `end` < '2025-03-31 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-31 20:50:19] Production.INFO: count ==3932 [2025-03-31 20:50:21] Production.ERROR: pbx CDR StartTime 2025-03-31 17:50:06 - End Time 2025-03-31 20:50:06 [2025-03-31 20:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 20:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806058', 'tblTempUsageDetail_20' ) start [2025-03-31 20:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806058', 'tblTempUsageDetail_20' ) end [2025-03-31 20:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806058', 'tblTempVendorCDR_20' ) start [2025-03-31 20:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806058', 'tblTempVendorCDR_20' ) end [2025-03-31 20:50:21] Production.INFO: ProcessCDR(1,14806058,1,1,2) [2025-03-31 20:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806058', 'tblTempUsageDetail_20' ) start [2025-03-31 20:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806058', 'tblTempUsageDetail_20' ) end [2025-03-31 20:50:25] Production.ERROR: pbx prc_insertCDR start [2025-03-31 20:50:25] Production.ERROR: pbx prc_insertCDR end [2025-03-31 20:50:25] Production.INFO: ==29103== Releasing lock... [2025-03-31 20:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 20:50:25] Production.INFO: 57.25 MB #Memory Used# [2025-03-31 20:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 17:51:05 [end_date_ymd] => 2025-03-31 20:51:05 [RateCDR] => 1 ) [2025-03-31 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-31 17:51:05' and `end` < '2025-03-31 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-31 20:51:18] Production.INFO: count ==3880 [2025-03-31 20:51:19] Production.ERROR: pbx CDR StartTime 2025-03-31 17:51:05 - End Time 2025-03-31 20:51:05 [2025-03-31 20:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806063', 'tblTempUsageDetail_20' ) start [2025-03-31 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806063', 'tblTempUsageDetail_20' ) end [2025-03-31 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806063', 'tblTempVendorCDR_20' ) start [2025-03-31 20:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806063', 'tblTempVendorCDR_20' ) end [2025-03-31 20:51:20] Production.INFO: ProcessCDR(1,14806063,1,1,2) [2025-03-31 20:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806063', 'tblTempUsageDetail_20' ) start [2025-03-31 20:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806063', 'tblTempUsageDetail_20' ) end [2025-03-31 20:51:25] Production.ERROR: pbx prc_insertCDR start [2025-03-31 20:51:25] Production.ERROR: pbx prc_insertCDR end [2025-03-31 20:51:25] Production.INFO: ==29181== Releasing lock... [2025-03-31 20:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 20:51:25] Production.INFO: 57 MB #Memory Used# [2025-03-31 20:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 17:52:06 [end_date_ymd] => 2025-03-31 20:52:06 [RateCDR] => 1 ) [2025-03-31 20: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-31 17:52:06' and `end` < '2025-03-31 20: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-31 20:52:19] Production.INFO: count ==3874 [2025-03-31 20:52:20] Production.ERROR: pbx CDR StartTime 2025-03-31 17:52:06 - End Time 2025-03-31 20:52:06 [2025-03-31 20:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 20:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806068', 'tblTempUsageDetail_20' ) start [2025-03-31 20:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806068', 'tblTempUsageDetail_20' ) end [2025-03-31 20:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806068', 'tblTempVendorCDR_20' ) start [2025-03-31 20:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806068', 'tblTempVendorCDR_20' ) end [2025-03-31 20:52:20] Production.INFO: ProcessCDR(1,14806068,1,1,2) [2025-03-31 20:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806068', 'tblTempUsageDetail_20' ) start [2025-03-31 20:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806068', 'tblTempUsageDetail_20' ) end [2025-03-31 20:52:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 20:52:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 20:52:24] Production.INFO: ==29256== Releasing lock... [2025-03-31 20:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 20:52:24] Production.INFO: 57 MB #Memory Used# [2025-03-31 20:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 17:53:05 [end_date_ymd] => 2025-03-31 20:53:05 [RateCDR] => 1 ) [2025-03-31 20:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 17:53:05' and `end` < '2025-03-31 20:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 20:53:18] Production.INFO: count ==3849 [2025-03-31 20:53:20] Production.ERROR: pbx CDR StartTime 2025-03-31 17:53:05 - End Time 2025-03-31 20:53:05 [2025-03-31 20:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 20:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806073', 'tblTempUsageDetail_20' ) start [2025-03-31 20:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806073', 'tblTempUsageDetail_20' ) end [2025-03-31 20:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806073', 'tblTempVendorCDR_20' ) start [2025-03-31 20:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806073', 'tblTempVendorCDR_20' ) end [2025-03-31 20:53:20] Production.INFO: ProcessCDR(1,14806073,1,1,2) [2025-03-31 20:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806073', 'tblTempUsageDetail_20' ) start [2025-03-31 20:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806073', 'tblTempUsageDetail_20' ) end [2025-03-31 20:53:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 20:53:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 20:53:24] Production.INFO: ==29332== Releasing lock... [2025-03-31 20:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 20:53:24] Production.INFO: 56.75 MB #Memory Used# [2025-03-31 20:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 17:54:05 [end_date_ymd] => 2025-03-31 20:54:05 [RateCDR] => 1 ) [2025-03-31 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-31 17:54:05' and `end` < '2025-03-31 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-31 20:54:18] Production.INFO: count ==3841 [2025-03-31 20:54:20] Production.ERROR: pbx CDR StartTime 2025-03-31 17:54:05 - End Time 2025-03-31 20:54:05 [2025-03-31 20:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 20:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806078', 'tblTempUsageDetail_20' ) start [2025-03-31 20:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806078', 'tblTempUsageDetail_20' ) end [2025-03-31 20:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806078', 'tblTempVendorCDR_20' ) start [2025-03-31 20:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806078', 'tblTempVendorCDR_20' ) end [2025-03-31 20:54:20] Production.INFO: ProcessCDR(1,14806078,1,1,2) [2025-03-31 20:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806078', 'tblTempUsageDetail_20' ) start [2025-03-31 20:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806078', 'tblTempUsageDetail_20' ) end [2025-03-31 20:54:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 20:54:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 20:54:24] Production.INFO: ==29406== Releasing lock... [2025-03-31 20:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 20:54:24] Production.INFO: 56.5 MB #Memory Used# [2025-03-31 20:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 17:55:05 [end_date_ymd] => 2025-03-31 20:55:05 [RateCDR] => 1 ) [2025-03-31 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-31 17:55:05' and `end` < '2025-03-31 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-31 20:55:18] Production.INFO: count ==3818 [2025-03-31 20:55:20] Production.ERROR: pbx CDR StartTime 2025-03-31 17:55:05 - End Time 2025-03-31 20:55:05 [2025-03-31 20:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 20:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806083', 'tblTempUsageDetail_20' ) start [2025-03-31 20:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806083', 'tblTempUsageDetail_20' ) end [2025-03-31 20:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806083', 'tblTempVendorCDR_20' ) start [2025-03-31 20:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806083', 'tblTempVendorCDR_20' ) end [2025-03-31 20:55:20] Production.INFO: ProcessCDR(1,14806083,1,1,2) [2025-03-31 20:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806083', 'tblTempUsageDetail_20' ) start [2025-03-31 20:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806083', 'tblTempUsageDetail_20' ) end [2025-03-31 20:55:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 20:55:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 20:55:24] Production.INFO: ==29481== Releasing lock... [2025-03-31 20:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 20:55:24] Production.INFO: 56.5 MB #Memory Used# [2025-03-31 20:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 17:56:05 [end_date_ymd] => 2025-03-31 20:56:05 [RateCDR] => 1 ) [2025-03-31 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-31 17:56:05' and `end` < '2025-03-31 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-31 20:56:18] Production.INFO: count ==3793 [2025-03-31 20:56:20] Production.ERROR: pbx CDR StartTime 2025-03-31 17:56:05 - End Time 2025-03-31 20:56:05 [2025-03-31 20:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 20:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806088', 'tblTempUsageDetail_20' ) start [2025-03-31 20:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806088', 'tblTempUsageDetail_20' ) end [2025-03-31 20:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806088', 'tblTempVendorCDR_20' ) start [2025-03-31 20:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806088', 'tblTempVendorCDR_20' ) end [2025-03-31 20:56:20] Production.INFO: ProcessCDR(1,14806088,1,1,2) [2025-03-31 20:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806088', 'tblTempUsageDetail_20' ) start [2025-03-31 20:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806088', 'tblTempUsageDetail_20' ) end [2025-03-31 20:56:25] Production.ERROR: pbx prc_insertCDR start [2025-03-31 20:56:25] Production.ERROR: pbx prc_insertCDR end [2025-03-31 20:56:25] Production.INFO: ==29556== Releasing lock... [2025-03-31 20:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 20:56:25] Production.INFO: 56.5 MB #Memory Used# [2025-03-31 20:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 17:57:06 [end_date_ymd] => 2025-03-31 20:57:06 [RateCDR] => 1 ) [2025-03-31 20:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 17:57:06' and `end` < '2025-03-31 20:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 20:57:19] Production.INFO: count ==3789 [2025-03-31 20:57:20] Production.ERROR: pbx CDR StartTime 2025-03-31 17:57:06 - End Time 2025-03-31 20:57:06 [2025-03-31 20:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 20:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806093', 'tblTempUsageDetail_20' ) start [2025-03-31 20:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806093', 'tblTempUsageDetail_20' ) end [2025-03-31 20:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806093', 'tblTempVendorCDR_20' ) start [2025-03-31 20:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806093', 'tblTempVendorCDR_20' ) end [2025-03-31 20:57:21] Production.INFO: ProcessCDR(1,14806093,1,1,2) [2025-03-31 20:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806093', 'tblTempUsageDetail_20' ) start [2025-03-31 20:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806093', 'tblTempUsageDetail_20' ) end [2025-03-31 20:57:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 20:57:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 20:57:25] Production.INFO: ==29627== Releasing lock... [2025-03-31 20:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 20:57:25] Production.INFO: 56.25 MB #Memory Used# [2025-03-31 20:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 17:58:06 [end_date_ymd] => 2025-03-31 20:58:06 [RateCDR] => 1 ) [2025-03-31 20: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-31 17:58:06' and `end` < '2025-03-31 20: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-31 20:58:19] Production.INFO: count ==3773 [2025-03-31 20:58:20] Production.ERROR: pbx CDR StartTime 2025-03-31 17:58:06 - End Time 2025-03-31 20:58:06 [2025-03-31 20:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 20:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806098', 'tblTempUsageDetail_20' ) start [2025-03-31 20:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806098', 'tblTempUsageDetail_20' ) end [2025-03-31 20:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806098', 'tblTempVendorCDR_20' ) start [2025-03-31 20:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806098', 'tblTempVendorCDR_20' ) end [2025-03-31 20:58:20] Production.INFO: ProcessCDR(1,14806098,1,1,2) [2025-03-31 20:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806098', 'tblTempUsageDetail_20' ) start [2025-03-31 20:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806098', 'tblTempUsageDetail_20' ) end [2025-03-31 20:58:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 20:58:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 20:58:24] Production.INFO: ==29741== Releasing lock... [2025-03-31 20:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 20:58:24] Production.INFO: 56 MB #Memory Used# [2025-03-31 20:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 17:59:05 [end_date_ymd] => 2025-03-31 20:59:05 [RateCDR] => 1 ) [2025-03-31 20:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 17:59:05' and `end` < '2025-03-31 20:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 20:59:18] Production.INFO: count ==3741 [2025-03-31 20:59:19] Production.ERROR: pbx CDR StartTime 2025-03-31 17:59:05 - End Time 2025-03-31 20:59:05 [2025-03-31 20:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806103', 'tblTempUsageDetail_20' ) start [2025-03-31 20:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806103', 'tblTempUsageDetail_20' ) end [2025-03-31 20:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806103', 'tblTempVendorCDR_20' ) start [2025-03-31 20:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806103', 'tblTempVendorCDR_20' ) end [2025-03-31 20:59:20] Production.INFO: ProcessCDR(1,14806103,1,1,2) [2025-03-31 20:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 20:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 20:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806103', 'tblTempUsageDetail_20' ) start [2025-03-31 20:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806103', 'tblTempUsageDetail_20' ) end [2025-03-31 20:59:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 20:59:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 20:59:23] Production.INFO: ==29816== Releasing lock... [2025-03-31 20:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 20:59:23] Production.INFO: 55.75 MB #Memory Used# [2025-03-31 21:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 18:00:06 [end_date_ymd] => 2025-03-31 21:00:06 [RateCDR] => 1 ) [2025-03-31 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-31 18:00:06' and `end` < '2025-03-31 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-31 21:00:19] Production.INFO: count ==3681 [2025-03-31 21:00:21] Production.ERROR: pbx CDR StartTime 2025-03-31 18:00:06 - End Time 2025-03-31 21:00:06 [2025-03-31 21:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 21:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806109', 'tblTempUsageDetail_20' ) start [2025-03-31 21:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806109', 'tblTempUsageDetail_20' ) end [2025-03-31 21:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806109', 'tblTempVendorCDR_20' ) start [2025-03-31 21:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806109', 'tblTempVendorCDR_20' ) end [2025-03-31 21:00:21] Production.INFO: ProcessCDR(1,14806109,1,1,2) [2025-03-31 21:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806109', 'tblTempUsageDetail_20' ) start [2025-03-31 21:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806109', 'tblTempUsageDetail_20' ) end [2025-03-31 21:00:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 21:00:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 21:00:24] Production.INFO: ==29895== Releasing lock... [2025-03-31 21:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 21:00:24] Production.INFO: 55.5 MB #Memory Used# [2025-03-31 21:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 18:01:05 [end_date_ymd] => 2025-03-31 21:01:05 [RateCDR] => 1 ) [2025-03-31 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-31 18:01:05' and `end` < '2025-03-31 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-31 21:01:18] Production.INFO: count ==3520 [2025-03-31 21:01:19] Production.ERROR: pbx CDR StartTime 2025-03-31 18:01:05 - End Time 2025-03-31 21:01:05 [2025-03-31 21:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806114', 'tblTempUsageDetail_20' ) start [2025-03-31 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806114', 'tblTempUsageDetail_20' ) end [2025-03-31 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806114', 'tblTempVendorCDR_20' ) start [2025-03-31 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806114', 'tblTempVendorCDR_20' ) end [2025-03-31 21:01:19] Production.INFO: ProcessCDR(1,14806114,1,1,2) [2025-03-31 21:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806114', 'tblTempUsageDetail_20' ) start [2025-03-31 21:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806114', 'tblTempUsageDetail_20' ) end [2025-03-31 21:01:25] Production.ERROR: pbx prc_insertCDR start [2025-03-31 21:01:25] Production.ERROR: pbx prc_insertCDR end [2025-03-31 21:01:25] Production.INFO: ==29982== Releasing lock... [2025-03-31 21:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 21:01:25] Production.INFO: 55.25 MB #Memory Used# [2025-03-31 21:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 18:02:06 [end_date_ymd] => 2025-03-31 21:02:06 [RateCDR] => 1 ) [2025-03-31 21: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-31 18:02:06' and `end` < '2025-03-31 21: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-31 21:02:19] Production.INFO: count ==3351 [2025-03-31 21:02:20] Production.ERROR: pbx CDR StartTime 2025-03-31 18:02:06 - End Time 2025-03-31 21:02:06 [2025-03-31 21:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 21:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806119', 'tblTempUsageDetail_20' ) start [2025-03-31 21:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806119', 'tblTempUsageDetail_20' ) end [2025-03-31 21:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806119', 'tblTempVendorCDR_20' ) start [2025-03-31 21:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806119', 'tblTempVendorCDR_20' ) end [2025-03-31 21:02:21] Production.INFO: ProcessCDR(1,14806119,1,1,2) [2025-03-31 21:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806119', 'tblTempUsageDetail_20' ) start [2025-03-31 21:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806119', 'tblTempUsageDetail_20' ) end [2025-03-31 21:02:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 21:02:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 21:02:24] Production.INFO: ==30057== Releasing lock... [2025-03-31 21:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 21:02:24] Production.INFO: 53 MB #Memory Used# [2025-03-31 21:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 18:03:05 [end_date_ymd] => 2025-03-31 21:03:05 [RateCDR] => 1 ) [2025-03-31 21:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 18:03:05' and `end` < '2025-03-31 21:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 21:03:18] Production.INFO: count ==3267 [2025-03-31 21:03:20] Production.ERROR: pbx CDR StartTime 2025-03-31 18:03:05 - End Time 2025-03-31 21:03:05 [2025-03-31 21:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 21:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806124', 'tblTempUsageDetail_20' ) start [2025-03-31 21:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806124', 'tblTempUsageDetail_20' ) end [2025-03-31 21:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806124', 'tblTempVendorCDR_20' ) start [2025-03-31 21:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806124', 'tblTempVendorCDR_20' ) end [2025-03-31 21:03:20] Production.INFO: ProcessCDR(1,14806124,1,1,2) [2025-03-31 21:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806124', 'tblTempUsageDetail_20' ) start [2025-03-31 21:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806124', 'tblTempUsageDetail_20' ) end [2025-03-31 21:03:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 21:03:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 21:03:23] Production.INFO: ==30133== Releasing lock... [2025-03-31 21:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 21:03:23] Production.INFO: 52.75 MB #Memory Used# [2025-03-31 21:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 18:04:06 [end_date_ymd] => 2025-03-31 21:04:06 [RateCDR] => 1 ) [2025-03-31 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-31 18:04:06' and `end` < '2025-03-31 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-31 21:04:18] Production.INFO: count ==3217 [2025-03-31 21:04:20] Production.ERROR: pbx CDR StartTime 2025-03-31 18:04:06 - End Time 2025-03-31 21:04:06 [2025-03-31 21:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 21:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806129', 'tblTempUsageDetail_20' ) start [2025-03-31 21:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806129', 'tblTempUsageDetail_20' ) end [2025-03-31 21:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806129', 'tblTempVendorCDR_20' ) start [2025-03-31 21:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806129', 'tblTempVendorCDR_20' ) end [2025-03-31 21:04:20] Production.INFO: ProcessCDR(1,14806129,1,1,2) [2025-03-31 21:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806129', 'tblTempUsageDetail_20' ) start [2025-03-31 21:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806129', 'tblTempUsageDetail_20' ) end [2025-03-31 21:04:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 21:04:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 21:04:24] Production.INFO: ==30212== Releasing lock... [2025-03-31 21:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 21:04:24] Production.INFO: 52.5 MB #Memory Used# [2025-03-31 21:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 18:05:05 [end_date_ymd] => 2025-03-31 21:05:05 [RateCDR] => 1 ) [2025-03-31 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-31 18:05:05' and `end` < '2025-03-31 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-31 21:05:18] Production.INFO: count ==3129 [2025-03-31 21:05:19] Production.ERROR: pbx CDR StartTime 2025-03-31 18:05:05 - End Time 2025-03-31 21:05:05 [2025-03-31 21:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806134', 'tblTempUsageDetail_20' ) start [2025-03-31 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806134', 'tblTempUsageDetail_20' ) end [2025-03-31 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806134', 'tblTempVendorCDR_20' ) start [2025-03-31 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806134', 'tblTempVendorCDR_20' ) end [2025-03-31 21:05:19] Production.INFO: ProcessCDR(1,14806134,1,1,2) [2025-03-31 21:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806134', 'tblTempUsageDetail_20' ) start [2025-03-31 21:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806134', 'tblTempUsageDetail_20' ) end [2025-03-31 21:05:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 21:05:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 21:05:23] Production.INFO: ==30285== Releasing lock... [2025-03-31 21:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 21:05:23] Production.INFO: 51.75 MB #Memory Used# [2025-03-31 21:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 18:06:06 [end_date_ymd] => 2025-03-31 21:06:06 [RateCDR] => 1 ) [2025-03-31 21: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-31 18:06:06' and `end` < '2025-03-31 21: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-31 21:06:19] Production.INFO: count ==3039 [2025-03-31 21:06:20] Production.ERROR: pbx CDR StartTime 2025-03-31 18:06:06 - End Time 2025-03-31 21:06:06 [2025-03-31 21:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 21:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806139', 'tblTempUsageDetail_20' ) start [2025-03-31 21:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806139', 'tblTempUsageDetail_20' ) end [2025-03-31 21:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806139', 'tblTempVendorCDR_20' ) start [2025-03-31 21:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806139', 'tblTempVendorCDR_20' ) end [2025-03-31 21:06:20] Production.INFO: ProcessCDR(1,14806139,1,1,2) [2025-03-31 21:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806139', 'tblTempUsageDetail_20' ) start [2025-03-31 21:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806139', 'tblTempUsageDetail_20' ) end [2025-03-31 21:06:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 21:06:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 21:06:23] Production.INFO: ==30358== Releasing lock... [2025-03-31 21:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 21:06:23] Production.INFO: 51 MB #Memory Used# [2025-03-31 21:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 18:07:05 [end_date_ymd] => 2025-03-31 21:07:05 [RateCDR] => 1 ) [2025-03-31 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-31 18:07:05' and `end` < '2025-03-31 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-31 21:07:18] Production.INFO: count ==2953 [2025-03-31 21:07:19] Production.ERROR: pbx CDR StartTime 2025-03-31 18:07:05 - End Time 2025-03-31 21:07:05 [2025-03-31 21:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806144', 'tblTempUsageDetail_20' ) start [2025-03-31 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806144', 'tblTempUsageDetail_20' ) end [2025-03-31 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806144', 'tblTempVendorCDR_20' ) start [2025-03-31 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806144', 'tblTempVendorCDR_20' ) end [2025-03-31 21:07:19] Production.INFO: ProcessCDR(1,14806144,1,1,2) [2025-03-31 21:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806144', 'tblTempUsageDetail_20' ) start [2025-03-31 21:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806144', 'tblTempUsageDetail_20' ) end [2025-03-31 21:07:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 21:07:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 21:07:23] Production.INFO: ==30434== Releasing lock... [2025-03-31 21:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 21:07:23] Production.INFO: 49.75 MB #Memory Used# [2025-03-31 21:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 18:08:05 [end_date_ymd] => 2025-03-31 21:08:05 [RateCDR] => 1 ) [2025-03-31 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-31 18:08:05' and `end` < '2025-03-31 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-31 21:08:18] Production.INFO: count ==2871 [2025-03-31 21:08:19] Production.ERROR: pbx CDR StartTime 2025-03-31 18:08:05 - End Time 2025-03-31 21:08:05 [2025-03-31 21:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806149', 'tblTempUsageDetail_20' ) start [2025-03-31 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806149', 'tblTempUsageDetail_20' ) end [2025-03-31 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806149', 'tblTempVendorCDR_20' ) start [2025-03-31 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806149', 'tblTempVendorCDR_20' ) end [2025-03-31 21:08:19] Production.INFO: ProcessCDR(1,14806149,1,1,2) [2025-03-31 21:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806149', 'tblTempUsageDetail_20' ) start [2025-03-31 21:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806149', 'tblTempUsageDetail_20' ) end [2025-03-31 21:08:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 21:08:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 21:08:23] Production.INFO: ==30506== Releasing lock... [2025-03-31 21:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 21:08:23] Production.INFO: 49.75 MB #Memory Used# [2025-03-31 21:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 18:09:06 [end_date_ymd] => 2025-03-31 21:09:06 [RateCDR] => 1 ) [2025-03-31 21: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-31 18:09:06' and `end` < '2025-03-31 21: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-31 21:09:18] Production.INFO: count ==2804 [2025-03-31 21:09:20] Production.ERROR: pbx CDR StartTime 2025-03-31 18:09:06 - End Time 2025-03-31 21:09:06 [2025-03-31 21:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 21:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806154', 'tblTempUsageDetail_20' ) start [2025-03-31 21:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806154', 'tblTempUsageDetail_20' ) end [2025-03-31 21:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806154', 'tblTempVendorCDR_20' ) start [2025-03-31 21:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806154', 'tblTempVendorCDR_20' ) end [2025-03-31 21:09:20] Production.INFO: ProcessCDR(1,14806154,1,1,2) [2025-03-31 21:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806154', 'tblTempUsageDetail_20' ) start [2025-03-31 21:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806154', 'tblTempUsageDetail_20' ) end [2025-03-31 21:09:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 21:09:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 21:09:23] Production.INFO: ==30579== Releasing lock... [2025-03-31 21:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 21:09:23] Production.INFO: 49.25 MB #Memory Used# [2025-03-31 21:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 18:10:05 [end_date_ymd] => 2025-03-31 21:10:05 [RateCDR] => 1 ) [2025-03-31 21: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-31 18:10:05' and `end` < '2025-03-31 21: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-31 21:10:18] Production.INFO: count ==2761 [2025-03-31 21:10:19] Production.ERROR: pbx CDR StartTime 2025-03-31 18:10:05 - End Time 2025-03-31 21:10:05 [2025-03-31 21:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806160', 'tblTempUsageDetail_20' ) start [2025-03-31 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806160', 'tblTempUsageDetail_20' ) end [2025-03-31 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806160', 'tblTempVendorCDR_20' ) start [2025-03-31 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806160', 'tblTempVendorCDR_20' ) end [2025-03-31 21:10:20] Production.INFO: ProcessCDR(1,14806160,1,1,2) [2025-03-31 21:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806160', 'tblTempUsageDetail_20' ) start [2025-03-31 21:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806160', 'tblTempUsageDetail_20' ) end [2025-03-31 21:10:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 21:10:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 21:10:23] Production.INFO: ==30654== Releasing lock... [2025-03-31 21:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 21:10:23] Production.INFO: 49 MB #Memory Used# [2025-03-31 21:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 18:11:05 [end_date_ymd] => 2025-03-31 21:11:05 [RateCDR] => 1 ) [2025-03-31 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-31 18:11:05' and `end` < '2025-03-31 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-31 21:11:18] Production.INFO: count ==2671 [2025-03-31 21:11:19] Production.ERROR: pbx CDR StartTime 2025-03-31 18:11:05 - End Time 2025-03-31 21:11:05 [2025-03-31 21:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806165', 'tblTempUsageDetail_20' ) start [2025-03-31 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806165', 'tblTempUsageDetail_20' ) end [2025-03-31 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806165', 'tblTempVendorCDR_20' ) start [2025-03-31 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806165', 'tblTempVendorCDR_20' ) end [2025-03-31 21:11:19] Production.INFO: ProcessCDR(1,14806165,1,1,2) [2025-03-31 21:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806165', 'tblTempUsageDetail_20' ) start [2025-03-31 21:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806165', 'tblTempUsageDetail_20' ) end [2025-03-31 21:11:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 21:11:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 21:11:24] Production.INFO: ==30736== Releasing lock... [2025-03-31 21:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 21:11:24] Production.INFO: 48 MB #Memory Used# [2025-03-31 21:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 18:12:06 [end_date_ymd] => 2025-03-31 21:12:06 [RateCDR] => 1 ) [2025-03-31 21:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 18:12:06' and `end` < '2025-03-31 21:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 21:12:19] Production.INFO: count ==2613 [2025-03-31 21:12:20] Production.ERROR: pbx CDR StartTime 2025-03-31 18:12:06 - End Time 2025-03-31 21:12:06 [2025-03-31 21:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 21:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806170', 'tblTempUsageDetail_20' ) start [2025-03-31 21:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806170', 'tblTempUsageDetail_20' ) end [2025-03-31 21:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806170', 'tblTempVendorCDR_20' ) start [2025-03-31 21:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806170', 'tblTempVendorCDR_20' ) end [2025-03-31 21:12:20] Production.INFO: ProcessCDR(1,14806170,1,1,2) [2025-03-31 21:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806170', 'tblTempUsageDetail_20' ) start [2025-03-31 21:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806170', 'tblTempUsageDetail_20' ) end [2025-03-31 21:12:25] Production.ERROR: pbx prc_insertCDR start [2025-03-31 21:12:25] Production.ERROR: pbx prc_insertCDR end [2025-03-31 21:12:25] Production.INFO: ==30808== Releasing lock... [2025-03-31 21:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 21:12:25] Production.INFO: 47.75 MB #Memory Used# [2025-03-31 21:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 18:13:05 [end_date_ymd] => 2025-03-31 21:13:05 [RateCDR] => 1 ) [2025-03-31 21: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-31 18:13:05' and `end` < '2025-03-31 21: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-31 21:13:18] Production.INFO: count ==2569 [2025-03-31 21:13:19] Production.ERROR: pbx CDR StartTime 2025-03-31 18:13:05 - End Time 2025-03-31 21:13:05 [2025-03-31 21:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806175', 'tblTempUsageDetail_20' ) start [2025-03-31 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806175', 'tblTempUsageDetail_20' ) end [2025-03-31 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806175', 'tblTempVendorCDR_20' ) start [2025-03-31 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806175', 'tblTempVendorCDR_20' ) end [2025-03-31 21:13:19] Production.INFO: ProcessCDR(1,14806175,1,1,2) [2025-03-31 21:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806175', 'tblTempUsageDetail_20' ) start [2025-03-31 21:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806175', 'tblTempUsageDetail_20' ) end [2025-03-31 21:13:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 21:13:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 21:13:23] Production.INFO: ==30922== Releasing lock... [2025-03-31 21:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 21:13:23] Production.INFO: 47.25 MB #Memory Used# [2025-03-31 21:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 18:14:06 [end_date_ymd] => 2025-03-31 21:14:06 [RateCDR] => 1 ) [2025-03-31 21:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 18:14:06' and `end` < '2025-03-31 21:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 21:14:19] Production.INFO: count ==2550 [2025-03-31 21:14:20] Production.ERROR: pbx CDR StartTime 2025-03-31 18:14:06 - End Time 2025-03-31 21:14:06 [2025-03-31 21:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 21:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806180', 'tblTempUsageDetail_20' ) start [2025-03-31 21:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806180', 'tblTempUsageDetail_20' ) end [2025-03-31 21:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806180', 'tblTempVendorCDR_20' ) start [2025-03-31 21:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806180', 'tblTempVendorCDR_20' ) end [2025-03-31 21:14:20] Production.INFO: ProcessCDR(1,14806180,1,1,2) [2025-03-31 21:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806180', 'tblTempUsageDetail_20' ) start [2025-03-31 21:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806180', 'tblTempUsageDetail_20' ) end [2025-03-31 21:14:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 21:14:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 21:14:23] Production.INFO: ==30994== Releasing lock... [2025-03-31 21:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 21:14:23] Production.INFO: 47.25 MB #Memory Used# [2025-03-31 21:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 18:15:06 [end_date_ymd] => 2025-03-31 21:15:06 [RateCDR] => 1 ) [2025-03-31 21: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-31 18:15:06' and `end` < '2025-03-31 21: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-31 21:15:19] Production.INFO: count ==2518 [2025-03-31 21:15:20] Production.ERROR: pbx CDR StartTime 2025-03-31 18:15:06 - End Time 2025-03-31 21:15:06 [2025-03-31 21:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 21:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806185', 'tblTempUsageDetail_20' ) start [2025-03-31 21:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806185', 'tblTempUsageDetail_20' ) end [2025-03-31 21:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806185', 'tblTempVendorCDR_20' ) start [2025-03-31 21:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806185', 'tblTempVendorCDR_20' ) end [2025-03-31 21:15:20] Production.INFO: ProcessCDR(1,14806185,1,1,2) [2025-03-31 21:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806185', 'tblTempUsageDetail_20' ) start [2025-03-31 21:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806185', 'tblTempUsageDetail_20' ) end [2025-03-31 21:15:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 21:15:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 21:15:23] Production.INFO: ==31067== Releasing lock... [2025-03-31 21:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 21:15:23] Production.INFO: 47 MB #Memory Used# [2025-03-31 21:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 18:16:05 [end_date_ymd] => 2025-03-31 21:16:05 [RateCDR] => 1 ) [2025-03-31 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-31 18:16:05' and `end` < '2025-03-31 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-31 21:16:18] Production.INFO: count ==2508 [2025-03-31 21:16:19] Production.ERROR: pbx CDR StartTime 2025-03-31 18:16:05 - End Time 2025-03-31 21:16:05 [2025-03-31 21:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806190', 'tblTempUsageDetail_20' ) start [2025-03-31 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806190', 'tblTempUsageDetail_20' ) end [2025-03-31 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806190', 'tblTempVendorCDR_20' ) start [2025-03-31 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806190', 'tblTempVendorCDR_20' ) end [2025-03-31 21:16:19] Production.INFO: ProcessCDR(1,14806190,1,1,2) [2025-03-31 21:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806190', 'tblTempUsageDetail_20' ) start [2025-03-31 21:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806190', 'tblTempUsageDetail_20' ) end [2025-03-31 21:16:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 21:16:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 21:16:23] Production.INFO: ==31140== Releasing lock... [2025-03-31 21:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 21:16:23] Production.INFO: 46.75 MB #Memory Used# [2025-03-31 21:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 18:17:05 [end_date_ymd] => 2025-03-31 21:17:05 [RateCDR] => 1 ) [2025-03-31 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-31 18:17:05' and `end` < '2025-03-31 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-31 21:17:18] Production.INFO: count ==2464 [2025-03-31 21:17:19] Production.ERROR: pbx CDR StartTime 2025-03-31 18:17:05 - End Time 2025-03-31 21:17:05 [2025-03-31 21:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806195', 'tblTempUsageDetail_20' ) start [2025-03-31 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806195', 'tblTempUsageDetail_20' ) end [2025-03-31 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806195', 'tblTempVendorCDR_20' ) start [2025-03-31 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806195', 'tblTempVendorCDR_20' ) end [2025-03-31 21:17:19] Production.INFO: ProcessCDR(1,14806195,1,1,2) [2025-03-31 21:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806195', 'tblTempUsageDetail_20' ) start [2025-03-31 21:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806195', 'tblTempUsageDetail_20' ) end [2025-03-31 21:17:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 21:17:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 21:17:23] Production.INFO: ==31219== Releasing lock... [2025-03-31 21:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 21:17:23] Production.INFO: 46.5 MB #Memory Used# [2025-03-31 21:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 18:18:05 [end_date_ymd] => 2025-03-31 21:18:05 [RateCDR] => 1 ) [2025-03-31 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-31 18:18:05' and `end` < '2025-03-31 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-31 21:18:18] Production.INFO: count ==2426 [2025-03-31 21:18:19] Production.ERROR: pbx CDR StartTime 2025-03-31 18:18:05 - End Time 2025-03-31 21:18:05 [2025-03-31 21:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806200', 'tblTempUsageDetail_20' ) start [2025-03-31 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806200', 'tblTempUsageDetail_20' ) end [2025-03-31 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806200', 'tblTempVendorCDR_20' ) start [2025-03-31 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806200', 'tblTempVendorCDR_20' ) end [2025-03-31 21:18:19] Production.INFO: ProcessCDR(1,14806200,1,1,2) [2025-03-31 21:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806200', 'tblTempUsageDetail_20' ) start [2025-03-31 21:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806200', 'tblTempUsageDetail_20' ) end [2025-03-31 21:18:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 21:18:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 21:18:23] Production.INFO: ==31303== Releasing lock... [2025-03-31 21:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 21:18:23] Production.INFO: 46.5 MB #Memory Used# [2025-03-31 21:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 18:19:06 [end_date_ymd] => 2025-03-31 21:19:06 [RateCDR] => 1 ) [2025-03-31 21: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-31 18:19:06' and `end` < '2025-03-31 21: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-31 21:19:18] Production.INFO: count ==2375 [2025-03-31 21:19:19] Production.ERROR: pbx CDR StartTime 2025-03-31 18:19:06 - End Time 2025-03-31 21:19:06 [2025-03-31 21:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806205', 'tblTempUsageDetail_20' ) start [2025-03-31 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806205', 'tblTempUsageDetail_20' ) end [2025-03-31 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806205', 'tblTempVendorCDR_20' ) start [2025-03-31 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806205', 'tblTempVendorCDR_20' ) end [2025-03-31 21:19:19] Production.INFO: ProcessCDR(1,14806205,1,1,2) [2025-03-31 21:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806205', 'tblTempUsageDetail_20' ) start [2025-03-31 21:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806205', 'tblTempUsageDetail_20' ) end [2025-03-31 21:19:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 21:19:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 21:19:23] Production.INFO: ==31376== Releasing lock... [2025-03-31 21:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 21:19:23] Production.INFO: 45.75 MB #Memory Used# [2025-03-31 21:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 18:20:06 [end_date_ymd] => 2025-03-31 21:20:06 [RateCDR] => 1 ) [2025-03-31 21:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 18:20:06' and `end` < '2025-03-31 21:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 21:20:19] Production.INFO: count ==2314 [2025-03-31 21:20:19] Production.ERROR: pbx CDR StartTime 2025-03-31 18:20:06 - End Time 2025-03-31 21:20:06 [2025-03-31 21:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806211', 'tblTempUsageDetail_20' ) start [2025-03-31 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806211', 'tblTempUsageDetail_20' ) end [2025-03-31 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806211', 'tblTempVendorCDR_20' ) start [2025-03-31 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806211', 'tblTempVendorCDR_20' ) end [2025-03-31 21:20:19] Production.INFO: ProcessCDR(1,14806211,1,1,2) [2025-03-31 21:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806211', 'tblTempUsageDetail_20' ) start [2025-03-31 21:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806211', 'tblTempUsageDetail_20' ) end [2025-03-31 21:20:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 21:20:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 21:20:23] Production.INFO: ==31452== Releasing lock... [2025-03-31 21:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 21:20:23] Production.INFO: 45.5 MB #Memory Used# [2025-03-31 21:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 18:21:05 [end_date_ymd] => 2025-03-31 21:21:05 [RateCDR] => 1 ) [2025-03-31 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-31 18:21:05' and `end` < '2025-03-31 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-31 21:21:18] Production.INFO: count ==2191 [2025-03-31 21:21:19] Production.ERROR: pbx CDR StartTime 2025-03-31 18:21:05 - End Time 2025-03-31 21:21:05 [2025-03-31 21:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806216', 'tblTempUsageDetail_20' ) start [2025-03-31 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806216', 'tblTempUsageDetail_20' ) end [2025-03-31 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806216', 'tblTempVendorCDR_20' ) start [2025-03-31 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806216', 'tblTempVendorCDR_20' ) end [2025-03-31 21:21:19] Production.INFO: ProcessCDR(1,14806216,1,1,2) [2025-03-31 21:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806216', 'tblTempUsageDetail_20' ) start [2025-03-31 21:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806216', 'tblTempUsageDetail_20' ) end [2025-03-31 21:21:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 21:21:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 21:21:22] Production.INFO: ==31525== Releasing lock... [2025-03-31 21:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 21:21:22] Production.INFO: 44.5 MB #Memory Used# [2025-03-31 21:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 18:22:05 [end_date_ymd] => 2025-03-31 21:22:05 [RateCDR] => 1 ) [2025-03-31 21:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 18:22:05' and `end` < '2025-03-31 21:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 21:22:18] Production.INFO: count ==2190 [2025-03-31 21:22:19] Production.ERROR: pbx CDR StartTime 2025-03-31 18:22:05 - End Time 2025-03-31 21:22:05 [2025-03-31 21:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806221', 'tblTempUsageDetail_20' ) start [2025-03-31 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806221', 'tblTempUsageDetail_20' ) end [2025-03-31 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806221', 'tblTempVendorCDR_20' ) start [2025-03-31 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806221', 'tblTempVendorCDR_20' ) end [2025-03-31 21:22:19] Production.INFO: ProcessCDR(1,14806221,1,1,2) [2025-03-31 21:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806221', 'tblTempUsageDetail_20' ) start [2025-03-31 21:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806221', 'tblTempUsageDetail_20' ) end [2025-03-31 21:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 21:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 21:22:22] Production.INFO: ==31597== Releasing lock... [2025-03-31 21:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 21:22:22] Production.INFO: 44.5 MB #Memory Used# [2025-03-31 21:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 18:23:05 [end_date_ymd] => 2025-03-31 21:23:05 [RateCDR] => 1 ) [2025-03-31 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-31 18:23:05' and `end` < '2025-03-31 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-31 21:23:18] Production.INFO: count ==2171 [2025-03-31 21:23:19] Production.ERROR: pbx CDR StartTime 2025-03-31 18:23:05 - End Time 2025-03-31 21:23:05 [2025-03-31 21:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806226', 'tblTempUsageDetail_20' ) start [2025-03-31 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806226', 'tblTempUsageDetail_20' ) end [2025-03-31 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806226', 'tblTempVendorCDR_20' ) start [2025-03-31 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806226', 'tblTempVendorCDR_20' ) end [2025-03-31 21:23:19] Production.INFO: ProcessCDR(1,14806226,1,1,2) [2025-03-31 21:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806226', 'tblTempUsageDetail_20' ) start [2025-03-31 21:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806226', 'tblTempUsageDetail_20' ) end [2025-03-31 21:23:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 21:23:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 21:23:24] Production.INFO: ==31671== Releasing lock... [2025-03-31 21:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 21:23:24] Production.INFO: 44.25 MB #Memory Used# [2025-03-31 21:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 18:24:06 [end_date_ymd] => 2025-03-31 21:24:06 [RateCDR] => 1 ) [2025-03-31 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-31 18:24:06' and `end` < '2025-03-31 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-31 21:24:18] Production.INFO: count ==2159 [2025-03-31 21:24:19] Production.ERROR: pbx CDR StartTime 2025-03-31 18:24:06 - End Time 2025-03-31 21:24:06 [2025-03-31 21:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806231', 'tblTempUsageDetail_20' ) start [2025-03-31 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806231', 'tblTempUsageDetail_20' ) end [2025-03-31 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806231', 'tblTempVendorCDR_20' ) start [2025-03-31 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806231', 'tblTempVendorCDR_20' ) end [2025-03-31 21:24:19] Production.INFO: ProcessCDR(1,14806231,1,1,2) [2025-03-31 21:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806231', 'tblTempUsageDetail_20' ) start [2025-03-31 21:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806231', 'tblTempUsageDetail_20' ) end [2025-03-31 21:24:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 21:24:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 21:24:23] Production.INFO: ==31741== Releasing lock... [2025-03-31 21:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 21:24:23] Production.INFO: 44.25 MB #Memory Used# [2025-03-31 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 18:25:05 [end_date_ymd] => 2025-03-31 21:25:05 [RateCDR] => 1 ) [2025-03-31 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-31 18:25:05' and `end` < '2025-03-31 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-31 21:25:18] Production.INFO: count ==2142 [2025-03-31 21:25:19] Production.ERROR: pbx CDR StartTime 2025-03-31 18:25:05 - End Time 2025-03-31 21:25:05 [2025-03-31 21:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806236', 'tblTempUsageDetail_20' ) start [2025-03-31 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806236', 'tblTempUsageDetail_20' ) end [2025-03-31 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806236', 'tblTempVendorCDR_20' ) start [2025-03-31 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806236', 'tblTempVendorCDR_20' ) end [2025-03-31 21:25:19] Production.INFO: ProcessCDR(1,14806236,1,1,2) [2025-03-31 21:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806236', 'tblTempUsageDetail_20' ) start [2025-03-31 21:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806236', 'tblTempUsageDetail_20' ) end [2025-03-31 21:25:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 21:25:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 21:25:23] Production.INFO: ==31814== Releasing lock... [2025-03-31 21:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 21:25:23] Production.INFO: 44.25 MB #Memory Used# [2025-03-31 21:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 18:26:05 [end_date_ymd] => 2025-03-31 21:26:05 [RateCDR] => 1 ) [2025-03-31 21:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 18:26:05' and `end` < '2025-03-31 21:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 21:26:18] Production.INFO: count ==2144 [2025-03-31 21:26:19] Production.ERROR: pbx CDR StartTime 2025-03-31 18:26:05 - End Time 2025-03-31 21:26:05 [2025-03-31 21:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806241', 'tblTempUsageDetail_20' ) start [2025-03-31 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806241', 'tblTempUsageDetail_20' ) end [2025-03-31 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806241', 'tblTempVendorCDR_20' ) start [2025-03-31 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806241', 'tblTempVendorCDR_20' ) end [2025-03-31 21:26:19] Production.INFO: ProcessCDR(1,14806241,1,1,2) [2025-03-31 21:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806241', 'tblTempUsageDetail_20' ) start [2025-03-31 21:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806241', 'tblTempUsageDetail_20' ) end [2025-03-31 21:26:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 21:26:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 21:26:23] Production.INFO: ==31894== Releasing lock... [2025-03-31 21:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 21:26:23] Production.INFO: 44.5 MB #Memory Used# [2025-03-31 21:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 18:27:05 [end_date_ymd] => 2025-03-31 21:27:05 [RateCDR] => 1 ) [2025-03-31 21:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 18:27:05' and `end` < '2025-03-31 21:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 21:27:18] Production.INFO: count ==2149 [2025-03-31 21:27:19] Production.ERROR: pbx CDR StartTime 2025-03-31 18:27:05 - End Time 2025-03-31 21:27:05 [2025-03-31 21:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 21:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806246', 'tblTempUsageDetail_20' ) start [2025-03-31 21:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806246', 'tblTempUsageDetail_20' ) end [2025-03-31 21:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806246', 'tblTempVendorCDR_20' ) start [2025-03-31 21:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806246', 'tblTempVendorCDR_20' ) end [2025-03-31 21:27:19] Production.INFO: ProcessCDR(1,14806246,1,1,2) [2025-03-31 21:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806246', 'tblTempUsageDetail_20' ) start [2025-03-31 21:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806246', 'tblTempUsageDetail_20' ) end [2025-03-31 21:27:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 21:27:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 21:27:24] Production.INFO: ==31966== Releasing lock... [2025-03-31 21:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 21:27:24] Production.INFO: 44.25 MB #Memory Used# [2025-03-31 21:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 18:28:06 [end_date_ymd] => 2025-03-31 21:28:06 [RateCDR] => 1 ) [2025-03-31 21:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 18:28:06' and `end` < '2025-03-31 21:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 21:28:19] Production.INFO: count ==2140 [2025-03-31 21:28:20] Production.ERROR: pbx CDR StartTime 2025-03-31 18:28:06 - End Time 2025-03-31 21:28:06 [2025-03-31 21:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 21:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806251', 'tblTempUsageDetail_20' ) start [2025-03-31 21:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806251', 'tblTempUsageDetail_20' ) end [2025-03-31 21:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806251', 'tblTempVendorCDR_20' ) start [2025-03-31 21:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806251', 'tblTempVendorCDR_20' ) end [2025-03-31 21:28:20] Production.INFO: ProcessCDR(1,14806251,1,1,2) [2025-03-31 21:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806251', 'tblTempUsageDetail_20' ) start [2025-03-31 21:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806251', 'tblTempUsageDetail_20' ) end [2025-03-31 21:28:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 21:28:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 21:28:23] Production.INFO: ==32042== Releasing lock... [2025-03-31 21:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 21:28:23] Production.INFO: 44.5 MB #Memory Used# [2025-03-31 21:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 18:29:05 [end_date_ymd] => 2025-03-31 21:29:05 [RateCDR] => 1 ) [2025-03-31 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-31 18:29:05' and `end` < '2025-03-31 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-31 21:29:18] Production.INFO: count ==2155 [2025-03-31 21:29:19] Production.ERROR: pbx CDR StartTime 2025-03-31 18:29:05 - End Time 2025-03-31 21:29:05 [2025-03-31 21:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806256', 'tblTempUsageDetail_20' ) start [2025-03-31 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806256', 'tblTempUsageDetail_20' ) end [2025-03-31 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806256', 'tblTempVendorCDR_20' ) start [2025-03-31 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806256', 'tblTempVendorCDR_20' ) end [2025-03-31 21:29:19] Production.INFO: ProcessCDR(1,14806256,1,1,2) [2025-03-31 21:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806256', 'tblTempUsageDetail_20' ) start [2025-03-31 21:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806256', 'tblTempUsageDetail_20' ) end [2025-03-31 21:29:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 21:29:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 21:29:22] Production.INFO: ==32156== Releasing lock... [2025-03-31 21:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 21:29:22] Production.INFO: 44.25 MB #Memory Used# [2025-03-31 21:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 18:30:07 [end_date_ymd] => 2025-03-31 21:30:07 [RateCDR] => 1 ) [2025-03-31 21: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-31 18:30:07' and `end` < '2025-03-31 21: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-31 21:30:20] Production.INFO: count ==2148 [2025-03-31 21:30:21] Production.ERROR: pbx CDR StartTime 2025-03-31 18:30:07 - End Time 2025-03-31 21:30:07 [2025-03-31 21:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 21:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806262', 'tblTempUsageDetail_20' ) start [2025-03-31 21:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806262', 'tblTempUsageDetail_20' ) end [2025-03-31 21:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806262', 'tblTempVendorCDR_20' ) start [2025-03-31 21:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806262', 'tblTempVendorCDR_20' ) end [2025-03-31 21:30:21] Production.INFO: ProcessCDR(1,14806262,1,1,2) [2025-03-31 21:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806262', 'tblTempUsageDetail_20' ) start [2025-03-31 21:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806262', 'tblTempUsageDetail_20' ) end [2025-03-31 21:30:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 21:30:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 21:30:24] Production.INFO: ==32232== Releasing lock... [2025-03-31 21:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 21:30:24] Production.INFO: 44.25 MB #Memory Used# [2025-03-31 21:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 18:31:06 [end_date_ymd] => 2025-03-31 21:31:06 [RateCDR] => 1 ) [2025-03-31 21:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 18:31:06' and `end` < '2025-03-31 21:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 21:31:18] Production.INFO: count ==2120 [2025-03-31 21:31:19] Production.ERROR: pbx CDR StartTime 2025-03-31 18:31:06 - End Time 2025-03-31 21:31:06 [2025-03-31 21:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806267', 'tblTempUsageDetail_20' ) start [2025-03-31 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806267', 'tblTempUsageDetail_20' ) end [2025-03-31 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806267', 'tblTempVendorCDR_20' ) start [2025-03-31 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806267', 'tblTempVendorCDR_20' ) end [2025-03-31 21:31:19] Production.INFO: ProcessCDR(1,14806267,1,1,2) [2025-03-31 21:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806267', 'tblTempUsageDetail_20' ) start [2025-03-31 21:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806267', 'tblTempUsageDetail_20' ) end [2025-03-31 21:31:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 21:31:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 21:31:23] Production.INFO: ==32307== Releasing lock... [2025-03-31 21:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 21:31:23] Production.INFO: 44 MB #Memory Used# [2025-03-31 21:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 18:32:06 [end_date_ymd] => 2025-03-31 21:32:06 [RateCDR] => 1 ) [2025-03-31 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-31 18:32:06' and `end` < '2025-03-31 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-31 21:32:19] Production.INFO: count ==2105 [2025-03-31 21:32:19] Production.ERROR: pbx CDR StartTime 2025-03-31 18:32:06 - End Time 2025-03-31 21:32:06 [2025-03-31 21:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806272', 'tblTempUsageDetail_20' ) start [2025-03-31 21:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806272', 'tblTempUsageDetail_20' ) end [2025-03-31 21:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806272', 'tblTempVendorCDR_20' ) start [2025-03-31 21:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806272', 'tblTempVendorCDR_20' ) end [2025-03-31 21:32:20] Production.INFO: ProcessCDR(1,14806272,1,1,2) [2025-03-31 21:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806272', 'tblTempUsageDetail_20' ) start [2025-03-31 21:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806272', 'tblTempUsageDetail_20' ) end [2025-03-31 21:32:25] Production.ERROR: pbx prc_insertCDR start [2025-03-31 21:32:25] Production.ERROR: pbx prc_insertCDR end [2025-03-31 21:32:25] Production.INFO: ==32387== Releasing lock... [2025-03-31 21:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 21:32:25] Production.INFO: 43.75 MB #Memory Used# [2025-03-31 21:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 18:33:05 [end_date_ymd] => 2025-03-31 21:33:05 [RateCDR] => 1 ) [2025-03-31 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-31 18:33:05' and `end` < '2025-03-31 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-31 21:33:18] Production.INFO: count ==2104 [2025-03-31 21:33:19] Production.ERROR: pbx CDR StartTime 2025-03-31 18:33:05 - End Time 2025-03-31 21:33:05 [2025-03-31 21:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806277', 'tblTempUsageDetail_20' ) start [2025-03-31 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806277', 'tblTempUsageDetail_20' ) end [2025-03-31 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806277', 'tblTempVendorCDR_20' ) start [2025-03-31 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806277', 'tblTempVendorCDR_20' ) end [2025-03-31 21:33:19] Production.INFO: ProcessCDR(1,14806277,1,1,2) [2025-03-31 21:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806277', 'tblTempUsageDetail_20' ) start [2025-03-31 21:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806277', 'tblTempUsageDetail_20' ) end [2025-03-31 21:33:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 21:33:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 21:33:22] Production.INFO: ==32462== Releasing lock... [2025-03-31 21:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 21:33:22] Production.INFO: 44 MB #Memory Used# [2025-03-31 21:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 18:34:05 [end_date_ymd] => 2025-03-31 21:34:05 [RateCDR] => 1 ) [2025-03-31 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-31 18:34:05' and `end` < '2025-03-31 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-31 21:34:18] Production.INFO: count ==2108 [2025-03-31 21:34:19] Production.ERROR: pbx CDR StartTime 2025-03-31 18:34:05 - End Time 2025-03-31 21:34:05 [2025-03-31 21:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806282', 'tblTempUsageDetail_20' ) start [2025-03-31 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806282', 'tblTempUsageDetail_20' ) end [2025-03-31 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806282', 'tblTempVendorCDR_20' ) start [2025-03-31 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806282', 'tblTempVendorCDR_20' ) end [2025-03-31 21:34:19] Production.INFO: ProcessCDR(1,14806282,1,1,2) [2025-03-31 21:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806282', 'tblTempUsageDetail_20' ) start [2025-03-31 21:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806282', 'tblTempUsageDetail_20' ) end [2025-03-31 21:34:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 21:34:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 21:34:24] Production.INFO: ==32534== Releasing lock... [2025-03-31 21:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 21:34:24] Production.INFO: 44 MB #Memory Used# [2025-03-31 21:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 18:35:05 [end_date_ymd] => 2025-03-31 21:35:05 [RateCDR] => 1 ) [2025-03-31 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-31 18:35:05' and `end` < '2025-03-31 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-31 21:35:18] Production.INFO: count ==2097 [2025-03-31 21:35:18] Production.ERROR: pbx CDR StartTime 2025-03-31 18:35:05 - End Time 2025-03-31 21:35:05 [2025-03-31 21:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806287', 'tblTempUsageDetail_20' ) start [2025-03-31 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806287', 'tblTempUsageDetail_20' ) end [2025-03-31 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806287', 'tblTempVendorCDR_20' ) start [2025-03-31 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806287', 'tblTempVendorCDR_20' ) end [2025-03-31 21:35:18] Production.INFO: ProcessCDR(1,14806287,1,1,2) [2025-03-31 21:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806287', 'tblTempUsageDetail_20' ) start [2025-03-31 21:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806287', 'tblTempUsageDetail_20' ) end [2025-03-31 21:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 21:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 21:35:22] Production.INFO: ==32619== Releasing lock... [2025-03-31 21:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 21:35:22] Production.INFO: 44 MB #Memory Used# [2025-03-31 21:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 18:36:05 [end_date_ymd] => 2025-03-31 21:36:05 [RateCDR] => 1 ) [2025-03-31 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-31 18:36:05' and `end` < '2025-03-31 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-31 21:36:18] Production.INFO: count ==2082 [2025-03-31 21:36:19] Production.ERROR: pbx CDR StartTime 2025-03-31 18:36:05 - End Time 2025-03-31 21:36:05 [2025-03-31 21:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806292', 'tblTempUsageDetail_20' ) start [2025-03-31 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806292', 'tblTempUsageDetail_20' ) end [2025-03-31 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806292', 'tblTempVendorCDR_20' ) start [2025-03-31 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806292', 'tblTempVendorCDR_20' ) end [2025-03-31 21:36:19] Production.INFO: ProcessCDR(1,14806292,1,1,2) [2025-03-31 21:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806292', 'tblTempUsageDetail_20' ) start [2025-03-31 21:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806292', 'tblTempUsageDetail_20' ) end [2025-03-31 21:36:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 21:36:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 21:36:24] Production.INFO: ==32696== Releasing lock... [2025-03-31 21:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 21:36:24] Production.INFO: 43.75 MB #Memory Used# [2025-03-31 21:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 18:37:04 [end_date_ymd] => 2025-03-31 21:37:04 [RateCDR] => 1 ) [2025-03-31 21: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-31 18:37:04' and `end` < '2025-03-31 21: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-31 21:37:17] Production.INFO: count ==2095 [2025-03-31 21:37:18] Production.ERROR: pbx CDR StartTime 2025-03-31 18:37:04 - End Time 2025-03-31 21:37:04 [2025-03-31 21:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806297', 'tblTempUsageDetail_20' ) start [2025-03-31 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806297', 'tblTempUsageDetail_20' ) end [2025-03-31 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806297', 'tblTempVendorCDR_20' ) start [2025-03-31 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806297', 'tblTempVendorCDR_20' ) end [2025-03-31 21:37:18] Production.INFO: ProcessCDR(1,14806297,1,1,2) [2025-03-31 21:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806297', 'tblTempUsageDetail_20' ) start [2025-03-31 21:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806297', 'tblTempUsageDetail_20' ) end [2025-03-31 21:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 21:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 21:37:21] Production.INFO: ==32765== Releasing lock... [2025-03-31 21:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 21:37:21] Production.INFO: 43.75 MB #Memory Used# [2025-03-31 21:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 18:38:05 [end_date_ymd] => 2025-03-31 21:38:05 [RateCDR] => 1 ) [2025-03-31 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-31 18:38:05' and `end` < '2025-03-31 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-31 21:38:18] Production.INFO: count ==2102 [2025-03-31 21:38:19] Production.ERROR: pbx CDR StartTime 2025-03-31 18:38:05 - End Time 2025-03-31 21:38:05 [2025-03-31 21:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806302', 'tblTempUsageDetail_20' ) start [2025-03-31 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806302', 'tblTempUsageDetail_20' ) end [2025-03-31 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806302', 'tblTempVendorCDR_20' ) start [2025-03-31 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806302', 'tblTempVendorCDR_20' ) end [2025-03-31 21:38:19] Production.INFO: ProcessCDR(1,14806302,1,1,2) [2025-03-31 21:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806302', 'tblTempUsageDetail_20' ) start [2025-03-31 21:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806302', 'tblTempUsageDetail_20' ) end [2025-03-31 21:38:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 21:38:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 21:38:24] Production.INFO: ==390== Releasing lock... [2025-03-31 21:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 21:38:24] Production.INFO: 44 MB #Memory Used# [2025-03-31 21:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 18:39:05 [end_date_ymd] => 2025-03-31 21:39:05 [RateCDR] => 1 ) [2025-03-31 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-31 18:39:05' and `end` < '2025-03-31 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-31 21:39:18] Production.INFO: count ==2063 [2025-03-31 21:39:19] Production.ERROR: pbx CDR StartTime 2025-03-31 18:39:05 - End Time 2025-03-31 21:39:05 [2025-03-31 21:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806307', 'tblTempUsageDetail_20' ) start [2025-03-31 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806307', 'tblTempUsageDetail_20' ) end [2025-03-31 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806307', 'tblTempVendorCDR_20' ) start [2025-03-31 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806307', 'tblTempVendorCDR_20' ) end [2025-03-31 21:39:19] Production.INFO: ProcessCDR(1,14806307,1,1,2) [2025-03-31 21:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806307', 'tblTempUsageDetail_20' ) start [2025-03-31 21:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806307', 'tblTempUsageDetail_20' ) end [2025-03-31 21:39:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 21:39:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 21:39:22] Production.INFO: ==465== Releasing lock... [2025-03-31 21:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 21:39:22] Production.INFO: 43.5 MB #Memory Used# [2025-03-31 21:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 18:40:06 [end_date_ymd] => 2025-03-31 21:40:06 [RateCDR] => 1 ) [2025-03-31 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-31 18:40:06' and `end` < '2025-03-31 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-31 21:40:19] Production.INFO: count ==1986 [2025-03-31 21:40:20] Production.ERROR: pbx CDR StartTime 2025-03-31 18:40:06 - End Time 2025-03-31 21:40:06 [2025-03-31 21:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 21:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806313', 'tblTempUsageDetail_20' ) start [2025-03-31 21:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806313', 'tblTempUsageDetail_20' ) end [2025-03-31 21:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806313', 'tblTempVendorCDR_20' ) start [2025-03-31 21:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806313', 'tblTempVendorCDR_20' ) end [2025-03-31 21:40:20] Production.INFO: ProcessCDR(1,14806313,1,1,2) [2025-03-31 21:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806313', 'tblTempUsageDetail_20' ) start [2025-03-31 21:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806313', 'tblTempUsageDetail_20' ) end [2025-03-31 21:40:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 21:40:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 21:40:23] Production.INFO: ==553== Releasing lock... [2025-03-31 21:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 21:40:23] Production.INFO: 43 MB #Memory Used# [2025-03-31 21:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 18:41:05 [end_date_ymd] => 2025-03-31 21:41:05 [RateCDR] => 1 ) [2025-03-31 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-31 18:41:05' and `end` < '2025-03-31 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-31 21:41:17] Production.INFO: count ==1904 [2025-03-31 21:41:18] Production.ERROR: pbx CDR StartTime 2025-03-31 18:41:05 - End Time 2025-03-31 21:41:05 [2025-03-31 21:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806318', 'tblTempUsageDetail_20' ) start [2025-03-31 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806318', 'tblTempUsageDetail_20' ) end [2025-03-31 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806318', 'tblTempVendorCDR_20' ) start [2025-03-31 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806318', 'tblTempVendorCDR_20' ) end [2025-03-31 21:41:18] Production.INFO: ProcessCDR(1,14806318,1,1,2) [2025-03-31 21:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806318', 'tblTempUsageDetail_20' ) start [2025-03-31 21:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806318', 'tblTempUsageDetail_20' ) end [2025-03-31 21:41:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 21:41:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 21:41:23] Production.INFO: ==638== Releasing lock... [2025-03-31 21:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 21:41:23] Production.INFO: 42.25 MB #Memory Used# [2025-03-31 21:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 18:42:05 [end_date_ymd] => 2025-03-31 21:42:05 [RateCDR] => 1 ) [2025-03-31 21:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 18:42:05' and `end` < '2025-03-31 21:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 21:42:18] Production.INFO: count ==1834 [2025-03-31 21:42:19] Production.ERROR: pbx CDR StartTime 2025-03-31 18:42:05 - End Time 2025-03-31 21:42:05 [2025-03-31 21:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806323', 'tblTempUsageDetail_20' ) start [2025-03-31 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806323', 'tblTempUsageDetail_20' ) end [2025-03-31 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806323', 'tblTempVendorCDR_20' ) start [2025-03-31 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806323', 'tblTempVendorCDR_20' ) end [2025-03-31 21:42:19] Production.INFO: ProcessCDR(1,14806323,1,1,2) [2025-03-31 21:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806323', 'tblTempUsageDetail_20' ) start [2025-03-31 21:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806323', 'tblTempUsageDetail_20' ) end [2025-03-31 21:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 21:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 21:42:22] Production.INFO: ==738== Releasing lock... [2025-03-31 21:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 21:42:22] Production.INFO: 41.75 MB #Memory Used# [2025-03-31 21:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 18:43:05 [end_date_ymd] => 2025-03-31 21:43:05 [RateCDR] => 1 ) [2025-03-31 21:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 18:43:05' and `end` < '2025-03-31 21:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 21:43:18] Production.INFO: count ==1737 [2025-03-31 21:43:18] Production.ERROR: pbx CDR StartTime 2025-03-31 18:43:05 - End Time 2025-03-31 21:43:05 [2025-03-31 21:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806328', 'tblTempUsageDetail_20' ) start [2025-03-31 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806328', 'tblTempUsageDetail_20' ) end [2025-03-31 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806328', 'tblTempVendorCDR_20' ) start [2025-03-31 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806328', 'tblTempVendorCDR_20' ) end [2025-03-31 21:43:18] Production.INFO: ProcessCDR(1,14806328,1,1,2) [2025-03-31 21:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806328', 'tblTempUsageDetail_20' ) start [2025-03-31 21:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806328', 'tblTempUsageDetail_20' ) end [2025-03-31 21:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 21:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 21:43:22] Production.INFO: ==811== Releasing lock... [2025-03-31 21:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 21:43:22] Production.INFO: 41 MB #Memory Used# [2025-03-31 21:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 18:44:05 [end_date_ymd] => 2025-03-31 21:44:05 [RateCDR] => 1 ) [2025-03-31 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-31 18:44:05' and `end` < '2025-03-31 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-31 21:44:18] Production.INFO: count ==1669 [2025-03-31 21:44:18] Production.ERROR: pbx CDR StartTime 2025-03-31 18:44:05 - End Time 2025-03-31 21:44:05 [2025-03-31 21:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806333', 'tblTempUsageDetail_20' ) start [2025-03-31 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806333', 'tblTempUsageDetail_20' ) end [2025-03-31 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806333', 'tblTempVendorCDR_20' ) start [2025-03-31 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806333', 'tblTempVendorCDR_20' ) end [2025-03-31 21:44:18] Production.INFO: ProcessCDR(1,14806333,1,1,2) [2025-03-31 21:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806333', 'tblTempUsageDetail_20' ) start [2025-03-31 21:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806333', 'tblTempUsageDetail_20' ) end [2025-03-31 21:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 21:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 21:44:22] Production.INFO: ==926== Releasing lock... [2025-03-31 21:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 21:44:22] Production.INFO: 40.5 MB #Memory Used# [2025-03-31 21:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 18:45:05 [end_date_ymd] => 2025-03-31 21:45:05 [RateCDR] => 1 ) [2025-03-31 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-31 18:45:05' and `end` < '2025-03-31 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-31 21:45:18] Production.INFO: count ==1667 [2025-03-31 21:45:19] Production.ERROR: pbx CDR StartTime 2025-03-31 18:45:05 - End Time 2025-03-31 21:45:05 [2025-03-31 21:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806338', 'tblTempUsageDetail_20' ) start [2025-03-31 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806338', 'tblTempUsageDetail_20' ) end [2025-03-31 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806338', 'tblTempVendorCDR_20' ) start [2025-03-31 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806338', 'tblTempVendorCDR_20' ) end [2025-03-31 21:45:19] Production.INFO: ProcessCDR(1,14806338,1,1,2) [2025-03-31 21:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806338', 'tblTempUsageDetail_20' ) start [2025-03-31 21:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806338', 'tblTempUsageDetail_20' ) end [2025-03-31 21:45:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 21:45:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 21:45:22] Production.INFO: ==1005== Releasing lock... [2025-03-31 21:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 21:45:22] Production.INFO: 40.5 MB #Memory Used# [2025-03-31 21:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 18:46:06 [end_date_ymd] => 2025-03-31 21:46:06 [RateCDR] => 1 ) [2025-03-31 21: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-31 18:46:06' and `end` < '2025-03-31 21: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-31 21:46:18] Production.INFO: count ==1675 [2025-03-31 21:46:19] Production.ERROR: pbx CDR StartTime 2025-03-31 18:46:06 - End Time 2025-03-31 21:46:06 [2025-03-31 21:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806343', 'tblTempUsageDetail_20' ) start [2025-03-31 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806343', 'tblTempUsageDetail_20' ) end [2025-03-31 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806343', 'tblTempVendorCDR_20' ) start [2025-03-31 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806343', 'tblTempVendorCDR_20' ) end [2025-03-31 21:46:19] Production.INFO: ProcessCDR(1,14806343,1,1,2) [2025-03-31 21:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806343', 'tblTempUsageDetail_20' ) start [2025-03-31 21:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806343', 'tblTempUsageDetail_20' ) end [2025-03-31 21:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 21:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 21:46:22] Production.INFO: ==1081== Releasing lock... [2025-03-31 21:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 21:46:22] Production.INFO: 40.5 MB #Memory Used# [2025-03-31 21:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 18:47:06 [end_date_ymd] => 2025-03-31 21:47:06 [RateCDR] => 1 ) [2025-03-31 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-31 18:47:06' and `end` < '2025-03-31 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-31 21:47:19] Production.INFO: count ==1670 [2025-03-31 21:47:19] Production.ERROR: pbx CDR StartTime 2025-03-31 18:47:06 - End Time 2025-03-31 21:47:06 [2025-03-31 21:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806348', 'tblTempUsageDetail_20' ) start [2025-03-31 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806348', 'tblTempUsageDetail_20' ) end [2025-03-31 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806348', 'tblTempVendorCDR_20' ) start [2025-03-31 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806348', 'tblTempVendorCDR_20' ) end [2025-03-31 21:47:19] Production.INFO: ProcessCDR(1,14806348,1,1,2) [2025-03-31 21:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806348', 'tblTempUsageDetail_20' ) start [2025-03-31 21:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806348', 'tblTempUsageDetail_20' ) end [2025-03-31 21:47:25] Production.ERROR: pbx prc_insertCDR start [2025-03-31 21:47:25] Production.ERROR: pbx prc_insertCDR end [2025-03-31 21:47:25] Production.INFO: ==1158== Releasing lock... [2025-03-31 21:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 21:47:25] Production.INFO: 40.5 MB #Memory Used# [2025-03-31 21:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 18:48:05 [end_date_ymd] => 2025-03-31 21:48:05 [RateCDR] => 1 ) [2025-03-31 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-31 18:48:05' and `end` < '2025-03-31 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-31 21:48:18] Production.INFO: count ==1674 [2025-03-31 21:48:19] Production.ERROR: pbx CDR StartTime 2025-03-31 18:48:05 - End Time 2025-03-31 21:48:05 [2025-03-31 21:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806353', 'tblTempUsageDetail_20' ) start [2025-03-31 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806353', 'tblTempUsageDetail_20' ) end [2025-03-31 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806353', 'tblTempVendorCDR_20' ) start [2025-03-31 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806353', 'tblTempVendorCDR_20' ) end [2025-03-31 21:48:19] Production.INFO: ProcessCDR(1,14806353,1,1,2) [2025-03-31 21:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806353', 'tblTempUsageDetail_20' ) start [2025-03-31 21:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806353', 'tblTempUsageDetail_20' ) end [2025-03-31 21:48:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 21:48:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 21:48:24] Production.INFO: ==1235== Releasing lock... [2025-03-31 21:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 21:48:24] Production.INFO: 40.5 MB #Memory Used# [2025-03-31 21:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 18:49:06 [end_date_ymd] => 2025-03-31 21:49:06 [RateCDR] => 1 ) [2025-03-31 21: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-31 18:49:06' and `end` < '2025-03-31 21: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-31 21:49:19] Production.INFO: count ==1659 [2025-03-31 21:49:19] Production.ERROR: pbx CDR StartTime 2025-03-31 18:49:06 - End Time 2025-03-31 21:49:06 [2025-03-31 21:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806358', 'tblTempUsageDetail_20' ) start [2025-03-31 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806358', 'tblTempUsageDetail_20' ) end [2025-03-31 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806358', 'tblTempVendorCDR_20' ) start [2025-03-31 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806358', 'tblTempVendorCDR_20' ) end [2025-03-31 21:49:19] Production.INFO: ProcessCDR(1,14806358,1,1,2) [2025-03-31 21:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806358', 'tblTempUsageDetail_20' ) start [2025-03-31 21:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806358', 'tblTempUsageDetail_20' ) end [2025-03-31 21:49:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 21:49:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 21:49:23] Production.INFO: ==1322== Releasing lock... [2025-03-31 21:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 21:49:23] Production.INFO: 40.5 MB #Memory Used# [2025-03-31 21:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 18:50:07 [end_date_ymd] => 2025-03-31 21:50:07 [RateCDR] => 1 ) [2025-03-31 21: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-31 18:50:07' and `end` < '2025-03-31 21: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-31 21:50:19] Production.INFO: count ==1652 [2025-03-31 21:50:20] Production.ERROR: pbx CDR StartTime 2025-03-31 18:50:07 - End Time 2025-03-31 21:50:07 [2025-03-31 21:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 21:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806364', 'tblTempUsageDetail_20' ) start [2025-03-31 21:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806364', 'tblTempUsageDetail_20' ) end [2025-03-31 21:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806364', 'tblTempVendorCDR_20' ) start [2025-03-31 21:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806364', 'tblTempVendorCDR_20' ) end [2025-03-31 21:50:20] Production.INFO: ProcessCDR(1,14806364,1,1,2) [2025-03-31 21:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806364', 'tblTempUsageDetail_20' ) start [2025-03-31 21:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806364', 'tblTempUsageDetail_20' ) end [2025-03-31 21:50:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 21:50:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 21:50:24] Production.INFO: ==1396== Releasing lock... [2025-03-31 21:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 21:50:24] Production.INFO: 40.5 MB #Memory Used# [2025-03-31 21:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 18:51:06 [end_date_ymd] => 2025-03-31 21:51:06 [RateCDR] => 1 ) [2025-03-31 21:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 18:51:06' and `end` < '2025-03-31 21:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 21:51:19] Production.INFO: count ==1641 [2025-03-31 21:51:19] Production.ERROR: pbx CDR StartTime 2025-03-31 18:51:06 - End Time 2025-03-31 21:51:06 [2025-03-31 21:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806369', 'tblTempUsageDetail_20' ) start [2025-03-31 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806369', 'tblTempUsageDetail_20' ) end [2025-03-31 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806369', 'tblTempVendorCDR_20' ) start [2025-03-31 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806369', 'tblTempVendorCDR_20' ) end [2025-03-31 21:51:19] Production.INFO: ProcessCDR(1,14806369,1,1,2) [2025-03-31 21:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806369', 'tblTempUsageDetail_20' ) start [2025-03-31 21:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806369', 'tblTempUsageDetail_20' ) end [2025-03-31 21:51:25] Production.ERROR: pbx prc_insertCDR start [2025-03-31 21:51:25] Production.ERROR: pbx prc_insertCDR end [2025-03-31 21:51:25] Production.INFO: ==1474== Releasing lock... [2025-03-31 21:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 21:51:25] Production.INFO: 40.25 MB #Memory Used# [2025-03-31 21:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 18:52:06 [end_date_ymd] => 2025-03-31 21:52:06 [RateCDR] => 1 ) [2025-03-31 21: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-31 18:52:06' and `end` < '2025-03-31 21: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-31 21:52:19] Production.INFO: count ==1641 [2025-03-31 21:52:19] Production.ERROR: pbx CDR StartTime 2025-03-31 18:52:06 - End Time 2025-03-31 21:52:06 [2025-03-31 21:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806374', 'tblTempUsageDetail_20' ) start [2025-03-31 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806374', 'tblTempUsageDetail_20' ) end [2025-03-31 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806374', 'tblTempVendorCDR_20' ) start [2025-03-31 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806374', 'tblTempVendorCDR_20' ) end [2025-03-31 21:52:19] Production.INFO: ProcessCDR(1,14806374,1,1,2) [2025-03-31 21:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806374', 'tblTempUsageDetail_20' ) start [2025-03-31 21:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806374', 'tblTempUsageDetail_20' ) end [2025-03-31 21:52:25] Production.ERROR: pbx prc_insertCDR start [2025-03-31 21:52:25] Production.ERROR: pbx prc_insertCDR end [2025-03-31 21:52:25] Production.INFO: ==1582== Releasing lock... [2025-03-31 21:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 21:52:25] Production.INFO: 40.5 MB #Memory Used# [2025-03-31 21:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 18:53:06 [end_date_ymd] => 2025-03-31 21:53:06 [RateCDR] => 1 ) [2025-03-31 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-31 18:53:06' and `end` < '2025-03-31 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-31 21:53:19] Production.INFO: count ==1651 [2025-03-31 21:53:19] Production.ERROR: pbx CDR StartTime 2025-03-31 18:53:06 - End Time 2025-03-31 21:53:06 [2025-03-31 21:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806379', 'tblTempUsageDetail_20' ) start [2025-03-31 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806379', 'tblTempUsageDetail_20' ) end [2025-03-31 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806379', 'tblTempVendorCDR_20' ) start [2025-03-31 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806379', 'tblTempVendorCDR_20' ) end [2025-03-31 21:53:19] Production.INFO: ProcessCDR(1,14806379,1,1,2) [2025-03-31 21:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806379', 'tblTempUsageDetail_20' ) start [2025-03-31 21:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806379', 'tblTempUsageDetail_20' ) end [2025-03-31 21:53:25] Production.ERROR: pbx prc_insertCDR start [2025-03-31 21:53:25] Production.ERROR: pbx prc_insertCDR end [2025-03-31 21:53:25] Production.INFO: ==1658== Releasing lock... [2025-03-31 21:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 21:53:25] Production.INFO: 40.75 MB #Memory Used# [2025-03-31 21:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 18:54:06 [end_date_ymd] => 2025-03-31 21:54:06 [RateCDR] => 1 ) [2025-03-31 21:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 18:54:06' and `end` < '2025-03-31 21:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 21:54:18] Production.INFO: count ==1655 [2025-03-31 21:54:19] Production.ERROR: pbx CDR StartTime 2025-03-31 18:54:06 - End Time 2025-03-31 21:54:06 [2025-03-31 21:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806384', 'tblTempUsageDetail_20' ) start [2025-03-31 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806384', 'tblTempUsageDetail_20' ) end [2025-03-31 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806384', 'tblTempVendorCDR_20' ) start [2025-03-31 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806384', 'tblTempVendorCDR_20' ) end [2025-03-31 21:54:19] Production.INFO: ProcessCDR(1,14806384,1,1,2) [2025-03-31 21:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806384', 'tblTempUsageDetail_20' ) start [2025-03-31 21:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806384', 'tblTempUsageDetail_20' ) end [2025-03-31 21:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 21:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 21:54:22] Production.INFO: ==1731== Releasing lock... [2025-03-31 21:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 21:54:23] Production.INFO: 40.5 MB #Memory Used# [2025-03-31 21:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 18:55:05 [end_date_ymd] => 2025-03-31 21:55:05 [RateCDR] => 1 ) [2025-03-31 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-31 18:55:05' and `end` < '2025-03-31 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-31 21:55:18] Production.INFO: count ==1654 [2025-03-31 21:55:19] Production.ERROR: pbx CDR StartTime 2025-03-31 18:55:05 - End Time 2025-03-31 21:55:05 [2025-03-31 21:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806389', 'tblTempUsageDetail_20' ) start [2025-03-31 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806389', 'tblTempUsageDetail_20' ) end [2025-03-31 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806389', 'tblTempVendorCDR_20' ) start [2025-03-31 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806389', 'tblTempVendorCDR_20' ) end [2025-03-31 21:55:19] Production.INFO: ProcessCDR(1,14806389,1,1,2) [2025-03-31 21:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806389', 'tblTempUsageDetail_20' ) start [2025-03-31 21:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806389', 'tblTempUsageDetail_20' ) end [2025-03-31 21:55:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 21:55:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 21:55:24] Production.INFO: ==1801== Releasing lock... [2025-03-31 21:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 21:55:24] Production.INFO: 40.5 MB #Memory Used# [2025-03-31 21:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 18:56:06 [end_date_ymd] => 2025-03-31 21:56:06 [RateCDR] => 1 ) [2025-03-31 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-31 18:56:06' and `end` < '2025-03-31 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-31 21:56:19] Production.INFO: count ==1638 [2025-03-31 21:56:19] Production.ERROR: pbx CDR StartTime 2025-03-31 18:56:06 - End Time 2025-03-31 21:56:06 [2025-03-31 21:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806394', 'tblTempUsageDetail_20' ) start [2025-03-31 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806394', 'tblTempUsageDetail_20' ) end [2025-03-31 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806394', 'tblTempVendorCDR_20' ) start [2025-03-31 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806394', 'tblTempVendorCDR_20' ) end [2025-03-31 21:56:19] Production.INFO: ProcessCDR(1,14806394,1,1,2) [2025-03-31 21:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806394', 'tblTempUsageDetail_20' ) start [2025-03-31 21:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806394', 'tblTempUsageDetail_20' ) end [2025-03-31 21:56:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 21:56:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 21:56:23] Production.INFO: ==1878== Releasing lock... [2025-03-31 21:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 21:56:23] Production.INFO: 40.5 MB #Memory Used# [2025-03-31 21:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 18:57:06 [end_date_ymd] => 2025-03-31 21:57:06 [RateCDR] => 1 ) [2025-03-31 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-31 18:57:06' and `end` < '2025-03-31 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-31 21:57:19] Production.INFO: count ==1633 [2025-03-31 21:57:19] Production.ERROR: pbx CDR StartTime 2025-03-31 18:57:06 - End Time 2025-03-31 21:57:06 [2025-03-31 21:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806399', 'tblTempUsageDetail_20' ) start [2025-03-31 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806399', 'tblTempUsageDetail_20' ) end [2025-03-31 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806399', 'tblTempVendorCDR_20' ) start [2025-03-31 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806399', 'tblTempVendorCDR_20' ) end [2025-03-31 21:57:19] Production.INFO: ProcessCDR(1,14806399,1,1,2) [2025-03-31 21:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806399', 'tblTempUsageDetail_20' ) start [2025-03-31 21:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806399', 'tblTempUsageDetail_20' ) end [2025-03-31 21:57:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 21:57:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 21:57:23] Production.INFO: ==1951== Releasing lock... [2025-03-31 21:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 21:57:23] Production.INFO: 40.25 MB #Memory Used# [2025-03-31 21:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 18:58:05 [end_date_ymd] => 2025-03-31 21:58:05 [RateCDR] => 1 ) [2025-03-31 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-31 18:58:05' and `end` < '2025-03-31 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-31 21:58:18] Production.INFO: count ==1621 [2025-03-31 21:58:19] Production.ERROR: pbx CDR StartTime 2025-03-31 18:58:05 - End Time 2025-03-31 21:58:05 [2025-03-31 21:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806404', 'tblTempUsageDetail_20' ) start [2025-03-31 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806404', 'tblTempUsageDetail_20' ) end [2025-03-31 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806404', 'tblTempVendorCDR_20' ) start [2025-03-31 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806404', 'tblTempVendorCDR_20' ) end [2025-03-31 21:58:19] Production.INFO: ProcessCDR(1,14806404,1,1,2) [2025-03-31 21:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806404', 'tblTempUsageDetail_20' ) start [2025-03-31 21:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806404', 'tblTempUsageDetail_20' ) end [2025-03-31 21:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 21:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 21:58:22] Production.INFO: ==2026== Releasing lock... [2025-03-31 21:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 21:58:22] Production.INFO: 40.5 MB #Memory Used# [2025-03-31 21:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 18:59:05 [end_date_ymd] => 2025-03-31 21:59:05 [RateCDR] => 1 ) [2025-03-31 21:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 18:59:05' and `end` < '2025-03-31 21:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 21:59:18] Production.INFO: count ==1620 [2025-03-31 21:59:18] Production.ERROR: pbx CDR StartTime 2025-03-31 18:59:05 - End Time 2025-03-31 21:59:05 [2025-03-31 21:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806409', 'tblTempUsageDetail_20' ) start [2025-03-31 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806409', 'tblTempUsageDetail_20' ) end [2025-03-31 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806409', 'tblTempVendorCDR_20' ) start [2025-03-31 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806409', 'tblTempVendorCDR_20' ) end [2025-03-31 21:59:18] Production.INFO: ProcessCDR(1,14806409,1,1,2) [2025-03-31 21:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 21:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 21:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806409', 'tblTempUsageDetail_20' ) start [2025-03-31 21:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806409', 'tblTempUsageDetail_20' ) end [2025-03-31 21:59:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 21:59:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 21:59:24] Production.INFO: ==2099== Releasing lock... [2025-03-31 21:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 21:59:24] Production.INFO: 40.25 MB #Memory Used# [2025-03-31 22:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 19:00:06 [end_date_ymd] => 2025-03-31 22:00:06 [RateCDR] => 1 ) [2025-03-31 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-31 19:00:06' and `end` < '2025-03-31 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-31 22:00:18] Production.INFO: count ==1627 [2025-03-31 22:00:19] Production.ERROR: pbx CDR StartTime 2025-03-31 19:00:06 - End Time 2025-03-31 22:00:06 [2025-03-31 22:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806415', 'tblTempUsageDetail_20' ) start [2025-03-31 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806415', 'tblTempUsageDetail_20' ) end [2025-03-31 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806415', 'tblTempVendorCDR_20' ) start [2025-03-31 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806415', 'tblTempVendorCDR_20' ) end [2025-03-31 22:00:19] Production.INFO: ProcessCDR(1,14806415,1,1,2) [2025-03-31 22:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806415', 'tblTempUsageDetail_20' ) start [2025-03-31 22:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806415', 'tblTempUsageDetail_20' ) end [2025-03-31 22:00:25] Production.ERROR: pbx prc_insertCDR start [2025-03-31 22:00:25] Production.ERROR: pbx prc_insertCDR end [2025-03-31 22:00:25] Production.INFO: ==2219== Releasing lock... [2025-03-31 22:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 22:00:25] Production.INFO: 40.5 MB #Memory Used# [2025-03-31 22:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 19:01:06 [end_date_ymd] => 2025-03-31 22:01:06 [RateCDR] => 1 ) [2025-03-31 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-31 19:01:06' and `end` < '2025-03-31 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-31 22:01:19] Production.INFO: count ==1638 [2025-03-31 22:01:19] Production.ERROR: pbx CDR StartTime 2025-03-31 19:01:06 - End Time 2025-03-31 22:01:06 [2025-03-31 22:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806420', 'tblTempUsageDetail_20' ) start [2025-03-31 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806420', 'tblTempUsageDetail_20' ) end [2025-03-31 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806420', 'tblTempVendorCDR_20' ) start [2025-03-31 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806420', 'tblTempVendorCDR_20' ) end [2025-03-31 22:01:19] Production.INFO: ProcessCDR(1,14806420,1,1,2) [2025-03-31 22:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806420', 'tblTempUsageDetail_20' ) start [2025-03-31 22:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806420', 'tblTempUsageDetail_20' ) end [2025-03-31 22:01:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 22:01:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 22:01:24] Production.INFO: ==2310== Releasing lock... [2025-03-31 22:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 22:01:24] Production.INFO: 40.5 MB #Memory Used# [2025-03-31 22:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 19:02:06 [end_date_ymd] => 2025-03-31 22:02:06 [RateCDR] => 1 ) [2025-03-31 22: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-31 19:02:06' and `end` < '2025-03-31 22: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-31 22:02:19] Production.INFO: count ==1624 [2025-03-31 22:02:19] Production.ERROR: pbx CDR StartTime 2025-03-31 19:02:06 - End Time 2025-03-31 22:02:06 [2025-03-31 22:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806425', 'tblTempUsageDetail_20' ) start [2025-03-31 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806425', 'tblTempUsageDetail_20' ) end [2025-03-31 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806425', 'tblTempVendorCDR_20' ) start [2025-03-31 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806425', 'tblTempVendorCDR_20' ) end [2025-03-31 22:02:19] Production.INFO: ProcessCDR(1,14806425,1,1,2) [2025-03-31 22:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806425', 'tblTempUsageDetail_20' ) start [2025-03-31 22:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806425', 'tblTempUsageDetail_20' ) end [2025-03-31 22:02:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 22:02:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 22:02:23] Production.INFO: ==2384== Releasing lock... [2025-03-31 22:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 22:02:23] Production.INFO: 40.25 MB #Memory Used# [2025-03-31 22:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 19:03:05 [end_date_ymd] => 2025-03-31 22:03:05 [RateCDR] => 1 ) [2025-03-31 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-31 19:03:05' and `end` < '2025-03-31 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-31 22:03:18] Production.INFO: count ==1618 [2025-03-31 22:03:19] Production.ERROR: pbx CDR StartTime 2025-03-31 19:03:05 - End Time 2025-03-31 22:03:05 [2025-03-31 22:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806430', 'tblTempUsageDetail_20' ) start [2025-03-31 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806430', 'tblTempUsageDetail_20' ) end [2025-03-31 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806430', 'tblTempVendorCDR_20' ) start [2025-03-31 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806430', 'tblTempVendorCDR_20' ) end [2025-03-31 22:03:19] Production.INFO: ProcessCDR(1,14806430,1,1,2) [2025-03-31 22:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806430', 'tblTempUsageDetail_20' ) start [2025-03-31 22:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806430', 'tblTempUsageDetail_20' ) end [2025-03-31 22:03:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 22:03:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 22:03:23] Production.INFO: ==2457== Releasing lock... [2025-03-31 22:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 22:03:23] Production.INFO: 40.25 MB #Memory Used# [2025-03-31 22:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 19:04:06 [end_date_ymd] => 2025-03-31 22:04:06 [RateCDR] => 1 ) [2025-03-31 22:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 19:04:06' and `end` < '2025-03-31 22: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-31 22:04:19] Production.INFO: count ==1618 [2025-03-31 22:04:19] Production.ERROR: pbx CDR StartTime 2025-03-31 19:04:06 - End Time 2025-03-31 22:04:06 [2025-03-31 22:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806435', 'tblTempUsageDetail_20' ) start [2025-03-31 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806435', 'tblTempUsageDetail_20' ) end [2025-03-31 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806435', 'tblTempVendorCDR_20' ) start [2025-03-31 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806435', 'tblTempVendorCDR_20' ) end [2025-03-31 22:04:19] Production.INFO: ProcessCDR(1,14806435,1,1,2) [2025-03-31 22:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806435', 'tblTempUsageDetail_20' ) start [2025-03-31 22:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806435', 'tblTempUsageDetail_20' ) end [2025-03-31 22:04:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 22:04:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 22:04:23] Production.INFO: ==2531== Releasing lock... [2025-03-31 22:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 22:04:23] Production.INFO: 40.25 MB #Memory Used# [2025-03-31 22:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 19:05:06 [end_date_ymd] => 2025-03-31 22:05:06 [RateCDR] => 1 ) [2025-03-31 22: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-31 19:05:06' and `end` < '2025-03-31 22: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-31 22:05:19] Production.INFO: count ==1618 [2025-03-31 22:05:19] Production.ERROR: pbx CDR StartTime 2025-03-31 19:05:06 - End Time 2025-03-31 22:05:06 [2025-03-31 22:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 22:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806440', 'tblTempUsageDetail_20' ) start [2025-03-31 22:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806440', 'tblTempUsageDetail_20' ) end [2025-03-31 22:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806440', 'tblTempVendorCDR_20' ) start [2025-03-31 22:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806440', 'tblTempVendorCDR_20' ) end [2025-03-31 22:05:19] Production.INFO: ProcessCDR(1,14806440,1,1,2) [2025-03-31 22:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806440', 'tblTempUsageDetail_20' ) start [2025-03-31 22:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806440', 'tblTempUsageDetail_20' ) end [2025-03-31 22:05:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 22:05:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 22:05:24] Production.INFO: ==2606== Releasing lock... [2025-03-31 22:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 22:05:24] Production.INFO: 40.5 MB #Memory Used# [2025-03-31 22:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 19:06:05 [end_date_ymd] => 2025-03-31 22:06:05 [RateCDR] => 1 ) [2025-03-31 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-31 19:06:05' and `end` < '2025-03-31 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-31 22:06:17] Production.INFO: count ==1615 [2025-03-31 22:06:18] Production.ERROR: pbx CDR StartTime 2025-03-31 19:06:05 - End Time 2025-03-31 22:06:05 [2025-03-31 22:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806445', 'tblTempUsageDetail_20' ) start [2025-03-31 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806445', 'tblTempUsageDetail_20' ) end [2025-03-31 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806445', 'tblTempVendorCDR_20' ) start [2025-03-31 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806445', 'tblTempVendorCDR_20' ) end [2025-03-31 22:06:18] Production.INFO: ProcessCDR(1,14806445,1,1,2) [2025-03-31 22:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806445', 'tblTempUsageDetail_20' ) start [2025-03-31 22:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806445', 'tblTempUsageDetail_20' ) end [2025-03-31 22:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 22:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 22:06:22] Production.INFO: ==2677== Releasing lock... [2025-03-31 22:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 22:06:22] Production.INFO: 40.25 MB #Memory Used# [2025-03-31 22:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 19:07:06 [end_date_ymd] => 2025-03-31 22:07:06 [RateCDR] => 1 ) [2025-03-31 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-31 19:07:06' and `end` < '2025-03-31 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-31 22:07:19] Production.INFO: count ==1615 [2025-03-31 22:07:20] Production.ERROR: pbx CDR StartTime 2025-03-31 19:07:06 - End Time 2025-03-31 22:07:06 [2025-03-31 22:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 22:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806450', 'tblTempUsageDetail_20' ) start [2025-03-31 22:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806450', 'tblTempUsageDetail_20' ) end [2025-03-31 22:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806450', 'tblTempVendorCDR_20' ) start [2025-03-31 22:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806450', 'tblTempVendorCDR_20' ) end [2025-03-31 22:07:20] Production.INFO: ProcessCDR(1,14806450,1,1,2) [2025-03-31 22:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806450', 'tblTempUsageDetail_20' ) start [2025-03-31 22:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806450', 'tblTempUsageDetail_20' ) end [2025-03-31 22:07:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 22:07:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 22:07:23] Production.INFO: ==2749== Releasing lock... [2025-03-31 22:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 22:07:23] Production.INFO: 40.25 MB #Memory Used# [2025-03-31 22:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 19:08:06 [end_date_ymd] => 2025-03-31 22:08:06 [RateCDR] => 1 ) [2025-03-31 22: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-31 19:08:06' and `end` < '2025-03-31 22: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-31 22:08:19] Production.INFO: count ==1614 [2025-03-31 22:08:19] Production.ERROR: pbx CDR StartTime 2025-03-31 19:08:06 - End Time 2025-03-31 22:08:06 [2025-03-31 22:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 22:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806455', 'tblTempUsageDetail_20' ) start [2025-03-31 22:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806455', 'tblTempUsageDetail_20' ) end [2025-03-31 22:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806455', 'tblTempVendorCDR_20' ) start [2025-03-31 22:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806455', 'tblTempVendorCDR_20' ) end [2025-03-31 22:08:19] Production.INFO: ProcessCDR(1,14806455,1,1,2) [2025-03-31 22:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806455', 'tblTempUsageDetail_20' ) start [2025-03-31 22:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806455', 'tblTempUsageDetail_20' ) end [2025-03-31 22:08:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 22:08:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 22:08:23] Production.INFO: ==2819== Releasing lock... [2025-03-31 22:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 22:08:23] Production.INFO: 40.25 MB #Memory Used# [2025-03-31 22:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 19:09:05 [end_date_ymd] => 2025-03-31 22:09:05 [RateCDR] => 1 ) [2025-03-31 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-31 19:09:05' and `end` < '2025-03-31 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-31 22:09:18] Production.INFO: count ==1613 [2025-03-31 22:09:19] Production.ERROR: pbx CDR StartTime 2025-03-31 19:09:05 - End Time 2025-03-31 22:09:05 [2025-03-31 22:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806460', 'tblTempUsageDetail_20' ) start [2025-03-31 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806460', 'tblTempUsageDetail_20' ) end [2025-03-31 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806460', 'tblTempVendorCDR_20' ) start [2025-03-31 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806460', 'tblTempVendorCDR_20' ) end [2025-03-31 22:09:19] Production.INFO: ProcessCDR(1,14806460,1,1,2) [2025-03-31 22:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806460', 'tblTempUsageDetail_20' ) start [2025-03-31 22:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806460', 'tblTempUsageDetail_20' ) end [2025-03-31 22:09:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 22:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 22:09:23] Production.INFO: ==2896== Releasing lock... [2025-03-31 22:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 22:09:23] Production.INFO: 40.25 MB #Memory Used# [2025-03-31 22:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 19:10:06 [end_date_ymd] => 2025-03-31 22:10:06 [RateCDR] => 1 ) [2025-03-31 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-31 19:10:06' and `end` < '2025-03-31 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-31 22:10:19] Production.INFO: count ==1609 [2025-03-31 22:10:19] Production.ERROR: pbx CDR StartTime 2025-03-31 19:10:06 - End Time 2025-03-31 22:10:06 [2025-03-31 22:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806466', 'tblTempUsageDetail_20' ) start [2025-03-31 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806466', 'tblTempUsageDetail_20' ) end [2025-03-31 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806466', 'tblTempVendorCDR_20' ) start [2025-03-31 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806466', 'tblTempVendorCDR_20' ) end [2025-03-31 22:10:19] Production.INFO: ProcessCDR(1,14806466,1,1,2) [2025-03-31 22:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806466', 'tblTempUsageDetail_20' ) start [2025-03-31 22:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806466', 'tblTempUsageDetail_20' ) end [2025-03-31 22:10:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 22:10:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 22:10:23] Production.INFO: ==2971== Releasing lock... [2025-03-31 22:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 22:10:23] Production.INFO: 40 MB #Memory Used# [2025-03-31 22:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 19:11:05 [end_date_ymd] => 2025-03-31 22:11:05 [RateCDR] => 1 ) [2025-03-31 22: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-31 19:11:05' and `end` < '2025-03-31 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-31 22:11:18] Production.INFO: count ==1585 [2025-03-31 22:11:19] Production.ERROR: pbx CDR StartTime 2025-03-31 19:11:05 - End Time 2025-03-31 22:11:05 [2025-03-31 22:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806471', 'tblTempUsageDetail_20' ) start [2025-03-31 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806471', 'tblTempUsageDetail_20' ) end [2025-03-31 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806471', 'tblTempVendorCDR_20' ) start [2025-03-31 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806471', 'tblTempVendorCDR_20' ) end [2025-03-31 22:11:19] Production.INFO: ProcessCDR(1,14806471,1,1,2) [2025-03-31 22:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806471', 'tblTempUsageDetail_20' ) start [2025-03-31 22:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806471', 'tblTempUsageDetail_20' ) end [2025-03-31 22:11:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 22:11:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 22:11:24] Production.INFO: ==3051== Releasing lock... [2025-03-31 22:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 22:11:24] Production.INFO: 40.25 MB #Memory Used# [2025-03-31 22:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 19:12:05 [end_date_ymd] => 2025-03-31 22:12:05 [RateCDR] => 1 ) [2025-03-31 22:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 19:12:05' and `end` < '2025-03-31 22:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 22:12:18] Production.INFO: count ==1581 [2025-03-31 22:12:18] Production.ERROR: pbx CDR StartTime 2025-03-31 19:12:05 - End Time 2025-03-31 22:12:05 [2025-03-31 22:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806476', 'tblTempUsageDetail_20' ) start [2025-03-31 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806476', 'tblTempUsageDetail_20' ) end [2025-03-31 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806476', 'tblTempVendorCDR_20' ) start [2025-03-31 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806476', 'tblTempVendorCDR_20' ) end [2025-03-31 22:12:19] Production.INFO: ProcessCDR(1,14806476,1,1,2) [2025-03-31 22:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806476', 'tblTempUsageDetail_20' ) start [2025-03-31 22:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806476', 'tblTempUsageDetail_20' ) end [2025-03-31 22:12:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 22:12:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 22:12:24] Production.INFO: ==3124== Releasing lock... [2025-03-31 22:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 22:12:24] Production.INFO: 40 MB #Memory Used# [2025-03-31 22:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 19:13:06 [end_date_ymd] => 2025-03-31 22:13:06 [RateCDR] => 1 ) [2025-03-31 22: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-31 19:13:06' and `end` < '2025-03-31 22: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-31 22:13:18] Production.INFO: count ==1574 [2025-03-31 22:13:19] Production.ERROR: pbx CDR StartTime 2025-03-31 19:13:06 - End Time 2025-03-31 22:13:06 [2025-03-31 22:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806481', 'tblTempUsageDetail_20' ) start [2025-03-31 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806481', 'tblTempUsageDetail_20' ) end [2025-03-31 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806481', 'tblTempVendorCDR_20' ) start [2025-03-31 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806481', 'tblTempVendorCDR_20' ) end [2025-03-31 22:13:19] Production.INFO: ProcessCDR(1,14806481,1,1,2) [2025-03-31 22:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806481', 'tblTempUsageDetail_20' ) start [2025-03-31 22:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806481', 'tblTempUsageDetail_20' ) end [2025-03-31 22:13:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 22:13:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 22:13:22] Production.INFO: ==3199== Releasing lock... [2025-03-31 22:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 22:13:22] Production.INFO: 39.75 MB #Memory Used# [2025-03-31 22:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 19:14:05 [end_date_ymd] => 2025-03-31 22:14:05 [RateCDR] => 1 ) [2025-03-31 22:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 19:14:05' and `end` < '2025-03-31 22:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 22:14:18] Production.INFO: count ==1583 [2025-03-31 22:14:18] Production.ERROR: pbx CDR StartTime 2025-03-31 19:14:05 - End Time 2025-03-31 22:14:05 [2025-03-31 22:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806486', 'tblTempUsageDetail_20' ) start [2025-03-31 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806486', 'tblTempUsageDetail_20' ) end [2025-03-31 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806486', 'tblTempVendorCDR_20' ) start [2025-03-31 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806486', 'tblTempVendorCDR_20' ) end [2025-03-31 22:14:18] Production.INFO: ProcessCDR(1,14806486,1,1,2) [2025-03-31 22:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806486', 'tblTempUsageDetail_20' ) start [2025-03-31 22:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806486', 'tblTempUsageDetail_20' ) end [2025-03-31 22:14:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 22:14:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 22:14:22] Production.INFO: ==3273== Releasing lock... [2025-03-31 22:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 22:14:22] Production.INFO: 40 MB #Memory Used# [2025-03-31 22:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 19:15:06 [end_date_ymd] => 2025-03-31 22:15:06 [RateCDR] => 1 ) [2025-03-31 22: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-31 19:15:06' and `end` < '2025-03-31 22: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-31 22:15:19] Production.INFO: count ==1576 [2025-03-31 22:15:19] Production.ERROR: pbx CDR StartTime 2025-03-31 19:15:06 - End Time 2025-03-31 22:15:06 [2025-03-31 22:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 22:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806491', 'tblTempUsageDetail_20' ) start [2025-03-31 22:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806491', 'tblTempUsageDetail_20' ) end [2025-03-31 22:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806491', 'tblTempVendorCDR_20' ) start [2025-03-31 22:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806491', 'tblTempVendorCDR_20' ) end [2025-03-31 22:15:19] Production.INFO: ProcessCDR(1,14806491,1,1,2) [2025-03-31 22:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806491', 'tblTempUsageDetail_20' ) start [2025-03-31 22:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806491', 'tblTempUsageDetail_20' ) end [2025-03-31 22:15:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 22:15:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 22:15:23] Production.INFO: ==3388== Releasing lock... [2025-03-31 22:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 22:15:23] Production.INFO: 39.75 MB #Memory Used# [2025-03-31 22:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 19:16:05 [end_date_ymd] => 2025-03-31 22:16:05 [RateCDR] => 1 ) [2025-03-31 22:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 19:16:05' and `end` < '2025-03-31 22:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 22:16:18] Production.INFO: count ==1556 [2025-03-31 22:16:18] Production.ERROR: pbx CDR StartTime 2025-03-31 19:16:05 - End Time 2025-03-31 22:16:05 [2025-03-31 22:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806496', 'tblTempUsageDetail_20' ) start [2025-03-31 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806496', 'tblTempUsageDetail_20' ) end [2025-03-31 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806496', 'tblTempVendorCDR_20' ) start [2025-03-31 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806496', 'tblTempVendorCDR_20' ) end [2025-03-31 22:16:18] Production.INFO: ProcessCDR(1,14806496,1,1,2) [2025-03-31 22:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806496', 'tblTempUsageDetail_20' ) start [2025-03-31 22:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806496', 'tblTempUsageDetail_20' ) end [2025-03-31 22:16:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 22:16:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 22:16:22] Production.INFO: ==3461== Releasing lock... [2025-03-31 22:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 22:16:22] Production.INFO: 39.75 MB #Memory Used# [2025-03-31 22:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 19:17:05 [end_date_ymd] => 2025-03-31 22:17:05 [RateCDR] => 1 ) [2025-03-31 22: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-31 19:17:05' and `end` < '2025-03-31 22: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-31 22:17:18] Production.INFO: count ==1554 [2025-03-31 22:17:19] Production.ERROR: pbx CDR StartTime 2025-03-31 19:17:05 - End Time 2025-03-31 22:17:05 [2025-03-31 22:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806501', 'tblTempUsageDetail_20' ) start [2025-03-31 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806501', 'tblTempUsageDetail_20' ) end [2025-03-31 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806501', 'tblTempVendorCDR_20' ) start [2025-03-31 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806501', 'tblTempVendorCDR_20' ) end [2025-03-31 22:17:19] Production.INFO: ProcessCDR(1,14806501,1,1,2) [2025-03-31 22:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806501', 'tblTempUsageDetail_20' ) start [2025-03-31 22:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806501', 'tblTempUsageDetail_20' ) end [2025-03-31 22:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 22:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 22:17:22] Production.INFO: ==3533== Releasing lock... [2025-03-31 22:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 22:17:22] Production.INFO: 40 MB #Memory Used# [2025-03-31 22:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 19:18:05 [end_date_ymd] => 2025-03-31 22:18:05 [RateCDR] => 1 ) [2025-03-31 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-31 19:18:05' and `end` < '2025-03-31 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-31 22:18:18] Production.INFO: count ==1537 [2025-03-31 22:18:18] Production.ERROR: pbx CDR StartTime 2025-03-31 19:18:05 - End Time 2025-03-31 22:18:05 [2025-03-31 22:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806506', 'tblTempUsageDetail_20' ) start [2025-03-31 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806506', 'tblTempUsageDetail_20' ) end [2025-03-31 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806506', 'tblTempVendorCDR_20' ) start [2025-03-31 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806506', 'tblTempVendorCDR_20' ) end [2025-03-31 22:18:18] Production.INFO: ProcessCDR(1,14806506,1,1,2) [2025-03-31 22:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806506', 'tblTempUsageDetail_20' ) start [2025-03-31 22:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806506', 'tblTempUsageDetail_20' ) end [2025-03-31 22:18:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 22:18:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 22:18:22] Production.INFO: ==3605== Releasing lock... [2025-03-31 22:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 22:18:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-31 22:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 19:19:05 [end_date_ymd] => 2025-03-31 22:19:05 [RateCDR] => 1 ) [2025-03-31 22: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-31 19:19:05' and `end` < '2025-03-31 22: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-31 22:19:18] Production.INFO: count ==1527 [2025-03-31 22:19:18] Production.ERROR: pbx CDR StartTime 2025-03-31 19:19:05 - End Time 2025-03-31 22:19:05 [2025-03-31 22:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806511', 'tblTempUsageDetail_20' ) start [2025-03-31 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806511', 'tblTempUsageDetail_20' ) end [2025-03-31 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806511', 'tblTempVendorCDR_20' ) start [2025-03-31 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806511', 'tblTempVendorCDR_20' ) end [2025-03-31 22:19:19] Production.INFO: ProcessCDR(1,14806511,1,1,2) [2025-03-31 22:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806511', 'tblTempUsageDetail_20' ) start [2025-03-31 22:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806511', 'tblTempUsageDetail_20' ) end [2025-03-31 22:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 22:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 22:19:22] Production.INFO: ==3681== Releasing lock... [2025-03-31 22:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 22:19:22] Production.INFO: 39.25 MB #Memory Used# [2025-03-31 22:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 19:20:06 [end_date_ymd] => 2025-03-31 22:20:06 [RateCDR] => 1 ) [2025-03-31 22:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 19:20:06' and `end` < '2025-03-31 22:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 22:20:18] Production.INFO: count ==1528 [2025-03-31 22:20:19] Production.ERROR: pbx CDR StartTime 2025-03-31 19:20:06 - End Time 2025-03-31 22:20:06 [2025-03-31 22:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806516', 'tblTempUsageDetail_20' ) start [2025-03-31 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806516', 'tblTempUsageDetail_20' ) end [2025-03-31 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806516', 'tblTempVendorCDR_20' ) start [2025-03-31 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806516', 'tblTempVendorCDR_20' ) end [2025-03-31 22:20:19] Production.INFO: ProcessCDR(1,14806516,1,1,2) [2025-03-31 22:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806516', 'tblTempUsageDetail_20' ) start [2025-03-31 22:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806516', 'tblTempUsageDetail_20' ) end [2025-03-31 22:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 22:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 22:20:22] Production.INFO: ==3757== Releasing lock... [2025-03-31 22:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 22:20:22] Production.INFO: 39.25 MB #Memory Used# [2025-03-31 22:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 19:21:05 [end_date_ymd] => 2025-03-31 22:21:05 [RateCDR] => 1 ) [2025-03-31 22:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 19:21:05' and `end` < '2025-03-31 22:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 22:21:18] Production.INFO: count ==1506 [2025-03-31 22:21:18] Production.ERROR: pbx CDR StartTime 2025-03-31 19:21:05 - End Time 2025-03-31 22:21:05 [2025-03-31 22:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806522', 'tblTempUsageDetail_20' ) start [2025-03-31 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806522', 'tblTempUsageDetail_20' ) end [2025-03-31 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806522', 'tblTempVendorCDR_20' ) start [2025-03-31 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806522', 'tblTempVendorCDR_20' ) end [2025-03-31 22:21:18] Production.INFO: ProcessCDR(1,14806522,1,1,2) [2025-03-31 22:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806522', 'tblTempUsageDetail_20' ) start [2025-03-31 22:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806522', 'tblTempUsageDetail_20' ) end [2025-03-31 22:21:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 22:21:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 22:21:22] Production.INFO: ==3830== Releasing lock... [2025-03-31 22:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 22:21:22] Production.INFO: 39.25 MB #Memory Used# [2025-03-31 22:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 19:22:05 [end_date_ymd] => 2025-03-31 22:22:05 [RateCDR] => 1 ) [2025-03-31 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-31 19:22:05' and `end` < '2025-03-31 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-31 22:22:18] Production.INFO: count ==1508 [2025-03-31 22:22:18] Production.ERROR: pbx CDR StartTime 2025-03-31 19:22:05 - End Time 2025-03-31 22:22:05 [2025-03-31 22:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806527', 'tblTempUsageDetail_20' ) start [2025-03-31 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806527', 'tblTempUsageDetail_20' ) end [2025-03-31 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806527', 'tblTempVendorCDR_20' ) start [2025-03-31 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806527', 'tblTempVendorCDR_20' ) end [2025-03-31 22:22:18] Production.INFO: ProcessCDR(1,14806527,1,1,2) [2025-03-31 22:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806527', 'tblTempUsageDetail_20' ) start [2025-03-31 22:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806527', 'tblTempUsageDetail_20' ) end [2025-03-31 22:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 22:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 22:22:22] Production.INFO: ==3900== Releasing lock... [2025-03-31 22:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 22:22:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-31 22:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 19:23:05 [end_date_ymd] => 2025-03-31 22:23:05 [RateCDR] => 1 ) [2025-03-31 22:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 19:23:05' and `end` < '2025-03-31 22:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 22:23:18] Production.INFO: count ==1519 [2025-03-31 22:23:19] Production.ERROR: pbx CDR StartTime 2025-03-31 19:23:05 - End Time 2025-03-31 22:23:05 [2025-03-31 22:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806532', 'tblTempUsageDetail_20' ) start [2025-03-31 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806532', 'tblTempUsageDetail_20' ) end [2025-03-31 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806532', 'tblTempVendorCDR_20' ) start [2025-03-31 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806532', 'tblTempVendorCDR_20' ) end [2025-03-31 22:23:19] Production.INFO: ProcessCDR(1,14806532,1,1,2) [2025-03-31 22:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806532', 'tblTempUsageDetail_20' ) start [2025-03-31 22:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806532', 'tblTempUsageDetail_20' ) end [2025-03-31 22:23:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 22:23:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 22:23:23] Production.INFO: ==3973== Releasing lock... [2025-03-31 22:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 22:23:23] Production.INFO: 39.5 MB #Memory Used# [2025-03-31 22:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 19:24:06 [end_date_ymd] => 2025-03-31 22:24:06 [RateCDR] => 1 ) [2025-03-31 22:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 19:24:06' and `end` < '2025-03-31 22:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 22:24:19] Production.INFO: count ==1507 [2025-03-31 22:24:19] Production.ERROR: pbx CDR StartTime 2025-03-31 19:24:06 - End Time 2025-03-31 22:24:06 [2025-03-31 22:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806537', 'tblTempUsageDetail_20' ) start [2025-03-31 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806537', 'tblTempUsageDetail_20' ) end [2025-03-31 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806537', 'tblTempVendorCDR_20' ) start [2025-03-31 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806537', 'tblTempVendorCDR_20' ) end [2025-03-31 22:24:19] Production.INFO: ProcessCDR(1,14806537,1,1,2) [2025-03-31 22:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806537', 'tblTempUsageDetail_20' ) start [2025-03-31 22:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806537', 'tblTempUsageDetail_20' ) end [2025-03-31 22:24:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 22:24:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 22:24:24] Production.INFO: ==4050== Releasing lock... [2025-03-31 22:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 22:24:24] Production.INFO: 39.5 MB #Memory Used# [2025-03-31 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 19:25:05 [end_date_ymd] => 2025-03-31 22:25:05 [RateCDR] => 1 ) [2025-03-31 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-31 19:25:05' and `end` < '2025-03-31 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-31 22:25:18] Production.INFO: count ==1504 [2025-03-31 22:25:18] Production.ERROR: pbx CDR StartTime 2025-03-31 19:25:05 - End Time 2025-03-31 22:25:05 [2025-03-31 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806542', 'tblTempUsageDetail_20' ) start [2025-03-31 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806542', 'tblTempUsageDetail_20' ) end [2025-03-31 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806542', 'tblTempVendorCDR_20' ) start [2025-03-31 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806542', 'tblTempVendorCDR_20' ) end [2025-03-31 22:25:19] Production.INFO: ProcessCDR(1,14806542,1,1,2) [2025-03-31 22:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806542', 'tblTempUsageDetail_20' ) start [2025-03-31 22:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806542', 'tblTempUsageDetail_20' ) end [2025-03-31 22:25:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 22:25:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 22:25:22] Production.INFO: ==4126== Releasing lock... [2025-03-31 22:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 22:25:22] Production.INFO: 39 MB #Memory Used# [2025-03-31 22:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 19:26:06 [end_date_ymd] => 2025-03-31 22:26:06 [RateCDR] => 1 ) [2025-03-31 22:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 19:26:06' and `end` < '2025-03-31 22:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 22:26:18] Production.INFO: count ==1489 [2025-03-31 22:26:19] Production.ERROR: pbx CDR StartTime 2025-03-31 19:26:06 - End Time 2025-03-31 22:26:06 [2025-03-31 22:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806547', 'tblTempUsageDetail_20' ) start [2025-03-31 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806547', 'tblTempUsageDetail_20' ) end [2025-03-31 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806547', 'tblTempVendorCDR_20' ) start [2025-03-31 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806547', 'tblTempVendorCDR_20' ) end [2025-03-31 22:26:19] Production.INFO: ProcessCDR(1,14806547,1,1,2) [2025-03-31 22:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806547', 'tblTempUsageDetail_20' ) start [2025-03-31 22:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806547', 'tblTempUsageDetail_20' ) end [2025-03-31 22:26:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 22:26:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 22:26:24] Production.INFO: ==4201== Releasing lock... [2025-03-31 22:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 22:26:24] Production.INFO: 39.25 MB #Memory Used# [2025-03-31 22:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 19:27:06 [end_date_ymd] => 2025-03-31 22:27:06 [RateCDR] => 1 ) [2025-03-31 22:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 19:27:06' and `end` < '2025-03-31 22:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 22:27:18] Production.INFO: count ==1487 [2025-03-31 22:27:19] Production.ERROR: pbx CDR StartTime 2025-03-31 19:27:06 - End Time 2025-03-31 22:27:06 [2025-03-31 22:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 22:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806552', 'tblTempUsageDetail_20' ) start [2025-03-31 22:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806552', 'tblTempUsageDetail_20' ) end [2025-03-31 22:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806552', 'tblTempVendorCDR_20' ) start [2025-03-31 22:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806552', 'tblTempVendorCDR_20' ) end [2025-03-31 22:27:19] Production.INFO: ProcessCDR(1,14806552,1,1,2) [2025-03-31 22:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806552', 'tblTempUsageDetail_20' ) start [2025-03-31 22:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806552', 'tblTempUsageDetail_20' ) end [2025-03-31 22:27:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 22:27:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 22:27:22] Production.INFO: ==4270== Releasing lock... [2025-03-31 22:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 22:27:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-31 22:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 19:28:06 [end_date_ymd] => 2025-03-31 22:28:06 [RateCDR] => 1 ) [2025-03-31 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-31 19:28:06' and `end` < '2025-03-31 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-31 22:28:19] Production.INFO: count ==1483 [2025-03-31 22:28:19] Production.ERROR: pbx CDR StartTime 2025-03-31 19:28:06 - End Time 2025-03-31 22:28:06 [2025-03-31 22:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806557', 'tblTempUsageDetail_20' ) start [2025-03-31 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806557', 'tblTempUsageDetail_20' ) end [2025-03-31 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806557', 'tblTempVendorCDR_20' ) start [2025-03-31 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806557', 'tblTempVendorCDR_20' ) end [2025-03-31 22:28:19] Production.INFO: ProcessCDR(1,14806557,1,1,2) [2025-03-31 22:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806557', 'tblTempUsageDetail_20' ) start [2025-03-31 22:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806557', 'tblTempUsageDetail_20' ) end [2025-03-31 22:28:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 22:28:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 22:28:23] Production.INFO: ==4349== Releasing lock... [2025-03-31 22:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 22:28:23] Production.INFO: 39.25 MB #Memory Used# [2025-03-31 22:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 19:29:05 [end_date_ymd] => 2025-03-31 22:29:05 [RateCDR] => 1 ) [2025-03-31 22:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 19:29:05' and `end` < '2025-03-31 22:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 22:29:18] Production.INFO: count ==1483 [2025-03-31 22:29:18] Production.ERROR: pbx CDR StartTime 2025-03-31 19:29:05 - End Time 2025-03-31 22:29:05 [2025-03-31 22:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806562', 'tblTempUsageDetail_20' ) start [2025-03-31 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806562', 'tblTempUsageDetail_20' ) end [2025-03-31 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806562', 'tblTempVendorCDR_20' ) start [2025-03-31 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806562', 'tblTempVendorCDR_20' ) end [2025-03-31 22:29:18] Production.INFO: ProcessCDR(1,14806562,1,1,2) [2025-03-31 22:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806562', 'tblTempUsageDetail_20' ) start [2025-03-31 22:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806562', 'tblTempUsageDetail_20' ) end [2025-03-31 22:29:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 22:29:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 22:29:23] Production.INFO: ==4425== Releasing lock... [2025-03-31 22:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 22:29:23] Production.INFO: 39.5 MB #Memory Used# [2025-03-31 22:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 19:30:07 [end_date_ymd] => 2025-03-31 22:30:07 [RateCDR] => 1 ) [2025-03-31 22:30:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 19:30:07' and `end` < '2025-03-31 22:30:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 22:30:20] Production.INFO: count ==1465 [2025-03-31 22:30:20] Production.ERROR: pbx CDR StartTime 2025-03-31 19:30:07 - End Time 2025-03-31 22:30:07 [2025-03-31 22:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 22:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806568', 'tblTempUsageDetail_20' ) start [2025-03-31 22:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806568', 'tblTempUsageDetail_20' ) end [2025-03-31 22:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806568', 'tblTempVendorCDR_20' ) start [2025-03-31 22:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806568', 'tblTempVendorCDR_20' ) end [2025-03-31 22:30:20] Production.INFO: ProcessCDR(1,14806568,1,1,2) [2025-03-31 22:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806568', 'tblTempUsageDetail_20' ) start [2025-03-31 22:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806568', 'tblTempUsageDetail_20' ) end [2025-03-31 22:30:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 22:30:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 22:30:24] Production.INFO: ==4506== Releasing lock... [2025-03-31 22:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 22:30:24] Production.INFO: 39.25 MB #Memory Used# [2025-03-31 22:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 19:31:05 [end_date_ymd] => 2025-03-31 22:31:05 [RateCDR] => 1 ) [2025-03-31 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-31 19:31:05' and `end` < '2025-03-31 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-31 22:31:18] Production.INFO: count ==1428 [2025-03-31 22:31:18] Production.ERROR: pbx CDR StartTime 2025-03-31 19:31:05 - End Time 2025-03-31 22:31:05 [2025-03-31 22:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806573', 'tblTempUsageDetail_20' ) start [2025-03-31 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806573', 'tblTempUsageDetail_20' ) end [2025-03-31 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806573', 'tblTempVendorCDR_20' ) start [2025-03-31 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806573', 'tblTempVendorCDR_20' ) end [2025-03-31 22:31:18] Production.INFO: ProcessCDR(1,14806573,1,1,2) [2025-03-31 22:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806573', 'tblTempUsageDetail_20' ) start [2025-03-31 22:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806573', 'tblTempUsageDetail_20' ) end [2025-03-31 22:31:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 22:31:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 22:31:24] Production.INFO: ==4634== Releasing lock... [2025-03-31 22:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 22:31:24] Production.INFO: 39 MB #Memory Used# [2025-03-31 22:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 19:32:06 [end_date_ymd] => 2025-03-31 22:32:06 [RateCDR] => 1 ) [2025-03-31 22: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-31 19:32:06' and `end` < '2025-03-31 22: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-31 22:32:18] Production.INFO: count ==1427 [2025-03-31 22:32:19] Production.ERROR: pbx CDR StartTime 2025-03-31 19:32:06 - End Time 2025-03-31 22:32:06 [2025-03-31 22:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806578', 'tblTempUsageDetail_20' ) start [2025-03-31 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806578', 'tblTempUsageDetail_20' ) end [2025-03-31 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806578', 'tblTempVendorCDR_20' ) start [2025-03-31 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806578', 'tblTempVendorCDR_20' ) end [2025-03-31 22:32:19] Production.INFO: ProcessCDR(1,14806578,1,1,2) [2025-03-31 22:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806578', 'tblTempUsageDetail_20' ) start [2025-03-31 22:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806578', 'tblTempUsageDetail_20' ) end [2025-03-31 22:32:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 22:32:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 22:32:24] Production.INFO: ==4709== Releasing lock... [2025-03-31 22:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 22:32:24] Production.INFO: 39 MB #Memory Used# [2025-03-31 22:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 19:33:05 [end_date_ymd] => 2025-03-31 22:33:05 [RateCDR] => 1 ) [2025-03-31 22:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 19:33:05' and `end` < '2025-03-31 22:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 22:33:18] Production.INFO: count ==1426 [2025-03-31 22:33:18] Production.ERROR: pbx CDR StartTime 2025-03-31 19:33:05 - End Time 2025-03-31 22:33:05 [2025-03-31 22:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806583', 'tblTempUsageDetail_20' ) start [2025-03-31 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806583', 'tblTempUsageDetail_20' ) end [2025-03-31 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806583', 'tblTempVendorCDR_20' ) start [2025-03-31 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806583', 'tblTempVendorCDR_20' ) end [2025-03-31 22:33:18] Production.INFO: ProcessCDR(1,14806583,1,1,2) [2025-03-31 22:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806583', 'tblTempUsageDetail_20' ) start [2025-03-31 22:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806583', 'tblTempUsageDetail_20' ) end [2025-03-31 22:33:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 22:33:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 22:33:22] Production.INFO: ==4782== Releasing lock... [2025-03-31 22:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 22:33:22] Production.INFO: 38.5 MB #Memory Used# [2025-03-31 22:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 19:34:05 [end_date_ymd] => 2025-03-31 22:34:05 [RateCDR] => 1 ) [2025-03-31 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-31 19:34:05' and `end` < '2025-03-31 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-31 22:34:18] Production.INFO: count ==1426 [2025-03-31 22:34:19] Production.ERROR: pbx CDR StartTime 2025-03-31 19:34:05 - End Time 2025-03-31 22:34:05 [2025-03-31 22:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 22:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806588', 'tblTempUsageDetail_20' ) start [2025-03-31 22:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806588', 'tblTempUsageDetail_20' ) end [2025-03-31 22:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806588', 'tblTempVendorCDR_20' ) start [2025-03-31 22:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806588', 'tblTempVendorCDR_20' ) end [2025-03-31 22:34:19] Production.INFO: ProcessCDR(1,14806588,1,1,2) [2025-03-31 22:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806588', 'tblTempUsageDetail_20' ) start [2025-03-31 22:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806588', 'tblTempUsageDetail_20' ) end [2025-03-31 22:34:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 22:34:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 22:34:24] Production.INFO: ==4857== Releasing lock... [2025-03-31 22:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 22:34:24] Production.INFO: 38.5 MB #Memory Used# [2025-03-31 22:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 19:35:05 [end_date_ymd] => 2025-03-31 22:35:05 [RateCDR] => 1 ) [2025-03-31 22:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 19:35:05' and `end` < '2025-03-31 22:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 22:35:18] Production.INFO: count ==1420 [2025-03-31 22:35:18] Production.ERROR: pbx CDR StartTime 2025-03-31 19:35:05 - End Time 2025-03-31 22:35:05 [2025-03-31 22:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806593', 'tblTempUsageDetail_20' ) start [2025-03-31 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806593', 'tblTempUsageDetail_20' ) end [2025-03-31 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806593', 'tblTempVendorCDR_20' ) start [2025-03-31 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806593', 'tblTempVendorCDR_20' ) end [2025-03-31 22:35:18] Production.INFO: ProcessCDR(1,14806593,1,1,2) [2025-03-31 22:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806593', 'tblTempUsageDetail_20' ) start [2025-03-31 22:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806593', 'tblTempUsageDetail_20' ) end [2025-03-31 22:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 22:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 22:35:22] Production.INFO: ==4935== Releasing lock... [2025-03-31 22:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 22:35:22] Production.INFO: 38.75 MB #Memory Used# [2025-03-31 22:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 19:36:05 [end_date_ymd] => 2025-03-31 22:36:05 [RateCDR] => 1 ) [2025-03-31 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-31 19:36:05' and `end` < '2025-03-31 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-31 22:36:18] Production.INFO: count ==1413 [2025-03-31 22:36:19] Production.ERROR: pbx CDR StartTime 2025-03-31 19:36:05 - End Time 2025-03-31 22:36:05 [2025-03-31 22:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806598', 'tblTempUsageDetail_20' ) start [2025-03-31 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806598', 'tblTempUsageDetail_20' ) end [2025-03-31 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806598', 'tblTempVendorCDR_20' ) start [2025-03-31 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806598', 'tblTempVendorCDR_20' ) end [2025-03-31 22:36:19] Production.INFO: ProcessCDR(1,14806598,1,1,2) [2025-03-31 22:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806598', 'tblTempUsageDetail_20' ) start [2025-03-31 22:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806598', 'tblTempUsageDetail_20' ) end [2025-03-31 22:36:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 22:36:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 22:36:22] Production.INFO: ==5009== Releasing lock... [2025-03-31 22:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 22:36:22] Production.INFO: 38.75 MB #Memory Used# [2025-03-31 22:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 19:37:05 [end_date_ymd] => 2025-03-31 22:37:05 [RateCDR] => 1 ) [2025-03-31 22:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 19:37:05' and `end` < '2025-03-31 22:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 22:37:18] Production.INFO: count ==1417 [2025-03-31 22:37:18] Production.ERROR: pbx CDR StartTime 2025-03-31 19:37:05 - End Time 2025-03-31 22:37:05 [2025-03-31 22:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806603', 'tblTempUsageDetail_20' ) start [2025-03-31 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806603', 'tblTempUsageDetail_20' ) end [2025-03-31 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806603', 'tblTempVendorCDR_20' ) start [2025-03-31 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806603', 'tblTempVendorCDR_20' ) end [2025-03-31 22:37:18] Production.INFO: ProcessCDR(1,14806603,1,1,2) [2025-03-31 22:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806603', 'tblTempUsageDetail_20' ) start [2025-03-31 22:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806603', 'tblTempUsageDetail_20' ) end [2025-03-31 22:37:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 22:37:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 22:37:23] Production.INFO: ==5081== Releasing lock... [2025-03-31 22:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 22:37:23] Production.INFO: 38.75 MB #Memory Used# [2025-03-31 22:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 19:38:05 [end_date_ymd] => 2025-03-31 22:38:05 [RateCDR] => 1 ) [2025-03-31 22: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-31 19:38:05' and `end` < '2025-03-31 22: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-31 22:38:18] Production.INFO: count ==1415 [2025-03-31 22:38:19] Production.ERROR: pbx CDR StartTime 2025-03-31 19:38:05 - End Time 2025-03-31 22:38:05 [2025-03-31 22:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 22:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806608', 'tblTempUsageDetail_20' ) start [2025-03-31 22:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806608', 'tblTempUsageDetail_20' ) end [2025-03-31 22:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806608', 'tblTempVendorCDR_20' ) start [2025-03-31 22:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806608', 'tblTempVendorCDR_20' ) end [2025-03-31 22:38:19] Production.INFO: ProcessCDR(1,14806608,1,1,2) [2025-03-31 22:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806608', 'tblTempUsageDetail_20' ) start [2025-03-31 22:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806608', 'tblTempUsageDetail_20' ) end [2025-03-31 22:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 22:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 22:38:22] Production.INFO: ==5160== Releasing lock... [2025-03-31 22:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 22:38:22] Production.INFO: 38.5 MB #Memory Used# [2025-03-31 22:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 19:39:06 [end_date_ymd] => 2025-03-31 22:39:06 [RateCDR] => 1 ) [2025-03-31 22: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-31 19:39:06' and `end` < '2025-03-31 22: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-31 22:39:18] Production.INFO: count ==1415 [2025-03-31 22:39:19] Production.ERROR: pbx CDR StartTime 2025-03-31 19:39:06 - End Time 2025-03-31 22:39:06 [2025-03-31 22:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 22:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806613', 'tblTempUsageDetail_20' ) start [2025-03-31 22:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806613', 'tblTempUsageDetail_20' ) end [2025-03-31 22:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806613', 'tblTempVendorCDR_20' ) start [2025-03-31 22:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806613', 'tblTempVendorCDR_20' ) end [2025-03-31 22:39:19] Production.INFO: ProcessCDR(1,14806613,1,1,2) [2025-03-31 22:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806613', 'tblTempUsageDetail_20' ) start [2025-03-31 22:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806613', 'tblTempUsageDetail_20' ) end [2025-03-31 22:39:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 22:39:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 22:39:22] Production.INFO: ==5231== Releasing lock... [2025-03-31 22:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 22:39:22] Production.INFO: 38.5 MB #Memory Used# [2025-03-31 22:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 19:40:06 [end_date_ymd] => 2025-03-31 22:40:06 [RateCDR] => 1 ) [2025-03-31 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-31 19:40:06' and `end` < '2025-03-31 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-31 22:40:19] Production.INFO: count ==1432 [2025-03-31 22:40:19] Production.ERROR: pbx CDR StartTime 2025-03-31 19:40:06 - End Time 2025-03-31 22:40:06 [2025-03-31 22:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806619', 'tblTempUsageDetail_20' ) start [2025-03-31 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806619', 'tblTempUsageDetail_20' ) end [2025-03-31 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806619', 'tblTempVendorCDR_20' ) start [2025-03-31 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806619', 'tblTempVendorCDR_20' ) end [2025-03-31 22:40:19] Production.INFO: ProcessCDR(1,14806619,1,1,2) [2025-03-31 22:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806619', 'tblTempUsageDetail_20' ) start [2025-03-31 22:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806619', 'tblTempUsageDetail_20' ) end [2025-03-31 22:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 22:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 22:40:22] Production.INFO: ==5308== Releasing lock... [2025-03-31 22:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 22:40:22] Production.INFO: 39 MB #Memory Used# [2025-03-31 22:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 19:41:05 [end_date_ymd] => 2025-03-31 22:41:05 [RateCDR] => 1 ) [2025-03-31 22: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-31 19:41:05' and `end` < '2025-03-31 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-31 22:41:18] Production.INFO: count ==1440 [2025-03-31 22:41:19] Production.ERROR: pbx CDR StartTime 2025-03-31 19:41:05 - End Time 2025-03-31 22:41:05 [2025-03-31 22:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 22:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806624', 'tblTempUsageDetail_20' ) start [2025-03-31 22:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806624', 'tblTempUsageDetail_20' ) end [2025-03-31 22:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806624', 'tblTempVendorCDR_20' ) start [2025-03-31 22:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806624', 'tblTempVendorCDR_20' ) end [2025-03-31 22:41:19] Production.INFO: ProcessCDR(1,14806624,1,1,2) [2025-03-31 22:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806624', 'tblTempUsageDetail_20' ) start [2025-03-31 22:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806624', 'tblTempUsageDetail_20' ) end [2025-03-31 22:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 22:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 22:41:22] Production.INFO: ==5384== Releasing lock... [2025-03-31 22:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 22:41:22] Production.INFO: 38.75 MB #Memory Used# [2025-03-31 22:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 19:42:05 [end_date_ymd] => 2025-03-31 22:42:05 [RateCDR] => 1 ) [2025-03-31 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-31 19:42:05' and `end` < '2025-03-31 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-31 22:42:18] Production.INFO: count ==1441 [2025-03-31 22:42:18] Production.ERROR: pbx CDR StartTime 2025-03-31 19:42:05 - End Time 2025-03-31 22:42:05 [2025-03-31 22:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806629', 'tblTempUsageDetail_20' ) start [2025-03-31 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806629', 'tblTempUsageDetail_20' ) end [2025-03-31 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806629', 'tblTempVendorCDR_20' ) start [2025-03-31 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806629', 'tblTempVendorCDR_20' ) end [2025-03-31 22:42:19] Production.INFO: ProcessCDR(1,14806629,1,1,2) [2025-03-31 22:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806629', 'tblTempUsageDetail_20' ) start [2025-03-31 22:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806629', 'tblTempUsageDetail_20' ) end [2025-03-31 22:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 22:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 22:42:22] Production.INFO: ==5455== Releasing lock... [2025-03-31 22:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 22:42:22] Production.INFO: 38.75 MB #Memory Used# [2025-03-31 22:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 19:43:05 [end_date_ymd] => 2025-03-31 22:43:05 [RateCDR] => 1 ) [2025-03-31 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-31 19:43:05' and `end` < '2025-03-31 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-31 22:43:18] Production.INFO: count ==1430 [2025-03-31 22:43:18] Production.ERROR: pbx CDR StartTime 2025-03-31 19:43:05 - End Time 2025-03-31 22:43:05 [2025-03-31 22:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806634', 'tblTempUsageDetail_20' ) start [2025-03-31 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806634', 'tblTempUsageDetail_20' ) end [2025-03-31 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806634', 'tblTempVendorCDR_20' ) start [2025-03-31 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806634', 'tblTempVendorCDR_20' ) end [2025-03-31 22:43:18] Production.INFO: ProcessCDR(1,14806634,1,1,2) [2025-03-31 22:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806634', 'tblTempUsageDetail_20' ) start [2025-03-31 22:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806634', 'tblTempUsageDetail_20' ) end [2025-03-31 22:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 22:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 22:43:22] Production.INFO: ==5532== Releasing lock... [2025-03-31 22:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 22:43:22] Production.INFO: 38.75 MB #Memory Used# [2025-03-31 22:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 19:44:05 [end_date_ymd] => 2025-03-31 22:44:05 [RateCDR] => 1 ) [2025-03-31 22:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 19:44:05' and `end` < '2025-03-31 22:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 22:44:18] Production.INFO: count ==1422 [2025-03-31 22:44:18] Production.ERROR: pbx CDR StartTime 2025-03-31 19:44:05 - End Time 2025-03-31 22:44:05 [2025-03-31 22:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806639', 'tblTempUsageDetail_20' ) start [2025-03-31 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806639', 'tblTempUsageDetail_20' ) end [2025-03-31 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806639', 'tblTempVendorCDR_20' ) start [2025-03-31 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806639', 'tblTempVendorCDR_20' ) end [2025-03-31 22:44:18] Production.INFO: ProcessCDR(1,14806639,1,1,2) [2025-03-31 22:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806639', 'tblTempUsageDetail_20' ) start [2025-03-31 22:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806639', 'tblTempUsageDetail_20' ) end [2025-03-31 22:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 22:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 22:44:22] Production.INFO: ==5615== Releasing lock... [2025-03-31 22:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 22:44:22] Production.INFO: 38.75 MB #Memory Used# [2025-03-31 22:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 19:45:06 [end_date_ymd] => 2025-03-31 22:45:06 [RateCDR] => 1 ) [2025-03-31 22: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-31 19:45:06' and `end` < '2025-03-31 22: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-31 22:45:19] Production.INFO: count ==1425 [2025-03-31 22:45:19] Production.ERROR: pbx CDR StartTime 2025-03-31 19:45:06 - End Time 2025-03-31 22:45:06 [2025-03-31 22:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 22:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806644', 'tblTempUsageDetail_20' ) start [2025-03-31 22:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806644', 'tblTempUsageDetail_20' ) end [2025-03-31 22:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806644', 'tblTempVendorCDR_20' ) start [2025-03-31 22:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806644', 'tblTempVendorCDR_20' ) end [2025-03-31 22:45:19] Production.INFO: ProcessCDR(1,14806644,1,1,2) [2025-03-31 22:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806644', 'tblTempUsageDetail_20' ) start [2025-03-31 22:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806644', 'tblTempUsageDetail_20' ) end [2025-03-31 22:45:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 22:45:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 22:45:23] Production.INFO: ==5690== Releasing lock... [2025-03-31 22:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 22:45:23] Production.INFO: 38.75 MB #Memory Used# [2025-03-31 22:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 19:46:05 [end_date_ymd] => 2025-03-31 22:46:05 [RateCDR] => 1 ) [2025-03-31 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-31 19:46:05' and `end` < '2025-03-31 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-31 22:46:18] Production.INFO: count ==1417 [2025-03-31 22:46:18] Production.ERROR: pbx CDR StartTime 2025-03-31 19:46:05 - End Time 2025-03-31 22:46:05 [2025-03-31 22:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806649', 'tblTempUsageDetail_20' ) start [2025-03-31 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806649', 'tblTempUsageDetail_20' ) end [2025-03-31 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806649', 'tblTempVendorCDR_20' ) start [2025-03-31 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806649', 'tblTempVendorCDR_20' ) end [2025-03-31 22:46:18] Production.INFO: ProcessCDR(1,14806649,1,1,2) [2025-03-31 22:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806649', 'tblTempUsageDetail_20' ) start [2025-03-31 22:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806649', 'tblTempUsageDetail_20' ) end [2025-03-31 22:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 22:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 22:46:22] Production.INFO: ==5810== Releasing lock... [2025-03-31 22:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 22:46:22] Production.INFO: 38.75 MB #Memory Used# [2025-03-31 22:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 19:47:06 [end_date_ymd] => 2025-03-31 22:47:06 [RateCDR] => 1 ) [2025-03-31 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-31 19:47:06' and `end` < '2025-03-31 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-31 22:47:18] Production.INFO: count ==1413 [2025-03-31 22:47:19] Production.ERROR: pbx CDR StartTime 2025-03-31 19:47:06 - End Time 2025-03-31 22:47:06 [2025-03-31 22:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806654', 'tblTempUsageDetail_20' ) start [2025-03-31 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806654', 'tblTempUsageDetail_20' ) end [2025-03-31 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806654', 'tblTempVendorCDR_20' ) start [2025-03-31 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806654', 'tblTempVendorCDR_20' ) end [2025-03-31 22:47:19] Production.INFO: ProcessCDR(1,14806654,1,1,2) [2025-03-31 22:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806654', 'tblTempUsageDetail_20' ) start [2025-03-31 22:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806654', 'tblTempUsageDetail_20' ) end [2025-03-31 22:47:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 22:47:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 22:47:24] Production.INFO: ==5890== Releasing lock... [2025-03-31 22:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 22:47:24] Production.INFO: 39.25 MB #Memory Used# [2025-03-31 22:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 19:48:05 [end_date_ymd] => 2025-03-31 22:48:05 [RateCDR] => 1 ) [2025-03-31 22:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 19:48:05' and `end` < '2025-03-31 22:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 22:48:17] Production.INFO: count ==1421 [2025-03-31 22:48:18] Production.ERROR: pbx CDR StartTime 2025-03-31 19:48:05 - End Time 2025-03-31 22:48:05 [2025-03-31 22:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806659', 'tblTempUsageDetail_20' ) start [2025-03-31 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806659', 'tblTempUsageDetail_20' ) end [2025-03-31 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806659', 'tblTempVendorCDR_20' ) start [2025-03-31 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806659', 'tblTempVendorCDR_20' ) end [2025-03-31 22:48:18] Production.INFO: ProcessCDR(1,14806659,1,1,2) [2025-03-31 22:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806659', 'tblTempUsageDetail_20' ) start [2025-03-31 22:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806659', 'tblTempUsageDetail_20' ) end [2025-03-31 22:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 22:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 22:48:21] Production.INFO: ==5970== Releasing lock... [2025-03-31 22:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 22:48:21] Production.INFO: 38.75 MB #Memory Used# [2025-03-31 22:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 19:49:05 [end_date_ymd] => 2025-03-31 22:49:05 [RateCDR] => 1 ) [2025-03-31 22:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 19:49:05' and `end` < '2025-03-31 22:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 22:49:18] Production.INFO: count ==1416 [2025-03-31 22:49:18] Production.ERROR: pbx CDR StartTime 2025-03-31 19:49:05 - End Time 2025-03-31 22:49:05 [2025-03-31 22:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806664', 'tblTempUsageDetail_20' ) start [2025-03-31 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806664', 'tblTempUsageDetail_20' ) end [2025-03-31 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806664', 'tblTempVendorCDR_20' ) start [2025-03-31 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806664', 'tblTempVendorCDR_20' ) end [2025-03-31 22:49:18] Production.INFO: ProcessCDR(1,14806664,1,1,2) [2025-03-31 22:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806664', 'tblTempUsageDetail_20' ) start [2025-03-31 22:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806664', 'tblTempUsageDetail_20' ) end [2025-03-31 22:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 22:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 22:49:22] Production.INFO: ==6051== Releasing lock... [2025-03-31 22:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 22:49:22] Production.INFO: 39 MB #Memory Used# [2025-03-31 22:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 19:50:05 [end_date_ymd] => 2025-03-31 22:50:05 [RateCDR] => 1 ) [2025-03-31 22: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-31 19:50:05' and `end` < '2025-03-31 22: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-31 22:50:18] Production.INFO: count ==1420 [2025-03-31 22:50:19] Production.ERROR: pbx CDR StartTime 2025-03-31 19:50:05 - End Time 2025-03-31 22:50:05 [2025-03-31 22:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806669', 'tblTempUsageDetail_20' ) start [2025-03-31 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806669', 'tblTempUsageDetail_20' ) end [2025-03-31 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806669', 'tblTempVendorCDR_20' ) start [2025-03-31 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806669', 'tblTempVendorCDR_20' ) end [2025-03-31 22:50:19] Production.INFO: ProcessCDR(1,14806669,1,1,2) [2025-03-31 22:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806669', 'tblTempUsageDetail_20' ) start [2025-03-31 22:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806669', 'tblTempUsageDetail_20' ) end [2025-03-31 22:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 22:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 22:50:22] Production.INFO: ==6135== Releasing lock... [2025-03-31 22:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 22:50:22] Production.INFO: 39 MB #Memory Used# [2025-03-31 22:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 19:51:06 [end_date_ymd] => 2025-03-31 22:51:06 [RateCDR] => 1 ) [2025-03-31 22: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-31 19:51:06' and `end` < '2025-03-31 22: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-31 22:51:18] Production.INFO: count ==1394 [2025-03-31 22:51:19] Production.ERROR: pbx CDR StartTime 2025-03-31 19:51:06 - End Time 2025-03-31 22:51:06 [2025-03-31 22:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 22:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806675', 'tblTempUsageDetail_20' ) start [2025-03-31 22:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806675', 'tblTempUsageDetail_20' ) end [2025-03-31 22:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806675', 'tblTempVendorCDR_20' ) start [2025-03-31 22:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806675', 'tblTempVendorCDR_20' ) end [2025-03-31 22:51:19] Production.INFO: ProcessCDR(1,14806675,1,1,2) [2025-03-31 22:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806675', 'tblTempUsageDetail_20' ) start [2025-03-31 22:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806675', 'tblTempUsageDetail_20' ) end [2025-03-31 22:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 22:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 22:51:22] Production.INFO: ==6221== Releasing lock... [2025-03-31 22:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 22:51:22] Production.INFO: 38.5 MB #Memory Used# [2025-03-31 22:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 19:52:05 [end_date_ymd] => 2025-03-31 22:52:05 [RateCDR] => 1 ) [2025-03-31 22:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 19:52:05' and `end` < '2025-03-31 22:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 22:52:17] Production.INFO: count ==1391 [2025-03-31 22:52:18] Production.ERROR: pbx CDR StartTime 2025-03-31 19:52:05 - End Time 2025-03-31 22:52:05 [2025-03-31 22:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806680', 'tblTempUsageDetail_20' ) start [2025-03-31 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806680', 'tblTempUsageDetail_20' ) end [2025-03-31 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806680', 'tblTempVendorCDR_20' ) start [2025-03-31 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806680', 'tblTempVendorCDR_20' ) end [2025-03-31 22:52:18] Production.INFO: ProcessCDR(1,14806680,1,1,2) [2025-03-31 22:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806680', 'tblTempUsageDetail_20' ) start [2025-03-31 22:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806680', 'tblTempUsageDetail_20' ) end [2025-03-31 22:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 22:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 22:52:22] Production.INFO: ==6304== Releasing lock... [2025-03-31 22:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 22:52:22] Production.INFO: 38.5 MB #Memory Used# [2025-03-31 22:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 19:53:05 [end_date_ymd] => 2025-03-31 22:53:05 [RateCDR] => 1 ) [2025-03-31 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-31 19:53:05' and `end` < '2025-03-31 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-31 22:53:17] Production.INFO: count ==1385 [2025-03-31 22:53:18] Production.ERROR: pbx CDR StartTime 2025-03-31 19:53:05 - End Time 2025-03-31 22:53:05 [2025-03-31 22:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806685', 'tblTempUsageDetail_20' ) start [2025-03-31 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806685', 'tblTempUsageDetail_20' ) end [2025-03-31 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806685', 'tblTempVendorCDR_20' ) start [2025-03-31 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806685', 'tblTempVendorCDR_20' ) end [2025-03-31 22:53:18] Production.INFO: ProcessCDR(1,14806685,1,1,2) [2025-03-31 22:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806685', 'tblTempUsageDetail_20' ) start [2025-03-31 22:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806685', 'tblTempUsageDetail_20' ) end [2025-03-31 22:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 22:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 22:53:22] Production.INFO: ==6394== Releasing lock... [2025-03-31 22:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 22:53:22] Production.INFO: 38.5 MB #Memory Used# [2025-03-31 22:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 19:54:05 [end_date_ymd] => 2025-03-31 22:54:05 [RateCDR] => 1 ) [2025-03-31 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-31 19:54:05' and `end` < '2025-03-31 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-31 22:54:18] Production.INFO: count ==1385 [2025-03-31 22:54:18] Production.ERROR: pbx CDR StartTime 2025-03-31 19:54:05 - End Time 2025-03-31 22:54:05 [2025-03-31 22:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806690', 'tblTempUsageDetail_20' ) start [2025-03-31 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806690', 'tblTempUsageDetail_20' ) end [2025-03-31 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806690', 'tblTempVendorCDR_20' ) start [2025-03-31 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806690', 'tblTempVendorCDR_20' ) end [2025-03-31 22:54:18] Production.INFO: ProcessCDR(1,14806690,1,1,2) [2025-03-31 22:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806690', 'tblTempUsageDetail_20' ) start [2025-03-31 22:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806690', 'tblTempUsageDetail_20' ) end [2025-03-31 22:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 22:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 22:54:22] Production.INFO: ==6480== Releasing lock... [2025-03-31 22:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 22:54:22] Production.INFO: 38.5 MB #Memory Used# [2025-03-31 22:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 19:55:05 [end_date_ymd] => 2025-03-31 22:55:05 [RateCDR] => 1 ) [2025-03-31 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-31 19:55:05' and `end` < '2025-03-31 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-31 22:55:18] Production.INFO: count ==1358 [2025-03-31 22:55:18] Production.ERROR: pbx CDR StartTime 2025-03-31 19:55:05 - End Time 2025-03-31 22:55:05 [2025-03-31 22:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806695', 'tblTempUsageDetail_20' ) start [2025-03-31 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806695', 'tblTempUsageDetail_20' ) end [2025-03-31 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806695', 'tblTempVendorCDR_20' ) start [2025-03-31 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806695', 'tblTempVendorCDR_20' ) end [2025-03-31 22:55:18] Production.INFO: ProcessCDR(1,14806695,1,1,2) [2025-03-31 22:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806695', 'tblTempUsageDetail_20' ) start [2025-03-31 22:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806695', 'tblTempUsageDetail_20' ) end [2025-03-31 22:55:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 22:55:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 22:55:23] Production.INFO: ==6559== Releasing lock... [2025-03-31 22:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 22:55:23] Production.INFO: 38.25 MB #Memory Used# [2025-03-31 22:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 19:56:06 [end_date_ymd] => 2025-03-31 22:56:06 [RateCDR] => 1 ) [2025-03-31 22: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-31 19:56:06' and `end` < '2025-03-31 22: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-31 22:56:19] Production.INFO: count ==1347 [2025-03-31 22:56:20] Production.ERROR: pbx CDR StartTime 2025-03-31 19:56:06 - End Time 2025-03-31 22:56:06 [2025-03-31 22:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 22:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806700', 'tblTempUsageDetail_20' ) start [2025-03-31 22:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806700', 'tblTempUsageDetail_20' ) end [2025-03-31 22:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806700', 'tblTempVendorCDR_20' ) start [2025-03-31 22:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806700', 'tblTempVendorCDR_20' ) end [2025-03-31 22:56:20] Production.INFO: ProcessCDR(1,14806700,1,1,2) [2025-03-31 22:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806700', 'tblTempUsageDetail_20' ) start [2025-03-31 22:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806700', 'tblTempUsageDetail_20' ) end [2025-03-31 22:56:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 22:56:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 22:56:23] Production.INFO: ==6646== Releasing lock... [2025-03-31 22:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 22:56:23] Production.INFO: 39 MB #Memory Used# [2025-03-31 22:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 19:57:05 [end_date_ymd] => 2025-03-31 22:57:05 [RateCDR] => 1 ) [2025-03-31 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-31 19:57:05' and `end` < '2025-03-31 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-31 22:57:17] Production.INFO: count ==1357 [2025-03-31 22:57:18] Production.ERROR: pbx CDR StartTime 2025-03-31 19:57:05 - End Time 2025-03-31 22:57:05 [2025-03-31 22:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806705', 'tblTempUsageDetail_20' ) start [2025-03-31 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806705', 'tblTempUsageDetail_20' ) end [2025-03-31 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806705', 'tblTempVendorCDR_20' ) start [2025-03-31 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806705', 'tblTempVendorCDR_20' ) end [2025-03-31 22:57:18] Production.INFO: ProcessCDR(1,14806705,1,1,2) [2025-03-31 22:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806705', 'tblTempUsageDetail_20' ) start [2025-03-31 22:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806705', 'tblTempUsageDetail_20' ) end [2025-03-31 22:57:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 22:57:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 22:57:23] Production.INFO: ==6743== Releasing lock... [2025-03-31 22:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 22:57:23] Production.INFO: 38.5 MB #Memory Used# [2025-03-31 22:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 19:58:05 [end_date_ymd] => 2025-03-31 22:58:05 [RateCDR] => 1 ) [2025-03-31 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-31 19:58:05' and `end` < '2025-03-31 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-31 22:58:18] Production.INFO: count ==1355 [2025-03-31 22:58:18] Production.ERROR: pbx CDR StartTime 2025-03-31 19:58:05 - End Time 2025-03-31 22:58:05 [2025-03-31 22:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806710', 'tblTempUsageDetail_20' ) start [2025-03-31 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806710', 'tblTempUsageDetail_20' ) end [2025-03-31 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806710', 'tblTempVendorCDR_20' ) start [2025-03-31 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806710', 'tblTempVendorCDR_20' ) end [2025-03-31 22:58:18] Production.INFO: ProcessCDR(1,14806710,1,1,2) [2025-03-31 22:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806710', 'tblTempUsageDetail_20' ) start [2025-03-31 22:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806710', 'tblTempUsageDetail_20' ) end [2025-03-31 22:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 22:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 22:58:22] Production.INFO: ==6828== Releasing lock... [2025-03-31 22:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 22:58:22] Production.INFO: 38.25 MB #Memory Used# [2025-03-31 22:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 19:59:05 [end_date_ymd] => 2025-03-31 22:59:05 [RateCDR] => 1 ) [2025-03-31 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-31 19:59:05' and `end` < '2025-03-31 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-31 22:59:18] Production.INFO: count ==1355 [2025-03-31 22:59:18] Production.ERROR: pbx CDR StartTime 2025-03-31 19:59:05 - End Time 2025-03-31 22:59:05 [2025-03-31 22:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806715', 'tblTempUsageDetail_20' ) start [2025-03-31 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806715', 'tblTempUsageDetail_20' ) end [2025-03-31 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806715', 'tblTempVendorCDR_20' ) start [2025-03-31 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806715', 'tblTempVendorCDR_20' ) end [2025-03-31 22:59:18] Production.INFO: ProcessCDR(1,14806715,1,1,2) [2025-03-31 22:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 22:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 22:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806715', 'tblTempUsageDetail_20' ) start [2025-03-31 22:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806715', 'tblTempUsageDetail_20' ) end [2025-03-31 22:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 22:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 22:59:21] Production.INFO: ==6913== Releasing lock... [2025-03-31 22:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 22:59:21] Production.INFO: 38.5 MB #Memory Used# [2025-03-31 23:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 20:00:06 [end_date_ymd] => 2025-03-31 23:00:06 [RateCDR] => 1 ) [2025-03-31 23:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 20:00:06' and `end` < '2025-03-31 23:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 23:00:19] Production.INFO: count ==1351 [2025-03-31 23:00:20] Production.ERROR: pbx CDR StartTime 2025-03-31 20:00:06 - End Time 2025-03-31 23:00:06 [2025-03-31 23:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 23:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806721', 'tblTempUsageDetail_20' ) start [2025-03-31 23:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806721', 'tblTempUsageDetail_20' ) end [2025-03-31 23:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806721', 'tblTempVendorCDR_20' ) start [2025-03-31 23:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806721', 'tblTempVendorCDR_20' ) end [2025-03-31 23:00:20] Production.INFO: ProcessCDR(1,14806721,1,1,2) [2025-03-31 23:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806721', 'tblTempUsageDetail_20' ) start [2025-03-31 23:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806721', 'tblTempUsageDetail_20' ) end [2025-03-31 23:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 23:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 23:00:23] Production.INFO: ==7004== Releasing lock... [2025-03-31 23:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 23:00:23] Production.INFO: 38.25 MB #Memory Used# [2025-03-31 23:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 20:01:04 [end_date_ymd] => 2025-03-31 23:01:04 [RateCDR] => 1 ) [2025-03-31 23:01: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-31 20:01:04' and `end` < '2025-03-31 23:01: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-31 23:01:17] Production.INFO: count ==1302 [2025-03-31 23:01:18] Production.ERROR: pbx CDR StartTime 2025-03-31 20:01:04 - End Time 2025-03-31 23:01:04 [2025-03-31 23:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806726', 'tblTempUsageDetail_20' ) start [2025-03-31 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806726', 'tblTempUsageDetail_20' ) end [2025-03-31 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806726', 'tblTempVendorCDR_20' ) start [2025-03-31 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806726', 'tblTempVendorCDR_20' ) end [2025-03-31 23:01:18] Production.INFO: ProcessCDR(1,14806726,1,1,2) [2025-03-31 23:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806726', 'tblTempUsageDetail_20' ) start [2025-03-31 23:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806726', 'tblTempUsageDetail_20' ) end [2025-03-31 23:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 23:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 23:01:21] Production.INFO: ==7179== Releasing lock... [2025-03-31 23:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 23:01:21] Production.INFO: 37.75 MB #Memory Used# [2025-03-31 23:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 20:02:06 [end_date_ymd] => 2025-03-31 23:02:06 [RateCDR] => 1 ) [2025-03-31 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-31 20:02:06' and `end` < '2025-03-31 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-31 23:02:18] Production.INFO: count ==1307 [2025-03-31 23:02:19] Production.ERROR: pbx CDR StartTime 2025-03-31 20:02:06 - End Time 2025-03-31 23:02:06 [2025-03-31 23:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806731', 'tblTempUsageDetail_20' ) start [2025-03-31 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806731', 'tblTempUsageDetail_20' ) end [2025-03-31 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806731', 'tblTempVendorCDR_20' ) start [2025-03-31 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806731', 'tblTempVendorCDR_20' ) end [2025-03-31 23:02:19] Production.INFO: ProcessCDR(1,14806731,1,1,2) [2025-03-31 23:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806731', 'tblTempUsageDetail_20' ) start [2025-03-31 23:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806731', 'tblTempUsageDetail_20' ) end [2025-03-31 23:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 23:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 23:02:22] Production.INFO: ==7301== Releasing lock... [2025-03-31 23:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 23:02:22] Production.INFO: 37.75 MB #Memory Used# [2025-03-31 23:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 20:03:06 [end_date_ymd] => 2025-03-31 23:03:06 [RateCDR] => 1 ) [2025-03-31 23: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-31 20:03:06' and `end` < '2025-03-31 23: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-31 23:03:18] Production.INFO: count ==1274 [2025-03-31 23:03:19] Production.ERROR: pbx CDR StartTime 2025-03-31 20:03:06 - End Time 2025-03-31 23:03:06 [2025-03-31 23:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 23:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806736', 'tblTempUsageDetail_20' ) start [2025-03-31 23:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806736', 'tblTempUsageDetail_20' ) end [2025-03-31 23:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806736', 'tblTempVendorCDR_20' ) start [2025-03-31 23:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806736', 'tblTempVendorCDR_20' ) end [2025-03-31 23:03:19] Production.INFO: ProcessCDR(1,14806736,1,1,2) [2025-03-31 23:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806736', 'tblTempUsageDetail_20' ) start [2025-03-31 23:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806736', 'tblTempUsageDetail_20' ) end [2025-03-31 23:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 23:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 23:03:22] Production.INFO: ==7389== Releasing lock... [2025-03-31 23:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 23:03:22] Production.INFO: 37.5 MB #Memory Used# [2025-03-31 23:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 20:04:05 [end_date_ymd] => 2025-03-31 23:04:05 [RateCDR] => 1 ) [2025-03-31 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-31 20:04:05' and `end` < '2025-03-31 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-31 23:04:18] Production.INFO: count ==1270 [2025-03-31 23:04:18] Production.ERROR: pbx CDR StartTime 2025-03-31 20:04:05 - End Time 2025-03-31 23:04:05 [2025-03-31 23:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806741', 'tblTempUsageDetail_20' ) start [2025-03-31 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806741', 'tblTempUsageDetail_20' ) end [2025-03-31 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806741', 'tblTempVendorCDR_20' ) start [2025-03-31 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806741', 'tblTempVendorCDR_20' ) end [2025-03-31 23:04:18] Production.INFO: ProcessCDR(1,14806741,1,1,2) [2025-03-31 23:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806741', 'tblTempUsageDetail_20' ) start [2025-03-31 23:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806741', 'tblTempUsageDetail_20' ) end [2025-03-31 23:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 23:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 23:04:22] Production.INFO: ==7475== Releasing lock... [2025-03-31 23:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 23:04:22] Production.INFO: 38 MB #Memory Used# [2025-03-31 23:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 20:05:05 [end_date_ymd] => 2025-03-31 23:05:05 [RateCDR] => 1 ) [2025-03-31 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-31 20:05:05' and `end` < '2025-03-31 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-31 23:05:18] Production.INFO: count ==1275 [2025-03-31 23:05:18] Production.ERROR: pbx CDR StartTime 2025-03-31 20:05:05 - End Time 2025-03-31 23:05:05 [2025-03-31 23:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806746', 'tblTempUsageDetail_20' ) start [2025-03-31 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806746', 'tblTempUsageDetail_20' ) end [2025-03-31 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806746', 'tblTempVendorCDR_20' ) start [2025-03-31 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806746', 'tblTempVendorCDR_20' ) end [2025-03-31 23:05:18] Production.INFO: ProcessCDR(1,14806746,1,1,2) [2025-03-31 23:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806746', 'tblTempUsageDetail_20' ) start [2025-03-31 23:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806746', 'tblTempUsageDetail_20' ) end [2025-03-31 23:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 23:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 23:05:22] Production.INFO: ==7637== Releasing lock... [2025-03-31 23:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 23:05:22] Production.INFO: 37.5 MB #Memory Used# [2025-03-31 23:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 20:06:06 [end_date_ymd] => 2025-03-31 23:06:06 [RateCDR] => 1 ) [2025-03-31 23: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-31 20:06:06' and `end` < '2025-03-31 23: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-31 23:06:18] Production.INFO: count ==1271 [2025-03-31 23:06:19] Production.ERROR: pbx CDR StartTime 2025-03-31 20:06:06 - End Time 2025-03-31 23:06:06 [2025-03-31 23:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 23:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806751', 'tblTempUsageDetail_20' ) start [2025-03-31 23:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806751', 'tblTempUsageDetail_20' ) end [2025-03-31 23:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806751', 'tblTempVendorCDR_20' ) start [2025-03-31 23:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806751', 'tblTempVendorCDR_20' ) end [2025-03-31 23:06:19] Production.INFO: ProcessCDR(1,14806751,1,1,2) [2025-03-31 23:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806751', 'tblTempUsageDetail_20' ) start [2025-03-31 23:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806751', 'tblTempUsageDetail_20' ) end [2025-03-31 23:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 23:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 23:06:22] Production.INFO: ==7721== Releasing lock... [2025-03-31 23:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 23:06:22] Production.INFO: 37.75 MB #Memory Used# [2025-03-31 23:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 20:07:04 [end_date_ymd] => 2025-03-31 23:07:04 [RateCDR] => 1 ) [2025-03-31 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-31 20:07:04' and `end` < '2025-03-31 23:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 23:07:17] Production.INFO: count ==1277 [2025-03-31 23:07:17] Production.ERROR: pbx CDR StartTime 2025-03-31 20:07:04 - End Time 2025-03-31 23:07:04 [2025-03-31 23:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 23:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806756', 'tblTempUsageDetail_20' ) start [2025-03-31 23:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806756', 'tblTempUsageDetail_20' ) end [2025-03-31 23:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806756', 'tblTempVendorCDR_20' ) start [2025-03-31 23:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806756', 'tblTempVendorCDR_20' ) end [2025-03-31 23:07:17] Production.INFO: ProcessCDR(1,14806756,1,1,2) [2025-03-31 23:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806756', 'tblTempUsageDetail_20' ) start [2025-03-31 23:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806756', 'tblTempUsageDetail_20' ) end [2025-03-31 23:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 23:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 23:07:21] Production.INFO: ==7811== Releasing lock... [2025-03-31 23:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 23:07:21] Production.INFO: 37.5 MB #Memory Used# [2025-03-31 23:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 20:08:05 [end_date_ymd] => 2025-03-31 23:08:05 [RateCDR] => 1 ) [2025-03-31 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-31 20:08:05' and `end` < '2025-03-31 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-31 23:08:18] Production.INFO: count ==1276 [2025-03-31 23:08:19] Production.ERROR: pbx CDR StartTime 2025-03-31 20:08:05 - End Time 2025-03-31 23:08:05 [2025-03-31 23:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 23:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806761', 'tblTempUsageDetail_20' ) start [2025-03-31 23:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806761', 'tblTempUsageDetail_20' ) end [2025-03-31 23:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806761', 'tblTempVendorCDR_20' ) start [2025-03-31 23:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806761', 'tblTempVendorCDR_20' ) end [2025-03-31 23:08:19] Production.INFO: ProcessCDR(1,14806761,1,1,2) [2025-03-31 23:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806761', 'tblTempUsageDetail_20' ) start [2025-03-31 23:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806761', 'tblTempUsageDetail_20' ) end [2025-03-31 23:08:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 23:08:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 23:08:22] Production.INFO: ==7996== Releasing lock... [2025-03-31 23:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 23:08:22] Production.INFO: 37.5 MB #Memory Used# [2025-03-31 23:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 20:09:06 [end_date_ymd] => 2025-03-31 23:09:06 [RateCDR] => 1 ) [2025-03-31 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-31 20:09:06' and `end` < '2025-03-31 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-31 23:09:19] Production.INFO: count ==1279 [2025-03-31 23:09:20] Production.ERROR: pbx CDR StartTime 2025-03-31 20:09:06 - End Time 2025-03-31 23:09:06 [2025-03-31 23:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 23:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806766', 'tblTempUsageDetail_20' ) start [2025-03-31 23:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806766', 'tblTempUsageDetail_20' ) end [2025-03-31 23:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806766', 'tblTempVendorCDR_20' ) start [2025-03-31 23:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806766', 'tblTempVendorCDR_20' ) end [2025-03-31 23:09:20] Production.INFO: ProcessCDR(1,14806766,1,1,2) [2025-03-31 23:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806766', 'tblTempUsageDetail_20' ) start [2025-03-31 23:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806766', 'tblTempUsageDetail_20' ) end [2025-03-31 23:09:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 23:09:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 23:09:23] Production.INFO: ==8127== Releasing lock... [2025-03-31 23:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 23:09:23] Production.INFO: 37.75 MB #Memory Used# [2025-03-31 23:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 20:10:06 [end_date_ymd] => 2025-03-31 23:10:06 [RateCDR] => 1 ) [2025-03-31 23:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 20:10:06' and `end` < '2025-03-31 23:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 23:10:19] Production.INFO: count ==1267 [2025-03-31 23:10:19] Production.ERROR: pbx CDR StartTime 2025-03-31 20:10:06 - End Time 2025-03-31 23:10:06 [2025-03-31 23:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806771', 'tblTempUsageDetail_20' ) start [2025-03-31 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806771', 'tblTempUsageDetail_20' ) end [2025-03-31 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806771', 'tblTempVendorCDR_20' ) start [2025-03-31 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806771', 'tblTempVendorCDR_20' ) end [2025-03-31 23:10:19] Production.INFO: ProcessCDR(1,14806771,1,1,2) [2025-03-31 23:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806771', 'tblTempUsageDetail_20' ) start [2025-03-31 23:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806771', 'tblTempUsageDetail_20' ) end [2025-03-31 23:10:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 23:10:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 23:10:24] Production.INFO: ==8231== Releasing lock... [2025-03-31 23:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 23:10:24] Production.INFO: 37.75 MB #Memory Used# [2025-03-31 23:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 20:11:06 [end_date_ymd] => 2025-03-31 23:11:06 [RateCDR] => 1 ) [2025-03-31 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-31 20:11:06' and `end` < '2025-03-31 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-31 23:11:19] Production.INFO: count ==1234 [2025-03-31 23:11:19] Production.ERROR: pbx CDR StartTime 2025-03-31 20:11:06 - End Time 2025-03-31 23:11:06 [2025-03-31 23:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 23:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806777', 'tblTempUsageDetail_20' ) start [2025-03-31 23:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806777', 'tblTempUsageDetail_20' ) end [2025-03-31 23:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806777', 'tblTempVendorCDR_20' ) start [2025-03-31 23:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806777', 'tblTempVendorCDR_20' ) end [2025-03-31 23:11:19] Production.INFO: ProcessCDR(1,14806777,1,1,2) [2025-03-31 23:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806777', 'tblTempUsageDetail_20' ) start [2025-03-31 23:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806777', 'tblTempUsageDetail_20' ) end [2025-03-31 23:11:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 23:11:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 23:11:23] Production.INFO: ==8320== Releasing lock... [2025-03-31 23:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 23:11:23] Production.INFO: 37.25 MB #Memory Used# [2025-03-31 23:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 20:12:05 [end_date_ymd] => 2025-03-31 23:12:05 [RateCDR] => 1 ) [2025-03-31 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-31 20:12:05' and `end` < '2025-03-31 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-31 23:12:18] Production.INFO: count ==1235 [2025-03-31 23:12:18] Production.ERROR: pbx CDR StartTime 2025-03-31 20:12:05 - End Time 2025-03-31 23:12:05 [2025-03-31 23:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806782', 'tblTempUsageDetail_20' ) start [2025-03-31 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806782', 'tblTempUsageDetail_20' ) end [2025-03-31 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806782', 'tblTempVendorCDR_20' ) start [2025-03-31 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806782', 'tblTempVendorCDR_20' ) end [2025-03-31 23:12:18] Production.INFO: ProcessCDR(1,14806782,1,1,2) [2025-03-31 23:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806782', 'tblTempUsageDetail_20' ) start [2025-03-31 23:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806782', 'tblTempUsageDetail_20' ) end [2025-03-31 23:12:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 23:12:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 23:12:22] Production.INFO: ==8482== Releasing lock... [2025-03-31 23:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 23:12:22] Production.INFO: 37.25 MB #Memory Used# [2025-03-31 23:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 20:13:06 [end_date_ymd] => 2025-03-31 23:13:06 [RateCDR] => 1 ) [2025-03-31 23: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-31 20:13:06' and `end` < '2025-03-31 23: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-31 23:13:18] Production.INFO: count ==1228 [2025-03-31 23:13:19] Production.ERROR: pbx CDR StartTime 2025-03-31 20:13:06 - End Time 2025-03-31 23:13:06 [2025-03-31 23:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 23:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806787', 'tblTempUsageDetail_20' ) start [2025-03-31 23:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806787', 'tblTempUsageDetail_20' ) end [2025-03-31 23:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806787', 'tblTempVendorCDR_20' ) start [2025-03-31 23:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806787', 'tblTempVendorCDR_20' ) end [2025-03-31 23:13:19] Production.INFO: ProcessCDR(1,14806787,1,1,2) [2025-03-31 23:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806787', 'tblTempUsageDetail_20' ) start [2025-03-31 23:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806787', 'tblTempUsageDetail_20' ) end [2025-03-31 23:13:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 23:13:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 23:13:22] Production.INFO: ==8568== Releasing lock... [2025-03-31 23:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 23:13:22] Production.INFO: 37.25 MB #Memory Used# [2025-03-31 23:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 20:14:05 [end_date_ymd] => 2025-03-31 23:14:05 [RateCDR] => 1 ) [2025-03-31 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-31 20:14:05' and `end` < '2025-03-31 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-31 23:14:18] Production.INFO: count ==1228 [2025-03-31 23:14:18] Production.ERROR: pbx CDR StartTime 2025-03-31 20:14:05 - End Time 2025-03-31 23:14:05 [2025-03-31 23:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806792', 'tblTempUsageDetail_20' ) start [2025-03-31 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806792', 'tblTempUsageDetail_20' ) end [2025-03-31 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806792', 'tblTempVendorCDR_20' ) start [2025-03-31 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806792', 'tblTempVendorCDR_20' ) end [2025-03-31 23:14:18] Production.INFO: ProcessCDR(1,14806792,1,1,2) [2025-03-31 23:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806792', 'tblTempUsageDetail_20' ) start [2025-03-31 23:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806792', 'tblTempUsageDetail_20' ) end [2025-03-31 23:14:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 23:14:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 23:14:22] Production.INFO: ==8651== Releasing lock... [2025-03-31 23:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 23:14:22] Production.INFO: 37.25 MB #Memory Used# [2025-03-31 23:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 20:15:06 [end_date_ymd] => 2025-03-31 23:15:06 [RateCDR] => 1 ) [2025-03-31 23: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-31 20:15:06' and `end` < '2025-03-31 23: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-31 23:15:19] Production.INFO: count ==1224 [2025-03-31 23:15:19] Production.ERROR: pbx CDR StartTime 2025-03-31 20:15:06 - End Time 2025-03-31 23:15:06 [2025-03-31 23:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 23:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806797', 'tblTempUsageDetail_20' ) start [2025-03-31 23:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806797', 'tblTempUsageDetail_20' ) end [2025-03-31 23:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806797', 'tblTempVendorCDR_20' ) start [2025-03-31 23:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806797', 'tblTempVendorCDR_20' ) end [2025-03-31 23:15:19] Production.INFO: ProcessCDR(1,14806797,1,1,2) [2025-03-31 23:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806797', 'tblTempUsageDetail_20' ) start [2025-03-31 23:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806797', 'tblTempUsageDetail_20' ) end [2025-03-31 23:15:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 23:15:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 23:15:22] Production.INFO: ==8813== Releasing lock... [2025-03-31 23:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 23:15:22] Production.INFO: 37.25 MB #Memory Used# [2025-03-31 23:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 20:16:06 [end_date_ymd] => 2025-03-31 23:16:06 [RateCDR] => 1 ) [2025-03-31 23:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 20:16:06' and `end` < '2025-03-31 23:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 23:16:18] Production.INFO: count ==1207 [2025-03-31 23:16:19] Production.ERROR: pbx CDR StartTime 2025-03-31 20:16:06 - End Time 2025-03-31 23:16:06 [2025-03-31 23:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806802', 'tblTempUsageDetail_20' ) start [2025-03-31 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806802', 'tblTempUsageDetail_20' ) end [2025-03-31 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806802', 'tblTempVendorCDR_20' ) start [2025-03-31 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806802', 'tblTempVendorCDR_20' ) end [2025-03-31 23:16:19] Production.INFO: ProcessCDR(1,14806802,1,1,2) [2025-03-31 23:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806802', 'tblTempUsageDetail_20' ) start [2025-03-31 23:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806802', 'tblTempUsageDetail_20' ) end [2025-03-31 23:16:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 23:16:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 23:16:22] Production.INFO: ==8894== Releasing lock... [2025-03-31 23:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 23:16:22] Production.INFO: 37 MB #Memory Used# [2025-03-31 23:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 20:17:05 [end_date_ymd] => 2025-03-31 23:17:05 [RateCDR] => 1 ) [2025-03-31 23:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 20:17:05' and `end` < '2025-03-31 23:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 23:17:18] Production.INFO: count ==1182 [2025-03-31 23:17:18] Production.ERROR: pbx CDR StartTime 2025-03-31 20:17:05 - End Time 2025-03-31 23:17:05 [2025-03-31 23:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806807', 'tblTempUsageDetail_20' ) start [2025-03-31 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806807', 'tblTempUsageDetail_20' ) end [2025-03-31 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806807', 'tblTempVendorCDR_20' ) start [2025-03-31 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806807', 'tblTempVendorCDR_20' ) end [2025-03-31 23:17:18] Production.INFO: ProcessCDR(1,14806807,1,1,2) [2025-03-31 23:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806807', 'tblTempUsageDetail_20' ) start [2025-03-31 23:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806807', 'tblTempUsageDetail_20' ) end [2025-03-31 23:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 23:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 23:17:22] Production.INFO: ==9023== Releasing lock... [2025-03-31 23:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 23:17:22] Production.INFO: 37.25 MB #Memory Used# [2025-03-31 23:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 20:18:05 [end_date_ymd] => 2025-03-31 23:18:05 [RateCDR] => 1 ) [2025-03-31 23:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 20:18:05' and `end` < '2025-03-31 23:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 23:18:18] Production.INFO: count ==1179 [2025-03-31 23:18:18] Production.ERROR: pbx CDR StartTime 2025-03-31 20:18:05 - End Time 2025-03-31 23:18:05 [2025-03-31 23:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806812', 'tblTempUsageDetail_20' ) start [2025-03-31 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806812', 'tblTempUsageDetail_20' ) end [2025-03-31 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806812', 'tblTempVendorCDR_20' ) start [2025-03-31 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806812', 'tblTempVendorCDR_20' ) end [2025-03-31 23:18:18] Production.INFO: ProcessCDR(1,14806812,1,1,2) [2025-03-31 23:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806812', 'tblTempUsageDetail_20' ) start [2025-03-31 23:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806812', 'tblTempUsageDetail_20' ) end [2025-03-31 23:18:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 23:18:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 23:18:22] Production.INFO: ==9108== Releasing lock... [2025-03-31 23:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 23:18:22] Production.INFO: 37.5 MB #Memory Used# [2025-03-31 23:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 20:19:05 [end_date_ymd] => 2025-03-31 23:19:05 [RateCDR] => 1 ) [2025-03-31 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-31 20:19:05' and `end` < '2025-03-31 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-31 23:19:17] Production.INFO: count ==1172 [2025-03-31 23:19:18] Production.ERROR: pbx CDR StartTime 2025-03-31 20:19:05 - End Time 2025-03-31 23:19:05 [2025-03-31 23:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806817', 'tblTempUsageDetail_20' ) start [2025-03-31 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806817', 'tblTempUsageDetail_20' ) end [2025-03-31 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806817', 'tblTempVendorCDR_20' ) start [2025-03-31 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806817', 'tblTempVendorCDR_20' ) end [2025-03-31 23:19:18] Production.INFO: ProcessCDR(1,14806817,1,1,2) [2025-03-31 23:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806817', 'tblTempUsageDetail_20' ) start [2025-03-31 23:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806817', 'tblTempUsageDetail_20' ) end [2025-03-31 23:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 23:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 23:19:21] Production.INFO: ==9194== Releasing lock... [2025-03-31 23:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 23:19:21] Production.INFO: 36.75 MB #Memory Used# [2025-03-31 23:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 20:20:06 [end_date_ymd] => 2025-03-31 23:20:06 [RateCDR] => 1 ) [2025-03-31 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-31 20:20:06' and `end` < '2025-03-31 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-31 23:20:19] Production.INFO: count ==1163 [2025-03-31 23:20:19] Production.ERROR: pbx CDR StartTime 2025-03-31 20:20:06 - End Time 2025-03-31 23:20:06 [2025-03-31 23:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806823', 'tblTempUsageDetail_20' ) start [2025-03-31 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806823', 'tblTempUsageDetail_20' ) end [2025-03-31 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806823', 'tblTempVendorCDR_20' ) start [2025-03-31 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806823', 'tblTempVendorCDR_20' ) end [2025-03-31 23:20:19] Production.INFO: ProcessCDR(1,14806823,1,1,2) [2025-03-31 23:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806823', 'tblTempUsageDetail_20' ) start [2025-03-31 23:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806823', 'tblTempUsageDetail_20' ) end [2025-03-31 23:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 23:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 23:20:22] Production.INFO: ==9278== Releasing lock... [2025-03-31 23:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 23:20:22] Production.INFO: 36.75 MB #Memory Used# [2025-03-31 23:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 20:21:06 [end_date_ymd] => 2025-03-31 23:21:06 [RateCDR] => 1 ) [2025-03-31 23: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-31 20:21:06' and `end` < '2025-03-31 23: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-31 23:21:19] Production.INFO: count ==1149 [2025-03-31 23:21:19] Production.ERROR: pbx CDR StartTime 2025-03-31 20:21:06 - End Time 2025-03-31 23:21:06 [2025-03-31 23:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806828', 'tblTempUsageDetail_20' ) start [2025-03-31 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806828', 'tblTempUsageDetail_20' ) end [2025-03-31 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806828', 'tblTempVendorCDR_20' ) start [2025-03-31 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806828', 'tblTempVendorCDR_20' ) end [2025-03-31 23:21:19] Production.INFO: ProcessCDR(1,14806828,1,1,2) [2025-03-31 23:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806828', 'tblTempUsageDetail_20' ) start [2025-03-31 23:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806828', 'tblTempUsageDetail_20' ) end [2025-03-31 23:21:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 23:21:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 23:21:22] Production.INFO: ==9369== Releasing lock... [2025-03-31 23:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 23:21:22] Production.INFO: 36.75 MB #Memory Used# [2025-03-31 23:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 20:22:05 [end_date_ymd] => 2025-03-31 23:22:05 [RateCDR] => 1 ) [2025-03-31 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-31 20:22:05' and `end` < '2025-03-31 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-31 23:22:18] Production.INFO: count ==1144 [2025-03-31 23:22:18] Production.ERROR: pbx CDR StartTime 2025-03-31 20:22:05 - End Time 2025-03-31 23:22:05 [2025-03-31 23:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806833', 'tblTempUsageDetail_20' ) start [2025-03-31 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806833', 'tblTempUsageDetail_20' ) end [2025-03-31 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806833', 'tblTempVendorCDR_20' ) start [2025-03-31 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806833', 'tblTempVendorCDR_20' ) end [2025-03-31 23:22:18] Production.INFO: ProcessCDR(1,14806833,1,1,2) [2025-03-31 23:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806833', 'tblTempUsageDetail_20' ) start [2025-03-31 23:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806833', 'tblTempUsageDetail_20' ) end [2025-03-31 23:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 23:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 23:22:22] Production.INFO: ==9468== Releasing lock... [2025-03-31 23:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 23:22:22] Production.INFO: 36.75 MB #Memory Used# [2025-03-31 23:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 20:23:05 [end_date_ymd] => 2025-03-31 23:23:05 [RateCDR] => 1 ) [2025-03-31 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-31 20:23:05' and `end` < '2025-03-31 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-31 23:23:18] Production.INFO: count ==1144 [2025-03-31 23:23:18] Production.ERROR: pbx CDR StartTime 2025-03-31 20:23:05 - End Time 2025-03-31 23:23:05 [2025-03-31 23:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806838', 'tblTempUsageDetail_20' ) start [2025-03-31 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806838', 'tblTempUsageDetail_20' ) end [2025-03-31 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806838', 'tblTempVendorCDR_20' ) start [2025-03-31 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806838', 'tblTempVendorCDR_20' ) end [2025-03-31 23:23:18] Production.INFO: ProcessCDR(1,14806838,1,1,2) [2025-03-31 23:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806838', 'tblTempUsageDetail_20' ) start [2025-03-31 23:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806838', 'tblTempUsageDetail_20' ) end [2025-03-31 23:23:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 23:23:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 23:23:22] Production.INFO: ==9549== Releasing lock... [2025-03-31 23:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 23:23:22] Production.INFO: 36.75 MB #Memory Used# [2025-03-31 23:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 20:24:05 [end_date_ymd] => 2025-03-31 23:24:05 [RateCDR] => 1 ) [2025-03-31 23:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 20:24:05' and `end` < '2025-03-31 23:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 23:24:18] Production.INFO: count ==1132 [2025-03-31 23:24:18] Production.ERROR: pbx CDR StartTime 2025-03-31 20:24:05 - End Time 2025-03-31 23:24:05 [2025-03-31 23:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806843', 'tblTempUsageDetail_20' ) start [2025-03-31 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806843', 'tblTempUsageDetail_20' ) end [2025-03-31 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806843', 'tblTempVendorCDR_20' ) start [2025-03-31 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806843', 'tblTempVendorCDR_20' ) end [2025-03-31 23:24:18] Production.INFO: ProcessCDR(1,14806843,1,1,2) [2025-03-31 23:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806843', 'tblTempUsageDetail_20' ) start [2025-03-31 23:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806843', 'tblTempUsageDetail_20' ) end [2025-03-31 23:24:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 23:24:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 23:24:23] Production.INFO: ==9627== Releasing lock... [2025-03-31 23:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 23:24:23] Production.INFO: 36.75 MB #Memory Used# [2025-03-31 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 20:25:05 [end_date_ymd] => 2025-03-31 23:25:05 [RateCDR] => 1 ) [2025-03-31 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-31 20:25:05' and `end` < '2025-03-31 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-31 23:25:18] Production.INFO: count ==1130 [2025-03-31 23:25:18] Production.ERROR: pbx CDR StartTime 2025-03-31 20:25:05 - End Time 2025-03-31 23:25:05 [2025-03-31 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806848', 'tblTempUsageDetail_20' ) start [2025-03-31 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806848', 'tblTempUsageDetail_20' ) end [2025-03-31 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806848', 'tblTempVendorCDR_20' ) start [2025-03-31 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806848', 'tblTempVendorCDR_20' ) end [2025-03-31 23:25:18] Production.INFO: ProcessCDR(1,14806848,1,1,2) [2025-03-31 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806848', 'tblTempUsageDetail_20' ) start [2025-03-31 23:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806848', 'tblTempUsageDetail_20' ) end [2025-03-31 23:25:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 23:25:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 23:25:22] Production.INFO: ==9714== Releasing lock... [2025-03-31 23:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 23:25:22] Production.INFO: 36.75 MB #Memory Used# [2025-03-31 23:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 20:26:05 [end_date_ymd] => 2025-03-31 23:26:05 [RateCDR] => 1 ) [2025-03-31 23:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 20:26:05' and `end` < '2025-03-31 23:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 23:26:18] Production.INFO: count ==1130 [2025-03-31 23:26:18] Production.ERROR: pbx CDR StartTime 2025-03-31 20:26:05 - End Time 2025-03-31 23:26:05 [2025-03-31 23:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806853', 'tblTempUsageDetail_20' ) start [2025-03-31 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806853', 'tblTempUsageDetail_20' ) end [2025-03-31 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806853', 'tblTempVendorCDR_20' ) start [2025-03-31 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806853', 'tblTempVendorCDR_20' ) end [2025-03-31 23:26:18] Production.INFO: ProcessCDR(1,14806853,1,1,2) [2025-03-31 23:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806853', 'tblTempUsageDetail_20' ) start [2025-03-31 23:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806853', 'tblTempUsageDetail_20' ) end [2025-03-31 23:26:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 23:26:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 23:26:23] Production.INFO: ==9798== Releasing lock... [2025-03-31 23:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 23:26:23] Production.INFO: 36.75 MB #Memory Used# [2025-03-31 23:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 20:27:05 [end_date_ymd] => 2025-03-31 23:27:05 [RateCDR] => 1 ) [2025-03-31 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-31 20:27:05' and `end` < '2025-03-31 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-31 23:27:18] Production.INFO: count ==1128 [2025-03-31 23:27:18] Production.ERROR: pbx CDR StartTime 2025-03-31 20:27:05 - End Time 2025-03-31 23:27:05 [2025-03-31 23:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806858', 'tblTempUsageDetail_20' ) start [2025-03-31 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806858', 'tblTempUsageDetail_20' ) end [2025-03-31 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806858', 'tblTempVendorCDR_20' ) start [2025-03-31 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806858', 'tblTempVendorCDR_20' ) end [2025-03-31 23:27:18] Production.INFO: ProcessCDR(1,14806858,1,1,2) [2025-03-31 23:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806858', 'tblTempUsageDetail_20' ) start [2025-03-31 23:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806858', 'tblTempUsageDetail_20' ) end [2025-03-31 23:27:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 23:27:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 23:27:22] Production.INFO: ==9880== Releasing lock... [2025-03-31 23:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 23:27:22] Production.INFO: 36.75 MB #Memory Used# [2025-03-31 23:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 20:28:05 [end_date_ymd] => 2025-03-31 23:28:05 [RateCDR] => 1 ) [2025-03-31 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-31 20:28:05' and `end` < '2025-03-31 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-31 23:28:18] Production.INFO: count ==1124 [2025-03-31 23:28:18] Production.ERROR: pbx CDR StartTime 2025-03-31 20:28:05 - End Time 2025-03-31 23:28:05 [2025-03-31 23:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806863', 'tblTempUsageDetail_20' ) start [2025-03-31 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806863', 'tblTempUsageDetail_20' ) end [2025-03-31 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806863', 'tblTempVendorCDR_20' ) start [2025-03-31 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806863', 'tblTempVendorCDR_20' ) end [2025-03-31 23:28:18] Production.INFO: ProcessCDR(1,14806863,1,1,2) [2025-03-31 23:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806863', 'tblTempUsageDetail_20' ) start [2025-03-31 23:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806863', 'tblTempUsageDetail_20' ) end [2025-03-31 23:28:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 23:28:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 23:28:23] Production.INFO: ==9964== Releasing lock... [2025-03-31 23:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 23:28:23] Production.INFO: 36.5 MB #Memory Used# [2025-03-31 23:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 20:29:05 [end_date_ymd] => 2025-03-31 23:29:05 [RateCDR] => 1 ) [2025-03-31 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-31 20:29:05' and `end` < '2025-03-31 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-31 23:29:17] Production.INFO: count ==1124 [2025-03-31 23:29:18] Production.ERROR: pbx CDR StartTime 2025-03-31 20:29:05 - End Time 2025-03-31 23:29:05 [2025-03-31 23:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806868', 'tblTempUsageDetail_20' ) start [2025-03-31 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806868', 'tblTempUsageDetail_20' ) end [2025-03-31 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806868', 'tblTempVendorCDR_20' ) start [2025-03-31 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806868', 'tblTempVendorCDR_20' ) end [2025-03-31 23:29:18] Production.INFO: ProcessCDR(1,14806868,1,1,2) [2025-03-31 23:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806868', 'tblTempUsageDetail_20' ) start [2025-03-31 23:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806868', 'tblTempUsageDetail_20' ) end [2025-03-31 23:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 23:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 23:29:21] Production.INFO: ==10040== Releasing lock... [2025-03-31 23:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 23:29:21] Production.INFO: 36.5 MB #Memory Used# [2025-03-31 23:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 20:30:06 [end_date_ymd] => 2025-03-31 23:30:06 [RateCDR] => 1 ) [2025-03-31 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-31 20:30:06' and `end` < '2025-03-31 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-31 23:30:19] Production.INFO: count ==1125 [2025-03-31 23:30:19] Production.ERROR: pbx CDR StartTime 2025-03-31 20:30:06 - End Time 2025-03-31 23:30:06 [2025-03-31 23:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806874', 'tblTempUsageDetail_20' ) start [2025-03-31 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806874', 'tblTempUsageDetail_20' ) end [2025-03-31 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806874', 'tblTempVendorCDR_20' ) start [2025-03-31 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806874', 'tblTempVendorCDR_20' ) end [2025-03-31 23:30:19] Production.INFO: ProcessCDR(1,14806874,1,1,2) [2025-03-31 23:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806874', 'tblTempUsageDetail_20' ) start [2025-03-31 23:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806874', 'tblTempUsageDetail_20' ) end [2025-03-31 23:30:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 23:30:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 23:30:23] Production.INFO: ==10121== Releasing lock... [2025-03-31 23:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 23:30:23] Production.INFO: 36.75 MB #Memory Used# [2025-03-31 23:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 20:31:05 [end_date_ymd] => 2025-03-31 23:31:05 [RateCDR] => 1 ) [2025-03-31 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-31 20:31:05' and `end` < '2025-03-31 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-31 23:31:17] Production.INFO: count ==1099 [2025-03-31 23:31:18] Production.ERROR: pbx CDR StartTime 2025-03-31 20:31:05 - End Time 2025-03-31 23:31:05 [2025-03-31 23:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806879', 'tblTempUsageDetail_20' ) start [2025-03-31 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806879', 'tblTempUsageDetail_20' ) end [2025-03-31 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806879', 'tblTempVendorCDR_20' ) start [2025-03-31 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806879', 'tblTempVendorCDR_20' ) end [2025-03-31 23:31:18] Production.INFO: ProcessCDR(1,14806879,1,1,2) [2025-03-31 23:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806879', 'tblTempUsageDetail_20' ) start [2025-03-31 23:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806879', 'tblTempUsageDetail_20' ) end [2025-03-31 23:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 23:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 23:31:21] Production.INFO: ==10206== Releasing lock... [2025-03-31 23:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 23:31:21] Production.INFO: 36.75 MB #Memory Used# [2025-03-31 23:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 20:32:05 [end_date_ymd] => 2025-03-31 23:32:05 [RateCDR] => 1 ) [2025-03-31 23:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 20:32:05' and `end` < '2025-03-31 23:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 23:32:18] Production.INFO: count ==1102 [2025-03-31 23:32:18] Production.ERROR: pbx CDR StartTime 2025-03-31 20:32:05 - End Time 2025-03-31 23:32:05 [2025-03-31 23:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806884', 'tblTempUsageDetail_20' ) start [2025-03-31 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806884', 'tblTempUsageDetail_20' ) end [2025-03-31 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806884', 'tblTempVendorCDR_20' ) start [2025-03-31 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806884', 'tblTempVendorCDR_20' ) end [2025-03-31 23:32:18] Production.INFO: ProcessCDR(1,14806884,1,1,2) [2025-03-31 23:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806884', 'tblTempUsageDetail_20' ) start [2025-03-31 23:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806884', 'tblTempUsageDetail_20' ) end [2025-03-31 23:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 23:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 23:32:22] Production.INFO: ==10319== Releasing lock... [2025-03-31 23:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 23:32:22] Production.INFO: 36.25 MB #Memory Used# [2025-03-31 23:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 20:33:05 [end_date_ymd] => 2025-03-31 23:33:05 [RateCDR] => 1 ) [2025-03-31 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-31 20:33:05' and `end` < '2025-03-31 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-31 23:33:18] Production.INFO: count ==1102 [2025-03-31 23:33:18] Production.ERROR: pbx CDR StartTime 2025-03-31 20:33:05 - End Time 2025-03-31 23:33:05 [2025-03-31 23:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806889', 'tblTempUsageDetail_20' ) start [2025-03-31 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806889', 'tblTempUsageDetail_20' ) end [2025-03-31 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806889', 'tblTempVendorCDR_20' ) start [2025-03-31 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806889', 'tblTempVendorCDR_20' ) end [2025-03-31 23:33:18] Production.INFO: ProcessCDR(1,14806889,1,1,2) [2025-03-31 23:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806889', 'tblTempUsageDetail_20' ) start [2025-03-31 23:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806889', 'tblTempUsageDetail_20' ) end [2025-03-31 23:33:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 23:33:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 23:33:23] Production.INFO: ==10397== Releasing lock... [2025-03-31 23:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 23:33:23] Production.INFO: 36.5 MB #Memory Used# [2025-03-31 23:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 20:34:06 [end_date_ymd] => 2025-03-31 23:34:06 [RateCDR] => 1 ) [2025-03-31 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-31 20:34:06' and `end` < '2025-03-31 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-31 23:34:19] Production.INFO: count ==1136 [2025-03-31 23:34:19] Production.ERROR: pbx CDR StartTime 2025-03-31 20:34:06 - End Time 2025-03-31 23:34:06 [2025-03-31 23:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806894', 'tblTempUsageDetail_20' ) start [2025-03-31 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806894', 'tblTempUsageDetail_20' ) end [2025-03-31 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806894', 'tblTempVendorCDR_20' ) start [2025-03-31 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806894', 'tblTempVendorCDR_20' ) end [2025-03-31 23:34:19] Production.INFO: ProcessCDR(1,14806894,1,1,2) [2025-03-31 23:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806894', 'tblTempUsageDetail_20' ) start [2025-03-31 23:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806894', 'tblTempUsageDetail_20' ) end [2025-03-31 23:34:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 23:34:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 23:34:24] Production.INFO: ==10471== Releasing lock... [2025-03-31 23:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 23:34:24] Production.INFO: 36.75 MB #Memory Used# [2025-03-31 23:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 20:35:06 [end_date_ymd] => 2025-03-31 23:35:06 [RateCDR] => 1 ) [2025-03-31 23: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-31 20:35:06' and `end` < '2025-03-31 23: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-31 23:35:18] Production.INFO: count ==1135 [2025-03-31 23:35:19] Production.ERROR: pbx CDR StartTime 2025-03-31 20:35:06 - End Time 2025-03-31 23:35:06 [2025-03-31 23:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 23:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806899', 'tblTempUsageDetail_20' ) start [2025-03-31 23:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806899', 'tblTempUsageDetail_20' ) end [2025-03-31 23:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806899', 'tblTempVendorCDR_20' ) start [2025-03-31 23:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806899', 'tblTempVendorCDR_20' ) end [2025-03-31 23:35:19] Production.INFO: ProcessCDR(1,14806899,1,1,2) [2025-03-31 23:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806899', 'tblTempUsageDetail_20' ) start [2025-03-31 23:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806899', 'tblTempUsageDetail_20' ) end [2025-03-31 23:35:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 23:35:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 23:35:24] Production.INFO: ==10551== Releasing lock... [2025-03-31 23:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 23:35:24] Production.INFO: 36.75 MB #Memory Used# [2025-03-31 23:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 20:36:05 [end_date_ymd] => 2025-03-31 23:36:05 [RateCDR] => 1 ) [2025-03-31 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-31 20:36:05' and `end` < '2025-03-31 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-31 23:36:18] Production.INFO: count ==1133 [2025-03-31 23:36:18] Production.ERROR: pbx CDR StartTime 2025-03-31 20:36:05 - End Time 2025-03-31 23:36:05 [2025-03-31 23:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806904', 'tblTempUsageDetail_20' ) start [2025-03-31 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806904', 'tblTempUsageDetail_20' ) end [2025-03-31 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806904', 'tblTempVendorCDR_20' ) start [2025-03-31 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806904', 'tblTempVendorCDR_20' ) end [2025-03-31 23:36:18] Production.INFO: ProcessCDR(1,14806904,1,1,2) [2025-03-31 23:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806904', 'tblTempUsageDetail_20' ) start [2025-03-31 23:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806904', 'tblTempUsageDetail_20' ) end [2025-03-31 23:36:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 23:36:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 23:36:23] Production.INFO: ==10634== Releasing lock... [2025-03-31 23:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 23:36:23] Production.INFO: 36.75 MB #Memory Used# [2025-03-31 23:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 20:37:05 [end_date_ymd] => 2025-03-31 23:37:05 [RateCDR] => 1 ) [2025-03-31 23:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 20:37:05' and `end` < '2025-03-31 23:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 23:37:18] Production.INFO: count ==1129 [2025-03-31 23:37:18] Production.ERROR: pbx CDR StartTime 2025-03-31 20:37:05 - End Time 2025-03-31 23:37:05 [2025-03-31 23:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806909', 'tblTempUsageDetail_20' ) start [2025-03-31 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806909', 'tblTempUsageDetail_20' ) end [2025-03-31 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806909', 'tblTempVendorCDR_20' ) start [2025-03-31 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806909', 'tblTempVendorCDR_20' ) end [2025-03-31 23:37:18] Production.INFO: ProcessCDR(1,14806909,1,1,2) [2025-03-31 23:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806909', 'tblTempUsageDetail_20' ) start [2025-03-31 23:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806909', 'tblTempUsageDetail_20' ) end [2025-03-31 23:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 23:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 23:37:22] Production.INFO: ==10707== Releasing lock... [2025-03-31 23:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 23:37:22] Production.INFO: 36.5 MB #Memory Used# [2025-03-31 23:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 20:38:06 [end_date_ymd] => 2025-03-31 23:38:06 [RateCDR] => 1 ) [2025-03-31 23: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-31 20:38:06' and `end` < '2025-03-31 23: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-31 23:38:18] Production.INFO: count ==1110 [2025-03-31 23:38:19] Production.ERROR: pbx CDR StartTime 2025-03-31 20:38:06 - End Time 2025-03-31 23:38:06 [2025-03-31 23:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806914', 'tblTempUsageDetail_20' ) start [2025-03-31 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806914', 'tblTempUsageDetail_20' ) end [2025-03-31 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806914', 'tblTempVendorCDR_20' ) start [2025-03-31 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806914', 'tblTempVendorCDR_20' ) end [2025-03-31 23:38:19] Production.INFO: ProcessCDR(1,14806914,1,1,2) [2025-03-31 23:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806914', 'tblTempUsageDetail_20' ) start [2025-03-31 23:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806914', 'tblTempUsageDetail_20' ) end [2025-03-31 23:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 23:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 23:38:22] Production.INFO: ==10785== Releasing lock... [2025-03-31 23:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 23:38:22] Production.INFO: 36.75 MB #Memory Used# [2025-03-31 23:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 20:39:05 [end_date_ymd] => 2025-03-31 23:39:05 [RateCDR] => 1 ) [2025-03-31 23: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-31 20:39:05' and `end` < '2025-03-31 23: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-31 23:39:18] Production.INFO: count ==1110 [2025-03-31 23:39:18] Production.ERROR: pbx CDR StartTime 2025-03-31 20:39:05 - End Time 2025-03-31 23:39:05 [2025-03-31 23:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806919', 'tblTempUsageDetail_20' ) start [2025-03-31 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806919', 'tblTempUsageDetail_20' ) end [2025-03-31 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806919', 'tblTempVendorCDR_20' ) start [2025-03-31 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806919', 'tblTempVendorCDR_20' ) end [2025-03-31 23:39:18] Production.INFO: ProcessCDR(1,14806919,1,1,2) [2025-03-31 23:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806919', 'tblTempUsageDetail_20' ) start [2025-03-31 23:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806919', 'tblTempUsageDetail_20' ) end [2025-03-31 23:39:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 23:39:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 23:39:22] Production.INFO: ==10859== Releasing lock... [2025-03-31 23:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 23:39:22] Production.INFO: 36.75 MB #Memory Used# [2025-03-31 23:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 20:40:06 [end_date_ymd] => 2025-03-31 23:40:06 [RateCDR] => 1 ) [2025-03-31 23:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 20:40:06' and `end` < '2025-03-31 23:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 23:40:18] Production.INFO: count ==1101 [2025-03-31 23:40:19] Production.ERROR: pbx CDR StartTime 2025-03-31 20:40:06 - End Time 2025-03-31 23:40:06 [2025-03-31 23:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806925', 'tblTempUsageDetail_20' ) start [2025-03-31 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806925', 'tblTempUsageDetail_20' ) end [2025-03-31 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806925', 'tblTempVendorCDR_20' ) start [2025-03-31 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806925', 'tblTempVendorCDR_20' ) end [2025-03-31 23:40:19] Production.INFO: ProcessCDR(1,14806925,1,1,2) [2025-03-31 23:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806925', 'tblTempUsageDetail_20' ) start [2025-03-31 23:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806925', 'tblTempUsageDetail_20' ) end [2025-03-31 23:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 23:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 23:40:22] Production.INFO: ==10938== Releasing lock... [2025-03-31 23:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 23:40:22] Production.INFO: 36.5 MB #Memory Used# [2025-03-31 23:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 20:41:06 [end_date_ymd] => 2025-03-31 23:41:06 [RateCDR] => 1 ) [2025-03-31 23: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-31 20:41:06' and `end` < '2025-03-31 23: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-31 23:41:18] Production.INFO: count ==1055 [2025-03-31 23:41:19] Production.ERROR: pbx CDR StartTime 2025-03-31 20:41:06 - End Time 2025-03-31 23:41:06 [2025-03-31 23:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806930', 'tblTempUsageDetail_20' ) start [2025-03-31 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806930', 'tblTempUsageDetail_20' ) end [2025-03-31 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806930', 'tblTempVendorCDR_20' ) start [2025-03-31 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806930', 'tblTempVendorCDR_20' ) end [2025-03-31 23:41:19] Production.INFO: ProcessCDR(1,14806930,1,1,2) [2025-03-31 23:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806930', 'tblTempUsageDetail_20' ) start [2025-03-31 23:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806930', 'tblTempUsageDetail_20' ) end [2025-03-31 23:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 23:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 23:41:22] Production.INFO: ==11016== Releasing lock... [2025-03-31 23:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 23:41:22] Production.INFO: 36.25 MB #Memory Used# [2025-03-31 23:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 20:42:05 [end_date_ymd] => 2025-03-31 23:42:05 [RateCDR] => 1 ) [2025-03-31 23:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 20:42:05' and `end` < '2025-03-31 23:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 23:42:18] Production.INFO: count ==1038 [2025-03-31 23:42:18] Production.ERROR: pbx CDR StartTime 2025-03-31 20:42:05 - End Time 2025-03-31 23:42:05 [2025-03-31 23:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806935', 'tblTempUsageDetail_20' ) start [2025-03-31 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806935', 'tblTempUsageDetail_20' ) end [2025-03-31 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806935', 'tblTempVendorCDR_20' ) start [2025-03-31 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806935', 'tblTempVendorCDR_20' ) end [2025-03-31 23:42:18] Production.INFO: ProcessCDR(1,14806935,1,1,2) [2025-03-31 23:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806935', 'tblTempUsageDetail_20' ) start [2025-03-31 23:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806935', 'tblTempUsageDetail_20' ) end [2025-03-31 23:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 23:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 23:42:22] Production.INFO: ==11099== Releasing lock... [2025-03-31 23:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 23:42:22] Production.INFO: 36.25 MB #Memory Used# [2025-03-31 23:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 20:43:06 [end_date_ymd] => 2025-03-31 23:43:06 [RateCDR] => 1 ) [2025-03-31 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-31 20:43:06' and `end` < '2025-03-31 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-31 23:43:18] Production.INFO: count ==1032 [2025-03-31 23:43:19] Production.ERROR: pbx CDR StartTime 2025-03-31 20:43:06 - End Time 2025-03-31 23:43:06 [2025-03-31 23:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 23:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806940', 'tblTempUsageDetail_20' ) start [2025-03-31 23:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806940', 'tblTempUsageDetail_20' ) end [2025-03-31 23:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806940', 'tblTempVendorCDR_20' ) start [2025-03-31 23:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806940', 'tblTempVendorCDR_20' ) end [2025-03-31 23:43:19] Production.INFO: ProcessCDR(1,14806940,1,1,2) [2025-03-31 23:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806940', 'tblTempUsageDetail_20' ) start [2025-03-31 23:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806940', 'tblTempUsageDetail_20' ) end [2025-03-31 23:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 23:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 23:43:22] Production.INFO: ==11176== Releasing lock... [2025-03-31 23:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 23:43:22] Production.INFO: 36 MB #Memory Used# [2025-03-31 23:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 20:44:05 [end_date_ymd] => 2025-03-31 23:44:05 [RateCDR] => 1 ) [2025-03-31 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-31 20:44:05' and `end` < '2025-03-31 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-31 23:44:18] Production.INFO: count ==1031 [2025-03-31 23:44:18] Production.ERROR: pbx CDR StartTime 2025-03-31 20:44:05 - End Time 2025-03-31 23:44:05 [2025-03-31 23:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806945', 'tblTempUsageDetail_20' ) start [2025-03-31 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806945', 'tblTempUsageDetail_20' ) end [2025-03-31 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806945', 'tblTempVendorCDR_20' ) start [2025-03-31 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806945', 'tblTempVendorCDR_20' ) end [2025-03-31 23:44:18] Production.INFO: ProcessCDR(1,14806945,1,1,2) [2025-03-31 23:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806945', 'tblTempUsageDetail_20' ) start [2025-03-31 23:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806945', 'tblTempUsageDetail_20' ) end [2025-03-31 23:44:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 23:44:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 23:44:23] Production.INFO: ==11249== Releasing lock... [2025-03-31 23:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 23:44:23] Production.INFO: 35.75 MB #Memory Used# [2025-03-31 23:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 20:45:06 [end_date_ymd] => 2025-03-31 23:45:06 [RateCDR] => 1 ) [2025-03-31 23: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-31 20:45:06' and `end` < '2025-03-31 23: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-31 23:45:18] Production.INFO: count ==1026 [2025-03-31 23:45:18] Production.ERROR: pbx CDR StartTime 2025-03-31 20:45:06 - End Time 2025-03-31 23:45:06 [2025-03-31 23:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806950', 'tblTempUsageDetail_20' ) start [2025-03-31 23:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806950', 'tblTempUsageDetail_20' ) end [2025-03-31 23:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806950', 'tblTempVendorCDR_20' ) start [2025-03-31 23:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806950', 'tblTempVendorCDR_20' ) end [2025-03-31 23:45:19] Production.INFO: ProcessCDR(1,14806950,1,1,2) [2025-03-31 23:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806950', 'tblTempUsageDetail_20' ) start [2025-03-31 23:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806950', 'tblTempUsageDetail_20' ) end [2025-03-31 23:45:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 23:45:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 23:45:22] Production.INFO: ==11320== Releasing lock... [2025-03-31 23:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 23:45:22] Production.INFO: 36 MB #Memory Used# [2025-03-31 23:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 20:46:06 [end_date_ymd] => 2025-03-31 23:46:06 [RateCDR] => 1 ) [2025-03-31 23:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 20:46:06' and `end` < '2025-03-31 23:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 23:46:18] Production.INFO: count ==1022 [2025-03-31 23:46:19] Production.ERROR: pbx CDR StartTime 2025-03-31 20:46:06 - End Time 2025-03-31 23:46:06 [2025-03-31 23:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 23:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806955', 'tblTempUsageDetail_20' ) start [2025-03-31 23:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806955', 'tblTempUsageDetail_20' ) end [2025-03-31 23:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806955', 'tblTempVendorCDR_20' ) start [2025-03-31 23:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806955', 'tblTempVendorCDR_20' ) end [2025-03-31 23:46:19] Production.INFO: ProcessCDR(1,14806955,1,1,2) [2025-03-31 23:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806955', 'tblTempUsageDetail_20' ) start [2025-03-31 23:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806955', 'tblTempUsageDetail_20' ) end [2025-03-31 23:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 23:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 23:46:22] Production.INFO: ==11399== Releasing lock... [2025-03-31 23:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 23:46:22] Production.INFO: 36 MB #Memory Used# [2025-03-31 23:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 20:47:06 [end_date_ymd] => 2025-03-31 23:47:06 [RateCDR] => 1 ) [2025-03-31 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-31 20:47:06' and `end` < '2025-03-31 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-31 23:47:18] Production.INFO: count ==1028 [2025-03-31 23:47:19] Production.ERROR: pbx CDR StartTime 2025-03-31 20:47:06 - End Time 2025-03-31 23:47:06 [2025-03-31 23:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 23:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806960', 'tblTempUsageDetail_20' ) start [2025-03-31 23:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806960', 'tblTempUsageDetail_20' ) end [2025-03-31 23:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806960', 'tblTempVendorCDR_20' ) start [2025-03-31 23:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806960', 'tblTempVendorCDR_20' ) end [2025-03-31 23:47:19] Production.INFO: ProcessCDR(1,14806960,1,1,2) [2025-03-31 23:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806960', 'tblTempUsageDetail_20' ) start [2025-03-31 23:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806960', 'tblTempUsageDetail_20' ) end [2025-03-31 23:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 23:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 23:47:22] Production.INFO: ==11474== Releasing lock... [2025-03-31 23:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 23:47:22] Production.INFO: 35.75 MB #Memory Used# [2025-03-31 23:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 20:48:05 [end_date_ymd] => 2025-03-31 23:48:05 [RateCDR] => 1 ) [2025-03-31 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-31 20:48:05' and `end` < '2025-03-31 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-31 23:48:18] Production.INFO: count ==1033 [2025-03-31 23:48:18] Production.ERROR: pbx CDR StartTime 2025-03-31 20:48:05 - End Time 2025-03-31 23:48:05 [2025-03-31 23:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806965', 'tblTempUsageDetail_20' ) start [2025-03-31 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806965', 'tblTempUsageDetail_20' ) end [2025-03-31 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806965', 'tblTempVendorCDR_20' ) start [2025-03-31 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806965', 'tblTempVendorCDR_20' ) end [2025-03-31 23:48:18] Production.INFO: ProcessCDR(1,14806965,1,1,2) [2025-03-31 23:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806965', 'tblTempUsageDetail_20' ) start [2025-03-31 23:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806965', 'tblTempUsageDetail_20' ) end [2025-03-31 23:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 23:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 23:48:22] Production.INFO: ==11584== Releasing lock... [2025-03-31 23:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 23:48:22] Production.INFO: 36.5 MB #Memory Used# [2025-03-31 23:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 20:49:06 [end_date_ymd] => 2025-03-31 23:49:06 [RateCDR] => 1 ) [2025-03-31 23: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-31 20:49:06' and `end` < '2025-03-31 23: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-31 23:49:18] Production.INFO: count ==1033 [2025-03-31 23:49:19] Production.ERROR: pbx CDR StartTime 2025-03-31 20:49:06 - End Time 2025-03-31 23:49:06 [2025-03-31 23:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 23:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806970', 'tblTempUsageDetail_20' ) start [2025-03-31 23:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806970', 'tblTempUsageDetail_20' ) end [2025-03-31 23:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806970', 'tblTempVendorCDR_20' ) start [2025-03-31 23:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806970', 'tblTempVendorCDR_20' ) end [2025-03-31 23:49:19] Production.INFO: ProcessCDR(1,14806970,1,1,2) [2025-03-31 23:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806970', 'tblTempUsageDetail_20' ) start [2025-03-31 23:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806970', 'tblTempUsageDetail_20' ) end [2025-03-31 23:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 23:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 23:49:22] Production.INFO: ==11657== Releasing lock... [2025-03-31 23:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 23:49:22] Production.INFO: 36.5 MB #Memory Used# [2025-03-31 23:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 20:50:05 [end_date_ymd] => 2025-03-31 23:50:05 [RateCDR] => 1 ) [2025-03-31 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-31 20:50:05' and `end` < '2025-03-31 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-31 23:50:18] Production.INFO: count ==1031 [2025-03-31 23:50:18] Production.ERROR: pbx CDR StartTime 2025-03-31 20:50:05 - End Time 2025-03-31 23:50:05 [2025-03-31 23:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806975', 'tblTempUsageDetail_20' ) start [2025-03-31 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806975', 'tblTempUsageDetail_20' ) end [2025-03-31 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806975', 'tblTempVendorCDR_20' ) start [2025-03-31 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806975', 'tblTempVendorCDR_20' ) end [2025-03-31 23:50:18] Production.INFO: ProcessCDR(1,14806975,1,1,2) [2025-03-31 23:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806975', 'tblTempUsageDetail_20' ) start [2025-03-31 23:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806975', 'tblTempUsageDetail_20' ) end [2025-03-31 23:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 23:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 23:50:22] Production.INFO: ==11734== Releasing lock... [2025-03-31 23:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 23:50:22] Production.INFO: 36 MB #Memory Used# [2025-03-31 23:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 20:51:05 [end_date_ymd] => 2025-03-31 23:51:05 [RateCDR] => 1 ) [2025-03-31 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-31 20:51:05' and `end` < '2025-03-31 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-31 23:51:18] Production.INFO: count ==1016 [2025-03-31 23:51:18] Production.ERROR: pbx CDR StartTime 2025-03-31 20:51:05 - End Time 2025-03-31 23:51:05 [2025-03-31 23:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806981', 'tblTempUsageDetail_20' ) start [2025-03-31 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806981', 'tblTempUsageDetail_20' ) end [2025-03-31 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806981', 'tblTempVendorCDR_20' ) start [2025-03-31 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806981', 'tblTempVendorCDR_20' ) end [2025-03-31 23:51:18] Production.INFO: ProcessCDR(1,14806981,1,1,2) [2025-03-31 23:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806981', 'tblTempUsageDetail_20' ) start [2025-03-31 23:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806981', 'tblTempUsageDetail_20' ) end [2025-03-31 23:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 23:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 23:51:21] Production.INFO: ==11809== Releasing lock... [2025-03-31 23:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 23:51:21] Production.INFO: 36.25 MB #Memory Used# [2025-03-31 23:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 20:52:05 [end_date_ymd] => 2025-03-31 23:52:05 [RateCDR] => 1 ) [2025-03-31 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-31 20:52:05' and `end` < '2025-03-31 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-31 23:52:17] Production.INFO: count ==1019 [2025-03-31 23:52:18] Production.ERROR: pbx CDR StartTime 2025-03-31 20:52:05 - End Time 2025-03-31 23:52:05 [2025-03-31 23:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806986', 'tblTempUsageDetail_20' ) start [2025-03-31 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806986', 'tblTempUsageDetail_20' ) end [2025-03-31 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806986', 'tblTempVendorCDR_20' ) start [2025-03-31 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806986', 'tblTempVendorCDR_20' ) end [2025-03-31 23:52:18] Production.INFO: ProcessCDR(1,14806986,1,1,2) [2025-03-31 23:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806986', 'tblTempUsageDetail_20' ) start [2025-03-31 23:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806986', 'tblTempUsageDetail_20' ) end [2025-03-31 23:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 23:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 23:52:22] Production.INFO: ==11880== Releasing lock... [2025-03-31 23:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 23:52:22] Production.INFO: 35.75 MB #Memory Used# [2025-03-31 23:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 20:53:05 [end_date_ymd] => 2025-03-31 23:53:05 [RateCDR] => 1 ) [2025-03-31 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-31 20:53:05' and `end` < '2025-03-31 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-31 23:53:18] Production.INFO: count ==1019 [2025-03-31 23:53:18] Production.ERROR: pbx CDR StartTime 2025-03-31 20:53:05 - End Time 2025-03-31 23:53:05 [2025-03-31 23:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806991', 'tblTempUsageDetail_20' ) start [2025-03-31 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806991', 'tblTempUsageDetail_20' ) end [2025-03-31 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806991', 'tblTempVendorCDR_20' ) start [2025-03-31 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806991', 'tblTempVendorCDR_20' ) end [2025-03-31 23:53:18] Production.INFO: ProcessCDR(1,14806991,1,1,2) [2025-03-31 23:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806991', 'tblTempUsageDetail_20' ) start [2025-03-31 23:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806991', 'tblTempUsageDetail_20' ) end [2025-03-31 23:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 23:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 23:53:21] Production.INFO: ==11957== Releasing lock... [2025-03-31 23:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 23:53:21] Production.INFO: 35.75 MB #Memory Used# [2025-03-31 23:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 20:54:04 [end_date_ymd] => 2025-03-31 23:54:04 [RateCDR] => 1 ) [2025-03-31 23: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-31 20:54:04' and `end` < '2025-03-31 23: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-31 23:54:17] Production.INFO: count ==1022 [2025-03-31 23:54:17] Production.ERROR: pbx CDR StartTime 2025-03-31 20:54:04 - End Time 2025-03-31 23:54:04 [2025-03-31 23:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806996', 'tblTempUsageDetail_20' ) start [2025-03-31 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14806996', 'tblTempUsageDetail_20' ) end [2025-03-31 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806996', 'tblTempVendorCDR_20' ) start [2025-03-31 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14806996', 'tblTempVendorCDR_20' ) end [2025-03-31 23:54:17] Production.INFO: ProcessCDR(1,14806996,1,1,2) [2025-03-31 23:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14806996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14806996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14806996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14806996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806996', 'tblTempUsageDetail_20' ) start [2025-03-31 23:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14806996', 'tblTempUsageDetail_20' ) end [2025-03-31 23:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 23:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 23:54:21] Production.INFO: ==12033== Releasing lock... [2025-03-31 23:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 23:54:21] Production.INFO: 35.75 MB #Memory Used# [2025-03-31 23:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 20:55:06 [end_date_ymd] => 2025-03-31 23:55:06 [RateCDR] => 1 ) [2025-03-31 23: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-31 20:55:06' and `end` < '2025-03-31 23: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-31 23:55:18] Production.INFO: count ==1023 [2025-03-31 23:55:19] Production.ERROR: pbx CDR StartTime 2025-03-31 20:55:06 - End Time 2025-03-31 23:55:06 [2025-03-31 23:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 23:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807001', 'tblTempUsageDetail_20' ) start [2025-03-31 23:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807001', 'tblTempUsageDetail_20' ) end [2025-03-31 23:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807001', 'tblTempVendorCDR_20' ) start [2025-03-31 23:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807001', 'tblTempVendorCDR_20' ) end [2025-03-31 23:55:19] Production.INFO: ProcessCDR(1,14807001,1,1,2) [2025-03-31 23:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807001', 'tblTempUsageDetail_20' ) start [2025-03-31 23:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807001', 'tblTempUsageDetail_20' ) end [2025-03-31 23:55:24] Production.ERROR: pbx prc_insertCDR start [2025-03-31 23:55:24] Production.ERROR: pbx prc_insertCDR end [2025-03-31 23:55:24] Production.INFO: ==12107== Releasing lock... [2025-03-31 23:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 23:55:24] Production.INFO: 36 MB #Memory Used# [2025-03-31 23:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 20:56:05 [end_date_ymd] => 2025-03-31 23:56:05 [RateCDR] => 1 ) [2025-03-31 23:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 20:56:05' and `end` < '2025-03-31 23:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 23:56:17] Production.INFO: count ==1021 [2025-03-31 23:56:18] Production.ERROR: pbx CDR StartTime 2025-03-31 20:56:05 - End Time 2025-03-31 23:56:05 [2025-03-31 23:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807006', 'tblTempUsageDetail_20' ) start [2025-03-31 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807006', 'tblTempUsageDetail_20' ) end [2025-03-31 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807006', 'tblTempVendorCDR_20' ) start [2025-03-31 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807006', 'tblTempVendorCDR_20' ) end [2025-03-31 23:56:18] Production.INFO: ProcessCDR(1,14807006,1,1,2) [2025-03-31 23:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807006', 'tblTempUsageDetail_20' ) start [2025-03-31 23:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807006', 'tblTempUsageDetail_20' ) end [2025-03-31 23:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 23:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 23:56:21] Production.INFO: ==12186== Releasing lock... [2025-03-31 23:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 23:56:21] Production.INFO: 36 MB #Memory Used# [2025-03-31 23:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 20:57:05 [end_date_ymd] => 2025-03-31 23:57:05 [RateCDR] => 1 ) [2025-03-31 23:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 20:57:05' and `end` < '2025-03-31 23:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 23:57:18] Production.INFO: count ==1017 [2025-03-31 23:57:18] Production.ERROR: pbx CDR StartTime 2025-03-31 20:57:05 - End Time 2025-03-31 23:57:05 [2025-03-31 23:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807011', 'tblTempUsageDetail_20' ) start [2025-03-31 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807011', 'tblTempUsageDetail_20' ) end [2025-03-31 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807011', 'tblTempVendorCDR_20' ) start [2025-03-31 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807011', 'tblTempVendorCDR_20' ) end [2025-03-31 23:57:18] Production.INFO: ProcessCDR(1,14807011,1,1,2) [2025-03-31 23:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807011', 'tblTempUsageDetail_20' ) start [2025-03-31 23:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807011', 'tblTempUsageDetail_20' ) end [2025-03-31 23:57:23] Production.ERROR: pbx prc_insertCDR start [2025-03-31 23:57:23] Production.ERROR: pbx prc_insertCDR end [2025-03-31 23:57:23] Production.INFO: ==12258== Releasing lock... [2025-03-31 23:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 23:57:23] Production.INFO: 36.25 MB #Memory Used# [2025-03-31 23:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 20:58:06 [end_date_ymd] => 2025-03-31 23:58:06 [RateCDR] => 1 ) [2025-03-31 23: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-31 20:58:06' and `end` < '2025-03-31 23: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-31 23:58:18] Production.INFO: count ==1013 [2025-03-31 23:58:19] Production.ERROR: pbx CDR StartTime 2025-03-31 20:58:06 - End Time 2025-03-31 23:58:06 [2025-03-31 23:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 23:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807016', 'tblTempUsageDetail_20' ) start [2025-03-31 23:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807016', 'tblTempUsageDetail_20' ) end [2025-03-31 23:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807016', 'tblTempVendorCDR_20' ) start [2025-03-31 23:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807016', 'tblTempVendorCDR_20' ) end [2025-03-31 23:58:19] Production.INFO: ProcessCDR(1,14807016,1,1,2) [2025-03-31 23:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807016', 'tblTempUsageDetail_20' ) start [2025-03-31 23:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807016', 'tblTempUsageDetail_20' ) end [2025-03-31 23:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-31 23:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-31 23:58:22] Production.INFO: ==12328== Releasing lock... [2025-03-31 23:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 23:58:22] Production.INFO: 36 MB #Memory Used# [2025-03-31 23:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 20:59:05 [end_date_ymd] => 2025-03-31 23:59:05 [RateCDR] => 1 ) [2025-03-31 23:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 20:59:05' and `end` < '2025-03-31 23:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-31 23:59:18] Production.INFO: count ==1011 [2025-03-31 23:59:18] Production.ERROR: pbx CDR StartTime 2025-03-31 20:59:05 - End Time 2025-03-31 23:59:05 [2025-03-31 23:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-31 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807021', 'tblTempUsageDetail_20' ) start [2025-03-31 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807021', 'tblTempUsageDetail_20' ) end [2025-03-31 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807021', 'tblTempVendorCDR_20' ) start [2025-03-31 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807021', 'tblTempVendorCDR_20' ) end [2025-03-31 23:59:18] Production.INFO: ProcessCDR(1,14807021,1,1,2) [2025-03-31 23:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-31 23:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-31 23:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807021', 'tblTempUsageDetail_20' ) start [2025-03-31 23:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807021', 'tblTempUsageDetail_20' ) end [2025-03-31 23:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-31 23:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-31 23:59:21] Production.INFO: ==12400== Releasing lock... [2025-03-31 23:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-31 23:59:21] Production.INFO: 35.75 MB #Memory Used#