[2024-12-18 00:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 21:00:05 [end_date_ymd] => 2024-12-18 00:00:05 [RateCDR] => 1 ) [2024-12-18 00:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 21:00:05' and `end` < '2024-12-18 00:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 00:00:19] Production.INFO: count ==735 [2024-12-18 00:00:19] Production.ERROR: pbx CDR StartTime 2024-12-17 21:00:05 - End Time 2024-12-18 00:00:05 [2024-12-18 00:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 00:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044335', 'tblTempUsageDetail_20' ) start [2024-12-18 00:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044335', 'tblTempUsageDetail_20' ) end [2024-12-18 00:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044335', 'tblTempVendorCDR_20' ) start [2024-12-18 00:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044335', 'tblTempVendorCDR_20' ) end [2024-12-18 00:00:19] Production.INFO: ProcessCDR(1,14044335,1,1,2) [2024-12-18 00:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044335', 'tblTempUsageDetail_20' ) start [2024-12-18 00:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044335', 'tblTempUsageDetail_20' ) end [2024-12-18 00:00:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 00:00:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 00:00:24] Production.INFO: ==21224== Releasing lock... [2024-12-18 00:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 00:00:24] Production.INFO: 34.5 MB #Memory Used# [2024-12-18 00:01:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 21:01:04 [end_date_ymd] => 2024-12-18 00:01:04 [RateCDR] => 1 ) [2024-12-18 00: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` >= '2024-12-17 21:01:04' and `end` < '2024-12-18 00: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 ,'') [2024-12-18 00:01:16] Production.INFO: count ==691 [2024-12-18 00:01:17] Production.ERROR: pbx CDR StartTime 2024-12-17 21:01:04 - End Time 2024-12-18 00:01:04 [2024-12-18 00:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 00:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044340', 'tblTempUsageDetail_20' ) start [2024-12-18 00:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044340', 'tblTempUsageDetail_20' ) end [2024-12-18 00:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044340', 'tblTempVendorCDR_20' ) start [2024-12-18 00:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044340', 'tblTempVendorCDR_20' ) end [2024-12-18 00:01:17] Production.INFO: ProcessCDR(1,14044340,1,1,2) [2024-12-18 00:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:01:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:01:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:01:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:01:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044340', 'tblTempUsageDetail_20' ) start [2024-12-18 00:01:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044340', 'tblTempUsageDetail_20' ) end [2024-12-18 00:01:19] Production.ERROR: pbx prc_insertCDR start [2024-12-18 00:01:19] Production.ERROR: pbx prc_insertCDR end [2024-12-18 00:01:19] Production.INFO: ==21312== Releasing lock... [2024-12-18 00:01:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 00:01:19] Production.INFO: 32.5 MB #Memory Used# [2024-12-18 00:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 21:02:05 [end_date_ymd] => 2024-12-18 00:02:05 [RateCDR] => 1 ) [2024-12-18 00:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 21:02:05' and `end` < '2024-12-18 00:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 00:02:26] Production.INFO: count ==212 [2024-12-18 00:02:26] Production.ERROR: pbx CDR StartTime 2024-12-17 21:02:05 - End Time 2024-12-18 00:02:05 [2024-12-18 00:02:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 00:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044345', 'tblTempUsageDetail_20' ) start [2024-12-18 00:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044345', 'tblTempUsageDetail_20' ) end [2024-12-18 00:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044345', 'tblTempVendorCDR_20' ) start [2024-12-18 00:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044345', 'tblTempVendorCDR_20' ) end [2024-12-18 00:02:26] Production.INFO: ProcessCDR(1,14044345,1,1,2) [2024-12-18 00:02:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:02:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:02:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:02:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:02:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044345', 'tblTempUsageDetail_20' ) start [2024-12-18 00:02:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044345', 'tblTempUsageDetail_20' ) end [2024-12-18 00:02:29] Production.ERROR: pbx prc_insertCDR start [2024-12-18 00:02:29] Production.ERROR: pbx prc_insertCDR end [2024-12-18 00:02:29] Production.INFO: ==21389== Releasing lock... [2024-12-18 00:02:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 00:02:29] Production.INFO: 30.25 MB #Memory Used# [2024-12-18 00:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 21:03:04 [end_date_ymd] => 2024-12-18 00:03:04 [RateCDR] => 1 ) [2024-12-18 00:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 21:03:04' and `end` < '2024-12-18 00:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 00:03:28] Production.INFO: count ==211 [2024-12-18 00:03:28] Production.ERROR: pbx CDR StartTime 2024-12-17 21:03:04 - End Time 2024-12-18 00:03:04 [2024-12-18 00:03:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 00:03:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044350', 'tblTempUsageDetail_20' ) start [2024-12-18 00:03:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044350', 'tblTempUsageDetail_20' ) end [2024-12-18 00:03:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044350', 'tblTempVendorCDR_20' ) start [2024-12-18 00:03:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044350', 'tblTempVendorCDR_20' ) end [2024-12-18 00:03:28] Production.INFO: ProcessCDR(1,14044350,1,1,2) [2024-12-18 00:03:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:03:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:03:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:03:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:03:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044350', 'tblTempUsageDetail_20' ) start [2024-12-18 00:03:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044350', 'tblTempUsageDetail_20' ) end [2024-12-18 00:03:31] Production.ERROR: pbx prc_insertCDR start [2024-12-18 00:03:31] Production.ERROR: pbx prc_insertCDR end [2024-12-18 00:03:31] Production.INFO: ==21460== Releasing lock... [2024-12-18 00:03:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 00:03:31] Production.INFO: 30.25 MB #Memory Used# [2024-12-18 00:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 21:04:05 [end_date_ymd] => 2024-12-18 00:04:05 [RateCDR] => 1 ) [2024-12-18 00:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 21:04:05' and `end` < '2024-12-18 00:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 00:04:28] Production.INFO: count ==211 [2024-12-18 00:04:28] Production.ERROR: pbx CDR StartTime 2024-12-17 21:04:05 - End Time 2024-12-18 00:04:05 [2024-12-18 00:04:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 00:04:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044355', 'tblTempUsageDetail_20' ) start [2024-12-18 00:04:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044355', 'tblTempUsageDetail_20' ) end [2024-12-18 00:04:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044355', 'tblTempVendorCDR_20' ) start [2024-12-18 00:04:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044355', 'tblTempVendorCDR_20' ) end [2024-12-18 00:04:28] Production.INFO: ProcessCDR(1,14044355,1,1,2) [2024-12-18 00:04:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:04:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:04:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:04:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:04:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044355', 'tblTempUsageDetail_20' ) start [2024-12-18 00:04:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044355', 'tblTempUsageDetail_20' ) end [2024-12-18 00:04:31] Production.ERROR: pbx prc_insertCDR start [2024-12-18 00:04:31] Production.ERROR: pbx prc_insertCDR end [2024-12-18 00:04:31] Production.INFO: ==21531== Releasing lock... [2024-12-18 00:04:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 00:04:31] Production.INFO: 30.25 MB #Memory Used# [2024-12-18 00:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 21:05:04 [end_date_ymd] => 2024-12-18 00:05:04 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-17 21:05:04' and `end` < '2024-12-18 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 ,'') [2024-12-18 00:05:29] Production.INFO: count ==208 [2024-12-18 00:05:29] Production.ERROR: pbx CDR StartTime 2024-12-17 21:05:04 - End Time 2024-12-18 00:05:04 [2024-12-18 00:05:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 00:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044360', 'tblTempUsageDetail_20' ) start [2024-12-18 00:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044360', 'tblTempUsageDetail_20' ) end [2024-12-18 00:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044360', 'tblTempVendorCDR_20' ) start [2024-12-18 00:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044360', 'tblTempVendorCDR_20' ) end [2024-12-18 00:05:29] Production.INFO: ProcessCDR(1,14044360,1,1,2) [2024-12-18 00:05:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:05:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:05:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:05:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:05:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044360', 'tblTempUsageDetail_20' ) start [2024-12-18 00:05:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044360', 'tblTempUsageDetail_20' ) end [2024-12-18 00:05:32] Production.ERROR: pbx prc_insertCDR start [2024-12-18 00:05:32] Production.ERROR: pbx prc_insertCDR end [2024-12-18 00:05:32] Production.INFO: ==21601== Releasing lock... [2024-12-18 00:05:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 00:05:32] Production.INFO: 30 MB #Memory Used# [2024-12-18 00:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 21:06:05 [end_date_ymd] => 2024-12-18 00:06:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-17 21:06:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 00:06:32] Production.INFO: count ==205 [2024-12-18 00:06:32] Production.ERROR: pbx CDR StartTime 2024-12-17 21:06:05 - End Time 2024-12-18 00:06:05 [2024-12-18 00:06:32] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 00:06:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044365', 'tblTempUsageDetail_20' ) start [2024-12-18 00:06:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044365', 'tblTempUsageDetail_20' ) end [2024-12-18 00:06:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044365', 'tblTempVendorCDR_20' ) start [2024-12-18 00:06:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044365', 'tblTempVendorCDR_20' ) end [2024-12-18 00:06:32] Production.INFO: ProcessCDR(1,14044365,1,1,2) [2024-12-18 00:06:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:06:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:06:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:06:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:06:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044365', 'tblTempUsageDetail_20' ) start [2024-12-18 00:06:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044365', 'tblTempUsageDetail_20' ) end [2024-12-18 00:06:35] Production.ERROR: pbx prc_insertCDR start [2024-12-18 00:06:35] Production.ERROR: pbx prc_insertCDR end [2024-12-18 00:06:35] Production.INFO: ==21673== Releasing lock... [2024-12-18 00:06:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 00:06:35] Production.INFO: 30.25 MB #Memory Used# [2024-12-18 00:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 21:07:05 [end_date_ymd] => 2024-12-18 00:07:05 [RateCDR] => 1 ) [2024-12-18 00:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 21:07:05' and `end` < '2024-12-18 00:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 00:07:32] Production.INFO: count ==208 [2024-12-18 00:07:33] Production.ERROR: pbx CDR StartTime 2024-12-17 21:07:05 - End Time 2024-12-18 00:07:05 [2024-12-18 00:07:33] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 00:07:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044370', 'tblTempUsageDetail_20' ) start [2024-12-18 00:07:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044370', 'tblTempUsageDetail_20' ) end [2024-12-18 00:07:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044370', 'tblTempVendorCDR_20' ) start [2024-12-18 00:07:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044370', 'tblTempVendorCDR_20' ) end [2024-12-18 00:07:33] Production.INFO: ProcessCDR(1,14044370,1,1,2) [2024-12-18 00:07:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:07:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:07:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:07:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:07:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044370', 'tblTempUsageDetail_20' ) start [2024-12-18 00:07:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044370', 'tblTempUsageDetail_20' ) end [2024-12-18 00:07:37] Production.ERROR: pbx prc_insertCDR start [2024-12-18 00:07:37] Production.ERROR: pbx prc_insertCDR end [2024-12-18 00:07:37] Production.INFO: ==21745== Releasing lock... [2024-12-18 00:07:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 00:07:37] Production.INFO: 30 MB #Memory Used# [2024-12-18 00:08:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 21:08:04 [end_date_ymd] => 2024-12-18 00:08:04 [RateCDR] => 1 ) [2024-12-18 00:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 21:08:04' and `end` < '2024-12-18 00:08:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 00:08:31] Production.INFO: count ==209 [2024-12-18 00:08:31] Production.ERROR: pbx CDR StartTime 2024-12-17 21:08:04 - End Time 2024-12-18 00:08:04 [2024-12-18 00:08:31] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 00:08:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044375', 'tblTempUsageDetail_20' ) start [2024-12-18 00:08:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044375', 'tblTempUsageDetail_20' ) end [2024-12-18 00:08:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044375', 'tblTempVendorCDR_20' ) start [2024-12-18 00:08:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044375', 'tblTempVendorCDR_20' ) end [2024-12-18 00:08:31] Production.INFO: ProcessCDR(1,14044375,1,1,2) [2024-12-18 00:08:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:08:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:08:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:08:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:08:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044375', 'tblTempUsageDetail_20' ) start [2024-12-18 00:08:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044375', 'tblTempUsageDetail_20' ) end [2024-12-18 00:08:36] Production.ERROR: pbx prc_insertCDR start [2024-12-18 00:08:36] Production.ERROR: pbx prc_insertCDR end [2024-12-18 00:08:36] Production.INFO: ==21815== Releasing lock... [2024-12-18 00:08:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 00:08:36] Production.INFO: 30 MB #Memory Used# [2024-12-18 00:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 21:09:05 [end_date_ymd] => 2024-12-18 00:09:05 [RateCDR] => 1 ) [2024-12-18 00:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 21:09:05' and `end` < '2024-12-18 00:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 00:09:27] Production.INFO: count ==209 [2024-12-18 00:09:27] Production.ERROR: pbx CDR StartTime 2024-12-17 21:09:05 - End Time 2024-12-18 00:09:05 [2024-12-18 00:09:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 00:09:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044380', 'tblTempUsageDetail_20' ) start [2024-12-18 00:09:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044380', 'tblTempUsageDetail_20' ) end [2024-12-18 00:09:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044380', 'tblTempVendorCDR_20' ) start [2024-12-18 00:09:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044380', 'tblTempVendorCDR_20' ) end [2024-12-18 00:09:27] Production.INFO: ProcessCDR(1,14044380,1,1,2) [2024-12-18 00:09:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:09:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:09:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:09:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:09:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044380', 'tblTempUsageDetail_20' ) start [2024-12-18 00:09:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044380', 'tblTempUsageDetail_20' ) end [2024-12-18 00:09:30] Production.ERROR: pbx prc_insertCDR start [2024-12-18 00:09:30] Production.ERROR: pbx prc_insertCDR end [2024-12-18 00:09:30] Production.INFO: ==21886== Releasing lock... [2024-12-18 00:09:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 00:09:30] Production.INFO: 30 MB #Memory Used# [2024-12-18 00:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 21:10:05 [end_date_ymd] => 2024-12-18 00:10:05 [RateCDR] => 1 ) [2024-12-18 00: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` >= '2024-12-17 21:10:05' and `end` < '2024-12-18 00: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 ,'') [2024-12-18 00:10:26] Production.INFO: count ==210 [2024-12-18 00:10:26] Production.ERROR: pbx CDR StartTime 2024-12-17 21:10:05 - End Time 2024-12-18 00:10:05 [2024-12-18 00:10:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 00:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044385', 'tblTempUsageDetail_20' ) start [2024-12-18 00:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044385', 'tblTempUsageDetail_20' ) end [2024-12-18 00:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044385', 'tblTempVendorCDR_20' ) start [2024-12-18 00:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044385', 'tblTempVendorCDR_20' ) end [2024-12-18 00:10:26] Production.INFO: ProcessCDR(1,14044385,1,1,2) [2024-12-18 00:10:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:10:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:10:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:10:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044385', 'tblTempUsageDetail_20' ) start [2024-12-18 00:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044385', 'tblTempUsageDetail_20' ) end [2024-12-18 00:10:29] Production.ERROR: pbx prc_insertCDR start [2024-12-18 00:10:29] Production.ERROR: pbx prc_insertCDR end [2024-12-18 00:10:29] Production.INFO: ==21967== Releasing lock... [2024-12-18 00:10:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 00:10:29] Production.INFO: 29.75 MB #Memory Used# [2024-12-18 00:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 21:11:04 [end_date_ymd] => 2024-12-18 00:11:04 [RateCDR] => 1 ) [2024-12-18 00:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 21:11:04' and `end` < '2024-12-18 00:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 00:11:20] Production.INFO: count ==217 [2024-12-18 00:11:20] Production.ERROR: pbx CDR StartTime 2024-12-17 21:11:04 - End Time 2024-12-18 00:11:04 [2024-12-18 00:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 00:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044391', 'tblTempUsageDetail_20' ) start [2024-12-18 00:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044391', 'tblTempUsageDetail_20' ) end [2024-12-18 00:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044391', 'tblTempVendorCDR_20' ) start [2024-12-18 00:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044391', 'tblTempVendorCDR_20' ) end [2024-12-18 00:11:21] Production.INFO: ProcessCDR(1,14044391,1,1,2) [2024-12-18 00:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044391', 'tblTempUsageDetail_20' ) start [2024-12-18 00:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044391', 'tblTempUsageDetail_20' ) end [2024-12-18 00:11:23] Production.ERROR: pbx prc_insertCDR start [2024-12-18 00:11:23] Production.ERROR: pbx prc_insertCDR end [2024-12-18 00:11:23] Production.INFO: ==22039== Releasing lock... [2024-12-18 00:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 00:11:23] Production.INFO: 30 MB #Memory Used# [2024-12-18 00:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 21:12:05 [end_date_ymd] => 2024-12-18 00:12:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-17 21:12:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 00:12:17] Production.INFO: count ==217 [2024-12-18 00:12:17] Production.ERROR: pbx CDR StartTime 2024-12-17 21:12:05 - End Time 2024-12-18 00:12:05 [2024-12-18 00:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 00:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044396', 'tblTempUsageDetail_20' ) start [2024-12-18 00:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044396', 'tblTempUsageDetail_20' ) end [2024-12-18 00:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044396', 'tblTempVendorCDR_20' ) start [2024-12-18 00:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044396', 'tblTempVendorCDR_20' ) end [2024-12-18 00:12:17] Production.INFO: ProcessCDR(1,14044396,1,1,2) [2024-12-18 00:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044396', 'tblTempUsageDetail_20' ) start [2024-12-18 00:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044396', 'tblTempUsageDetail_20' ) end [2024-12-18 00:12:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 00:12:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 00:12:20] Production.INFO: ==22112== Releasing lock... [2024-12-18 00:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 00:12:20] Production.INFO: 30 MB #Memory Used# [2024-12-18 00:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 21:13:04 [end_date_ymd] => 2024-12-18 00:13:04 [RateCDR] => 1 ) [2024-12-18 00:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 21:13:04' and `end` < '2024-12-18 00:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 00:13:19] Production.INFO: count ==217 [2024-12-18 00:13:19] Production.ERROR: pbx CDR StartTime 2024-12-17 21:13:04 - End Time 2024-12-18 00:13:04 [2024-12-18 00:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 00:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044401', 'tblTempUsageDetail_20' ) start [2024-12-18 00:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044401', 'tblTempUsageDetail_20' ) end [2024-12-18 00:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044401', 'tblTempVendorCDR_20' ) start [2024-12-18 00:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044401', 'tblTempVendorCDR_20' ) end [2024-12-18 00:13:19] Production.INFO: ProcessCDR(1,14044401,1,1,2) [2024-12-18 00:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044401', 'tblTempUsageDetail_20' ) start [2024-12-18 00:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044401', 'tblTempUsageDetail_20' ) end [2024-12-18 00:13:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 00:13:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 00:13:22] Production.INFO: ==22182== Releasing lock... [2024-12-18 00:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 00:13:22] Production.INFO: 30 MB #Memory Used# [2024-12-18 00:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 21:14:05 [end_date_ymd] => 2024-12-18 00:14:05 [RateCDR] => 1 ) [2024-12-18 00:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 21:14:05' and `end` < '2024-12-18 00:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 00:14:29] Production.INFO: count ==216 [2024-12-18 00:14:29] Production.ERROR: pbx CDR StartTime 2024-12-17 21:14:05 - End Time 2024-12-18 00:14:05 [2024-12-18 00:14:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 00:14:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044406', 'tblTempUsageDetail_20' ) start [2024-12-18 00:14:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044406', 'tblTempUsageDetail_20' ) end [2024-12-18 00:14:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044406', 'tblTempVendorCDR_20' ) start [2024-12-18 00:14:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044406', 'tblTempVendorCDR_20' ) end [2024-12-18 00:14:29] Production.INFO: ProcessCDR(1,14044406,1,1,2) [2024-12-18 00:14:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:14:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:14:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:14:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:14:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044406', 'tblTempUsageDetail_20' ) start [2024-12-18 00:14:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044406', 'tblTempUsageDetail_20' ) end [2024-12-18 00:14:32] Production.ERROR: pbx prc_insertCDR start [2024-12-18 00:14:32] Production.ERROR: pbx prc_insertCDR end [2024-12-18 00:14:32] Production.INFO: ==22296== Releasing lock... [2024-12-18 00:14:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 00:14:32] Production.INFO: 29.75 MB #Memory Used# [2024-12-18 00:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 21:15:05 [end_date_ymd] => 2024-12-18 00:15:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-17 21:15:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 00:15:33] Production.INFO: count ==216 [2024-12-18 00:15:33] Production.ERROR: pbx CDR StartTime 2024-12-17 21:15:05 - End Time 2024-12-18 00:15:05 [2024-12-18 00:15:33] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 00:15:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044411', 'tblTempUsageDetail_20' ) start [2024-12-18 00:15:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044411', 'tblTempUsageDetail_20' ) end [2024-12-18 00:15:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044411', 'tblTempVendorCDR_20' ) start [2024-12-18 00:15:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044411', 'tblTempVendorCDR_20' ) end [2024-12-18 00:15:34] Production.INFO: ProcessCDR(1,14044411,1,1,2) [2024-12-18 00:15:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:15:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:15:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:15:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:15:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044411', 'tblTempUsageDetail_20' ) start [2024-12-18 00:15:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044411', 'tblTempUsageDetail_20' ) end [2024-12-18 00:15:37] Production.ERROR: pbx prc_insertCDR start [2024-12-18 00:15:37] Production.ERROR: pbx prc_insertCDR end [2024-12-18 00:15:37] Production.INFO: ==22369== Releasing lock... [2024-12-18 00:15:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 00:15:37] Production.INFO: 29.75 MB #Memory Used# [2024-12-18 00:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 21:16:05 [end_date_ymd] => 2024-12-18 00:16:05 [RateCDR] => 1 ) [2024-12-18 00:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 21:16:05' and `end` < '2024-12-18 00:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 00:16:32] Production.INFO: count ==216 [2024-12-18 00:16:32] Production.ERROR: pbx CDR StartTime 2024-12-17 21:16:05 - End Time 2024-12-18 00:16:05 [2024-12-18 00:16:32] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 00:16:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044416', 'tblTempUsageDetail_20' ) start [2024-12-18 00:16:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044416', 'tblTempUsageDetail_20' ) end [2024-12-18 00:16:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044416', 'tblTempVendorCDR_20' ) start [2024-12-18 00:16:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044416', 'tblTempVendorCDR_20' ) end [2024-12-18 00:16:32] Production.INFO: ProcessCDR(1,14044416,1,1,2) [2024-12-18 00:16:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:16:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:16:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:16:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:16:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044416', 'tblTempUsageDetail_20' ) start [2024-12-18 00:16:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044416', 'tblTempUsageDetail_20' ) end [2024-12-18 00:16:35] Production.ERROR: pbx prc_insertCDR start [2024-12-18 00:16:35] Production.ERROR: pbx prc_insertCDR end [2024-12-18 00:16:35] Production.INFO: ==22439== Releasing lock... [2024-12-18 00:16:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 00:16:35] Production.INFO: 29.75 MB #Memory Used# [2024-12-18 00:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 21:17:05 [end_date_ymd] => 2024-12-18 00:17:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-17 21:17:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 00:17:20] Production.INFO: count ==213 [2024-12-18 00:17:20] Production.ERROR: pbx CDR StartTime 2024-12-17 21:17:05 - End Time 2024-12-18 00:17:05 [2024-12-18 00:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 00:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044421', 'tblTempUsageDetail_20' ) start [2024-12-18 00:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044421', 'tblTempUsageDetail_20' ) end [2024-12-18 00:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044421', 'tblTempVendorCDR_20' ) start [2024-12-18 00:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044421', 'tblTempVendorCDR_20' ) end [2024-12-18 00:17:20] Production.INFO: ProcessCDR(1,14044421,1,1,2) [2024-12-18 00:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044421', 'tblTempUsageDetail_20' ) start [2024-12-18 00:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044421', 'tblTempUsageDetail_20' ) end [2024-12-18 00:17:23] Production.ERROR: pbx prc_insertCDR start [2024-12-18 00:17:23] Production.ERROR: pbx prc_insertCDR end [2024-12-18 00:17:23] Production.INFO: ==22523== Releasing lock... [2024-12-18 00:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 00:17:23] Production.INFO: 30.25 MB #Memory Used# [2024-12-18 00:18:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 21:18:04 [end_date_ymd] => 2024-12-18 00:18:04 [RateCDR] => 1 ) [2024-12-18 00:18: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` >= '2024-12-17 21:18:04' and `end` < '2024-12-18 00:18: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 ,'') [2024-12-18 00:18:20] Production.INFO: count ==214 [2024-12-18 00:18:20] Production.ERROR: pbx CDR StartTime 2024-12-17 21:18:04 - End Time 2024-12-18 00:18:04 [2024-12-18 00:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 00:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044426', 'tblTempUsageDetail_20' ) start [2024-12-18 00:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044426', 'tblTempUsageDetail_20' ) end [2024-12-18 00:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044426', 'tblTempVendorCDR_20' ) start [2024-12-18 00:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044426', 'tblTempVendorCDR_20' ) end [2024-12-18 00:18:20] Production.INFO: ProcessCDR(1,14044426,1,1,2) [2024-12-18 00:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044426', 'tblTempUsageDetail_20' ) start [2024-12-18 00:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044426', 'tblTempUsageDetail_20' ) end [2024-12-18 00:18:24] Production.ERROR: pbx prc_insertCDR start [2024-12-18 00:18:25] Production.ERROR: pbx prc_insertCDR end [2024-12-18 00:18:25] Production.INFO: ==22596== Releasing lock... [2024-12-18 00:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 00:18:25] Production.INFO: 30 MB #Memory Used# [2024-12-18 00:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 21:19:05 [end_date_ymd] => 2024-12-18 00:19:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-17 21:19:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 00:19:22] Production.INFO: count ==213 [2024-12-18 00:19:22] Production.ERROR: pbx CDR StartTime 2024-12-17 21:19:05 - End Time 2024-12-18 00:19:05 [2024-12-18 00:19:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 00:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044431', 'tblTempUsageDetail_20' ) start [2024-12-18 00:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044431', 'tblTempUsageDetail_20' ) end [2024-12-18 00:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044431', 'tblTempVendorCDR_20' ) start [2024-12-18 00:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044431', 'tblTempVendorCDR_20' ) end [2024-12-18 00:19:22] Production.INFO: ProcessCDR(1,14044431,1,1,2) [2024-12-18 00:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044431', 'tblTempUsageDetail_20' ) start [2024-12-18 00:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044431', 'tblTempUsageDetail_20' ) end [2024-12-18 00:19:25] Production.ERROR: pbx prc_insertCDR start [2024-12-18 00:19:25] Production.ERROR: pbx prc_insertCDR end [2024-12-18 00:19:25] Production.INFO: ==22668== Releasing lock... [2024-12-18 00:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 00:19:25] Production.INFO: 30.25 MB #Memory Used# [2024-12-18 00:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 21:20:05 [end_date_ymd] => 2024-12-18 00:20:05 [RateCDR] => 1 ) [2024-12-18 00: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` >= '2024-12-17 21:20:05' and `end` < '2024-12-18 00: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 ,'') [2024-12-18 00:20:20] Production.INFO: count ==219 [2024-12-18 00:20:20] Production.ERROR: pbx CDR StartTime 2024-12-17 21:20:05 - End Time 2024-12-18 00:20:05 [2024-12-18 00:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 00:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044436', 'tblTempUsageDetail_20' ) start [2024-12-18 00:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044436', 'tblTempUsageDetail_20' ) end [2024-12-18 00:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044436', 'tblTempVendorCDR_20' ) start [2024-12-18 00:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044436', 'tblTempVendorCDR_20' ) end [2024-12-18 00:20:21] Production.INFO: ProcessCDR(1,14044436,1,1,2) [2024-12-18 00:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044436', 'tblTempUsageDetail_20' ) start [2024-12-18 00:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044436', 'tblTempUsageDetail_20' ) end [2024-12-18 00:20:24] Production.ERROR: pbx prc_insertCDR start [2024-12-18 00:20:24] Production.ERROR: pbx prc_insertCDR end [2024-12-18 00:20:24] Production.INFO: ==22742== Releasing lock... [2024-12-18 00:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 00:20:24] Production.INFO: 30 MB #Memory Used# [2024-12-18 00:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 21:21:05 [end_date_ymd] => 2024-12-18 00:21:05 [RateCDR] => 1 ) [2024-12-18 00:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 21:21:05' and `end` < '2024-12-18 00:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 00:21:17] Production.INFO: count ==237 [2024-12-18 00:21:17] Production.ERROR: pbx CDR StartTime 2024-12-17 21:21:05 - End Time 2024-12-18 00:21:05 [2024-12-18 00:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044442', 'tblTempUsageDetail_20' ) start [2024-12-18 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044442', 'tblTempUsageDetail_20' ) end [2024-12-18 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044442', 'tblTempVendorCDR_20' ) start [2024-12-18 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044442', 'tblTempVendorCDR_20' ) end [2024-12-18 00:21:17] Production.INFO: ProcessCDR(1,14044442,1,1,2) [2024-12-18 00:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044442', 'tblTempUsageDetail_20' ) start [2024-12-18 00:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044442', 'tblTempUsageDetail_20' ) end [2024-12-18 00:21:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 00:21:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 00:21:20] Production.INFO: ==22816== Releasing lock... [2024-12-18 00:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 00:21:20] Production.INFO: 30.25 MB #Memory Used# [2024-12-18 00:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 21:22:05 [end_date_ymd] => 2024-12-18 00:22:05 [RateCDR] => 1 ) [2024-12-18 00:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 21:22:05' and `end` < '2024-12-18 00:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 00:22:17] Production.INFO: count ==239 [2024-12-18 00:22:17] Production.ERROR: pbx CDR StartTime 2024-12-17 21:22:05 - End Time 2024-12-18 00:22:05 [2024-12-18 00:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044447', 'tblTempUsageDetail_20' ) start [2024-12-18 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044447', 'tblTempUsageDetail_20' ) end [2024-12-18 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044447', 'tblTempVendorCDR_20' ) start [2024-12-18 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044447', 'tblTempVendorCDR_20' ) end [2024-12-18 00:22:17] Production.INFO: ProcessCDR(1,14044447,1,1,2) [2024-12-18 00:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044447', 'tblTempUsageDetail_20' ) start [2024-12-18 00:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044447', 'tblTempUsageDetail_20' ) end [2024-12-18 00:22:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 00:22:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 00:22:20] Production.INFO: ==22890== Releasing lock... [2024-12-18 00:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 00:22:20] Production.INFO: 30.5 MB #Memory Used# [2024-12-18 00:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 21:23:05 [end_date_ymd] => 2024-12-18 00:23:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-17 21:23:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 00:23:17] Production.INFO: count ==236 [2024-12-18 00:23:17] Production.ERROR: pbx CDR StartTime 2024-12-17 21:23:05 - End Time 2024-12-18 00:23:05 [2024-12-18 00:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044452', 'tblTempUsageDetail_20' ) start [2024-12-18 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044452', 'tblTempUsageDetail_20' ) end [2024-12-18 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044452', 'tblTempVendorCDR_20' ) start [2024-12-18 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044452', 'tblTempVendorCDR_20' ) end [2024-12-18 00:23:17] Production.INFO: ProcessCDR(1,14044452,1,1,2) [2024-12-18 00:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044452', 'tblTempUsageDetail_20' ) start [2024-12-18 00:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044452', 'tblTempUsageDetail_20' ) end [2024-12-18 00:23:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 00:23:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 00:23:20] Production.INFO: ==22962== Releasing lock... [2024-12-18 00:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 00:23:20] Production.INFO: 30.25 MB #Memory Used# [2024-12-18 00:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 21:24:05 [end_date_ymd] => 2024-12-18 00:24:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-17 21:24:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 00:24:17] Production.INFO: count ==236 [2024-12-18 00:24:17] Production.ERROR: pbx CDR StartTime 2024-12-17 21:24:05 - End Time 2024-12-18 00:24:05 [2024-12-18 00:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 00:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044457', 'tblTempUsageDetail_20' ) start [2024-12-18 00:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044457', 'tblTempUsageDetail_20' ) end [2024-12-18 00:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044457', 'tblTempVendorCDR_20' ) start [2024-12-18 00:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044457', 'tblTempVendorCDR_20' ) end [2024-12-18 00:24:17] Production.INFO: ProcessCDR(1,14044457,1,1,2) [2024-12-18 00:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044457', 'tblTempUsageDetail_20' ) start [2024-12-18 00:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044457', 'tblTempUsageDetail_20' ) end [2024-12-18 00:24:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 00:24:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 00:24:20] Production.INFO: ==23032== Releasing lock... [2024-12-18 00:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 00:24:20] Production.INFO: 30.25 MB #Memory Used# [2024-12-18 00:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 21:25:04 [end_date_ymd] => 2024-12-18 00:25:04 [RateCDR] => 1 ) [2024-12-18 00: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` >= '2024-12-17 21:25:04' and `end` < '2024-12-18 00: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 ,'') [2024-12-18 00:25:16] Production.INFO: count ==235 [2024-12-18 00:25:16] Production.ERROR: pbx CDR StartTime 2024-12-17 21:25:04 - End Time 2024-12-18 00:25:04 [2024-12-18 00:25:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 00:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044462', 'tblTempUsageDetail_20' ) start [2024-12-18 00:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044462', 'tblTempUsageDetail_20' ) end [2024-12-18 00:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044462', 'tblTempVendorCDR_20' ) start [2024-12-18 00:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044462', 'tblTempVendorCDR_20' ) end [2024-12-18 00:25:16] Production.INFO: ProcessCDR(1,14044462,1,1,2) [2024-12-18 00:25:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:25:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:25:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044462', 'tblTempUsageDetail_20' ) start [2024-12-18 00:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044462', 'tblTempUsageDetail_20' ) end [2024-12-18 00:25:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 00:25:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 00:25:20] Production.INFO: ==23113== Releasing lock... [2024-12-18 00:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 00:25:20] Production.INFO: 30.25 MB #Memory Used# [2024-12-18 00:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 21:26:05 [end_date_ymd] => 2024-12-18 00:26:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-17 21:26:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 00:26:17] Production.INFO: count ==234 [2024-12-18 00:26:17] Production.ERROR: pbx CDR StartTime 2024-12-17 21:26:05 - End Time 2024-12-18 00:26:05 [2024-12-18 00:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044467', 'tblTempUsageDetail_20' ) start [2024-12-18 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044467', 'tblTempUsageDetail_20' ) end [2024-12-18 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044467', 'tblTempVendorCDR_20' ) start [2024-12-18 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044467', 'tblTempVendorCDR_20' ) end [2024-12-18 00:26:17] Production.INFO: ProcessCDR(1,14044467,1,1,2) [2024-12-18 00:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044467', 'tblTempUsageDetail_20' ) start [2024-12-18 00:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044467', 'tblTempUsageDetail_20' ) end [2024-12-18 00:26:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 00:26:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 00:26:20] Production.INFO: ==23218== Releasing lock... [2024-12-18 00:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 00:26:20] Production.INFO: 30.25 MB #Memory Used# [2024-12-18 00:27:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 21:27:06 [end_date_ymd] => 2024-12-18 00:27:06 [RateCDR] => 1 ) [2024-12-18 00:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 21:27:06' and `end` < '2024-12-18 00:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 00:27:18] Production.INFO: count ==234 [2024-12-18 00:27:18] Production.ERROR: pbx CDR StartTime 2024-12-17 21:27:06 - End Time 2024-12-18 00:27:06 [2024-12-18 00:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044472', 'tblTempUsageDetail_20' ) start [2024-12-18 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044472', 'tblTempUsageDetail_20' ) end [2024-12-18 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044472', 'tblTempVendorCDR_20' ) start [2024-12-18 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044472', 'tblTempVendorCDR_20' ) end [2024-12-18 00:27:18] Production.INFO: ProcessCDR(1,14044472,1,1,2) [2024-12-18 00:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044472', 'tblTempUsageDetail_20' ) start [2024-12-18 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044472', 'tblTempUsageDetail_20' ) end [2024-12-18 00:27:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 00:27:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 00:27:21] Production.INFO: ==23322== Releasing lock... [2024-12-18 00:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 00:27:21] Production.INFO: 30.25 MB #Memory Used# [2024-12-18 00:28:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 21:28:04 [end_date_ymd] => 2024-12-18 00:28:04 [RateCDR] => 1 ) [2024-12-18 00:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 21:28:04' and `end` < '2024-12-18 00:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 00:28:16] Production.INFO: count ==234 [2024-12-18 00:28:16] Production.ERROR: pbx CDR StartTime 2024-12-17 21:28:04 - End Time 2024-12-18 00:28:04 [2024-12-18 00:28:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 00:28:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044477', 'tblTempUsageDetail_20' ) start [2024-12-18 00:28:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044477', 'tblTempUsageDetail_20' ) end [2024-12-18 00:28:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044477', 'tblTempVendorCDR_20' ) start [2024-12-18 00:28:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044477', 'tblTempVendorCDR_20' ) end [2024-12-18 00:28:16] Production.INFO: ProcessCDR(1,14044477,1,1,2) [2024-12-18 00:28:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:28:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:28:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:28:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:28:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044477', 'tblTempUsageDetail_20' ) start [2024-12-18 00:28:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044477', 'tblTempUsageDetail_20' ) end [2024-12-18 00:28:19] Production.ERROR: pbx prc_insertCDR start [2024-12-18 00:28:19] Production.ERROR: pbx prc_insertCDR end [2024-12-18 00:28:19] Production.INFO: ==23421== Releasing lock... [2024-12-18 00:28:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 00:28:19] Production.INFO: 30.25 MB #Memory Used# [2024-12-18 00:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 21:29:05 [end_date_ymd] => 2024-12-18 00:29:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-17 21:29:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 00:29:33] Production.INFO: count ==235 [2024-12-18 00:29:33] Production.ERROR: pbx CDR StartTime 2024-12-17 21:29:05 - End Time 2024-12-18 00:29:05 [2024-12-18 00:29:33] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 00:29:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044482', 'tblTempUsageDetail_20' ) start [2024-12-18 00:29:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044482', 'tblTempUsageDetail_20' ) end [2024-12-18 00:29:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044482', 'tblTempVendorCDR_20' ) start [2024-12-18 00:29:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044482', 'tblTempVendorCDR_20' ) end [2024-12-18 00:29:33] Production.INFO: ProcessCDR(1,14044482,1,1,2) [2024-12-18 00:29:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:29:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:29:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:29:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:29:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044482', 'tblTempUsageDetail_20' ) start [2024-12-18 00:29:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044482', 'tblTempUsageDetail_20' ) end [2024-12-18 00:29:37] Production.ERROR: pbx prc_insertCDR start [2024-12-18 00:29:37] Production.ERROR: pbx prc_insertCDR end [2024-12-18 00:29:37] Production.INFO: ==23564== Releasing lock... [2024-12-18 00:29:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 00:29:37] Production.INFO: 30.25 MB #Memory Used# [2024-12-18 00:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 21:30:05 [end_date_ymd] => 2024-12-18 00:30:05 [RateCDR] => 1 ) [2024-12-18 00:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 21:30:05' and `end` < '2024-12-18 00:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 00:30:30] Production.INFO: count ==240 [2024-12-18 00:30:30] Production.ERROR: pbx CDR StartTime 2024-12-17 21:30:05 - End Time 2024-12-18 00:30:05 [2024-12-18 00:30:30] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 00:30:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044487', 'tblTempUsageDetail_20' ) start [2024-12-18 00:30:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044487', 'tblTempUsageDetail_20' ) end [2024-12-18 00:30:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044487', 'tblTempVendorCDR_20' ) start [2024-12-18 00:30:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044487', 'tblTempVendorCDR_20' ) end [2024-12-18 00:30:30] Production.INFO: ProcessCDR(1,14044487,1,1,2) [2024-12-18 00:30:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:30:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:30:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:30:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:30:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044487', 'tblTempUsageDetail_20' ) start [2024-12-18 00:30:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044487', 'tblTempUsageDetail_20' ) end [2024-12-18 00:30:33] Production.ERROR: pbx prc_insertCDR start [2024-12-18 00:30:33] Production.ERROR: pbx prc_insertCDR end [2024-12-18 00:30:33] Production.INFO: ==23670== Releasing lock... [2024-12-18 00:30:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 00:30:33] Production.INFO: 30.5 MB #Memory Used# [2024-12-18 00:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 21:31:05 [end_date_ymd] => 2024-12-18 00:31:05 [RateCDR] => 1 ) [2024-12-18 00:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 21:31:05' and `end` < '2024-12-18 00:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 00:31:27] Production.INFO: count ==238 [2024-12-18 00:31:27] Production.ERROR: pbx CDR StartTime 2024-12-17 21:31:05 - End Time 2024-12-18 00:31:05 [2024-12-18 00:31:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 00:31:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044493', 'tblTempUsageDetail_20' ) start [2024-12-18 00:31:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044493', 'tblTempUsageDetail_20' ) end [2024-12-18 00:31:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044493', 'tblTempVendorCDR_20' ) start [2024-12-18 00:31:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044493', 'tblTempVendorCDR_20' ) end [2024-12-18 00:31:28] Production.INFO: ProcessCDR(1,14044493,1,1,2) [2024-12-18 00:31:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:31:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:31:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:31:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:31:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044493', 'tblTempUsageDetail_20' ) start [2024-12-18 00:31:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044493', 'tblTempUsageDetail_20' ) end [2024-12-18 00:31:31] Production.ERROR: pbx prc_insertCDR start [2024-12-18 00:31:31] Production.ERROR: pbx prc_insertCDR end [2024-12-18 00:31:31] Production.INFO: ==23776== Releasing lock... [2024-12-18 00:31:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 00:31:31] Production.INFO: 30 MB #Memory Used# [2024-12-18 00:32:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 21:32:04 [end_date_ymd] => 2024-12-18 00:32:04 [RateCDR] => 1 ) [2024-12-18 00:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 21:32:04' and `end` < '2024-12-18 00:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 00:32:27] Production.INFO: count ==227 [2024-12-18 00:32:27] Production.ERROR: pbx CDR StartTime 2024-12-17 21:32:04 - End Time 2024-12-18 00:32:04 [2024-12-18 00:32:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 00:32:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044498', 'tblTempUsageDetail_20' ) start [2024-12-18 00:32:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044498', 'tblTempUsageDetail_20' ) end [2024-12-18 00:32:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044498', 'tblTempVendorCDR_20' ) start [2024-12-18 00:32:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044498', 'tblTempVendorCDR_20' ) end [2024-12-18 00:32:27] Production.INFO: ProcessCDR(1,14044498,1,1,2) [2024-12-18 00:32:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:32:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:32:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:32:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:32:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044498', 'tblTempUsageDetail_20' ) start [2024-12-18 00:32:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044498', 'tblTempUsageDetail_20' ) end [2024-12-18 00:32:30] Production.ERROR: pbx prc_insertCDR start [2024-12-18 00:32:30] Production.ERROR: pbx prc_insertCDR end [2024-12-18 00:32:30] Production.INFO: ==23877== Releasing lock... [2024-12-18 00:32:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 00:32:30] Production.INFO: 30.25 MB #Memory Used# [2024-12-18 00:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 21:33:05 [end_date_ymd] => 2024-12-18 00:33:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-17 21:33:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 00:33:27] Production.INFO: count ==220 [2024-12-18 00:33:27] Production.ERROR: pbx CDR StartTime 2024-12-17 21:33:05 - End Time 2024-12-18 00:33:05 [2024-12-18 00:33:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 00:33:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044503', 'tblTempUsageDetail_20' ) start [2024-12-18 00:33:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044503', 'tblTempUsageDetail_20' ) end [2024-12-18 00:33:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044503', 'tblTempVendorCDR_20' ) start [2024-12-18 00:33:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044503', 'tblTempVendorCDR_20' ) end [2024-12-18 00:33:27] Production.INFO: ProcessCDR(1,14044503,1,1,2) [2024-12-18 00:33:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:33:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:33:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:33:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:33:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044503', 'tblTempUsageDetail_20' ) start [2024-12-18 00:33:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044503', 'tblTempUsageDetail_20' ) end [2024-12-18 00:33:30] Production.ERROR: pbx prc_insertCDR start [2024-12-18 00:33:30] Production.ERROR: pbx prc_insertCDR end [2024-12-18 00:33:30] Production.INFO: ==23984== Releasing lock... [2024-12-18 00:33:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 00:33:30] Production.INFO: 30 MB #Memory Used# [2024-12-18 00:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 21:34:05 [end_date_ymd] => 2024-12-18 00:34:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-17 21:34:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 00:34:21] Production.INFO: count ==210 [2024-12-18 00:34:21] Production.ERROR: pbx CDR StartTime 2024-12-17 21:34:05 - End Time 2024-12-18 00:34:05 [2024-12-18 00:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 00:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044508', 'tblTempUsageDetail_20' ) start [2024-12-18 00:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044508', 'tblTempUsageDetail_20' ) end [2024-12-18 00:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044508', 'tblTempVendorCDR_20' ) start [2024-12-18 00:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044508', 'tblTempVendorCDR_20' ) end [2024-12-18 00:34:21] Production.INFO: ProcessCDR(1,14044508,1,1,2) [2024-12-18 00:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044508', 'tblTempUsageDetail_20' ) start [2024-12-18 00:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044508', 'tblTempUsageDetail_20' ) end [2024-12-18 00:34:24] Production.ERROR: pbx prc_insertCDR start [2024-12-18 00:34:24] Production.ERROR: pbx prc_insertCDR end [2024-12-18 00:34:24] Production.INFO: ==24091== Releasing lock... [2024-12-18 00:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 00:34:24] Production.INFO: 30.25 MB #Memory Used# [2024-12-18 00:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 21:35:04 [end_date_ymd] => 2024-12-18 00:35:04 [RateCDR] => 1 ) [2024-12-18 00:35: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` >= '2024-12-17 21:35:04' and `end` < '2024-12-18 00:35: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 ,'') [2024-12-18 00:35:23] Production.INFO: count ==200 [2024-12-18 00:35:23] Production.ERROR: pbx CDR StartTime 2024-12-17 21:35:04 - End Time 2024-12-18 00:35:04 [2024-12-18 00:35:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 00:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044513', 'tblTempUsageDetail_20' ) start [2024-12-18 00:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044513', 'tblTempUsageDetail_20' ) end [2024-12-18 00:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044513', 'tblTempVendorCDR_20' ) start [2024-12-18 00:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044513', 'tblTempVendorCDR_20' ) end [2024-12-18 00:35:23] Production.INFO: ProcessCDR(1,14044513,1,1,2) [2024-12-18 00:35:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044513', 'tblTempUsageDetail_20' ) start [2024-12-18 00:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044513', 'tblTempUsageDetail_20' ) end [2024-12-18 00:35:26] Production.ERROR: pbx prc_insertCDR start [2024-12-18 00:35:26] Production.ERROR: pbx prc_insertCDR end [2024-12-18 00:35:26] Production.INFO: ==24193== Releasing lock... [2024-12-18 00:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 00:35:26] Production.INFO: 30.25 MB #Memory Used# [2024-12-18 00:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 21:36:05 [end_date_ymd] => 2024-12-18 00:36:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-17 21:36:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 00:36:20] Production.INFO: count ==189 [2024-12-18 00:36:20] Production.ERROR: pbx CDR StartTime 2024-12-17 21:36:05 - End Time 2024-12-18 00:36:05 [2024-12-18 00:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 00:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044518', 'tblTempUsageDetail_20' ) start [2024-12-18 00:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044518', 'tblTempUsageDetail_20' ) end [2024-12-18 00:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044518', 'tblTempVendorCDR_20' ) start [2024-12-18 00:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044518', 'tblTempVendorCDR_20' ) end [2024-12-18 00:36:20] Production.INFO: ProcessCDR(1,14044518,1,1,2) [2024-12-18 00:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044518', 'tblTempUsageDetail_20' ) start [2024-12-18 00:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044518', 'tblTempUsageDetail_20' ) end [2024-12-18 00:36:23] Production.ERROR: pbx prc_insertCDR start [2024-12-18 00:36:23] Production.ERROR: pbx prc_insertCDR end [2024-12-18 00:36:23] Production.INFO: ==24288== Releasing lock... [2024-12-18 00:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 00:36:23] Production.INFO: 30 MB #Memory Used# [2024-12-18 00:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 21:37:04 [end_date_ymd] => 2024-12-18 00:37:04 [RateCDR] => 1 ) [2024-12-18 00: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` >= '2024-12-17 21:37:04' and `end` < '2024-12-18 00: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 ,'') [2024-12-18 00:37:17] Production.INFO: count ==179 [2024-12-18 00:37:17] Production.ERROR: pbx CDR StartTime 2024-12-17 21:37:04 - End Time 2024-12-18 00:37:04 [2024-12-18 00:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044523', 'tblTempUsageDetail_20' ) start [2024-12-18 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044523', 'tblTempUsageDetail_20' ) end [2024-12-18 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044523', 'tblTempVendorCDR_20' ) start [2024-12-18 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044523', 'tblTempVendorCDR_20' ) end [2024-12-18 00:37:17] Production.INFO: ProcessCDR(1,14044523,1,1,2) [2024-12-18 00:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044523', 'tblTempUsageDetail_20' ) start [2024-12-18 00:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044523', 'tblTempUsageDetail_20' ) end [2024-12-18 00:37:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 00:37:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 00:37:20] Production.INFO: ==24388== Releasing lock... [2024-12-18 00:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 00:37:20] Production.INFO: 30 MB #Memory Used# [2024-12-18 00:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 21:38:05 [end_date_ymd] => 2024-12-18 00:38:05 [RateCDR] => 1 ) [2024-12-18 00:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 21:38:05' and `end` < '2024-12-18 00:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 00:38:17] Production.INFO: count ==169 [2024-12-18 00:38:17] Production.ERROR: pbx CDR StartTime 2024-12-17 21:38:05 - End Time 2024-12-18 00:38:05 [2024-12-18 00:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 00:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044528', 'tblTempUsageDetail_20' ) start [2024-12-18 00:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044528', 'tblTempUsageDetail_20' ) end [2024-12-18 00:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044528', 'tblTempVendorCDR_20' ) start [2024-12-18 00:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044528', 'tblTempVendorCDR_20' ) end [2024-12-18 00:38:17] Production.INFO: ProcessCDR(1,14044528,1,1,2) [2024-12-18 00:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044528', 'tblTempUsageDetail_20' ) start [2024-12-18 00:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044528', 'tblTempUsageDetail_20' ) end [2024-12-18 00:38:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 00:38:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 00:38:20] Production.INFO: ==24490== Releasing lock... [2024-12-18 00:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 00:38:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-18 00:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 21:39:05 [end_date_ymd] => 2024-12-18 00:39:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-17 21:39:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 00:39:17] Production.INFO: count ==159 [2024-12-18 00:39:17] Production.ERROR: pbx CDR StartTime 2024-12-17 21:39:05 - End Time 2024-12-18 00:39:05 [2024-12-18 00:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044533', 'tblTempUsageDetail_20' ) start [2024-12-18 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044533', 'tblTempUsageDetail_20' ) end [2024-12-18 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044533', 'tblTempVendorCDR_20' ) start [2024-12-18 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044533', 'tblTempVendorCDR_20' ) end [2024-12-18 00:39:17] Production.INFO: ProcessCDR(1,14044533,1,1,2) [2024-12-18 00:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044533', 'tblTempUsageDetail_20' ) start [2024-12-18 00:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044533', 'tblTempUsageDetail_20' ) end [2024-12-18 00:39:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 00:39:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 00:39:20] Production.INFO: ==24595== Releasing lock... [2024-12-18 00:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 00:39:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-18 00:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 21:40:06 [end_date_ymd] => 2024-12-18 00:40:06 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-17 21:40:06' and `end` < '2024-12-18 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 ,'') [2024-12-18 00:40:18] Production.INFO: count ==159 [2024-12-18 00:40:18] Production.ERROR: pbx CDR StartTime 2024-12-17 21:40:06 - End Time 2024-12-18 00:40:06 [2024-12-18 00:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044539', 'tblTempUsageDetail_20' ) start [2024-12-18 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044539', 'tblTempUsageDetail_20' ) end [2024-12-18 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044539', 'tblTempVendorCDR_20' ) start [2024-12-18 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044539', 'tblTempVendorCDR_20' ) end [2024-12-18 00:40:18] Production.INFO: ProcessCDR(1,14044539,1,1,2) [2024-12-18 00:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044539', 'tblTempUsageDetail_20' ) start [2024-12-18 00:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044539', 'tblTempUsageDetail_20' ) end [2024-12-18 00:40:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 00:40:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 00:40:21] Production.INFO: ==24702== Releasing lock... [2024-12-18 00:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 00:40:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-18 00:41:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 21:41:04 [end_date_ymd] => 2024-12-18 00:41:04 [RateCDR] => 1 ) [2024-12-18 00:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 21:41:04' and `end` < '2024-12-18 00:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 00:41:16] Production.INFO: count ==164 [2024-12-18 00:41:16] Production.ERROR: pbx CDR StartTime 2024-12-17 21:41:04 - End Time 2024-12-18 00:41:04 [2024-12-18 00:41:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 00:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044544', 'tblTempUsageDetail_20' ) start [2024-12-18 00:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044544', 'tblTempUsageDetail_20' ) end [2024-12-18 00:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044544', 'tblTempVendorCDR_20' ) start [2024-12-18 00:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044544', 'tblTempVendorCDR_20' ) end [2024-12-18 00:41:16] Production.INFO: ProcessCDR(1,14044544,1,1,2) [2024-12-18 00:41:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:41:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:41:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:41:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:41:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044544', 'tblTempUsageDetail_20' ) start [2024-12-18 00:41:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044544', 'tblTempUsageDetail_20' ) end [2024-12-18 00:41:19] Production.ERROR: pbx prc_insertCDR start [2024-12-18 00:41:19] Production.ERROR: pbx prc_insertCDR end [2024-12-18 00:41:19] Production.INFO: ==24795== Releasing lock... [2024-12-18 00:41:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 00:41:19] Production.INFO: 29.25 MB #Memory Used# [2024-12-18 00:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 21:42:05 [end_date_ymd] => 2024-12-18 00:42:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-17 21:42:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 00:42:17] Production.INFO: count ==163 [2024-12-18 00:42:17] Production.ERROR: pbx CDR StartTime 2024-12-17 21:42:05 - End Time 2024-12-18 00:42:05 [2024-12-18 00:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044549', 'tblTempUsageDetail_20' ) start [2024-12-18 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044549', 'tblTempUsageDetail_20' ) end [2024-12-18 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044549', 'tblTempVendorCDR_20' ) start [2024-12-18 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044549', 'tblTempVendorCDR_20' ) end [2024-12-18 00:42:17] Production.INFO: ProcessCDR(1,14044549,1,1,2) [2024-12-18 00:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044549', 'tblTempUsageDetail_20' ) start [2024-12-18 00:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044549', 'tblTempUsageDetail_20' ) end [2024-12-18 00:42:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 00:42:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 00:42:20] Production.INFO: ==24865== Releasing lock... [2024-12-18 00:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 00:42:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-18 00:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 21:43:04 [end_date_ymd] => 2024-12-18 00:43:04 [RateCDR] => 1 ) [2024-12-18 00:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 21:43:04' and `end` < '2024-12-18 00:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 00:43:16] Production.INFO: count ==162 [2024-12-18 00:43:16] Production.ERROR: pbx CDR StartTime 2024-12-17 21:43:04 - End Time 2024-12-18 00:43:04 [2024-12-18 00:43:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 00:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044554', 'tblTempUsageDetail_20' ) start [2024-12-18 00:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044554', 'tblTempUsageDetail_20' ) end [2024-12-18 00:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044554', 'tblTempVendorCDR_20' ) start [2024-12-18 00:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044554', 'tblTempVendorCDR_20' ) end [2024-12-18 00:43:16] Production.INFO: ProcessCDR(1,14044554,1,1,2) [2024-12-18 00:43:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:43:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:43:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:43:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:43:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044554', 'tblTempUsageDetail_20' ) start [2024-12-18 00:43:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044554', 'tblTempUsageDetail_20' ) end [2024-12-18 00:43:19] Production.ERROR: pbx prc_insertCDR start [2024-12-18 00:43:19] Production.ERROR: pbx prc_insertCDR end [2024-12-18 00:43:19] Production.INFO: ==24938== Releasing lock... [2024-12-18 00:43:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 00:43:19] Production.INFO: 29.5 MB #Memory Used# [2024-12-18 00:44:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 21:44:04 [end_date_ymd] => 2024-12-18 00:44:04 [RateCDR] => 1 ) [2024-12-18 00: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` >= '2024-12-17 21:44:04' and `end` < '2024-12-18 00: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 ,'') [2024-12-18 00:44:16] Production.INFO: count ==159 [2024-12-18 00:44:16] Production.ERROR: pbx CDR StartTime 2024-12-17 21:44:04 - End Time 2024-12-18 00:44:04 [2024-12-18 00:44:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 00:44:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044559', 'tblTempUsageDetail_20' ) start [2024-12-18 00:44:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044559', 'tblTempUsageDetail_20' ) end [2024-12-18 00:44:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044559', 'tblTempVendorCDR_20' ) start [2024-12-18 00:44:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044559', 'tblTempVendorCDR_20' ) end [2024-12-18 00:44:16] Production.INFO: ProcessCDR(1,14044559,1,1,2) [2024-12-18 00:44:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:44:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:44:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:44:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:44:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044559', 'tblTempUsageDetail_20' ) start [2024-12-18 00:44:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044559', 'tblTempUsageDetail_20' ) end [2024-12-18 00:44:19] Production.ERROR: pbx prc_insertCDR start [2024-12-18 00:44:19] Production.ERROR: pbx prc_insertCDR end [2024-12-18 00:44:19] Production.INFO: ==25007== Releasing lock... [2024-12-18 00:44:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 00:44:19] Production.INFO: 29.5 MB #Memory Used# [2024-12-18 00:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 21:45:05 [end_date_ymd] => 2024-12-18 00:45:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-17 21:45:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 00:45:17] Production.INFO: count ==158 [2024-12-18 00:45:17] Production.ERROR: pbx CDR StartTime 2024-12-17 21:45:05 - End Time 2024-12-18 00:45:05 [2024-12-18 00:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044564', 'tblTempUsageDetail_20' ) start [2024-12-18 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044564', 'tblTempUsageDetail_20' ) end [2024-12-18 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044564', 'tblTempVendorCDR_20' ) start [2024-12-18 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044564', 'tblTempVendorCDR_20' ) end [2024-12-18 00:45:17] Production.INFO: ProcessCDR(1,14044564,1,1,2) [2024-12-18 00:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044564', 'tblTempUsageDetail_20' ) start [2024-12-18 00:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044564', 'tblTempUsageDetail_20' ) end [2024-12-18 00:45:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 00:45:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 00:45:20] Production.INFO: ==25116== Releasing lock... [2024-12-18 00:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 00:45:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-18 00:46:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 21:46:04 [end_date_ymd] => 2024-12-18 00:46:04 [RateCDR] => 1 ) [2024-12-18 00:46: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` >= '2024-12-17 21:46:04' and `end` < '2024-12-18 00: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 ,'') [2024-12-18 00:46:16] Production.INFO: count ==159 [2024-12-18 00:46:16] Production.ERROR: pbx CDR StartTime 2024-12-17 21:46:04 - End Time 2024-12-18 00:46:04 [2024-12-18 00:46:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 00:46:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044569', 'tblTempUsageDetail_20' ) start [2024-12-18 00:46:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044569', 'tblTempUsageDetail_20' ) end [2024-12-18 00:46:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044569', 'tblTempVendorCDR_20' ) start [2024-12-18 00:46:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044569', 'tblTempVendorCDR_20' ) end [2024-12-18 00:46:16] Production.INFO: ProcessCDR(1,14044569,1,1,2) [2024-12-18 00:46:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044569', 'tblTempUsageDetail_20' ) start [2024-12-18 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044569', 'tblTempUsageDetail_20' ) end [2024-12-18 00:46:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 00:46:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 00:46:21] Production.INFO: ==25185== Releasing lock... [2024-12-18 00:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 00:46:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-18 00:47:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 21:47:04 [end_date_ymd] => 2024-12-18 00:47:04 [RateCDR] => 1 ) [2024-12-18 00:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 21:47:04' and `end` < '2024-12-18 00:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 00:47:17] Production.INFO: count ==158 [2024-12-18 00:47:17] Production.ERROR: pbx CDR StartTime 2024-12-17 21:47:04 - End Time 2024-12-18 00:47:04 [2024-12-18 00:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044574', 'tblTempUsageDetail_20' ) start [2024-12-18 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044574', 'tblTempUsageDetail_20' ) end [2024-12-18 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044574', 'tblTempVendorCDR_20' ) start [2024-12-18 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044574', 'tblTempVendorCDR_20' ) end [2024-12-18 00:47:17] Production.INFO: ProcessCDR(1,14044574,1,1,2) [2024-12-18 00:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044574', 'tblTempUsageDetail_20' ) start [2024-12-18 00:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044574', 'tblTempUsageDetail_20' ) end [2024-12-18 00:47:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 00:47:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 00:47:20] Production.INFO: ==25261== Releasing lock... [2024-12-18 00:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 00:47:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-18 00:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 21:48:05 [end_date_ymd] => 2024-12-18 00:48:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-17 21:48:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 00:48:16] Production.INFO: count ==157 [2024-12-18 00:48:16] Production.ERROR: pbx CDR StartTime 2024-12-17 21:48:05 - End Time 2024-12-18 00:48:05 [2024-12-18 00:48:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 00:48:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044579', 'tblTempUsageDetail_20' ) start [2024-12-18 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044579', 'tblTempUsageDetail_20' ) end [2024-12-18 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044579', 'tblTempVendorCDR_20' ) start [2024-12-18 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044579', 'tblTempVendorCDR_20' ) end [2024-12-18 00:48:17] Production.INFO: ProcessCDR(1,14044579,1,1,2) [2024-12-18 00:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:48:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:48:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:48:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:48:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044579', 'tblTempUsageDetail_20' ) start [2024-12-18 00:48:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044579', 'tblTempUsageDetail_20' ) end [2024-12-18 00:48:19] Production.ERROR: pbx prc_insertCDR start [2024-12-18 00:48:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 00:48:20] Production.INFO: ==25335== Releasing lock... [2024-12-18 00:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 00:48:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-18 00:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 21:49:04 [end_date_ymd] => 2024-12-18 00:49:04 [RateCDR] => 1 ) [2024-12-18 00:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 21:49:04' and `end` < '2024-12-18 00:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 00:49:16] Production.INFO: count ==157 [2024-12-18 00:49:16] Production.ERROR: pbx CDR StartTime 2024-12-17 21:49:04 - End Time 2024-12-18 00:49:04 [2024-12-18 00:49:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 00:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044581', 'tblTempUsageDetail_20' ) start [2024-12-18 00:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044581', 'tblTempUsageDetail_20' ) end [2024-12-18 00:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044581', 'tblTempVendorCDR_20' ) start [2024-12-18 00:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044581', 'tblTempVendorCDR_20' ) end [2024-12-18 00:49:16] Production.INFO: ProcessCDR(1,14044581,1,1,2) [2024-12-18 00:49:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:49:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:49:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:49:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:49:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044581', 'tblTempUsageDetail_20' ) start [2024-12-18 00:49:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044581', 'tblTempUsageDetail_20' ) end [2024-12-18 00:49:19] Production.ERROR: pbx prc_insertCDR start [2024-12-18 00:49:19] Production.ERROR: pbx prc_insertCDR end [2024-12-18 00:49:19] Production.INFO: ==25406== Releasing lock... [2024-12-18 00:49:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 00:49:19] Production.INFO: 29.5 MB #Memory Used# [2024-12-18 00:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 21:50:05 [end_date_ymd] => 2024-12-18 00:50:05 [RateCDR] => 1 ) [2024-12-18 00:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 21:50:05' and `end` < '2024-12-18 00:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 00:50:17] Production.INFO: count ==164 [2024-12-18 00:50:17] Production.ERROR: pbx CDR StartTime 2024-12-17 21:50:05 - End Time 2024-12-18 00:50:05 [2024-12-18 00:50:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 00:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044589', 'tblTempUsageDetail_20' ) start [2024-12-18 00:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044589', 'tblTempUsageDetail_20' ) end [2024-12-18 00:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044589', 'tblTempVendorCDR_20' ) start [2024-12-18 00:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044589', 'tblTempVendorCDR_20' ) end [2024-12-18 00:50:17] Production.INFO: ProcessCDR(1,14044589,1,1,2) [2024-12-18 00:50:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:50:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:50:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:50:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044589', 'tblTempUsageDetail_20' ) start [2024-12-18 00:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044589', 'tblTempUsageDetail_20' ) end [2024-12-18 00:50:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 00:50:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 00:50:20] Production.INFO: ==25479== Releasing lock... [2024-12-18 00:50:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 00:50:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-18 00:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 21:51:04 [end_date_ymd] => 2024-12-18 00:51:04 [RateCDR] => 1 ) [2024-12-18 00:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 21:51:04' and `end` < '2024-12-18 00:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 00:51:17] Production.INFO: count ==172 [2024-12-18 00:51:17] Production.ERROR: pbx CDR StartTime 2024-12-17 21:51:04 - End Time 2024-12-18 00:51:04 [2024-12-18 00:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044595', 'tblTempUsageDetail_20' ) start [2024-12-18 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044595', 'tblTempUsageDetail_20' ) end [2024-12-18 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044595', 'tblTempVendorCDR_20' ) start [2024-12-18 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044595', 'tblTempVendorCDR_20' ) end [2024-12-18 00:51:17] Production.INFO: ProcessCDR(1,14044595,1,1,2) [2024-12-18 00:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044595', 'tblTempUsageDetail_20' ) start [2024-12-18 00:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044595', 'tblTempUsageDetail_20' ) end [2024-12-18 00:51:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 00:51:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 00:51:20] Production.INFO: ==25554== Releasing lock... [2024-12-18 00:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 00:51:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-18 00:52:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 21:52:04 [end_date_ymd] => 2024-12-18 00:52:04 [RateCDR] => 1 ) [2024-12-18 00:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 21:52:04' and `end` < '2024-12-18 00:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 00:52:16] Production.INFO: count ==170 [2024-12-18 00:52:16] Production.ERROR: pbx CDR StartTime 2024-12-17 21:52:04 - End Time 2024-12-18 00:52:04 [2024-12-18 00:52:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 00:52:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044600', 'tblTempUsageDetail_20' ) start [2024-12-18 00:52:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044600', 'tblTempUsageDetail_20' ) end [2024-12-18 00:52:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044600', 'tblTempVendorCDR_20' ) start [2024-12-18 00:52:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044600', 'tblTempVendorCDR_20' ) end [2024-12-18 00:52:16] Production.INFO: ProcessCDR(1,14044600,1,1,2) [2024-12-18 00:52:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:52:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:52:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:52:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:52:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044600', 'tblTempUsageDetail_20' ) start [2024-12-18 00:52:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044600', 'tblTempUsageDetail_20' ) end [2024-12-18 00:52:19] Production.ERROR: pbx prc_insertCDR start [2024-12-18 00:52:19] Production.ERROR: pbx prc_insertCDR end [2024-12-18 00:52:19] Production.INFO: ==25625== Releasing lock... [2024-12-18 00:52:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 00:52:19] Production.INFO: 29.5 MB #Memory Used# [2024-12-18 00:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 21:53:05 [end_date_ymd] => 2024-12-18 00:53:05 [RateCDR] => 1 ) [2024-12-18 00:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 21:53:05' and `end` < '2024-12-18 00:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 00:53:17] Production.INFO: count ==170 [2024-12-18 00:53:17] Production.ERROR: pbx CDR StartTime 2024-12-17 21:53:05 - End Time 2024-12-18 00:53:05 [2024-12-18 00:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044605', 'tblTempUsageDetail_20' ) start [2024-12-18 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044605', 'tblTempUsageDetail_20' ) end [2024-12-18 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044605', 'tblTempVendorCDR_20' ) start [2024-12-18 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044605', 'tblTempVendorCDR_20' ) end [2024-12-18 00:53:17] Production.INFO: ProcessCDR(1,14044605,1,1,2) [2024-12-18 00:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044605', 'tblTempUsageDetail_20' ) start [2024-12-18 00:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044605', 'tblTempUsageDetail_20' ) end [2024-12-18 00:53:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 00:53:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 00:53:20] Production.INFO: ==25696== Releasing lock... [2024-12-18 00:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 00:53:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-18 00:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 21:54:05 [end_date_ymd] => 2024-12-18 00:54:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-17 21:54:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 00:54:17] Production.INFO: count ==168 [2024-12-18 00:54:17] Production.ERROR: pbx CDR StartTime 2024-12-17 21:54:05 - End Time 2024-12-18 00:54:05 [2024-12-18 00:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044610', 'tblTempUsageDetail_20' ) start [2024-12-18 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044610', 'tblTempUsageDetail_20' ) end [2024-12-18 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044610', 'tblTempVendorCDR_20' ) start [2024-12-18 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044610', 'tblTempVendorCDR_20' ) end [2024-12-18 00:54:17] Production.INFO: ProcessCDR(1,14044610,1,1,2) [2024-12-18 00:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044610', 'tblTempUsageDetail_20' ) start [2024-12-18 00:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044610', 'tblTempUsageDetail_20' ) end [2024-12-18 00:54:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 00:54:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 00:54:21] Production.INFO: ==25767== Releasing lock... [2024-12-18 00:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 00:54:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-18 00:55:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 21:55:04 [end_date_ymd] => 2024-12-18 00:55:04 [RateCDR] => 1 ) [2024-12-18 00:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 21:55:04' and `end` < '2024-12-18 00:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 00:55:16] Production.INFO: count ==168 [2024-12-18 00:55:16] Production.ERROR: pbx CDR StartTime 2024-12-17 21:55:04 - End Time 2024-12-18 00:55:04 [2024-12-18 00:55:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 00:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044615', 'tblTempUsageDetail_20' ) start [2024-12-18 00:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044615', 'tblTempUsageDetail_20' ) end [2024-12-18 00:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044615', 'tblTempVendorCDR_20' ) start [2024-12-18 00:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044615', 'tblTempVendorCDR_20' ) end [2024-12-18 00:55:16] Production.INFO: ProcessCDR(1,14044615,1,1,2) [2024-12-18 00:55:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:55:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:55:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:55:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:55:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044615', 'tblTempUsageDetail_20' ) start [2024-12-18 00:55:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044615', 'tblTempUsageDetail_20' ) end [2024-12-18 00:55:19] Production.ERROR: pbx prc_insertCDR start [2024-12-18 00:55:19] Production.ERROR: pbx prc_insertCDR end [2024-12-18 00:55:19] Production.INFO: ==25838== Releasing lock... [2024-12-18 00:55:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 00:55:19] Production.INFO: 29.25 MB #Memory Used# [2024-12-18 00:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 21:56:05 [end_date_ymd] => 2024-12-18 00:56:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-17 21:56:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 00:56:17] Production.INFO: count ==167 [2024-12-18 00:56:17] Production.ERROR: pbx CDR StartTime 2024-12-17 21:56:05 - End Time 2024-12-18 00:56:05 [2024-12-18 00:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044620', 'tblTempUsageDetail_20' ) start [2024-12-18 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044620', 'tblTempUsageDetail_20' ) end [2024-12-18 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044620', 'tblTempVendorCDR_20' ) start [2024-12-18 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044620', 'tblTempVendorCDR_20' ) end [2024-12-18 00:56:17] Production.INFO: ProcessCDR(1,14044620,1,1,2) [2024-12-18 00:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044620', 'tblTempUsageDetail_20' ) start [2024-12-18 00:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044620', 'tblTempUsageDetail_20' ) end [2024-12-18 00:56:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 00:56:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 00:56:20] Production.INFO: ==25908== Releasing lock... [2024-12-18 00:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 00:56:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-18 00:57:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 21:57:04 [end_date_ymd] => 2024-12-18 00:57:04 [RateCDR] => 1 ) [2024-12-18 00:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 21:57:04' and `end` < '2024-12-18 00:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 00:57:16] Production.INFO: count ==166 [2024-12-18 00:57:16] Production.ERROR: pbx CDR StartTime 2024-12-17 21:57:04 - End Time 2024-12-18 00:57:04 [2024-12-18 00:57:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 00:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044624', 'tblTempUsageDetail_20' ) start [2024-12-18 00:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044624', 'tblTempUsageDetail_20' ) end [2024-12-18 00:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044624', 'tblTempVendorCDR_20' ) start [2024-12-18 00:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044624', 'tblTempVendorCDR_20' ) end [2024-12-18 00:57:16] Production.INFO: ProcessCDR(1,14044624,1,1,2) [2024-12-18 00:57:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:57:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:57:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:57:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:57:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044624', 'tblTempUsageDetail_20' ) start [2024-12-18 00:57:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044624', 'tblTempUsageDetail_20' ) end [2024-12-18 00:57:19] Production.ERROR: pbx prc_insertCDR start [2024-12-18 00:57:19] Production.ERROR: pbx prc_insertCDR end [2024-12-18 00:57:19] Production.INFO: ==25979== Releasing lock... [2024-12-18 00:57:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 00:57:19] Production.INFO: 29.25 MB #Memory Used# [2024-12-18 00:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 21:58:05 [end_date_ymd] => 2024-12-18 00:58:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-17 21:58:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 00:58:17] Production.INFO: count ==164 [2024-12-18 00:58:17] Production.ERROR: pbx CDR StartTime 2024-12-17 21:58:05 - End Time 2024-12-18 00:58:05 [2024-12-18 00:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 00:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044630', 'tblTempUsageDetail_20' ) start [2024-12-18 00:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044630', 'tblTempUsageDetail_20' ) end [2024-12-18 00:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044630', 'tblTempVendorCDR_20' ) start [2024-12-18 00:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044630', 'tblTempVendorCDR_20' ) end [2024-12-18 00:58:17] Production.INFO: ProcessCDR(1,14044630,1,1,2) [2024-12-18 00:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044630', 'tblTempUsageDetail_20' ) start [2024-12-18 00:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044630', 'tblTempUsageDetail_20' ) end [2024-12-18 00:58:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 00:58:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 00:58:20] Production.INFO: ==26050== Releasing lock... [2024-12-18 00:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 00:58:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-18 00:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 21:59:05 [end_date_ymd] => 2024-12-18 00:59:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-17 21:59:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 00:59:17] Production.INFO: count ==164 [2024-12-18 00:59:17] Production.ERROR: pbx CDR StartTime 2024-12-17 21:59:05 - End Time 2024-12-18 00:59:05 [2024-12-18 00:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044635', 'tblTempUsageDetail_20' ) start [2024-12-18 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044635', 'tblTempUsageDetail_20' ) end [2024-12-18 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044635', 'tblTempVendorCDR_20' ) start [2024-12-18 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044635', 'tblTempVendorCDR_20' ) end [2024-12-18 00:59:17] Production.INFO: ProcessCDR(1,14044635,1,1,2) [2024-12-18 00:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 00:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 00:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044635', 'tblTempUsageDetail_20' ) start [2024-12-18 00:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044635', 'tblTempUsageDetail_20' ) end [2024-12-18 00:59:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 00:59:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 00:59:20] Production.INFO: ==26124== Releasing lock... [2024-12-18 00:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 00:59:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-18 01:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 22:00:05 [end_date_ymd] => 2024-12-18 01:00:05 [RateCDR] => 1 ) [2024-12-18 01:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 22:00:05' and `end` < '2024-12-18 01:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 01:00:17] Production.INFO: count ==170 [2024-12-18 01:00:17] Production.ERROR: pbx CDR StartTime 2024-12-17 22:00:05 - End Time 2024-12-18 01:00:05 [2024-12-18 01:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 01:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044641', 'tblTempUsageDetail_20' ) start [2024-12-18 01:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044641', 'tblTempUsageDetail_20' ) end [2024-12-18 01:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044641', 'tblTempVendorCDR_20' ) start [2024-12-18 01:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044641', 'tblTempVendorCDR_20' ) end [2024-12-18 01:00:17] Production.INFO: ProcessCDR(1,14044641,1,1,2) [2024-12-18 01:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:00:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:00:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:00:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:00:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044641', 'tblTempUsageDetail_20' ) start [2024-12-18 01:00:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044641', 'tblTempUsageDetail_20' ) end [2024-12-18 01:00:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 01:00:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 01:00:20] Production.INFO: ==26198== Releasing lock... [2024-12-18 01:00:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 01:00:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-18 01:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 22:01:05 [end_date_ymd] => 2024-12-18 01:01:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-17 22:01:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 01:01:17] Production.INFO: count ==170 [2024-12-18 01:01:17] Production.ERROR: pbx CDR StartTime 2024-12-17 22:01:05 - End Time 2024-12-18 01:01:05 [2024-12-18 01:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044645', 'tblTempUsageDetail_20' ) start [2024-12-18 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044645', 'tblTempUsageDetail_20' ) end [2024-12-18 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044645', 'tblTempVendorCDR_20' ) start [2024-12-18 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044645', 'tblTempVendorCDR_20' ) end [2024-12-18 01:01:17] Production.INFO: ProcessCDR(1,14044645,1,1,2) [2024-12-18 01:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044645', 'tblTempUsageDetail_20' ) start [2024-12-18 01:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044645', 'tblTempUsageDetail_20' ) end [2024-12-18 01:01:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 01:01:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 01:01:20] Production.INFO: ==26323== Releasing lock... [2024-12-18 01:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 01:01:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-18 01:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 22:02:05 [end_date_ymd] => 2024-12-18 01:02:05 [RateCDR] => 1 ) [2024-12-18 01:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 22:02:05' and `end` < '2024-12-18 01:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 01:02:17] Production.INFO: count ==169 [2024-12-18 01:02:17] Production.ERROR: pbx CDR StartTime 2024-12-17 22:02:05 - End Time 2024-12-18 01:02:05 [2024-12-18 01:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044651', 'tblTempUsageDetail_20' ) start [2024-12-18 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044651', 'tblTempUsageDetail_20' ) end [2024-12-18 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044651', 'tblTempVendorCDR_20' ) start [2024-12-18 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044651', 'tblTempVendorCDR_20' ) end [2024-12-18 01:02:17] Production.INFO: ProcessCDR(1,14044651,1,1,2) [2024-12-18 01:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044651', 'tblTempUsageDetail_20' ) start [2024-12-18 01:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044651', 'tblTempUsageDetail_20' ) end [2024-12-18 01:02:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 01:02:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 01:02:20] Production.INFO: ==26392== Releasing lock... [2024-12-18 01:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 01:02:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-18 01:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 22:03:05 [end_date_ymd] => 2024-12-18 01:03:05 [RateCDR] => 1 ) [2024-12-18 01:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 22:03:05' and `end` < '2024-12-18 01:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 01:03:17] Production.INFO: count ==168 [2024-12-18 01:03:17] Production.ERROR: pbx CDR StartTime 2024-12-17 22:03:05 - End Time 2024-12-18 01:03:05 [2024-12-18 01:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044656', 'tblTempUsageDetail_20' ) start [2024-12-18 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044656', 'tblTempUsageDetail_20' ) end [2024-12-18 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044656', 'tblTempVendorCDR_20' ) start [2024-12-18 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044656', 'tblTempVendorCDR_20' ) end [2024-12-18 01:03:17] Production.INFO: ProcessCDR(1,14044656,1,1,2) [2024-12-18 01:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044656', 'tblTempUsageDetail_20' ) start [2024-12-18 01:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044656', 'tblTempUsageDetail_20' ) end [2024-12-18 01:03:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 01:03:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 01:03:20] Production.INFO: ==26469== Releasing lock... [2024-12-18 01:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 01:03:20] Production.INFO: 29 MB #Memory Used# [2024-12-18 01:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 22:04:05 [end_date_ymd] => 2024-12-18 01:04:05 [RateCDR] => 1 ) [2024-12-18 01:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 22:04:05' and `end` < '2024-12-18 01:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 01:04:17] Production.INFO: count ==165 [2024-12-18 01:04:17] Production.ERROR: pbx CDR StartTime 2024-12-17 22:04:05 - End Time 2024-12-18 01:04:05 [2024-12-18 01:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 01:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044661', 'tblTempUsageDetail_20' ) start [2024-12-18 01:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044661', 'tblTempUsageDetail_20' ) end [2024-12-18 01:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044661', 'tblTempVendorCDR_20' ) start [2024-12-18 01:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044661', 'tblTempVendorCDR_20' ) end [2024-12-18 01:04:17] Production.INFO: ProcessCDR(1,14044661,1,1,2) [2024-12-18 01:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044661', 'tblTempUsageDetail_20' ) start [2024-12-18 01:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044661', 'tblTempUsageDetail_20' ) end [2024-12-18 01:04:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 01:04:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 01:04:21] Production.INFO: ==26541== Releasing lock... [2024-12-18 01:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 01:04:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-18 01:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 22:05:05 [end_date_ymd] => 2024-12-18 01:05:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-17 22:05:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 01:05:17] Production.INFO: count ==165 [2024-12-18 01:05:17] Production.ERROR: pbx CDR StartTime 2024-12-17 22:05:05 - End Time 2024-12-18 01:05:05 [2024-12-18 01:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044666', 'tblTempUsageDetail_20' ) start [2024-12-18 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044666', 'tblTempUsageDetail_20' ) end [2024-12-18 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044666', 'tblTempVendorCDR_20' ) start [2024-12-18 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044666', 'tblTempVendorCDR_20' ) end [2024-12-18 01:05:17] Production.INFO: ProcessCDR(1,14044666,1,1,2) [2024-12-18 01:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044666', 'tblTempUsageDetail_20' ) start [2024-12-18 01:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044666', 'tblTempUsageDetail_20' ) end [2024-12-18 01:05:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 01:05:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 01:05:20] Production.INFO: ==26613== Releasing lock... [2024-12-18 01:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 01:05:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-18 01:06:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 22:06:04 [end_date_ymd] => 2024-12-18 01:06:04 [RateCDR] => 1 ) [2024-12-18 01:06:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 22:06:04' and `end` < '2024-12-18 01:06:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 01:06:16] Production.INFO: count ==165 [2024-12-18 01:06:16] Production.ERROR: pbx CDR StartTime 2024-12-17 22:06:04 - End Time 2024-12-18 01:06:04 [2024-12-18 01:06:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 01:06:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044671', 'tblTempUsageDetail_20' ) start [2024-12-18 01:06:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044671', 'tblTempUsageDetail_20' ) end [2024-12-18 01:06:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044671', 'tblTempVendorCDR_20' ) start [2024-12-18 01:06:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044671', 'tblTempVendorCDR_20' ) end [2024-12-18 01:06:16] Production.INFO: ProcessCDR(1,14044671,1,1,2) [2024-12-18 01:06:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:06:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:06:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:06:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:06:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044671', 'tblTempUsageDetail_20' ) start [2024-12-18 01:06:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044671', 'tblTempUsageDetail_20' ) end [2024-12-18 01:06:19] Production.ERROR: pbx prc_insertCDR start [2024-12-18 01:06:19] Production.ERROR: pbx prc_insertCDR end [2024-12-18 01:06:19] Production.INFO: ==26682== Releasing lock... [2024-12-18 01:06:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 01:06:19] Production.INFO: 29.25 MB #Memory Used# [2024-12-18 01:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 22:07:05 [end_date_ymd] => 2024-12-18 01:07:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-17 22:07:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 01:07:17] Production.INFO: count ==164 [2024-12-18 01:07:17] Production.ERROR: pbx CDR StartTime 2024-12-17 22:07:05 - End Time 2024-12-18 01:07:05 [2024-12-18 01:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044676', 'tblTempUsageDetail_20' ) start [2024-12-18 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044676', 'tblTempUsageDetail_20' ) end [2024-12-18 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044676', 'tblTempVendorCDR_20' ) start [2024-12-18 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044676', 'tblTempVendorCDR_20' ) end [2024-12-18 01:07:17] Production.INFO: ProcessCDR(1,14044676,1,1,2) [2024-12-18 01:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044676', 'tblTempUsageDetail_20' ) start [2024-12-18 01:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044676', 'tblTempUsageDetail_20' ) end [2024-12-18 01:07:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 01:07:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 01:07:20] Production.INFO: ==26754== Releasing lock... [2024-12-18 01:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 01:07:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-18 01:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 22:08:05 [end_date_ymd] => 2024-12-18 01:08:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-17 22:08:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 01:08:17] Production.INFO: count ==162 [2024-12-18 01:08:17] Production.ERROR: pbx CDR StartTime 2024-12-17 22:08:05 - End Time 2024-12-18 01:08:05 [2024-12-18 01:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044681', 'tblTempUsageDetail_20' ) start [2024-12-18 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044681', 'tblTempUsageDetail_20' ) end [2024-12-18 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044681', 'tblTempVendorCDR_20' ) start [2024-12-18 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044681', 'tblTempVendorCDR_20' ) end [2024-12-18 01:08:17] Production.INFO: ProcessCDR(1,14044681,1,1,2) [2024-12-18 01:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044681', 'tblTempUsageDetail_20' ) start [2024-12-18 01:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044681', 'tblTempUsageDetail_20' ) end [2024-12-18 01:08:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 01:08:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 01:08:20] Production.INFO: ==26825== Releasing lock... [2024-12-18 01:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 01:08:20] Production.INFO: 29 MB #Memory Used# [2024-12-18 01:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 22:09:04 [end_date_ymd] => 2024-12-18 01:09:04 [RateCDR] => 1 ) [2024-12-18 01:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 22:09:04' and `end` < '2024-12-18 01:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 01:09:16] Production.INFO: count ==163 [2024-12-18 01:09:16] Production.ERROR: pbx CDR StartTime 2024-12-17 22:09:04 - End Time 2024-12-18 01:09:04 [2024-12-18 01:09:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 01:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044686', 'tblTempUsageDetail_20' ) start [2024-12-18 01:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044686', 'tblTempUsageDetail_20' ) end [2024-12-18 01:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044686', 'tblTempVendorCDR_20' ) start [2024-12-18 01:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044686', 'tblTempVendorCDR_20' ) end [2024-12-18 01:09:16] Production.INFO: ProcessCDR(1,14044686,1,1,2) [2024-12-18 01:09:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044686', 'tblTempUsageDetail_20' ) start [2024-12-18 01:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044686', 'tblTempUsageDetail_20' ) end [2024-12-18 01:09:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 01:09:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 01:09:21] Production.INFO: ==26894== Releasing lock... [2024-12-18 01:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 01:09:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-18 01:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 22:10:06 [end_date_ymd] => 2024-12-18 01:10:06 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-17 22:10:06' and `end` < '2024-12-18 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 ,'') [2024-12-18 01:10:18] Production.INFO: count ==170 [2024-12-18 01:10:18] Production.ERROR: pbx CDR StartTime 2024-12-17 22:10:06 - End Time 2024-12-18 01:10:06 [2024-12-18 01:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044692', 'tblTempUsageDetail_20' ) start [2024-12-18 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044692', 'tblTempUsageDetail_20' ) end [2024-12-18 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044692', 'tblTempVendorCDR_20' ) start [2024-12-18 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044692', 'tblTempVendorCDR_20' ) end [2024-12-18 01:10:18] Production.INFO: ProcessCDR(1,14044692,1,1,2) [2024-12-18 01:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:10:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:10:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044692', 'tblTempUsageDetail_20' ) start [2024-12-18 01:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044692', 'tblTempUsageDetail_20' ) end [2024-12-18 01:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 01:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 01:10:21] Production.INFO: ==26965== Releasing lock... [2024-12-18 01:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 01:10:21] Production.INFO: 29 MB #Memory Used# [2024-12-18 01:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 22:11:05 [end_date_ymd] => 2024-12-18 01:11:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-17 22:11:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 01:11:17] Production.INFO: count ==182 [2024-12-18 01:11:17] Production.ERROR: pbx CDR StartTime 2024-12-17 22:11:05 - End Time 2024-12-18 01:11:05 [2024-12-18 01:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044697', 'tblTempUsageDetail_20' ) start [2024-12-18 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044697', 'tblTempUsageDetail_20' ) end [2024-12-18 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044697', 'tblTempVendorCDR_20' ) start [2024-12-18 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044697', 'tblTempVendorCDR_20' ) end [2024-12-18 01:11:17] Production.INFO: ProcessCDR(1,14044697,1,1,2) [2024-12-18 01:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044697', 'tblTempUsageDetail_20' ) start [2024-12-18 01:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044697', 'tblTempUsageDetail_20' ) end [2024-12-18 01:11:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 01:11:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 01:11:21] Production.INFO: ==27041== Releasing lock... [2024-12-18 01:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 01:11:21] Production.INFO: 29 MB #Memory Used# [2024-12-18 01:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 22:12:05 [end_date_ymd] => 2024-12-18 01:12:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-17 22:12:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 01:12:17] Production.INFO: count ==182 [2024-12-18 01:12:17] Production.ERROR: pbx CDR StartTime 2024-12-17 22:12:05 - End Time 2024-12-18 01:12:05 [2024-12-18 01:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044702', 'tblTempUsageDetail_20' ) start [2024-12-18 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044702', 'tblTempUsageDetail_20' ) end [2024-12-18 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044702', 'tblTempVendorCDR_20' ) start [2024-12-18 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044702', 'tblTempVendorCDR_20' ) end [2024-12-18 01:12:17] Production.INFO: ProcessCDR(1,14044702,1,1,2) [2024-12-18 01:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044702', 'tblTempUsageDetail_20' ) start [2024-12-18 01:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044702', 'tblTempUsageDetail_20' ) end [2024-12-18 01:12:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 01:12:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 01:12:20] Production.INFO: ==27112== Releasing lock... [2024-12-18 01:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 01:12:20] Production.INFO: 29 MB #Memory Used# [2024-12-18 01:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 22:13:04 [end_date_ymd] => 2024-12-18 01:13:04 [RateCDR] => 1 ) [2024-12-18 01:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 22:13:04' and `end` < '2024-12-18 01:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 01:13:16] Production.INFO: count ==182 [2024-12-18 01:13:16] Production.ERROR: pbx CDR StartTime 2024-12-17 22:13:04 - End Time 2024-12-18 01:13:04 [2024-12-18 01:13:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 01:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044707', 'tblTempUsageDetail_20' ) start [2024-12-18 01:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044707', 'tblTempUsageDetail_20' ) end [2024-12-18 01:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044707', 'tblTempVendorCDR_20' ) start [2024-12-18 01:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044707', 'tblTempVendorCDR_20' ) end [2024-12-18 01:13:16] Production.INFO: ProcessCDR(1,14044707,1,1,2) [2024-12-18 01:13:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:13:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:13:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:13:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:13:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044707', 'tblTempUsageDetail_20' ) start [2024-12-18 01:13:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044707', 'tblTempUsageDetail_20' ) end [2024-12-18 01:13:19] Production.ERROR: pbx prc_insertCDR start [2024-12-18 01:13:19] Production.ERROR: pbx prc_insertCDR end [2024-12-18 01:13:19] Production.INFO: ==27184== Releasing lock... [2024-12-18 01:13:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 01:13:19] Production.INFO: 29 MB #Memory Used# [2024-12-18 01:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 22:14:05 [end_date_ymd] => 2024-12-18 01:14:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-17 22:14:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 01:14:17] Production.INFO: count ==182 [2024-12-18 01:14:17] Production.ERROR: pbx CDR StartTime 2024-12-17 22:14:05 - End Time 2024-12-18 01:14:05 [2024-12-18 01:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 01:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044712', 'tblTempUsageDetail_20' ) start [2024-12-18 01:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044712', 'tblTempUsageDetail_20' ) end [2024-12-18 01:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044712', 'tblTempVendorCDR_20' ) start [2024-12-18 01:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044712', 'tblTempVendorCDR_20' ) end [2024-12-18 01:14:17] Production.INFO: ProcessCDR(1,14044712,1,1,2) [2024-12-18 01:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044712', 'tblTempUsageDetail_20' ) start [2024-12-18 01:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044712', 'tblTempUsageDetail_20' ) end [2024-12-18 01:14:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 01:14:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 01:14:20] Production.INFO: ==27256== Releasing lock... [2024-12-18 01:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 01:14:20] Production.INFO: 29 MB #Memory Used# [2024-12-18 01:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 22:15:05 [end_date_ymd] => 2024-12-18 01:15:05 [RateCDR] => 1 ) [2024-12-18 01:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 22:15:05' and `end` < '2024-12-18 01:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 01:15:17] Production.INFO: count ==182 [2024-12-18 01:15:17] Production.ERROR: pbx CDR StartTime 2024-12-17 22:15:05 - End Time 2024-12-18 01:15:05 [2024-12-18 01:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044717', 'tblTempUsageDetail_20' ) start [2024-12-18 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044717', 'tblTempUsageDetail_20' ) end [2024-12-18 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044717', 'tblTempVendorCDR_20' ) start [2024-12-18 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044717', 'tblTempVendorCDR_20' ) end [2024-12-18 01:15:17] Production.INFO: ProcessCDR(1,14044717,1,1,2) [2024-12-18 01:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044717', 'tblTempUsageDetail_20' ) start [2024-12-18 01:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044717', 'tblTempUsageDetail_20' ) end [2024-12-18 01:15:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 01:15:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 01:15:20] Production.INFO: ==27329== Releasing lock... [2024-12-18 01:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 01:15:20] Production.INFO: 29 MB #Memory Used# [2024-12-18 01:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 22:16:05 [end_date_ymd] => 2024-12-18 01:16:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-17 22:16:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 01:16:17] Production.INFO: count ==182 [2024-12-18 01:16:17] Production.ERROR: pbx CDR StartTime 2024-12-17 22:16:05 - End Time 2024-12-18 01:16:05 [2024-12-18 01:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044722', 'tblTempUsageDetail_20' ) start [2024-12-18 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044722', 'tblTempUsageDetail_20' ) end [2024-12-18 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044722', 'tblTempVendorCDR_20' ) start [2024-12-18 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044722', 'tblTempVendorCDR_20' ) end [2024-12-18 01:16:17] Production.INFO: ProcessCDR(1,14044722,1,1,2) [2024-12-18 01:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044722', 'tblTempUsageDetail_20' ) start [2024-12-18 01:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044722', 'tblTempUsageDetail_20' ) end [2024-12-18 01:16:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 01:16:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 01:16:20] Production.INFO: ==27439== Releasing lock... [2024-12-18 01:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 01:16:20] Production.INFO: 29 MB #Memory Used# [2024-12-18 01:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 22:17:05 [end_date_ymd] => 2024-12-18 01:17:05 [RateCDR] => 1 ) [2024-12-18 01:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 22:17:05' and `end` < '2024-12-18 01:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 01:17:17] Production.INFO: count ==182 [2024-12-18 01:17:17] Production.ERROR: pbx CDR StartTime 2024-12-17 22:17:05 - End Time 2024-12-18 01:17:05 [2024-12-18 01:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044727', 'tblTempUsageDetail_20' ) start [2024-12-18 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044727', 'tblTempUsageDetail_20' ) end [2024-12-18 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044727', 'tblTempVendorCDR_20' ) start [2024-12-18 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044727', 'tblTempVendorCDR_20' ) end [2024-12-18 01:17:17] Production.INFO: ProcessCDR(1,14044727,1,1,2) [2024-12-18 01:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044727', 'tblTempUsageDetail_20' ) start [2024-12-18 01:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044727', 'tblTempUsageDetail_20' ) end [2024-12-18 01:17:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 01:17:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 01:17:20] Production.INFO: ==27509== Releasing lock... [2024-12-18 01:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 01:17:20] Production.INFO: 29 MB #Memory Used# [2024-12-18 01:18:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 22:18:04 [end_date_ymd] => 2024-12-18 01:18:04 [RateCDR] => 1 ) [2024-12-18 01:18: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` >= '2024-12-17 22:18:04' and `end` < '2024-12-18 01:18: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 ,'') [2024-12-18 01:18:17] Production.INFO: count ==179 [2024-12-18 01:18:17] Production.ERROR: pbx CDR StartTime 2024-12-17 22:18:04 - End Time 2024-12-18 01:18:04 [2024-12-18 01:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044732', 'tblTempUsageDetail_20' ) start [2024-12-18 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044732', 'tblTempUsageDetail_20' ) end [2024-12-18 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044732', 'tblTempVendorCDR_20' ) start [2024-12-18 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044732', 'tblTempVendorCDR_20' ) end [2024-12-18 01:18:17] Production.INFO: ProcessCDR(1,14044732,1,1,2) [2024-12-18 01:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044732', 'tblTempUsageDetail_20' ) start [2024-12-18 01:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044732', 'tblTempUsageDetail_20' ) end [2024-12-18 01:18:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 01:18:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 01:18:20] Production.INFO: ==27584== Releasing lock... [2024-12-18 01:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 01:18:20] Production.INFO: 29 MB #Memory Used# [2024-12-18 01:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 22:19:05 [end_date_ymd] => 2024-12-18 01:19:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-17 22:19:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 01:19:19] Production.INFO: count ==177 [2024-12-18 01:19:19] Production.ERROR: pbx CDR StartTime 2024-12-17 22:19:05 - End Time 2024-12-18 01:19:05 [2024-12-18 01:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 01:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044737', 'tblTempUsageDetail_20' ) start [2024-12-18 01:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044737', 'tblTempUsageDetail_20' ) end [2024-12-18 01:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044737', 'tblTempVendorCDR_20' ) start [2024-12-18 01:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044737', 'tblTempVendorCDR_20' ) end [2024-12-18 01:19:19] Production.INFO: ProcessCDR(1,14044737,1,1,2) [2024-12-18 01:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044737', 'tblTempUsageDetail_20' ) start [2024-12-18 01:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044737', 'tblTempUsageDetail_20' ) end [2024-12-18 01:19:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 01:19:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 01:19:22] Production.INFO: ==27658== Releasing lock... [2024-12-18 01:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 01:19:22] Production.INFO: 29 MB #Memory Used# [2024-12-18 01:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 22:20:06 [end_date_ymd] => 2024-12-18 01:20:06 [RateCDR] => 1 ) [2024-12-18 01:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 22:20:06' and `end` < '2024-12-18 01:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 01:20:19] Production.INFO: count ==181 [2024-12-18 01:20:19] Production.ERROR: pbx CDR StartTime 2024-12-17 22:20:06 - End Time 2024-12-18 01:20:06 [2024-12-18 01:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044743', 'tblTempUsageDetail_20' ) start [2024-12-18 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044743', 'tblTempUsageDetail_20' ) end [2024-12-18 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044743', 'tblTempVendorCDR_20' ) start [2024-12-18 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044743', 'tblTempVendorCDR_20' ) end [2024-12-18 01:20:19] Production.INFO: ProcessCDR(1,14044743,1,1,2) [2024-12-18 01:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044743', 'tblTempUsageDetail_20' ) start [2024-12-18 01:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044743', 'tblTempUsageDetail_20' ) end [2024-12-18 01:20:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 01:20:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 01:20:22] Production.INFO: ==27731== Releasing lock... [2024-12-18 01:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 01:20:22] Production.INFO: 29 MB #Memory Used# [2024-12-18 01:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 22:21:05 [end_date_ymd] => 2024-12-18 01:21:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-17 22:21:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 01:21:17] Production.INFO: count ==181 [2024-12-18 01:21:17] Production.ERROR: pbx CDR StartTime 2024-12-17 22:21:05 - End Time 2024-12-18 01:21:05 [2024-12-18 01:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044748', 'tblTempUsageDetail_20' ) start [2024-12-18 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044748', 'tblTempUsageDetail_20' ) end [2024-12-18 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044748', 'tblTempVendorCDR_20' ) start [2024-12-18 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044748', 'tblTempVendorCDR_20' ) end [2024-12-18 01:21:17] Production.INFO: ProcessCDR(1,14044748,1,1,2) [2024-12-18 01:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044748', 'tblTempUsageDetail_20' ) start [2024-12-18 01:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044748', 'tblTempUsageDetail_20' ) end [2024-12-18 01:21:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 01:21:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 01:21:20] Production.INFO: ==27803== Releasing lock... [2024-12-18 01:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 01:21:20] Production.INFO: 29 MB #Memory Used# [2024-12-18 01:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 22:22:05 [end_date_ymd] => 2024-12-18 01:22:05 [RateCDR] => 1 ) [2024-12-18 01:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 22:22:05' and `end` < '2024-12-18 01:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 01:22:18] Production.INFO: count ==179 [2024-12-18 01:22:18] Production.ERROR: pbx CDR StartTime 2024-12-17 22:22:05 - End Time 2024-12-18 01:22:05 [2024-12-18 01:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044753', 'tblTempUsageDetail_20' ) start [2024-12-18 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044753', 'tblTempUsageDetail_20' ) end [2024-12-18 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044753', 'tblTempVendorCDR_20' ) start [2024-12-18 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044753', 'tblTempVendorCDR_20' ) end [2024-12-18 01:22:18] Production.INFO: ProcessCDR(1,14044753,1,1,2) [2024-12-18 01:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044753', 'tblTempUsageDetail_20' ) start [2024-12-18 01:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044753', 'tblTempUsageDetail_20' ) end [2024-12-18 01:22:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 01:22:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 01:22:21] Production.INFO: ==27873== Releasing lock... [2024-12-18 01:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 01:22:21] Production.INFO: 29 MB #Memory Used# [2024-12-18 01:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 22:23:04 [end_date_ymd] => 2024-12-18 01:23:04 [RateCDR] => 1 ) [2024-12-18 01:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 22:23:04' and `end` < '2024-12-18 01:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 01:23:16] Production.INFO: count ==178 [2024-12-18 01:23:16] Production.ERROR: pbx CDR StartTime 2024-12-17 22:23:04 - End Time 2024-12-18 01:23:04 [2024-12-18 01:23:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 01:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044758', 'tblTempUsageDetail_20' ) start [2024-12-18 01:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044758', 'tblTempUsageDetail_20' ) end [2024-12-18 01:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044758', 'tblTempVendorCDR_20' ) start [2024-12-18 01:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044758', 'tblTempVendorCDR_20' ) end [2024-12-18 01:23:16] Production.INFO: ProcessCDR(1,14044758,1,1,2) [2024-12-18 01:23:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:23:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:23:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:23:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:23:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044758', 'tblTempUsageDetail_20' ) start [2024-12-18 01:23:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044758', 'tblTempUsageDetail_20' ) end [2024-12-18 01:23:19] Production.ERROR: pbx prc_insertCDR start [2024-12-18 01:23:19] Production.ERROR: pbx prc_insertCDR end [2024-12-18 01:23:20] Production.INFO: ==27946== Releasing lock... [2024-12-18 01:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 01:23:20] Production.INFO: 29 MB #Memory Used# [2024-12-18 01:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 22:24:05 [end_date_ymd] => 2024-12-18 01:24:05 [RateCDR] => 1 ) [2024-12-18 01:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 22:24:05' and `end` < '2024-12-18 01:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 01:24:17] Production.INFO: count ==178 [2024-12-18 01:24:17] Production.ERROR: pbx CDR StartTime 2024-12-17 22:24:05 - End Time 2024-12-18 01:24:05 [2024-12-18 01:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 01:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044763', 'tblTempUsageDetail_20' ) start [2024-12-18 01:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044763', 'tblTempUsageDetail_20' ) end [2024-12-18 01:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044763', 'tblTempVendorCDR_20' ) start [2024-12-18 01:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044763', 'tblTempVendorCDR_20' ) end [2024-12-18 01:24:17] Production.INFO: ProcessCDR(1,14044763,1,1,2) [2024-12-18 01:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044763', 'tblTempUsageDetail_20' ) start [2024-12-18 01:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044763', 'tblTempUsageDetail_20' ) end [2024-12-18 01:24:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 01:24:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 01:24:20] Production.INFO: ==28016== Releasing lock... [2024-12-18 01:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 01:24:20] Production.INFO: 29 MB #Memory Used# [2024-12-18 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 22:25:05 [end_date_ymd] => 2024-12-18 01:25:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-17 22:25:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 01:25:17] Production.INFO: count ==178 [2024-12-18 01:25:17] Production.ERROR: pbx CDR StartTime 2024-12-17 22:25:05 - End Time 2024-12-18 01:25:05 [2024-12-18 01:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044768', 'tblTempUsageDetail_20' ) start [2024-12-18 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044768', 'tblTempUsageDetail_20' ) end [2024-12-18 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044768', 'tblTempVendorCDR_20' ) start [2024-12-18 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044768', 'tblTempVendorCDR_20' ) end [2024-12-18 01:25:17] Production.INFO: ProcessCDR(1,14044768,1,1,2) [2024-12-18 01:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044768', 'tblTempUsageDetail_20' ) start [2024-12-18 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044768', 'tblTempUsageDetail_20' ) end [2024-12-18 01:25:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 01:25:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 01:25:21] Production.INFO: ==28087== Releasing lock... [2024-12-18 01:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 01:25:21] Production.INFO: 29 MB #Memory Used# [2024-12-18 01:26:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 22:26:04 [end_date_ymd] => 2024-12-18 01:26:04 [RateCDR] => 1 ) [2024-12-18 01:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 22:26:04' and `end` < '2024-12-18 01:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 01:26:16] Production.INFO: count ==179 [2024-12-18 01:26:16] Production.ERROR: pbx CDR StartTime 2024-12-17 22:26:04 - End Time 2024-12-18 01:26:04 [2024-12-18 01:26:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 01:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044773', 'tblTempUsageDetail_20' ) start [2024-12-18 01:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044773', 'tblTempUsageDetail_20' ) end [2024-12-18 01:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044773', 'tblTempVendorCDR_20' ) start [2024-12-18 01:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044773', 'tblTempVendorCDR_20' ) end [2024-12-18 01:26:16] Production.INFO: ProcessCDR(1,14044773,1,1,2) [2024-12-18 01:26:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044773', 'tblTempUsageDetail_20' ) start [2024-12-18 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044773', 'tblTempUsageDetail_20' ) end [2024-12-18 01:26:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 01:26:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 01:26:21] Production.INFO: ==28160== Releasing lock... [2024-12-18 01:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 01:26:21] Production.INFO: 29 MB #Memory Used# [2024-12-18 01:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 22:27:05 [end_date_ymd] => 2024-12-18 01:27:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-17 22:27:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 01:27:18] Production.INFO: count ==178 [2024-12-18 01:27:18] Production.ERROR: pbx CDR StartTime 2024-12-17 22:27:05 - End Time 2024-12-18 01:27:05 [2024-12-18 01:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044778', 'tblTempUsageDetail_20' ) start [2024-12-18 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044778', 'tblTempUsageDetail_20' ) end [2024-12-18 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044778', 'tblTempVendorCDR_20' ) start [2024-12-18 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044778', 'tblTempVendorCDR_20' ) end [2024-12-18 01:27:18] Production.INFO: ProcessCDR(1,14044778,1,1,2) [2024-12-18 01:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044778', 'tblTempUsageDetail_20' ) start [2024-12-18 01:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044778', 'tblTempUsageDetail_20' ) end [2024-12-18 01:27:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 01:27:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 01:27:22] Production.INFO: ==28233== Releasing lock... [2024-12-18 01:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 01:27:22] Production.INFO: 29 MB #Memory Used# [2024-12-18 01:28:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 22:28:04 [end_date_ymd] => 2024-12-18 01:28:04 [RateCDR] => 1 ) [2024-12-18 01:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 22:28:04' and `end` < '2024-12-18 01:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 01:28:16] Production.INFO: count ==179 [2024-12-18 01:28:16] Production.ERROR: pbx CDR StartTime 2024-12-17 22:28:04 - End Time 2024-12-18 01:28:04 [2024-12-18 01:28:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 01:28:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044783', 'tblTempUsageDetail_20' ) start [2024-12-18 01:28:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044783', 'tblTempUsageDetail_20' ) end [2024-12-18 01:28:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044783', 'tblTempVendorCDR_20' ) start [2024-12-18 01:28:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044783', 'tblTempVendorCDR_20' ) end [2024-12-18 01:28:16] Production.INFO: ProcessCDR(1,14044783,1,1,2) [2024-12-18 01:28:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044783', 'tblTempUsageDetail_20' ) start [2024-12-18 01:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044783', 'tblTempUsageDetail_20' ) end [2024-12-18 01:28:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 01:28:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 01:28:20] Production.INFO: ==28301== Releasing lock... [2024-12-18 01:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 01:28:20] Production.INFO: 29 MB #Memory Used# [2024-12-18 01:29:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 22:29:04 [end_date_ymd] => 2024-12-18 01:29:04 [RateCDR] => 1 ) [2024-12-18 01:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 22:29:04' and `end` < '2024-12-18 01:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 01:29:17] Production.INFO: count ==176 [2024-12-18 01:29:17] Production.ERROR: pbx CDR StartTime 2024-12-17 22:29:04 - End Time 2024-12-18 01:29:04 [2024-12-18 01:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044788', 'tblTempUsageDetail_20' ) start [2024-12-18 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044788', 'tblTempUsageDetail_20' ) end [2024-12-18 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044788', 'tblTempVendorCDR_20' ) start [2024-12-18 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044788', 'tblTempVendorCDR_20' ) end [2024-12-18 01:29:17] Production.INFO: ProcessCDR(1,14044788,1,1,2) [2024-12-18 01:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044788', 'tblTempUsageDetail_20' ) start [2024-12-18 01:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044788', 'tblTempUsageDetail_20' ) end [2024-12-18 01:29:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 01:29:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 01:29:20] Production.INFO: ==28373== Releasing lock... [2024-12-18 01:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 01:29:20] Production.INFO: 29 MB #Memory Used# [2024-12-18 01:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 22:30:06 [end_date_ymd] => 2024-12-18 01:30:06 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-17 22:30:06' and `end` < '2024-12-18 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 ,'') [2024-12-18 01:30:18] Production.INFO: count ==176 [2024-12-18 01:30:18] Production.ERROR: pbx CDR StartTime 2024-12-17 22:30:06 - End Time 2024-12-18 01:30:06 [2024-12-18 01:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044794', 'tblTempUsageDetail_20' ) start [2024-12-18 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044794', 'tblTempUsageDetail_20' ) end [2024-12-18 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044794', 'tblTempVendorCDR_20' ) start [2024-12-18 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044794', 'tblTempVendorCDR_20' ) end [2024-12-18 01:30:18] Production.INFO: ProcessCDR(1,14044794,1,1,2) [2024-12-18 01:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044794', 'tblTempUsageDetail_20' ) start [2024-12-18 01:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044794', 'tblTempUsageDetail_20' ) end [2024-12-18 01:30:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 01:30:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 01:30:22] Production.INFO: ==28446== Releasing lock... [2024-12-18 01:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 01:30:22] Production.INFO: 29 MB #Memory Used# [2024-12-18 01:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 22:31:04 [end_date_ymd] => 2024-12-18 01:31:04 [RateCDR] => 1 ) [2024-12-18 01:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 22:31:04' and `end` < '2024-12-18 01:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 01:31:16] Production.INFO: count ==176 [2024-12-18 01:31:16] Production.ERROR: pbx CDR StartTime 2024-12-17 22:31:04 - End Time 2024-12-18 01:31:04 [2024-12-18 01:31:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 01:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044799', 'tblTempUsageDetail_20' ) start [2024-12-18 01:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044799', 'tblTempUsageDetail_20' ) end [2024-12-18 01:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044799', 'tblTempVendorCDR_20' ) start [2024-12-18 01:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044799', 'tblTempVendorCDR_20' ) end [2024-12-18 01:31:16] Production.INFO: ProcessCDR(1,14044799,1,1,2) [2024-12-18 01:31:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:31:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:31:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:31:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:31:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044799', 'tblTempUsageDetail_20' ) start [2024-12-18 01:31:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044799', 'tblTempUsageDetail_20' ) end [2024-12-18 01:31:19] Production.ERROR: pbx prc_insertCDR start [2024-12-18 01:31:19] Production.ERROR: pbx prc_insertCDR end [2024-12-18 01:31:19] Production.INFO: ==28520== Releasing lock... [2024-12-18 01:31:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 01:31:19] Production.INFO: 29 MB #Memory Used# [2024-12-18 01:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 22:32:05 [end_date_ymd] => 2024-12-18 01:32:05 [RateCDR] => 1 ) [2024-12-18 01:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 22:32:05' and `end` < '2024-12-18 01:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 01:32:18] Production.INFO: count ==175 [2024-12-18 01:32:18] Production.ERROR: pbx CDR StartTime 2024-12-17 22:32:05 - End Time 2024-12-18 01:32:05 [2024-12-18 01:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044804', 'tblTempUsageDetail_20' ) start [2024-12-18 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044804', 'tblTempUsageDetail_20' ) end [2024-12-18 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044804', 'tblTempVendorCDR_20' ) start [2024-12-18 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044804', 'tblTempVendorCDR_20' ) end [2024-12-18 01:32:18] Production.INFO: ProcessCDR(1,14044804,1,1,2) [2024-12-18 01:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044804', 'tblTempUsageDetail_20' ) start [2024-12-18 01:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044804', 'tblTempUsageDetail_20' ) end [2024-12-18 01:32:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 01:32:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 01:32:21] Production.INFO: ==28630== Releasing lock... [2024-12-18 01:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 01:32:21] Production.INFO: 29 MB #Memory Used# [2024-12-18 01:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 22:33:04 [end_date_ymd] => 2024-12-18 01:33:04 [RateCDR] => 1 ) [2024-12-18 01:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 22:33:04' and `end` < '2024-12-18 01:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 01:33:16] Production.INFO: count ==175 [2024-12-18 01:33:16] Production.ERROR: pbx CDR StartTime 2024-12-17 22:33:04 - End Time 2024-12-18 01:33:04 [2024-12-18 01:33:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 01:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044809', 'tblTempUsageDetail_20' ) start [2024-12-18 01:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044809', 'tblTempUsageDetail_20' ) end [2024-12-18 01:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044809', 'tblTempVendorCDR_20' ) start [2024-12-18 01:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044809', 'tblTempVendorCDR_20' ) end [2024-12-18 01:33:16] Production.INFO: ProcessCDR(1,14044809,1,1,2) [2024-12-18 01:33:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:33:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:33:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044809', 'tblTempUsageDetail_20' ) start [2024-12-18 01:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044809', 'tblTempUsageDetail_20' ) end [2024-12-18 01:33:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 01:33:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 01:33:20] Production.INFO: ==28699== Releasing lock... [2024-12-18 01:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 01:33:20] Production.INFO: 29 MB #Memory Used# [2024-12-18 01:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 22:34:05 [end_date_ymd] => 2024-12-18 01:34:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-17 22:34:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 01:34:17] Production.INFO: count ==172 [2024-12-18 01:34:17] Production.ERROR: pbx CDR StartTime 2024-12-17 22:34:05 - End Time 2024-12-18 01:34:05 [2024-12-18 01:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 01:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044814', 'tblTempUsageDetail_20' ) start [2024-12-18 01:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044814', 'tblTempUsageDetail_20' ) end [2024-12-18 01:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044814', 'tblTempVendorCDR_20' ) start [2024-12-18 01:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044814', 'tblTempVendorCDR_20' ) end [2024-12-18 01:34:17] Production.INFO: ProcessCDR(1,14044814,1,1,2) [2024-12-18 01:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044814', 'tblTempUsageDetail_20' ) start [2024-12-18 01:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044814', 'tblTempUsageDetail_20' ) end [2024-12-18 01:34:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 01:34:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 01:34:20] Production.INFO: ==28772== Releasing lock... [2024-12-18 01:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 01:34:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-18 01:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 22:35:04 [end_date_ymd] => 2024-12-18 01:35:04 [RateCDR] => 1 ) [2024-12-18 01:35: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` >= '2024-12-17 22:35:04' and `end` < '2024-12-18 01:35: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 ,'') [2024-12-18 01:35:17] Production.INFO: count ==172 [2024-12-18 01:35:17] Production.ERROR: pbx CDR StartTime 2024-12-17 22:35:04 - End Time 2024-12-18 01:35:04 [2024-12-18 01:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044819', 'tblTempUsageDetail_20' ) start [2024-12-18 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044819', 'tblTempUsageDetail_20' ) end [2024-12-18 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044819', 'tblTempVendorCDR_20' ) start [2024-12-18 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044819', 'tblTempVendorCDR_20' ) end [2024-12-18 01:35:17] Production.INFO: ProcessCDR(1,14044819,1,1,2) [2024-12-18 01:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044819', 'tblTempUsageDetail_20' ) start [2024-12-18 01:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044819', 'tblTempUsageDetail_20' ) end [2024-12-18 01:35:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 01:35:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 01:35:20] Production.INFO: ==28845== Releasing lock... [2024-12-18 01:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 01:35:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-18 01:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 22:36:05 [end_date_ymd] => 2024-12-18 01:36:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-17 22:36:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 01:36:18] Production.INFO: count ==172 [2024-12-18 01:36:18] Production.ERROR: pbx CDR StartTime 2024-12-17 22:36:05 - End Time 2024-12-18 01:36:05 [2024-12-18 01:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044824', 'tblTempUsageDetail_20' ) start [2024-12-18 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044824', 'tblTempUsageDetail_20' ) end [2024-12-18 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044824', 'tblTempVendorCDR_20' ) start [2024-12-18 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044824', 'tblTempVendorCDR_20' ) end [2024-12-18 01:36:18] Production.INFO: ProcessCDR(1,14044824,1,1,2) [2024-12-18 01:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044824', 'tblTempUsageDetail_20' ) start [2024-12-18 01:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044824', 'tblTempUsageDetail_20' ) end [2024-12-18 01:36:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 01:36:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 01:36:21] Production.INFO: ==28917== Releasing lock... [2024-12-18 01:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 01:36:21] Production.INFO: 28.75 MB #Memory Used# [2024-12-18 01:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 22:37:04 [end_date_ymd] => 2024-12-18 01:37:04 [RateCDR] => 1 ) [2024-12-18 01: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` >= '2024-12-17 22:37:04' and `end` < '2024-12-18 01: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 ,'') [2024-12-18 01:37:16] Production.INFO: count ==172 [2024-12-18 01:37:17] Production.ERROR: pbx CDR StartTime 2024-12-17 22:37:04 - End Time 2024-12-18 01:37:04 [2024-12-18 01:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044829', 'tblTempUsageDetail_20' ) start [2024-12-18 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044829', 'tblTempUsageDetail_20' ) end [2024-12-18 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044829', 'tblTempVendorCDR_20' ) start [2024-12-18 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044829', 'tblTempVendorCDR_20' ) end [2024-12-18 01:37:17] Production.INFO: ProcessCDR(1,14044829,1,1,2) [2024-12-18 01:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044829', 'tblTempUsageDetail_20' ) start [2024-12-18 01:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044829', 'tblTempUsageDetail_20' ) end [2024-12-18 01:37:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 01:37:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 01:37:20] Production.INFO: ==28987== Releasing lock... [2024-12-18 01:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 01:37:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-18 01:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 22:38:05 [end_date_ymd] => 2024-12-18 01:38:05 [RateCDR] => 1 ) [2024-12-18 01:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 22:38:05' and `end` < '2024-12-18 01:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 01:38:17] Production.INFO: count ==172 [2024-12-18 01:38:17] Production.ERROR: pbx CDR StartTime 2024-12-17 22:38:05 - End Time 2024-12-18 01:38:05 [2024-12-18 01:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 01:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044834', 'tblTempUsageDetail_20' ) start [2024-12-18 01:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044834', 'tblTempUsageDetail_20' ) end [2024-12-18 01:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044834', 'tblTempVendorCDR_20' ) start [2024-12-18 01:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044834', 'tblTempVendorCDR_20' ) end [2024-12-18 01:38:17] Production.INFO: ProcessCDR(1,14044834,1,1,2) [2024-12-18 01:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044834', 'tblTempUsageDetail_20' ) start [2024-12-18 01:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044834', 'tblTempUsageDetail_20' ) end [2024-12-18 01:38:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 01:38:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 01:38:21] Production.INFO: ==29059== Releasing lock... [2024-12-18 01:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 01:38:21] Production.INFO: 28.75 MB #Memory Used# [2024-12-18 01:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 22:39:05 [end_date_ymd] => 2024-12-18 01:39:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-17 22:39:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 01:39:18] Production.INFO: count ==172 [2024-12-18 01:39:18] Production.ERROR: pbx CDR StartTime 2024-12-17 22:39:05 - End Time 2024-12-18 01:39:05 [2024-12-18 01:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044839', 'tblTempUsageDetail_20' ) start [2024-12-18 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044839', 'tblTempUsageDetail_20' ) end [2024-12-18 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044839', 'tblTempVendorCDR_20' ) start [2024-12-18 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044839', 'tblTempVendorCDR_20' ) end [2024-12-18 01:39:18] Production.INFO: ProcessCDR(1,14044839,1,1,2) [2024-12-18 01:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044839', 'tblTempUsageDetail_20' ) start [2024-12-18 01:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044839', 'tblTempUsageDetail_20' ) end [2024-12-18 01:39:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 01:39:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 01:39:21] Production.INFO: ==29135== Releasing lock... [2024-12-18 01:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 01:39:21] Production.INFO: 28.75 MB #Memory Used# [2024-12-18 01:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 22:40:05 [end_date_ymd] => 2024-12-18 01:40:05 [RateCDR] => 1 ) [2024-12-18 01: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` >= '2024-12-17 22:40:05' and `end` < '2024-12-18 01: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 ,'') [2024-12-18 01:40:18] Production.INFO: count ==178 [2024-12-18 01:40:18] Production.ERROR: pbx CDR StartTime 2024-12-17 22:40:05 - End Time 2024-12-18 01:40:05 [2024-12-18 01:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044845', 'tblTempUsageDetail_20' ) start [2024-12-18 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044845', 'tblTempUsageDetail_20' ) end [2024-12-18 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044845', 'tblTempVendorCDR_20' ) start [2024-12-18 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044845', 'tblTempVendorCDR_20' ) end [2024-12-18 01:40:18] Production.INFO: ProcessCDR(1,14044845,1,1,2) [2024-12-18 01:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044845', 'tblTempUsageDetail_20' ) start [2024-12-18 01:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044845', 'tblTempUsageDetail_20' ) end [2024-12-18 01:40:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 01:40:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 01:40:21] Production.INFO: ==29207== Releasing lock... [2024-12-18 01:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 01:40:21] Production.INFO: 28.75 MB #Memory Used# [2024-12-18 01:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 22:41:05 [end_date_ymd] => 2024-12-18 01:41:05 [RateCDR] => 1 ) [2024-12-18 01:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 22:41:05' and `end` < '2024-12-18 01:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 01:41:18] Production.INFO: count ==184 [2024-12-18 01:41:18] Production.ERROR: pbx CDR StartTime 2024-12-17 22:41:05 - End Time 2024-12-18 01:41:05 [2024-12-18 01:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044850', 'tblTempUsageDetail_20' ) start [2024-12-18 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044850', 'tblTempUsageDetail_20' ) end [2024-12-18 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044850', 'tblTempVendorCDR_20' ) start [2024-12-18 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044850', 'tblTempVendorCDR_20' ) end [2024-12-18 01:41:18] Production.INFO: ProcessCDR(1,14044850,1,1,2) [2024-12-18 01:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044850', 'tblTempUsageDetail_20' ) start [2024-12-18 01:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044850', 'tblTempUsageDetail_20' ) end [2024-12-18 01:41:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 01:41:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 01:41:21] Production.INFO: ==29280== Releasing lock... [2024-12-18 01:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 01:41:21] Production.INFO: 29 MB #Memory Used# [2024-12-18 01:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 22:42:05 [end_date_ymd] => 2024-12-18 01:42:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-17 22:42:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 01:42:18] Production.INFO: count ==184 [2024-12-18 01:42:18] Production.ERROR: pbx CDR StartTime 2024-12-17 22:42:05 - End Time 2024-12-18 01:42:05 [2024-12-18 01:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044855', 'tblTempUsageDetail_20' ) start [2024-12-18 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044855', 'tblTempUsageDetail_20' ) end [2024-12-18 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044855', 'tblTempVendorCDR_20' ) start [2024-12-18 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044855', 'tblTempVendorCDR_20' ) end [2024-12-18 01:42:18] Production.INFO: ProcessCDR(1,14044855,1,1,2) [2024-12-18 01:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044855', 'tblTempUsageDetail_20' ) start [2024-12-18 01:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044855', 'tblTempUsageDetail_20' ) end [2024-12-18 01:42:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 01:42:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 01:42:21] Production.INFO: ==29356== Releasing lock... [2024-12-18 01:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 01:42:21] Production.INFO: 29 MB #Memory Used# [2024-12-18 01:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 22:43:05 [end_date_ymd] => 2024-12-18 01:43:05 [RateCDR] => 1 ) [2024-12-18 01:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 22:43:05' and `end` < '2024-12-18 01:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 01:43:17] Production.INFO: count ==186 [2024-12-18 01:43:17] Production.ERROR: pbx CDR StartTime 2024-12-17 22:43:05 - End Time 2024-12-18 01:43:05 [2024-12-18 01:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 01:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044860', 'tblTempUsageDetail_20' ) start [2024-12-18 01:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044860', 'tblTempUsageDetail_20' ) end [2024-12-18 01:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044860', 'tblTempVendorCDR_20' ) start [2024-12-18 01:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044860', 'tblTempVendorCDR_20' ) end [2024-12-18 01:43:17] Production.INFO: ProcessCDR(1,14044860,1,1,2) [2024-12-18 01:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044860', 'tblTempUsageDetail_20' ) start [2024-12-18 01:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044860', 'tblTempUsageDetail_20' ) end [2024-12-18 01:43:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 01:43:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 01:43:20] Production.INFO: ==29429== Releasing lock... [2024-12-18 01:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 01:43:20] Production.INFO: 29 MB #Memory Used# [2024-12-18 01:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 22:44:05 [end_date_ymd] => 2024-12-18 01:44:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-17 22:44:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 01:44:17] Production.INFO: count ==186 [2024-12-18 01:44:17] Production.ERROR: pbx CDR StartTime 2024-12-17 22:44:05 - End Time 2024-12-18 01:44:05 [2024-12-18 01:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 01:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044865', 'tblTempUsageDetail_20' ) start [2024-12-18 01:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044865', 'tblTempUsageDetail_20' ) end [2024-12-18 01:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044865', 'tblTempVendorCDR_20' ) start [2024-12-18 01:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044865', 'tblTempVendorCDR_20' ) end [2024-12-18 01:44:17] Production.INFO: ProcessCDR(1,14044865,1,1,2) [2024-12-18 01:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044865', 'tblTempUsageDetail_20' ) start [2024-12-18 01:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044865', 'tblTempUsageDetail_20' ) end [2024-12-18 01:44:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 01:44:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 01:44:20] Production.INFO: ==29499== Releasing lock... [2024-12-18 01:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 01:44:20] Production.INFO: 29 MB #Memory Used# [2024-12-18 01:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 22:45:04 [end_date_ymd] => 2024-12-18 01:45:04 [RateCDR] => 1 ) [2024-12-18 01:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 22:45:04' and `end` < '2024-12-18 01:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 01:45:16] Production.INFO: count ==186 [2024-12-18 01:45:16] Production.ERROR: pbx CDR StartTime 2024-12-17 22:45:04 - End Time 2024-12-18 01:45:04 [2024-12-18 01:45:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 01:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044870', 'tblTempUsageDetail_20' ) start [2024-12-18 01:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044870', 'tblTempUsageDetail_20' ) end [2024-12-18 01:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044870', 'tblTempVendorCDR_20' ) start [2024-12-18 01:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044870', 'tblTempVendorCDR_20' ) end [2024-12-18 01:45:16] Production.INFO: ProcessCDR(1,14044870,1,1,2) [2024-12-18 01:45:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:45:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:45:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044870', 'tblTempUsageDetail_20' ) start [2024-12-18 01:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044870', 'tblTempUsageDetail_20' ) end [2024-12-18 01:45:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 01:45:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 01:45:20] Production.INFO: ==29569== Releasing lock... [2024-12-18 01:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 01:45:20] Production.INFO: 29 MB #Memory Used# [2024-12-18 01:46:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 22:46:04 [end_date_ymd] => 2024-12-18 01:46:04 [RateCDR] => 1 ) [2024-12-18 01:46: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` >= '2024-12-17 22:46:04' and `end` < '2024-12-18 01: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 ,'') [2024-12-18 01:46:16] Production.INFO: count ==186 [2024-12-18 01:46:16] Production.ERROR: pbx CDR StartTime 2024-12-17 22:46:04 - End Time 2024-12-18 01:46:04 [2024-12-18 01:46:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 01:46:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044875', 'tblTempUsageDetail_20' ) start [2024-12-18 01:46:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044875', 'tblTempUsageDetail_20' ) end [2024-12-18 01:46:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044875', 'tblTempVendorCDR_20' ) start [2024-12-18 01:46:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044875', 'tblTempVendorCDR_20' ) end [2024-12-18 01:46:16] Production.INFO: ProcessCDR(1,14044875,1,1,2) [2024-12-18 01:46:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:46:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:46:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:46:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:46:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044875', 'tblTempUsageDetail_20' ) start [2024-12-18 01:46:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044875', 'tblTempUsageDetail_20' ) end [2024-12-18 01:46:19] Production.ERROR: pbx prc_insertCDR start [2024-12-18 01:46:19] Production.ERROR: pbx prc_insertCDR end [2024-12-18 01:46:19] Production.INFO: ==29642== Releasing lock... [2024-12-18 01:46:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 01:46:19] Production.INFO: 29 MB #Memory Used# [2024-12-18 01:47:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 22:47:04 [end_date_ymd] => 2024-12-18 01:47:04 [RateCDR] => 1 ) [2024-12-18 01:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 22:47:04' and `end` < '2024-12-18 01:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 01:47:16] Production.INFO: count ==186 [2024-12-18 01:47:16] Production.ERROR: pbx CDR StartTime 2024-12-17 22:47:04 - End Time 2024-12-18 01:47:04 [2024-12-18 01:47:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 01:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044876', 'tblTempUsageDetail_20' ) start [2024-12-18 01:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044876', 'tblTempUsageDetail_20' ) end [2024-12-18 01:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044876', 'tblTempVendorCDR_20' ) start [2024-12-18 01:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044876', 'tblTempVendorCDR_20' ) end [2024-12-18 01:47:16] Production.INFO: ProcessCDR(1,14044876,1,1,2) [2024-12-18 01:47:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:47:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:47:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:47:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:47:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044876', 'tblTempUsageDetail_20' ) start [2024-12-18 01:47:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044876', 'tblTempUsageDetail_20' ) end [2024-12-18 01:47:19] Production.ERROR: pbx prc_insertCDR start [2024-12-18 01:47:19] Production.ERROR: pbx prc_insertCDR end [2024-12-18 01:47:19] Production.INFO: ==29717== Releasing lock... [2024-12-18 01:47:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 01:47:19] Production.INFO: 29 MB #Memory Used# [2024-12-18 01:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 22:48:05 [end_date_ymd] => 2024-12-18 01:48:05 [RateCDR] => 1 ) [2024-12-18 01:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 22:48:05' and `end` < '2024-12-18 01:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 01:48:17] Production.INFO: count ==186 [2024-12-18 01:48:17] Production.ERROR: pbx CDR StartTime 2024-12-17 22:48:05 - End Time 2024-12-18 01:48:05 [2024-12-18 01:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 01:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044885', 'tblTempUsageDetail_20' ) start [2024-12-18 01:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044885', 'tblTempUsageDetail_20' ) end [2024-12-18 01:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044885', 'tblTempVendorCDR_20' ) start [2024-12-18 01:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044885', 'tblTempVendorCDR_20' ) end [2024-12-18 01:48:17] Production.INFO: ProcessCDR(1,14044885,1,1,2) [2024-12-18 01:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044885', 'tblTempUsageDetail_20' ) start [2024-12-18 01:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044885', 'tblTempUsageDetail_20' ) end [2024-12-18 01:48:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 01:48:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 01:48:20] Production.INFO: ==29831== Releasing lock... [2024-12-18 01:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 01:48:20] Production.INFO: 29 MB #Memory Used# [2024-12-18 01:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 22:49:04 [end_date_ymd] => 2024-12-18 01:49:04 [RateCDR] => 1 ) [2024-12-18 01:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 22:49:04' and `end` < '2024-12-18 01:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 01:49:17] Production.INFO: count ==186 [2024-12-18 01:49:17] Production.ERROR: pbx CDR StartTime 2024-12-17 22:49:04 - End Time 2024-12-18 01:49:04 [2024-12-18 01:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044890', 'tblTempUsageDetail_20' ) start [2024-12-18 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044890', 'tblTempUsageDetail_20' ) end [2024-12-18 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044890', 'tblTempVendorCDR_20' ) start [2024-12-18 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044890', 'tblTempVendorCDR_20' ) end [2024-12-18 01:49:17] Production.INFO: ProcessCDR(1,14044890,1,1,2) [2024-12-18 01:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044890', 'tblTempUsageDetail_20' ) start [2024-12-18 01:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044890', 'tblTempUsageDetail_20' ) end [2024-12-18 01:49:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 01:49:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 01:49:21] Production.INFO: ==29911== Releasing lock... [2024-12-18 01:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 01:49:21] Production.INFO: 29 MB #Memory Used# [2024-12-18 01:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 22:50:06 [end_date_ymd] => 2024-12-18 01:50:06 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-17 22:50:06' and `end` < '2024-12-18 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 ,'') [2024-12-18 01:50:19] Production.INFO: count ==194 [2024-12-18 01:50:19] Production.ERROR: pbx CDR StartTime 2024-12-17 22:50:06 - End Time 2024-12-18 01:50:06 [2024-12-18 01:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044896', 'tblTempUsageDetail_20' ) start [2024-12-18 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044896', 'tblTempUsageDetail_20' ) end [2024-12-18 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044896', 'tblTempVendorCDR_20' ) start [2024-12-18 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044896', 'tblTempVendorCDR_20' ) end [2024-12-18 01:50:19] Production.INFO: ProcessCDR(1,14044896,1,1,2) [2024-12-18 01:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044896', 'tblTempUsageDetail_20' ) start [2024-12-18 01:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044896', 'tblTempUsageDetail_20' ) end [2024-12-18 01:50:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 01:50:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 01:50:22] Production.INFO: ==29990== Releasing lock... [2024-12-18 01:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 01:50:22] Production.INFO: 29 MB #Memory Used# [2024-12-18 01:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 22:51:04 [end_date_ymd] => 2024-12-18 01:51:04 [RateCDR] => 1 ) [2024-12-18 01:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 22:51:04' and `end` < '2024-12-18 01:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 01:51:17] Production.INFO: count ==198 [2024-12-18 01:51:18] Production.ERROR: pbx CDR StartTime 2024-12-17 22:51:04 - End Time 2024-12-18 01:51:04 [2024-12-18 01:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044901', 'tblTempUsageDetail_20' ) start [2024-12-18 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044901', 'tblTempUsageDetail_20' ) end [2024-12-18 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044901', 'tblTempVendorCDR_20' ) start [2024-12-18 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044901', 'tblTempVendorCDR_20' ) end [2024-12-18 01:51:18] Production.INFO: ProcessCDR(1,14044901,1,1,2) [2024-12-18 01:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044901', 'tblTempUsageDetail_20' ) start [2024-12-18 01:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044901', 'tblTempUsageDetail_20' ) end [2024-12-18 01:51:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 01:51:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 01:51:21] Production.INFO: ==30066== Releasing lock... [2024-12-18 01:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 01:51:21] Production.INFO: 29 MB #Memory Used# [2024-12-18 01:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 22:52:05 [end_date_ymd] => 2024-12-18 01:52:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-17 22:52:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 01:52:17] Production.INFO: count ==197 [2024-12-18 01:52:17] Production.ERROR: pbx CDR StartTime 2024-12-17 22:52:05 - End Time 2024-12-18 01:52:05 [2024-12-18 01:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 01:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044906', 'tblTempUsageDetail_20' ) start [2024-12-18 01:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044906', 'tblTempUsageDetail_20' ) end [2024-12-18 01:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044906', 'tblTempVendorCDR_20' ) start [2024-12-18 01:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044906', 'tblTempVendorCDR_20' ) end [2024-12-18 01:52:17] Production.INFO: ProcessCDR(1,14044906,1,1,2) [2024-12-18 01:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044906', 'tblTempUsageDetail_20' ) start [2024-12-18 01:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044906', 'tblTempUsageDetail_20' ) end [2024-12-18 01:52:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 01:52:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 01:52:20] Production.INFO: ==30145== Releasing lock... [2024-12-18 01:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 01:52:20] Production.INFO: 29 MB #Memory Used# [2024-12-18 01:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 22:53:05 [end_date_ymd] => 2024-12-18 01:53:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-17 22:53:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 01:53:17] Production.INFO: count ==200 [2024-12-18 01:53:17] Production.ERROR: pbx CDR StartTime 2024-12-17 22:53:05 - End Time 2024-12-18 01:53:05 [2024-12-18 01:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 01:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044911', 'tblTempUsageDetail_20' ) start [2024-12-18 01:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044911', 'tblTempUsageDetail_20' ) end [2024-12-18 01:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044911', 'tblTempVendorCDR_20' ) start [2024-12-18 01:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044911', 'tblTempVendorCDR_20' ) end [2024-12-18 01:53:17] Production.INFO: ProcessCDR(1,14044911,1,1,2) [2024-12-18 01:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044911', 'tblTempUsageDetail_20' ) start [2024-12-18 01:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044911', 'tblTempUsageDetail_20' ) end [2024-12-18 01:53:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 01:53:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 01:53:21] Production.INFO: ==30241== Releasing lock... [2024-12-18 01:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 01:53:21] Production.INFO: 29 MB #Memory Used# [2024-12-18 01:54:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 22:54:04 [end_date_ymd] => 2024-12-18 01:54:04 [RateCDR] => 1 ) [2024-12-18 01: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` >= '2024-12-17 22:54:04' and `end` < '2024-12-18 01: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 ,'') [2024-12-18 01:54:16] Production.INFO: count ==200 [2024-12-18 01:54:16] Production.ERROR: pbx CDR StartTime 2024-12-17 22:54:04 - End Time 2024-12-18 01:54:04 [2024-12-18 01:54:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 01:54:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044916', 'tblTempUsageDetail_20' ) start [2024-12-18 01:54:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044916', 'tblTempUsageDetail_20' ) end [2024-12-18 01:54:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044916', 'tblTempVendorCDR_20' ) start [2024-12-18 01:54:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044916', 'tblTempVendorCDR_20' ) end [2024-12-18 01:54:16] Production.INFO: ProcessCDR(1,14044916,1,1,2) [2024-12-18 01:54:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:54:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:54:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044916', 'tblTempUsageDetail_20' ) start [2024-12-18 01:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044916', 'tblTempUsageDetail_20' ) end [2024-12-18 01:54:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 01:54:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 01:54:20] Production.INFO: ==30315== Releasing lock... [2024-12-18 01:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 01:54:20] Production.INFO: 29 MB #Memory Used# [2024-12-18 01:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 22:55:05 [end_date_ymd] => 2024-12-18 01:55:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-17 22:55:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 01:55:18] Production.INFO: count ==200 [2024-12-18 01:55:18] Production.ERROR: pbx CDR StartTime 2024-12-17 22:55:05 - End Time 2024-12-18 01:55:05 [2024-12-18 01:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044921', 'tblTempUsageDetail_20' ) start [2024-12-18 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044921', 'tblTempUsageDetail_20' ) end [2024-12-18 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044921', 'tblTempVendorCDR_20' ) start [2024-12-18 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044921', 'tblTempVendorCDR_20' ) end [2024-12-18 01:55:18] Production.INFO: ProcessCDR(1,14044921,1,1,2) [2024-12-18 01:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044921', 'tblTempUsageDetail_20' ) start [2024-12-18 01:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044921', 'tblTempUsageDetail_20' ) end [2024-12-18 01:55:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 01:55:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 01:55:21] Production.INFO: ==30391== Releasing lock... [2024-12-18 01:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 01:55:21] Production.INFO: 29 MB #Memory Used# [2024-12-18 01:56:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 22:56:04 [end_date_ymd] => 2024-12-18 01:56:04 [RateCDR] => 1 ) [2024-12-18 01:56:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 22:56:04' and `end` < '2024-12-18 01:56:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 01:56:17] Production.INFO: count ==200 [2024-12-18 01:56:17] Production.ERROR: pbx CDR StartTime 2024-12-17 22:56:04 - End Time 2024-12-18 01:56:04 [2024-12-18 01:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 01:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044926', 'tblTempUsageDetail_20' ) start [2024-12-18 01:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044926', 'tblTempUsageDetail_20' ) end [2024-12-18 01:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044926', 'tblTempVendorCDR_20' ) start [2024-12-18 01:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044926', 'tblTempVendorCDR_20' ) end [2024-12-18 01:56:17] Production.INFO: ProcessCDR(1,14044926,1,1,2) [2024-12-18 01:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044926', 'tblTempUsageDetail_20' ) start [2024-12-18 01:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044926', 'tblTempUsageDetail_20' ) end [2024-12-18 01:56:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 01:56:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 01:56:20] Production.INFO: ==30465== Releasing lock... [2024-12-18 01:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 01:56:20] Production.INFO: 29 MB #Memory Used# [2024-12-18 01:57:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 22:57:04 [end_date_ymd] => 2024-12-18 01:57:04 [RateCDR] => 1 ) [2024-12-18 01:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 22:57:04' and `end` < '2024-12-18 01:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 01:57:18] Production.INFO: count ==200 [2024-12-18 01:57:18] Production.ERROR: pbx CDR StartTime 2024-12-17 22:57:04 - End Time 2024-12-18 01:57:04 [2024-12-18 01:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044931', 'tblTempUsageDetail_20' ) start [2024-12-18 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044931', 'tblTempUsageDetail_20' ) end [2024-12-18 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044931', 'tblTempVendorCDR_20' ) start [2024-12-18 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044931', 'tblTempVendorCDR_20' ) end [2024-12-18 01:57:18] Production.INFO: ProcessCDR(1,14044931,1,1,2) [2024-12-18 01:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044931', 'tblTempUsageDetail_20' ) start [2024-12-18 01:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044931', 'tblTempUsageDetail_20' ) end [2024-12-18 01:57:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 01:57:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 01:57:21] Production.INFO: ==30540== Releasing lock... [2024-12-18 01:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 01:57:21] Production.INFO: 29 MB #Memory Used# [2024-12-18 01:58:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 22:58:04 [end_date_ymd] => 2024-12-18 01:58:04 [RateCDR] => 1 ) [2024-12-18 01: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` >= '2024-12-17 22:58:04' and `end` < '2024-12-18 01: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 ,'') [2024-12-18 01:58:16] Production.INFO: count ==200 [2024-12-18 01:58:16] Production.ERROR: pbx CDR StartTime 2024-12-17 22:58:04 - End Time 2024-12-18 01:58:04 [2024-12-18 01:58:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 01:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044936', 'tblTempUsageDetail_20' ) start [2024-12-18 01:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044936', 'tblTempUsageDetail_20' ) end [2024-12-18 01:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044936', 'tblTempVendorCDR_20' ) start [2024-12-18 01:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044936', 'tblTempVendorCDR_20' ) end [2024-12-18 01:58:16] Production.INFO: ProcessCDR(1,14044936,1,1,2) [2024-12-18 01:58:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:58:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:58:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:58:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:58:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044936', 'tblTempUsageDetail_20' ) start [2024-12-18 01:58:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044936', 'tblTempUsageDetail_20' ) end [2024-12-18 01:58:19] Production.ERROR: pbx prc_insertCDR start [2024-12-18 01:58:19] Production.ERROR: pbx prc_insertCDR end [2024-12-18 01:58:19] Production.INFO: ==30613== Releasing lock... [2024-12-18 01:58:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 01:58:19] Production.INFO: 29 MB #Memory Used# [2024-12-18 01:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 22:59:05 [end_date_ymd] => 2024-12-18 01:59:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-17 22:59:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 01:59:19] Production.INFO: count ==200 [2024-12-18 01:59:19] Production.ERROR: pbx CDR StartTime 2024-12-17 22:59:05 - End Time 2024-12-18 01:59:05 [2024-12-18 01:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 01:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044941', 'tblTempUsageDetail_20' ) start [2024-12-18 01:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044941', 'tblTempUsageDetail_20' ) end [2024-12-18 01:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044941', 'tblTempVendorCDR_20' ) start [2024-12-18 01:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044941', 'tblTempVendorCDR_20' ) end [2024-12-18 01:59:19] Production.INFO: ProcessCDR(1,14044941,1,1,2) [2024-12-18 01:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 01:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 01:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044941', 'tblTempUsageDetail_20' ) start [2024-12-18 01:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044941', 'tblTempUsageDetail_20' ) end [2024-12-18 01:59:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 01:59:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 01:59:22] Production.INFO: ==30689== Releasing lock... [2024-12-18 01:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 01:59:22] Production.INFO: 29 MB #Memory Used# [2024-12-18 02:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 23:00:06 [end_date_ymd] => 2024-12-18 02:00:06 [RateCDR] => 1 ) [2024-12-18 02:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 23:00:06' and `end` < '2024-12-18 02:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 02:00:18] Production.INFO: count ==209 [2024-12-18 02:00:18] Production.ERROR: pbx CDR StartTime 2024-12-17 23:00:06 - End Time 2024-12-18 02:00:06 [2024-12-18 02:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044947', 'tblTempUsageDetail_20' ) start [2024-12-18 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044947', 'tblTempUsageDetail_20' ) end [2024-12-18 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044947', 'tblTempVendorCDR_20' ) start [2024-12-18 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044947', 'tblTempVendorCDR_20' ) end [2024-12-18 02:00:18] Production.INFO: ProcessCDR(1,14044947,1,1,2) [2024-12-18 02:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044947', 'tblTempUsageDetail_20' ) start [2024-12-18 02:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044947', 'tblTempUsageDetail_20' ) end [2024-12-18 02:00:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 02:00:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 02:00:21] Production.INFO: ==30769== Releasing lock... [2024-12-18 02:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 02:00:21] Production.INFO: 29 MB #Memory Used# [2024-12-18 02:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 23:01:05 [end_date_ymd] => 2024-12-18 02:01:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-17 23:01:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 02:01:18] Production.INFO: count ==219 [2024-12-18 02:01:18] Production.ERROR: pbx CDR StartTime 2024-12-17 23:01:05 - End Time 2024-12-18 02:01:05 [2024-12-18 02:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044952', 'tblTempUsageDetail_20' ) start [2024-12-18 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044952', 'tblTempUsageDetail_20' ) end [2024-12-18 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044952', 'tblTempVendorCDR_20' ) start [2024-12-18 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044952', 'tblTempVendorCDR_20' ) end [2024-12-18 02:01:18] Production.INFO: ProcessCDR(1,14044952,1,1,2) [2024-12-18 02:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044952', 'tblTempUsageDetail_20' ) start [2024-12-18 02:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044952', 'tblTempUsageDetail_20' ) end [2024-12-18 02:01:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 02:01:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 02:01:21] Production.INFO: ==30941== Releasing lock... [2024-12-18 02:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 02:01:21] Production.INFO: 29 MB #Memory Used# [2024-12-18 02:02:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 23:02:04 [end_date_ymd] => 2024-12-18 02:02:04 [RateCDR] => 1 ) [2024-12-18 02:02:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 23:02:04' and `end` < '2024-12-18 02:02:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 02:02:17] Production.INFO: count ==219 [2024-12-18 02:02:17] Production.ERROR: pbx CDR StartTime 2024-12-17 23:02:04 - End Time 2024-12-18 02:02:04 [2024-12-18 02:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 02:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044957', 'tblTempUsageDetail_20' ) start [2024-12-18 02:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044957', 'tblTempUsageDetail_20' ) end [2024-12-18 02:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044957', 'tblTempVendorCDR_20' ) start [2024-12-18 02:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044957', 'tblTempVendorCDR_20' ) end [2024-12-18 02:02:17] Production.INFO: ProcessCDR(1,14044957,1,1,2) [2024-12-18 02:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044957', 'tblTempUsageDetail_20' ) start [2024-12-18 02:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044957', 'tblTempUsageDetail_20' ) end [2024-12-18 02:02:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 02:02:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 02:02:20] Production.INFO: ==31017== Releasing lock... [2024-12-18 02:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 02:02:20] Production.INFO: 29 MB #Memory Used# [2024-12-18 02:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 23:03:04 [end_date_ymd] => 2024-12-18 02:03:04 [RateCDR] => 1 ) [2024-12-18 02:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 23:03:04' and `end` < '2024-12-18 02:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 02:03:16] Production.INFO: count ==222 [2024-12-18 02:03:16] Production.ERROR: pbx CDR StartTime 2024-12-17 23:03:04 - End Time 2024-12-18 02:03:04 [2024-12-18 02:03:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 02:03:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044962', 'tblTempUsageDetail_20' ) start [2024-12-18 02:03:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044962', 'tblTempUsageDetail_20' ) end [2024-12-18 02:03:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044962', 'tblTempVendorCDR_20' ) start [2024-12-18 02:03:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044962', 'tblTempVendorCDR_20' ) end [2024-12-18 02:03:16] Production.INFO: ProcessCDR(1,14044962,1,1,2) [2024-12-18 02:03:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:03:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:03:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:03:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:03:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044962', 'tblTempUsageDetail_20' ) start [2024-12-18 02:03:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044962', 'tblTempUsageDetail_20' ) end [2024-12-18 02:03:19] Production.ERROR: pbx prc_insertCDR start [2024-12-18 02:03:19] Production.ERROR: pbx prc_insertCDR end [2024-12-18 02:03:19] Production.INFO: ==31090== Releasing lock... [2024-12-18 02:03:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 02:03:19] Production.INFO: 29.25 MB #Memory Used# [2024-12-18 02:04:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 23:04:04 [end_date_ymd] => 2024-12-18 02:04:04 [RateCDR] => 1 ) [2024-12-18 02:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 23:04:04' and `end` < '2024-12-18 02:04:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 02:04:16] Production.INFO: count ==223 [2024-12-18 02:04:17] Production.ERROR: pbx CDR StartTime 2024-12-17 23:04:04 - End Time 2024-12-18 02:04:04 [2024-12-18 02:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 02:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044967', 'tblTempUsageDetail_20' ) start [2024-12-18 02:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044967', 'tblTempUsageDetail_20' ) end [2024-12-18 02:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044967', 'tblTempVendorCDR_20' ) start [2024-12-18 02:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044967', 'tblTempVendorCDR_20' ) end [2024-12-18 02:04:17] Production.INFO: ProcessCDR(1,14044967,1,1,2) [2024-12-18 02:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044967', 'tblTempUsageDetail_20' ) start [2024-12-18 02:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044967', 'tblTempUsageDetail_20' ) end [2024-12-18 02:04:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 02:04:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 02:04:21] Production.INFO: ==31211== Releasing lock... [2024-12-18 02:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 02:04:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-18 02:05:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 23:05:06 [end_date_ymd] => 2024-12-18 02:05:06 [RateCDR] => 1 ) [2024-12-18 02:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 23:05:06' and `end` < '2024-12-18 02:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 02:05:18] Production.INFO: count ==224 [2024-12-18 02:05:18] Production.ERROR: pbx CDR StartTime 2024-12-17 23:05:06 - End Time 2024-12-18 02:05:06 [2024-12-18 02:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044972', 'tblTempUsageDetail_20' ) start [2024-12-18 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044972', 'tblTempUsageDetail_20' ) end [2024-12-18 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044972', 'tblTempVendorCDR_20' ) start [2024-12-18 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044972', 'tblTempVendorCDR_20' ) end [2024-12-18 02:05:18] Production.INFO: ProcessCDR(1,14044972,1,1,2) [2024-12-18 02:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044972', 'tblTempUsageDetail_20' ) start [2024-12-18 02:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044972', 'tblTempUsageDetail_20' ) end [2024-12-18 02:05:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 02:05:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 02:05:21] Production.INFO: ==31286== Releasing lock... [2024-12-18 02:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 02:05:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-18 02:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 23:06:05 [end_date_ymd] => 2024-12-18 02:06:05 [RateCDR] => 1 ) [2024-12-18 02:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 23:06:05' and `end` < '2024-12-18 02:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 02:06:18] Production.INFO: count ==219 [2024-12-18 02:06:18] Production.ERROR: pbx CDR StartTime 2024-12-17 23:06:05 - End Time 2024-12-18 02:06:05 [2024-12-18 02:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044977', 'tblTempUsageDetail_20' ) start [2024-12-18 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044977', 'tblTempUsageDetail_20' ) end [2024-12-18 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044977', 'tblTempVendorCDR_20' ) start [2024-12-18 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044977', 'tblTempVendorCDR_20' ) end [2024-12-18 02:06:18] Production.INFO: ProcessCDR(1,14044977,1,1,2) [2024-12-18 02:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044977', 'tblTempUsageDetail_20' ) start [2024-12-18 02:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044977', 'tblTempUsageDetail_20' ) end [2024-12-18 02:06:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 02:06:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 02:06:21] Production.INFO: ==31362== Releasing lock... [2024-12-18 02:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 02:06:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-18 02:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 23:07:05 [end_date_ymd] => 2024-12-18 02:07:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-17 23:07:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 02:07:18] Production.INFO: count ==212 [2024-12-18 02:07:18] Production.ERROR: pbx CDR StartTime 2024-12-17 23:07:05 - End Time 2024-12-18 02:07:05 [2024-12-18 02:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044982', 'tblTempUsageDetail_20' ) start [2024-12-18 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044982', 'tblTempUsageDetail_20' ) end [2024-12-18 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044982', 'tblTempVendorCDR_20' ) start [2024-12-18 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044982', 'tblTempVendorCDR_20' ) end [2024-12-18 02:07:18] Production.INFO: ProcessCDR(1,14044982,1,1,2) [2024-12-18 02:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044982', 'tblTempUsageDetail_20' ) start [2024-12-18 02:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044982', 'tblTempUsageDetail_20' ) end [2024-12-18 02:07:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 02:07:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 02:07:21] Production.INFO: ==31439== Releasing lock... [2024-12-18 02:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 02:07:21] Production.INFO: 29 MB #Memory Used# [2024-12-18 02:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 23:08:05 [end_date_ymd] => 2024-12-18 02:08:05 [RateCDR] => 1 ) [2024-12-18 02:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 23:08:05' and `end` < '2024-12-18 02:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 02:08:17] Production.INFO: count ==214 [2024-12-18 02:08:17] Production.ERROR: pbx CDR StartTime 2024-12-17 23:08:05 - End Time 2024-12-18 02:08:05 [2024-12-18 02:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 02:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044987', 'tblTempUsageDetail_20' ) start [2024-12-18 02:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044987', 'tblTempUsageDetail_20' ) end [2024-12-18 02:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044987', 'tblTempVendorCDR_20' ) start [2024-12-18 02:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044987', 'tblTempVendorCDR_20' ) end [2024-12-18 02:08:17] Production.INFO: ProcessCDR(1,14044987,1,1,2) [2024-12-18 02:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044987', 'tblTempUsageDetail_20' ) start [2024-12-18 02:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044987', 'tblTempUsageDetail_20' ) end [2024-12-18 02:08:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 02:08:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 02:08:21] Production.INFO: ==31511== Releasing lock... [2024-12-18 02:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 02:08:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-18 02:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 23:09:05 [end_date_ymd] => 2024-12-18 02:09:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-17 23:09:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 02:09:18] Production.INFO: count ==214 [2024-12-18 02:09:18] Production.ERROR: pbx CDR StartTime 2024-12-17 23:09:05 - End Time 2024-12-18 02:09:05 [2024-12-18 02:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044992', 'tblTempUsageDetail_20' ) start [2024-12-18 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044992', 'tblTempUsageDetail_20' ) end [2024-12-18 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044992', 'tblTempVendorCDR_20' ) start [2024-12-18 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044992', 'tblTempVendorCDR_20' ) end [2024-12-18 02:09:18] Production.INFO: ProcessCDR(1,14044992,1,1,2) [2024-12-18 02:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044992', 'tblTempUsageDetail_20' ) start [2024-12-18 02:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044992', 'tblTempUsageDetail_20' ) end [2024-12-18 02:09:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 02:09:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 02:09:21] Production.INFO: ==31585== Releasing lock... [2024-12-18 02:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 02:09:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-18 02:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 23:10:05 [end_date_ymd] => 2024-12-18 02:10:05 [RateCDR] => 1 ) [2024-12-18 02: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` >= '2024-12-17 23:10:05' and `end` < '2024-12-18 02: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 ,'') [2024-12-18 02:10:17] Production.INFO: count ==220 [2024-12-18 02:10:17] Production.ERROR: pbx CDR StartTime 2024-12-17 23:10:05 - End Time 2024-12-18 02:10:05 [2024-12-18 02:10:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 02:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044998', 'tblTempUsageDetail_20' ) start [2024-12-18 02:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14044998', 'tblTempUsageDetail_20' ) end [2024-12-18 02:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044998', 'tblTempVendorCDR_20' ) start [2024-12-18 02:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14044998', 'tblTempVendorCDR_20' ) end [2024-12-18 02:10:17] Production.INFO: ProcessCDR(1,14044998,1,1,2) [2024-12-18 02:10:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14044998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:10:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14044998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:10:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14044998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:10:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14044998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:10:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044998', 'tblTempUsageDetail_20' ) start [2024-12-18 02:10:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14044998', 'tblTempUsageDetail_20' ) end [2024-12-18 02:10:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 02:10:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 02:10:20] Production.INFO: ==31664== Releasing lock... [2024-12-18 02:10:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 02:10:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-18 02:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 23:11:04 [end_date_ymd] => 2024-12-18 02:11:04 [RateCDR] => 1 ) [2024-12-18 02:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 23:11:04' and `end` < '2024-12-18 02:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 02:11:16] Production.INFO: count ==220 [2024-12-18 02:11:16] Production.ERROR: pbx CDR StartTime 2024-12-17 23:11:04 - End Time 2024-12-18 02:11:04 [2024-12-18 02:11:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 02:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045002', 'tblTempUsageDetail_20' ) start [2024-12-18 02:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045002', 'tblTempUsageDetail_20' ) end [2024-12-18 02:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045002', 'tblTempVendorCDR_20' ) start [2024-12-18 02:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045002', 'tblTempVendorCDR_20' ) end [2024-12-18 02:11:16] Production.INFO: ProcessCDR(1,14045002,1,1,2) [2024-12-18 02:11:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:11:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:11:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:11:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:11:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045002', 'tblTempUsageDetail_20' ) start [2024-12-18 02:11:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045002', 'tblTempUsageDetail_20' ) end [2024-12-18 02:11:19] Production.ERROR: pbx prc_insertCDR start [2024-12-18 02:11:19] Production.ERROR: pbx prc_insertCDR end [2024-12-18 02:11:19] Production.INFO: ==31738== Releasing lock... [2024-12-18 02:11:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 02:11:19] Production.INFO: 29.25 MB #Memory Used# [2024-12-18 02:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 23:12:05 [end_date_ymd] => 2024-12-18 02:12:05 [RateCDR] => 1 ) [2024-12-18 02:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 23:12:05' and `end` < '2024-12-18 02:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 02:12:17] Production.INFO: count ==220 [2024-12-18 02:12:17] Production.ERROR: pbx CDR StartTime 2024-12-17 23:12:05 - End Time 2024-12-18 02:12:05 [2024-12-18 02:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 02:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045008', 'tblTempUsageDetail_20' ) start [2024-12-18 02:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045008', 'tblTempUsageDetail_20' ) end [2024-12-18 02:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045008', 'tblTempVendorCDR_20' ) start [2024-12-18 02:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045008', 'tblTempVendorCDR_20' ) end [2024-12-18 02:12:17] Production.INFO: ProcessCDR(1,14045008,1,1,2) [2024-12-18 02:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:12:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:12:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045008', 'tblTempUsageDetail_20' ) start [2024-12-18 02:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045008', 'tblTempUsageDetail_20' ) end [2024-12-18 02:12:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 02:12:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 02:12:20] Production.INFO: ==31816== Releasing lock... [2024-12-18 02:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 02:12:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-18 02:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 23:13:05 [end_date_ymd] => 2024-12-18 02:13:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-17 23:13:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 02:13:17] Production.INFO: count ==220 [2024-12-18 02:13:17] Production.ERROR: pbx CDR StartTime 2024-12-17 23:13:05 - End Time 2024-12-18 02:13:05 [2024-12-18 02:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045013', 'tblTempUsageDetail_20' ) start [2024-12-18 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045013', 'tblTempUsageDetail_20' ) end [2024-12-18 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045013', 'tblTempVendorCDR_20' ) start [2024-12-18 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045013', 'tblTempVendorCDR_20' ) end [2024-12-18 02:13:17] Production.INFO: ProcessCDR(1,14045013,1,1,2) [2024-12-18 02:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045013', 'tblTempUsageDetail_20' ) start [2024-12-18 02:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045013', 'tblTempUsageDetail_20' ) end [2024-12-18 02:13:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 02:13:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 02:13:20] Production.INFO: ==31892== Releasing lock... [2024-12-18 02:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 02:13:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-18 02:14:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 23:14:04 [end_date_ymd] => 2024-12-18 02:14:04 [RateCDR] => 1 ) [2024-12-18 02:14:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 23:14:04' and `end` < '2024-12-18 02:14:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 02:14:17] Production.INFO: count ==220 [2024-12-18 02:14:17] Production.ERROR: pbx CDR StartTime 2024-12-17 23:14:04 - End Time 2024-12-18 02:14:04 [2024-12-18 02:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 02:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045018', 'tblTempUsageDetail_20' ) start [2024-12-18 02:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045018', 'tblTempUsageDetail_20' ) end [2024-12-18 02:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045018', 'tblTempVendorCDR_20' ) start [2024-12-18 02:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045018', 'tblTempVendorCDR_20' ) end [2024-12-18 02:14:17] Production.INFO: ProcessCDR(1,14045018,1,1,2) [2024-12-18 02:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045018', 'tblTempUsageDetail_20' ) start [2024-12-18 02:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045018', 'tblTempUsageDetail_20' ) end [2024-12-18 02:14:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 02:14:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 02:14:20] Production.INFO: ==31964== Releasing lock... [2024-12-18 02:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 02:14:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-18 02:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 23:15:05 [end_date_ymd] => 2024-12-18 02:15:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-17 23:15:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 02:15:17] Production.INFO: count ==218 [2024-12-18 02:15:17] Production.ERROR: pbx CDR StartTime 2024-12-17 23:15:05 - End Time 2024-12-18 02:15:05 [2024-12-18 02:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045023', 'tblTempUsageDetail_20' ) start [2024-12-18 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045023', 'tblTempUsageDetail_20' ) end [2024-12-18 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045023', 'tblTempVendorCDR_20' ) start [2024-12-18 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045023', 'tblTempVendorCDR_20' ) end [2024-12-18 02:15:17] Production.INFO: ProcessCDR(1,14045023,1,1,2) [2024-12-18 02:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045023', 'tblTempUsageDetail_20' ) start [2024-12-18 02:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045023', 'tblTempUsageDetail_20' ) end [2024-12-18 02:15:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 02:15:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 02:15:20] Production.INFO: ==32038== Releasing lock... [2024-12-18 02:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 02:15:20] Production.INFO: 29 MB #Memory Used# [2024-12-18 02:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 23:16:05 [end_date_ymd] => 2024-12-18 02:16:05 [RateCDR] => 1 ) [2024-12-18 02:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 23:16:05' and `end` < '2024-12-18 02:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 02:16:17] Production.INFO: count ==216 [2024-12-18 02:16:17] Production.ERROR: pbx CDR StartTime 2024-12-17 23:16:05 - End Time 2024-12-18 02:16:05 [2024-12-18 02:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045028', 'tblTempUsageDetail_20' ) start [2024-12-18 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045028', 'tblTempUsageDetail_20' ) end [2024-12-18 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045028', 'tblTempVendorCDR_20' ) start [2024-12-18 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045028', 'tblTempVendorCDR_20' ) end [2024-12-18 02:16:17] Production.INFO: ProcessCDR(1,14045028,1,1,2) [2024-12-18 02:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045028', 'tblTempUsageDetail_20' ) start [2024-12-18 02:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045028', 'tblTempUsageDetail_20' ) end [2024-12-18 02:16:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 02:16:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 02:16:20] Production.INFO: ==32111== Releasing lock... [2024-12-18 02:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 02:16:20] Production.INFO: 29 MB #Memory Used# [2024-12-18 02:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 23:17:04 [end_date_ymd] => 2024-12-18 02:17:04 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-17 23:17:04' and `end` < '2024-12-18 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 ,'') [2024-12-18 02:17:18] Production.INFO: count ==216 [2024-12-18 02:17:18] Production.ERROR: pbx CDR StartTime 2024-12-17 23:17:04 - End Time 2024-12-18 02:17:04 [2024-12-18 02:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045033', 'tblTempUsageDetail_20' ) start [2024-12-18 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045033', 'tblTempUsageDetail_20' ) end [2024-12-18 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045033', 'tblTempVendorCDR_20' ) start [2024-12-18 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045033', 'tblTempVendorCDR_20' ) end [2024-12-18 02:17:18] Production.INFO: ProcessCDR(1,14045033,1,1,2) [2024-12-18 02:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045033', 'tblTempUsageDetail_20' ) start [2024-12-18 02:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045033', 'tblTempUsageDetail_20' ) end [2024-12-18 02:17:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 02:17:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 02:17:21] Production.INFO: ==32185== Releasing lock... [2024-12-18 02:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 02:17:21] Production.INFO: 29 MB #Memory Used# [2024-12-18 02:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 23:18:05 [end_date_ymd] => 2024-12-18 02:18:05 [RateCDR] => 1 ) [2024-12-18 02:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 23:18:05' and `end` < '2024-12-18 02:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 02:18:17] Production.INFO: count ==216 [2024-12-18 02:18:17] Production.ERROR: pbx CDR StartTime 2024-12-17 23:18:05 - End Time 2024-12-18 02:18:05 [2024-12-18 02:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045038', 'tblTempUsageDetail_20' ) start [2024-12-18 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045038', 'tblTempUsageDetail_20' ) end [2024-12-18 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045038', 'tblTempVendorCDR_20' ) start [2024-12-18 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045038', 'tblTempVendorCDR_20' ) end [2024-12-18 02:18:17] Production.INFO: ProcessCDR(1,14045038,1,1,2) [2024-12-18 02:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045038', 'tblTempUsageDetail_20' ) start [2024-12-18 02:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045038', 'tblTempUsageDetail_20' ) end [2024-12-18 02:18:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 02:18:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 02:18:20] Production.INFO: ==32257== Releasing lock... [2024-12-18 02:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 02:18:20] Production.INFO: 29 MB #Memory Used# [2024-12-18 02:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 23:19:05 [end_date_ymd] => 2024-12-18 02:19:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-17 23:19:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 02:19:17] Production.INFO: count ==216 [2024-12-18 02:19:17] Production.ERROR: pbx CDR StartTime 2024-12-17 23:19:05 - End Time 2024-12-18 02:19:05 [2024-12-18 02:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045043', 'tblTempUsageDetail_20' ) start [2024-12-18 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045043', 'tblTempUsageDetail_20' ) end [2024-12-18 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045043', 'tblTempVendorCDR_20' ) start [2024-12-18 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045043', 'tblTempVendorCDR_20' ) end [2024-12-18 02:19:17] Production.INFO: ProcessCDR(1,14045043,1,1,2) [2024-12-18 02:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045043', 'tblTempUsageDetail_20' ) start [2024-12-18 02:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045043', 'tblTempUsageDetail_20' ) end [2024-12-18 02:19:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 02:19:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 02:19:20] Production.INFO: ==32374== Releasing lock... [2024-12-18 02:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 02:19:20] Production.INFO: 29 MB #Memory Used# [2024-12-18 02:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 23:20:05 [end_date_ymd] => 2024-12-18 02:20:05 [RateCDR] => 1 ) [2024-12-18 02: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` >= '2024-12-17 23:20:05' and `end` < '2024-12-18 02: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 ,'') [2024-12-18 02:20:17] Production.INFO: count ==220 [2024-12-18 02:20:17] Production.ERROR: pbx CDR StartTime 2024-12-17 23:20:05 - End Time 2024-12-18 02:20:05 [2024-12-18 02:20:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 02:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045049', 'tblTempUsageDetail_20' ) start [2024-12-18 02:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045049', 'tblTempUsageDetail_20' ) end [2024-12-18 02:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045049', 'tblTempVendorCDR_20' ) start [2024-12-18 02:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045049', 'tblTempVendorCDR_20' ) end [2024-12-18 02:20:17] Production.INFO: ProcessCDR(1,14045049,1,1,2) [2024-12-18 02:20:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:20:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:20:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:20:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:20:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045049', 'tblTempUsageDetail_20' ) start [2024-12-18 02:20:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045049', 'tblTempUsageDetail_20' ) end [2024-12-18 02:20:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 02:20:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 02:20:20] Production.INFO: ==32450== Releasing lock... [2024-12-18 02:20:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 02:20:20] Production.INFO: 29 MB #Memory Used# [2024-12-18 02:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 23:21:05 [end_date_ymd] => 2024-12-18 02:21:05 [RateCDR] => 1 ) [2024-12-18 02:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 23:21:05' and `end` < '2024-12-18 02:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 02:21:17] Production.INFO: count ==227 [2024-12-18 02:21:17] Production.ERROR: pbx CDR StartTime 2024-12-17 23:21:05 - End Time 2024-12-18 02:21:05 [2024-12-18 02:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045054', 'tblTempUsageDetail_20' ) start [2024-12-18 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045054', 'tblTempUsageDetail_20' ) end [2024-12-18 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045054', 'tblTempVendorCDR_20' ) start [2024-12-18 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045054', 'tblTempVendorCDR_20' ) end [2024-12-18 02:21:17] Production.INFO: ProcessCDR(1,14045054,1,1,2) [2024-12-18 02:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045054', 'tblTempUsageDetail_20' ) start [2024-12-18 02:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045054', 'tblTempUsageDetail_20' ) end [2024-12-18 02:21:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 02:21:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 02:21:20] Production.INFO: ==32525== Releasing lock... [2024-12-18 02:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 02:21:20] Production.INFO: 29 MB #Memory Used# [2024-12-18 02:22:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 23:22:04 [end_date_ymd] => 2024-12-18 02:22:04 [RateCDR] => 1 ) [2024-12-18 02:22:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 23:22:04' and `end` < '2024-12-18 02:22:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 02:22:16] Production.INFO: count ==227 [2024-12-18 02:22:16] Production.ERROR: pbx CDR StartTime 2024-12-17 23:22:04 - End Time 2024-12-18 02:22:04 [2024-12-18 02:22:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 02:22:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045059', 'tblTempUsageDetail_20' ) start [2024-12-18 02:22:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045059', 'tblTempUsageDetail_20' ) end [2024-12-18 02:22:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045059', 'tblTempVendorCDR_20' ) start [2024-12-18 02:22:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045059', 'tblTempVendorCDR_20' ) end [2024-12-18 02:22:16] Production.INFO: ProcessCDR(1,14045059,1,1,2) [2024-12-18 02:22:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:22:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:22:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:22:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:22:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045059', 'tblTempUsageDetail_20' ) start [2024-12-18 02:22:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045059', 'tblTempUsageDetail_20' ) end [2024-12-18 02:22:19] Production.ERROR: pbx prc_insertCDR start [2024-12-18 02:22:19] Production.ERROR: pbx prc_insertCDR end [2024-12-18 02:22:19] Production.INFO: ==32594== Releasing lock... [2024-12-18 02:22:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 02:22:19] Production.INFO: 29 MB #Memory Used# [2024-12-18 02:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 23:23:04 [end_date_ymd] => 2024-12-18 02:23:04 [RateCDR] => 1 ) [2024-12-18 02:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 23:23:04' and `end` < '2024-12-18 02:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 02:23:16] Production.INFO: count ==228 [2024-12-18 02:23:16] Production.ERROR: pbx CDR StartTime 2024-12-17 23:23:04 - End Time 2024-12-18 02:23:04 [2024-12-18 02:23:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 02:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045064', 'tblTempUsageDetail_20' ) start [2024-12-18 02:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045064', 'tblTempUsageDetail_20' ) end [2024-12-18 02:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045064', 'tblTempVendorCDR_20' ) start [2024-12-18 02:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045064', 'tblTempVendorCDR_20' ) end [2024-12-18 02:23:16] Production.INFO: ProcessCDR(1,14045064,1,1,2) [2024-12-18 02:23:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:23:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:23:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:23:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:23:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045064', 'tblTempUsageDetail_20' ) start [2024-12-18 02:23:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045064', 'tblTempUsageDetail_20' ) end [2024-12-18 02:23:19] Production.ERROR: pbx prc_insertCDR start [2024-12-18 02:23:19] Production.ERROR: pbx prc_insertCDR end [2024-12-18 02:23:19] Production.INFO: ==32664== Releasing lock... [2024-12-18 02:23:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 02:23:19] Production.INFO: 29 MB #Memory Used# [2024-12-18 02:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 23:24:05 [end_date_ymd] => 2024-12-18 02:24:05 [RateCDR] => 1 ) [2024-12-18 02:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 23:24:05' and `end` < '2024-12-18 02:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 02:24:17] Production.INFO: count ==228 [2024-12-18 02:24:17] Production.ERROR: pbx CDR StartTime 2024-12-17 23:24:05 - End Time 2024-12-18 02:24:05 [2024-12-18 02:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 02:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045069', 'tblTempUsageDetail_20' ) start [2024-12-18 02:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045069', 'tblTempUsageDetail_20' ) end [2024-12-18 02:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045069', 'tblTempVendorCDR_20' ) start [2024-12-18 02:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045069', 'tblTempVendorCDR_20' ) end [2024-12-18 02:24:17] Production.INFO: ProcessCDR(1,14045069,1,1,2) [2024-12-18 02:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045069', 'tblTempUsageDetail_20' ) start [2024-12-18 02:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045069', 'tblTempUsageDetail_20' ) end [2024-12-18 02:24:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 02:24:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 02:24:20] Production.INFO: ==32739== Releasing lock... [2024-12-18 02:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 02:24:20] Production.INFO: 29 MB #Memory Used# [2024-12-18 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 23:25:05 [end_date_ymd] => 2024-12-18 02:25:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-17 23:25:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 02:25:18] Production.INFO: count ==228 [2024-12-18 02:25:18] Production.ERROR: pbx CDR StartTime 2024-12-17 23:25:05 - End Time 2024-12-18 02:25:05 [2024-12-18 02:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045074', 'tblTempUsageDetail_20' ) start [2024-12-18 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045074', 'tblTempUsageDetail_20' ) end [2024-12-18 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045074', 'tblTempVendorCDR_20' ) start [2024-12-18 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045074', 'tblTempVendorCDR_20' ) end [2024-12-18 02:25:18] Production.INFO: ProcessCDR(1,14045074,1,1,2) [2024-12-18 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045074', 'tblTempUsageDetail_20' ) start [2024-12-18 02:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045074', 'tblTempUsageDetail_20' ) end [2024-12-18 02:25:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 02:25:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 02:25:21] Production.INFO: ==366== Releasing lock... [2024-12-18 02:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 02:25:21] Production.INFO: 29 MB #Memory Used# [2024-12-18 02:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 23:26:05 [end_date_ymd] => 2024-12-18 02:26:05 [RateCDR] => 1 ) [2024-12-18 02:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 23:26:05' and `end` < '2024-12-18 02:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 02:26:17] Production.INFO: count ==228 [2024-12-18 02:26:17] Production.ERROR: pbx CDR StartTime 2024-12-17 23:26:05 - End Time 2024-12-18 02:26:05 [2024-12-18 02:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 02:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045079', 'tblTempUsageDetail_20' ) start [2024-12-18 02:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045079', 'tblTempUsageDetail_20' ) end [2024-12-18 02:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045079', 'tblTempVendorCDR_20' ) start [2024-12-18 02:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045079', 'tblTempVendorCDR_20' ) end [2024-12-18 02:26:17] Production.INFO: ProcessCDR(1,14045079,1,1,2) [2024-12-18 02:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045079', 'tblTempUsageDetail_20' ) start [2024-12-18 02:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045079', 'tblTempUsageDetail_20' ) end [2024-12-18 02:26:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 02:26:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 02:26:20] Production.INFO: ==435== Releasing lock... [2024-12-18 02:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 02:26:20] Production.INFO: 29 MB #Memory Used# [2024-12-18 02:27:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 23:27:04 [end_date_ymd] => 2024-12-18 02:27:04 [RateCDR] => 1 ) [2024-12-18 02:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 23:27:04' and `end` < '2024-12-18 02:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 02:27:16] Production.INFO: count ==228 [2024-12-18 02:27:16] Production.ERROR: pbx CDR StartTime 2024-12-17 23:27:04 - End Time 2024-12-18 02:27:04 [2024-12-18 02:27:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 02:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045084', 'tblTempUsageDetail_20' ) start [2024-12-18 02:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045084', 'tblTempUsageDetail_20' ) end [2024-12-18 02:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045084', 'tblTempVendorCDR_20' ) start [2024-12-18 02:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045084', 'tblTempVendorCDR_20' ) end [2024-12-18 02:27:16] Production.INFO: ProcessCDR(1,14045084,1,1,2) [2024-12-18 02:27:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:27:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:27:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:27:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:27:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045084', 'tblTempUsageDetail_20' ) start [2024-12-18 02:27:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045084', 'tblTempUsageDetail_20' ) end [2024-12-18 02:27:19] Production.ERROR: pbx prc_insertCDR start [2024-12-18 02:27:19] Production.ERROR: pbx prc_insertCDR end [2024-12-18 02:27:19] Production.INFO: ==515== Releasing lock... [2024-12-18 02:27:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 02:27:19] Production.INFO: 29 MB #Memory Used# [2024-12-18 02:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 23:28:05 [end_date_ymd] => 2024-12-18 02:28:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-17 23:28:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 02:28:17] Production.INFO: count ==228 [2024-12-18 02:28:17] Production.ERROR: pbx CDR StartTime 2024-12-17 23:28:05 - End Time 2024-12-18 02:28:05 [2024-12-18 02:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045089', 'tblTempUsageDetail_20' ) start [2024-12-18 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045089', 'tblTempUsageDetail_20' ) end [2024-12-18 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045089', 'tblTempVendorCDR_20' ) start [2024-12-18 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045089', 'tblTempVendorCDR_20' ) end [2024-12-18 02:28:17] Production.INFO: ProcessCDR(1,14045089,1,1,2) [2024-12-18 02:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045089', 'tblTempUsageDetail_20' ) start [2024-12-18 02:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045089', 'tblTempUsageDetail_20' ) end [2024-12-18 02:28:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 02:28:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 02:28:20] Production.INFO: ==596== Releasing lock... [2024-12-18 02:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 02:28:20] Production.INFO: 29 MB #Memory Used# [2024-12-18 02:29:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 23:29:04 [end_date_ymd] => 2024-12-18 02:29:04 [RateCDR] => 1 ) [2024-12-18 02:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 23:29:04' and `end` < '2024-12-18 02:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 02:29:16] Production.INFO: count ==225 [2024-12-18 02:29:16] Production.ERROR: pbx CDR StartTime 2024-12-17 23:29:04 - End Time 2024-12-18 02:29:04 [2024-12-18 02:29:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 02:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045094', 'tblTempUsageDetail_20' ) start [2024-12-18 02:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045094', 'tblTempUsageDetail_20' ) end [2024-12-18 02:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045094', 'tblTempVendorCDR_20' ) start [2024-12-18 02:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045094', 'tblTempVendorCDR_20' ) end [2024-12-18 02:29:16] Production.INFO: ProcessCDR(1,14045094,1,1,2) [2024-12-18 02:29:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:29:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:29:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:29:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:29:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045094', 'tblTempUsageDetail_20' ) start [2024-12-18 02:29:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045094', 'tblTempUsageDetail_20' ) end [2024-12-18 02:29:19] Production.ERROR: pbx prc_insertCDR start [2024-12-18 02:29:19] Production.ERROR: pbx prc_insertCDR end [2024-12-18 02:29:19] Production.INFO: ==696== Releasing lock... [2024-12-18 02:29:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 02:29:19] Production.INFO: 29 MB #Memory Used# [2024-12-18 02:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 23:30:05 [end_date_ymd] => 2024-12-18 02:30:05 [RateCDR] => 1 ) [2024-12-18 02:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 23:30:05' and `end` < '2024-12-18 02:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 02:30:18] Production.INFO: count ==232 [2024-12-18 02:30:18] Production.ERROR: pbx CDR StartTime 2024-12-17 23:30:05 - End Time 2024-12-18 02:30:05 [2024-12-18 02:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045098', 'tblTempUsageDetail_20' ) start [2024-12-18 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045098', 'tblTempUsageDetail_20' ) end [2024-12-18 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045098', 'tblTempVendorCDR_20' ) start [2024-12-18 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045098', 'tblTempVendorCDR_20' ) end [2024-12-18 02:30:18] Production.INFO: ProcessCDR(1,14045098,1,1,2) [2024-12-18 02:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045098', 'tblTempUsageDetail_20' ) start [2024-12-18 02:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045098', 'tblTempUsageDetail_20' ) end [2024-12-18 02:30:23] Production.ERROR: pbx prc_insertCDR start [2024-12-18 02:30:23] Production.ERROR: pbx prc_insertCDR end [2024-12-18 02:30:23] Production.INFO: ==778== Releasing lock... [2024-12-18 02:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 02:30:23] Production.INFO: 29 MB #Memory Used# [2024-12-18 02:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 23:31:05 [end_date_ymd] => 2024-12-18 02:31:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-17 23:31:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 02:31:17] Production.INFO: count ==238 [2024-12-18 02:31:17] Production.ERROR: pbx CDR StartTime 2024-12-17 23:31:05 - End Time 2024-12-18 02:31:05 [2024-12-18 02:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045105', 'tblTempUsageDetail_20' ) start [2024-12-18 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045105', 'tblTempUsageDetail_20' ) end [2024-12-18 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045105', 'tblTempVendorCDR_20' ) start [2024-12-18 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045105', 'tblTempVendorCDR_20' ) end [2024-12-18 02:31:17] Production.INFO: ProcessCDR(1,14045105,1,1,2) [2024-12-18 02:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045105', 'tblTempUsageDetail_20' ) start [2024-12-18 02:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045105', 'tblTempUsageDetail_20' ) end [2024-12-18 02:31:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 02:31:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 02:31:22] Production.INFO: ==857== Releasing lock... [2024-12-18 02:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 02:31:22] Production.INFO: 29.25 MB #Memory Used# [2024-12-18 02:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 23:32:05 [end_date_ymd] => 2024-12-18 02:32:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-17 23:32:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 02:32:17] Production.INFO: count ==237 [2024-12-18 02:32:17] Production.ERROR: pbx CDR StartTime 2024-12-17 23:32:05 - End Time 2024-12-18 02:32:05 [2024-12-18 02:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045110', 'tblTempUsageDetail_20' ) start [2024-12-18 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045110', 'tblTempUsageDetail_20' ) end [2024-12-18 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045110', 'tblTempVendorCDR_20' ) start [2024-12-18 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045110', 'tblTempVendorCDR_20' ) end [2024-12-18 02:32:17] Production.INFO: ProcessCDR(1,14045110,1,1,2) [2024-12-18 02:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045110', 'tblTempUsageDetail_20' ) start [2024-12-18 02:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045110', 'tblTempUsageDetail_20' ) end [2024-12-18 02:32:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 02:32:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 02:32:20] Production.INFO: ==937== Releasing lock... [2024-12-18 02:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 02:32:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-18 02:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 23:33:04 [end_date_ymd] => 2024-12-18 02:33:04 [RateCDR] => 1 ) [2024-12-18 02:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 23:33:04' and `end` < '2024-12-18 02:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 02:33:16] Production.INFO: count ==237 [2024-12-18 02:33:17] Production.ERROR: pbx CDR StartTime 2024-12-17 23:33:04 - End Time 2024-12-18 02:33:04 [2024-12-18 02:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045115', 'tblTempUsageDetail_20' ) start [2024-12-18 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045115', 'tblTempUsageDetail_20' ) end [2024-12-18 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045115', 'tblTempVendorCDR_20' ) start [2024-12-18 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045115', 'tblTempVendorCDR_20' ) end [2024-12-18 02:33:17] Production.INFO: ProcessCDR(1,14045115,1,1,2) [2024-12-18 02:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:33:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:33:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045115', 'tblTempUsageDetail_20' ) start [2024-12-18 02:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045115', 'tblTempUsageDetail_20' ) end [2024-12-18 02:33:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 02:33:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 02:33:20] Production.INFO: ==1012== Releasing lock... [2024-12-18 02:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 02:33:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-18 02:34:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 23:34:04 [end_date_ymd] => 2024-12-18 02:34:04 [RateCDR] => 1 ) [2024-12-18 02:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 23:34:04' and `end` < '2024-12-18 02:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 02:34:16] Production.INFO: count ==237 [2024-12-18 02:34:16] Production.ERROR: pbx CDR StartTime 2024-12-17 23:34:04 - End Time 2024-12-18 02:34:04 [2024-12-18 02:34:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 02:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045120', 'tblTempUsageDetail_20' ) start [2024-12-18 02:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045120', 'tblTempUsageDetail_20' ) end [2024-12-18 02:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045120', 'tblTempVendorCDR_20' ) start [2024-12-18 02:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045120', 'tblTempVendorCDR_20' ) end [2024-12-18 02:34:16] Production.INFO: ProcessCDR(1,14045120,1,1,2) [2024-12-18 02:34:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:34:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:34:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:34:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:34:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045120', 'tblTempUsageDetail_20' ) start [2024-12-18 02:34:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045120', 'tblTempUsageDetail_20' ) end [2024-12-18 02:34:19] Production.ERROR: pbx prc_insertCDR start [2024-12-18 02:34:19] Production.ERROR: pbx prc_insertCDR end [2024-12-18 02:34:19] Production.INFO: ==1086== Releasing lock... [2024-12-18 02:34:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 02:34:19] Production.INFO: 29.25 MB #Memory Used# [2024-12-18 02:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 23:35:05 [end_date_ymd] => 2024-12-18 02:35:05 [RateCDR] => 1 ) [2024-12-18 02:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 23:35:05' and `end` < '2024-12-18 02:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 02:35:17] Production.INFO: count ==237 [2024-12-18 02:35:17] Production.ERROR: pbx CDR StartTime 2024-12-17 23:35:05 - End Time 2024-12-18 02:35:05 [2024-12-18 02:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045125', 'tblTempUsageDetail_20' ) start [2024-12-18 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045125', 'tblTempUsageDetail_20' ) end [2024-12-18 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045125', 'tblTempVendorCDR_20' ) start [2024-12-18 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045125', 'tblTempVendorCDR_20' ) end [2024-12-18 02:35:17] Production.INFO: ProcessCDR(1,14045125,1,1,2) [2024-12-18 02:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:35:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:35:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045125', 'tblTempUsageDetail_20' ) start [2024-12-18 02:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045125', 'tblTempUsageDetail_20' ) end [2024-12-18 02:35:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 02:35:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 02:35:20] Production.INFO: ==1217== Releasing lock... [2024-12-18 02:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 02:35:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-18 02:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 23:36:05 [end_date_ymd] => 2024-12-18 02:36:05 [RateCDR] => 1 ) [2024-12-18 02:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 23:36:05' and `end` < '2024-12-18 02:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 02:36:17] Production.INFO: count ==236 [2024-12-18 02:36:17] Production.ERROR: pbx CDR StartTime 2024-12-17 23:36:05 - End Time 2024-12-18 02:36:05 [2024-12-18 02:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 02:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045130', 'tblTempUsageDetail_20' ) start [2024-12-18 02:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045130', 'tblTempUsageDetail_20' ) end [2024-12-18 02:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045130', 'tblTempVendorCDR_20' ) start [2024-12-18 02:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045130', 'tblTempVendorCDR_20' ) end [2024-12-18 02:36:17] Production.INFO: ProcessCDR(1,14045130,1,1,2) [2024-12-18 02:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045130', 'tblTempUsageDetail_20' ) start [2024-12-18 02:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045130', 'tblTempUsageDetail_20' ) end [2024-12-18 02:36:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 02:36:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 02:36:21] Production.INFO: ==1306== Releasing lock... [2024-12-18 02:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 02:36:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-18 02:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 23:37:04 [end_date_ymd] => 2024-12-18 02:37:04 [RateCDR] => 1 ) [2024-12-18 02: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` >= '2024-12-17 23:37:04' and `end` < '2024-12-18 02: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 ,'') [2024-12-18 02:37:18] Production.INFO: count ==236 [2024-12-18 02:37:18] Production.ERROR: pbx CDR StartTime 2024-12-17 23:37:04 - End Time 2024-12-18 02:37:04 [2024-12-18 02:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045135', 'tblTempUsageDetail_20' ) start [2024-12-18 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045135', 'tblTempUsageDetail_20' ) end [2024-12-18 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045135', 'tblTempVendorCDR_20' ) start [2024-12-18 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045135', 'tblTempVendorCDR_20' ) end [2024-12-18 02:37:18] Production.INFO: ProcessCDR(1,14045135,1,1,2) [2024-12-18 02:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045135', 'tblTempUsageDetail_20' ) start [2024-12-18 02:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045135', 'tblTempUsageDetail_20' ) end [2024-12-18 02:37:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 02:37:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 02:37:21] Production.INFO: ==1382== Releasing lock... [2024-12-18 02:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 02:37:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-18 02:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 23:38:05 [end_date_ymd] => 2024-12-18 02:38:05 [RateCDR] => 1 ) [2024-12-18 02:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 23:38:05' and `end` < '2024-12-18 02:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 02:38:17] Production.INFO: count ==236 [2024-12-18 02:38:17] Production.ERROR: pbx CDR StartTime 2024-12-17 23:38:05 - End Time 2024-12-18 02:38:05 [2024-12-18 02:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 02:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045140', 'tblTempUsageDetail_20' ) start [2024-12-18 02:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045140', 'tblTempUsageDetail_20' ) end [2024-12-18 02:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045140', 'tblTempVendorCDR_20' ) start [2024-12-18 02:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045140', 'tblTempVendorCDR_20' ) end [2024-12-18 02:38:17] Production.INFO: ProcessCDR(1,14045140,1,1,2) [2024-12-18 02:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045140', 'tblTempUsageDetail_20' ) start [2024-12-18 02:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045140', 'tblTempUsageDetail_20' ) end [2024-12-18 02:38:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 02:38:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 02:38:20] Production.INFO: ==1456== Releasing lock... [2024-12-18 02:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 02:38:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-18 02:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 23:39:04 [end_date_ymd] => 2024-12-18 02:39:04 [RateCDR] => 1 ) [2024-12-18 02:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 23:39:04' and `end` < '2024-12-18 02:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 02:39:17] Production.INFO: count ==236 [2024-12-18 02:39:17] Production.ERROR: pbx CDR StartTime 2024-12-17 23:39:04 - End Time 2024-12-18 02:39:04 [2024-12-18 02:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045145', 'tblTempUsageDetail_20' ) start [2024-12-18 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045145', 'tblTempUsageDetail_20' ) end [2024-12-18 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045145', 'tblTempVendorCDR_20' ) start [2024-12-18 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045145', 'tblTempVendorCDR_20' ) end [2024-12-18 02:39:17] Production.INFO: ProcessCDR(1,14045145,1,1,2) [2024-12-18 02:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045145', 'tblTempUsageDetail_20' ) start [2024-12-18 02:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045145', 'tblTempUsageDetail_20' ) end [2024-12-18 02:39:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 02:39:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 02:39:20] Production.INFO: ==1565== Releasing lock... [2024-12-18 02:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 02:39:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-18 02:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 23:40:06 [end_date_ymd] => 2024-12-18 02:40:06 [RateCDR] => 1 ) [2024-12-18 02:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 23:40:06' and `end` < '2024-12-18 02:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 02:40:18] Production.INFO: count ==245 [2024-12-18 02:40:18] Production.ERROR: pbx CDR StartTime 2024-12-17 23:40:06 - End Time 2024-12-18 02:40:06 [2024-12-18 02:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045151', 'tblTempUsageDetail_20' ) start [2024-12-18 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045151', 'tblTempUsageDetail_20' ) end [2024-12-18 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045151', 'tblTempVendorCDR_20' ) start [2024-12-18 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045151', 'tblTempVendorCDR_20' ) end [2024-12-18 02:40:18] Production.INFO: ProcessCDR(1,14045151,1,1,2) [2024-12-18 02:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045151', 'tblTempUsageDetail_20' ) start [2024-12-18 02:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045151', 'tblTempUsageDetail_20' ) end [2024-12-18 02:40:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 02:40:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 02:40:21] Production.INFO: ==1643== Releasing lock... [2024-12-18 02:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 02:40:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-18 02:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 23:41:05 [end_date_ymd] => 2024-12-18 02:41:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-17 23:41:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 02:41:17] Production.INFO: count ==248 [2024-12-18 02:41:17] Production.ERROR: pbx CDR StartTime 2024-12-17 23:41:05 - End Time 2024-12-18 02:41:05 [2024-12-18 02:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 02:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045156', 'tblTempUsageDetail_20' ) start [2024-12-18 02:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045156', 'tblTempUsageDetail_20' ) end [2024-12-18 02:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045156', 'tblTempVendorCDR_20' ) start [2024-12-18 02:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045156', 'tblTempVendorCDR_20' ) end [2024-12-18 02:41:17] Production.INFO: ProcessCDR(1,14045156,1,1,2) [2024-12-18 02:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045156', 'tblTempUsageDetail_20' ) start [2024-12-18 02:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045156', 'tblTempUsageDetail_20' ) end [2024-12-18 02:41:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 02:41:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 02:41:20] Production.INFO: ==1720== Releasing lock... [2024-12-18 02:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 02:41:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-18 02:42:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 23:42:04 [end_date_ymd] => 2024-12-18 02:42:04 [RateCDR] => 1 ) [2024-12-18 02:42:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 23:42:04' and `end` < '2024-12-18 02:42:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 02:42:16] Production.INFO: count ==248 [2024-12-18 02:42:16] Production.ERROR: pbx CDR StartTime 2024-12-17 23:42:04 - End Time 2024-12-18 02:42:04 [2024-12-18 02:42:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 02:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045161', 'tblTempUsageDetail_20' ) start [2024-12-18 02:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045161', 'tblTempUsageDetail_20' ) end [2024-12-18 02:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045161', 'tblTempVendorCDR_20' ) start [2024-12-18 02:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045161', 'tblTempVendorCDR_20' ) end [2024-12-18 02:42:16] Production.INFO: ProcessCDR(1,14045161,1,1,2) [2024-12-18 02:42:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:42:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:42:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:42:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:42:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045161', 'tblTempUsageDetail_20' ) start [2024-12-18 02:42:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045161', 'tblTempUsageDetail_20' ) end [2024-12-18 02:42:19] Production.ERROR: pbx prc_insertCDR start [2024-12-18 02:42:19] Production.ERROR: pbx prc_insertCDR end [2024-12-18 02:42:19] Production.INFO: ==1792== Releasing lock... [2024-12-18 02:42:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 02:42:19] Production.INFO: 29.25 MB #Memory Used# [2024-12-18 02:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 23:43:04 [end_date_ymd] => 2024-12-18 02:43:04 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-17 23:43:04' and `end` < '2024-12-18 02:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 02:43:17] Production.INFO: count ==248 [2024-12-18 02:43:17] Production.ERROR: pbx CDR StartTime 2024-12-17 23:43:04 - End Time 2024-12-18 02:43:04 [2024-12-18 02:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045166', 'tblTempUsageDetail_20' ) start [2024-12-18 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045166', 'tblTempUsageDetail_20' ) end [2024-12-18 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045166', 'tblTempVendorCDR_20' ) start [2024-12-18 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045166', 'tblTempVendorCDR_20' ) end [2024-12-18 02:43:17] Production.INFO: ProcessCDR(1,14045166,1,1,2) [2024-12-18 02:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045166', 'tblTempUsageDetail_20' ) start [2024-12-18 02:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045166', 'tblTempUsageDetail_20' ) end [2024-12-18 02:43:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 02:43:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 02:43:20] Production.INFO: ==1874== Releasing lock... [2024-12-18 02:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 02:43:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-18 02:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 23:44:05 [end_date_ymd] => 2024-12-18 02:44:05 [RateCDR] => 1 ) [2024-12-18 02:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 23:44:05' and `end` < '2024-12-18 02:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 02:44:17] Production.INFO: count ==250 [2024-12-18 02:44:17] Production.ERROR: pbx CDR StartTime 2024-12-17 23:44:05 - End Time 2024-12-18 02:44:05 [2024-12-18 02:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 02:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045171', 'tblTempUsageDetail_20' ) start [2024-12-18 02:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045171', 'tblTempUsageDetail_20' ) end [2024-12-18 02:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045171', 'tblTempVendorCDR_20' ) start [2024-12-18 02:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045171', 'tblTempVendorCDR_20' ) end [2024-12-18 02:44:17] Production.INFO: ProcessCDR(1,14045171,1,1,2) [2024-12-18 02:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045171', 'tblTempUsageDetail_20' ) start [2024-12-18 02:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045171', 'tblTempUsageDetail_20' ) end [2024-12-18 02:44:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 02:44:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 02:44:20] Production.INFO: ==1952== Releasing lock... [2024-12-18 02:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 02:44:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-18 02:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 23:45:04 [end_date_ymd] => 2024-12-18 02:45:04 [RateCDR] => 1 ) [2024-12-18 02:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 23:45:04' and `end` < '2024-12-18 02:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 02:45:16] Production.INFO: count ==250 [2024-12-18 02:45:16] Production.ERROR: pbx CDR StartTime 2024-12-17 23:45:04 - End Time 2024-12-18 02:45:04 [2024-12-18 02:45:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 02:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045176', 'tblTempUsageDetail_20' ) start [2024-12-18 02:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045176', 'tblTempUsageDetail_20' ) end [2024-12-18 02:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045176', 'tblTempVendorCDR_20' ) start [2024-12-18 02:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045176', 'tblTempVendorCDR_20' ) end [2024-12-18 02:45:16] Production.INFO: ProcessCDR(1,14045176,1,1,2) [2024-12-18 02:45:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:45:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:45:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:45:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:45:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045176', 'tblTempUsageDetail_20' ) start [2024-12-18 02:45:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045176', 'tblTempUsageDetail_20' ) end [2024-12-18 02:45:19] Production.ERROR: pbx prc_insertCDR start [2024-12-18 02:45:19] Production.ERROR: pbx prc_insertCDR end [2024-12-18 02:45:19] Production.INFO: ==2023== Releasing lock... [2024-12-18 02:45:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 02:45:19] Production.INFO: 29.25 MB #Memory Used# [2024-12-18 02:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 23:46:05 [end_date_ymd] => 2024-12-18 02:46:05 [RateCDR] => 1 ) [2024-12-18 02:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 23:46:05' and `end` < '2024-12-18 02:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 02:46:18] Production.INFO: count ==250 [2024-12-18 02:46:18] Production.ERROR: pbx CDR StartTime 2024-12-17 23:46:05 - End Time 2024-12-18 02:46:05 [2024-12-18 02:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045181', 'tblTempUsageDetail_20' ) start [2024-12-18 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045181', 'tblTempUsageDetail_20' ) end [2024-12-18 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045181', 'tblTempVendorCDR_20' ) start [2024-12-18 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045181', 'tblTempVendorCDR_20' ) end [2024-12-18 02:46:18] Production.INFO: ProcessCDR(1,14045181,1,1,2) [2024-12-18 02:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045181', 'tblTempUsageDetail_20' ) start [2024-12-18 02:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045181', 'tblTempUsageDetail_20' ) end [2024-12-18 02:46:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 02:46:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 02:46:21] Production.INFO: ==2097== Releasing lock... [2024-12-18 02:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 02:46:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-18 02:47:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 23:47:04 [end_date_ymd] => 2024-12-18 02:47:04 [RateCDR] => 1 ) [2024-12-18 02:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 23:47:04' and `end` < '2024-12-18 02:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 02:47:16] Production.INFO: count ==250 [2024-12-18 02:47:16] Production.ERROR: pbx CDR StartTime 2024-12-17 23:47:04 - End Time 2024-12-18 02:47:04 [2024-12-18 02:47:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 02:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045186', 'tblTempUsageDetail_20' ) start [2024-12-18 02:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045186', 'tblTempUsageDetail_20' ) end [2024-12-18 02:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045186', 'tblTempVendorCDR_20' ) start [2024-12-18 02:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045186', 'tblTempVendorCDR_20' ) end [2024-12-18 02:47:16] Production.INFO: ProcessCDR(1,14045186,1,1,2) [2024-12-18 02:47:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:47:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:47:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:47:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:47:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045186', 'tblTempUsageDetail_20' ) start [2024-12-18 02:47:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045186', 'tblTempUsageDetail_20' ) end [2024-12-18 02:47:19] Production.ERROR: pbx prc_insertCDR start [2024-12-18 02:47:19] Production.ERROR: pbx prc_insertCDR end [2024-12-18 02:47:19] Production.INFO: ==2171== Releasing lock... [2024-12-18 02:47:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 02:47:19] Production.INFO: 29.25 MB #Memory Used# [2024-12-18 02:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 23:48:05 [end_date_ymd] => 2024-12-18 02:48:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-17 23:48:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 02:48:17] Production.INFO: count ==250 [2024-12-18 02:48:17] Production.ERROR: pbx CDR StartTime 2024-12-17 23:48:05 - End Time 2024-12-18 02:48:05 [2024-12-18 02:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 02:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045191', 'tblTempUsageDetail_20' ) start [2024-12-18 02:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045191', 'tblTempUsageDetail_20' ) end [2024-12-18 02:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045191', 'tblTempVendorCDR_20' ) start [2024-12-18 02:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045191', 'tblTempVendorCDR_20' ) end [2024-12-18 02:48:17] Production.INFO: ProcessCDR(1,14045191,1,1,2) [2024-12-18 02:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045191', 'tblTempUsageDetail_20' ) start [2024-12-18 02:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045191', 'tblTempUsageDetail_20' ) end [2024-12-18 02:48:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 02:48:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 02:48:20] Production.INFO: ==2254== Releasing lock... [2024-12-18 02:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 02:48:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-18 02:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 23:49:05 [end_date_ymd] => 2024-12-18 02:49:05 [RateCDR] => 1 ) [2024-12-18 02:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 23:49:05' and `end` < '2024-12-18 02:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 02:49:17] Production.INFO: count ==250 [2024-12-18 02:49:17] Production.ERROR: pbx CDR StartTime 2024-12-17 23:49:05 - End Time 2024-12-18 02:49:05 [2024-12-18 02:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 02:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045196', 'tblTempUsageDetail_20' ) start [2024-12-18 02:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045196', 'tblTempUsageDetail_20' ) end [2024-12-18 02:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045196', 'tblTempVendorCDR_20' ) start [2024-12-18 02:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045196', 'tblTempVendorCDR_20' ) end [2024-12-18 02:49:17] Production.INFO: ProcessCDR(1,14045196,1,1,2) [2024-12-18 02:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045196', 'tblTempUsageDetail_20' ) start [2024-12-18 02:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045196', 'tblTempUsageDetail_20' ) end [2024-12-18 02:49:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 02:49:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 02:49:20] Production.INFO: ==2325== Releasing lock... [2024-12-18 02:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 02:49:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-18 02:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 23:50:05 [end_date_ymd] => 2024-12-18 02:50:05 [RateCDR] => 1 ) [2024-12-18 02: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` >= '2024-12-17 23:50:05' and `end` < '2024-12-18 02: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 ,'') [2024-12-18 02:50:17] Production.INFO: count ==254 [2024-12-18 02:50:17] Production.ERROR: pbx CDR StartTime 2024-12-17 23:50:05 - End Time 2024-12-18 02:50:05 [2024-12-18 02:50:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 02:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045201', 'tblTempUsageDetail_20' ) start [2024-12-18 02:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045201', 'tblTempUsageDetail_20' ) end [2024-12-18 02:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045201', 'tblTempVendorCDR_20' ) start [2024-12-18 02:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045201', 'tblTempVendorCDR_20' ) end [2024-12-18 02:50:17] Production.INFO: ProcessCDR(1,14045201,1,1,2) [2024-12-18 02:50:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:50:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:50:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:50:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045201', 'tblTempUsageDetail_20' ) start [2024-12-18 02:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045201', 'tblTempUsageDetail_20' ) end [2024-12-18 02:50:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 02:50:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 02:50:20] Production.INFO: ==2403== Releasing lock... [2024-12-18 02:50:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 02:50:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-18 02:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 23:51:05 [end_date_ymd] => 2024-12-18 02:51:05 [RateCDR] => 1 ) [2024-12-18 02:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 23:51:05' and `end` < '2024-12-18 02:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 02:51:17] Production.INFO: count ==254 [2024-12-18 02:51:17] Production.ERROR: pbx CDR StartTime 2024-12-17 23:51:05 - End Time 2024-12-18 02:51:05 [2024-12-18 02:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045207', 'tblTempUsageDetail_20' ) start [2024-12-18 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045207', 'tblTempUsageDetail_20' ) end [2024-12-18 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045207', 'tblTempVendorCDR_20' ) start [2024-12-18 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045207', 'tblTempVendorCDR_20' ) end [2024-12-18 02:51:17] Production.INFO: ProcessCDR(1,14045207,1,1,2) [2024-12-18 02:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045207', 'tblTempUsageDetail_20' ) start [2024-12-18 02:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045207', 'tblTempUsageDetail_20' ) end [2024-12-18 02:51:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 02:51:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 02:51:20] Production.INFO: ==2517== Releasing lock... [2024-12-18 02:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 02:51:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-18 02:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 23:52:05 [end_date_ymd] => 2024-12-18 02:52:05 [RateCDR] => 1 ) [2024-12-18 02:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 23:52:05' and `end` < '2024-12-18 02:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 02:52:18] Production.INFO: count ==253 [2024-12-18 02:52:18] Production.ERROR: pbx CDR StartTime 2024-12-17 23:52:05 - End Time 2024-12-18 02:52:05 [2024-12-18 02:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045212', 'tblTempUsageDetail_20' ) start [2024-12-18 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045212', 'tblTempUsageDetail_20' ) end [2024-12-18 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045212', 'tblTempVendorCDR_20' ) start [2024-12-18 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045212', 'tblTempVendorCDR_20' ) end [2024-12-18 02:52:18] Production.INFO: ProcessCDR(1,14045212,1,1,2) [2024-12-18 02:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045212', 'tblTempUsageDetail_20' ) start [2024-12-18 02:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045212', 'tblTempUsageDetail_20' ) end [2024-12-18 02:52:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 02:52:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 02:52:21] Production.INFO: ==2593== Releasing lock... [2024-12-18 02:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 02:52:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-18 02:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 23:53:05 [end_date_ymd] => 2024-12-18 02:53:05 [RateCDR] => 1 ) [2024-12-18 02:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 23:53:05' and `end` < '2024-12-18 02:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 02:53:17] Production.INFO: count ==253 [2024-12-18 02:53:17] Production.ERROR: pbx CDR StartTime 2024-12-17 23:53:05 - End Time 2024-12-18 02:53:05 [2024-12-18 02:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 02:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045217', 'tblTempUsageDetail_20' ) start [2024-12-18 02:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045217', 'tblTempUsageDetail_20' ) end [2024-12-18 02:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045217', 'tblTempVendorCDR_20' ) start [2024-12-18 02:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045217', 'tblTempVendorCDR_20' ) end [2024-12-18 02:53:17] Production.INFO: ProcessCDR(1,14045217,1,1,2) [2024-12-18 02:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045217', 'tblTempUsageDetail_20' ) start [2024-12-18 02:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045217', 'tblTempUsageDetail_20' ) end [2024-12-18 02:53:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 02:53:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 02:53:20] Production.INFO: ==2669== Releasing lock... [2024-12-18 02:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 02:53:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-18 02:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 23:54:05 [end_date_ymd] => 2024-12-18 02:54:05 [RateCDR] => 1 ) [2024-12-18 02:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 23:54:05' and `end` < '2024-12-18 02:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 02:54:17] Production.INFO: count ==253 [2024-12-18 02:54:17] Production.ERROR: pbx CDR StartTime 2024-12-17 23:54:05 - End Time 2024-12-18 02:54:05 [2024-12-18 02:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 02:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045222', 'tblTempUsageDetail_20' ) start [2024-12-18 02:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045222', 'tblTempUsageDetail_20' ) end [2024-12-18 02:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045222', 'tblTempVendorCDR_20' ) start [2024-12-18 02:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045222', 'tblTempVendorCDR_20' ) end [2024-12-18 02:54:17] Production.INFO: ProcessCDR(1,14045222,1,1,2) [2024-12-18 02:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045222', 'tblTempUsageDetail_20' ) start [2024-12-18 02:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045222', 'tblTempUsageDetail_20' ) end [2024-12-18 02:54:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 02:54:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 02:54:20] Production.INFO: ==2742== Releasing lock... [2024-12-18 02:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 02:54:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-18 02:55:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 23:55:04 [end_date_ymd] => 2024-12-18 02:55:04 [RateCDR] => 1 ) [2024-12-18 02:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 23:55:04' and `end` < '2024-12-18 02:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 02:55:16] Production.INFO: count ==252 [2024-12-18 02:55:16] Production.ERROR: pbx CDR StartTime 2024-12-17 23:55:04 - End Time 2024-12-18 02:55:04 [2024-12-18 02:55:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 02:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045227', 'tblTempUsageDetail_20' ) start [2024-12-18 02:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045227', 'tblTempUsageDetail_20' ) end [2024-12-18 02:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045227', 'tblTempVendorCDR_20' ) start [2024-12-18 02:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045227', 'tblTempVendorCDR_20' ) end [2024-12-18 02:55:16] Production.INFO: ProcessCDR(1,14045227,1,1,2) [2024-12-18 02:55:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:55:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:55:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:55:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:55:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045227', 'tblTempUsageDetail_20' ) start [2024-12-18 02:55:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045227', 'tblTempUsageDetail_20' ) end [2024-12-18 02:55:19] Production.ERROR: pbx prc_insertCDR start [2024-12-18 02:55:19] Production.ERROR: pbx prc_insertCDR end [2024-12-18 02:55:20] Production.INFO: ==2817== Releasing lock... [2024-12-18 02:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 02:55:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-18 02:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 23:56:05 [end_date_ymd] => 2024-12-18 02:56:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-17 23:56:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 02:56:17] Production.INFO: count ==252 [2024-12-18 02:56:17] Production.ERROR: pbx CDR StartTime 2024-12-17 23:56:05 - End Time 2024-12-18 02:56:05 [2024-12-18 02:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045232', 'tblTempUsageDetail_20' ) start [2024-12-18 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045232', 'tblTempUsageDetail_20' ) end [2024-12-18 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045232', 'tblTempVendorCDR_20' ) start [2024-12-18 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045232', 'tblTempVendorCDR_20' ) end [2024-12-18 02:56:17] Production.INFO: ProcessCDR(1,14045232,1,1,2) [2024-12-18 02:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045232', 'tblTempUsageDetail_20' ) start [2024-12-18 02:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045232', 'tblTempUsageDetail_20' ) end [2024-12-18 02:56:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 02:56:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 02:56:20] Production.INFO: ==2890== Releasing lock... [2024-12-18 02:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 02:56:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-18 02:57:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 23:57:04 [end_date_ymd] => 2024-12-18 02:57:04 [RateCDR] => 1 ) [2024-12-18 02:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 23:57:04' and `end` < '2024-12-18 02:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 02:57:16] Production.INFO: count ==252 [2024-12-18 02:57:16] Production.ERROR: pbx CDR StartTime 2024-12-17 23:57:04 - End Time 2024-12-18 02:57:04 [2024-12-18 02:57:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 02:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045237', 'tblTempUsageDetail_20' ) start [2024-12-18 02:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045237', 'tblTempUsageDetail_20' ) end [2024-12-18 02:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045237', 'tblTempVendorCDR_20' ) start [2024-12-18 02:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045237', 'tblTempVendorCDR_20' ) end [2024-12-18 02:57:16] Production.INFO: ProcessCDR(1,14045237,1,1,2) [2024-12-18 02:57:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:57:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:57:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:57:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:57:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045237', 'tblTempUsageDetail_20' ) start [2024-12-18 02:57:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045237', 'tblTempUsageDetail_20' ) end [2024-12-18 02:57:19] Production.ERROR: pbx prc_insertCDR start [2024-12-18 02:57:19] Production.ERROR: pbx prc_insertCDR end [2024-12-18 02:57:19] Production.INFO: ==2967== Releasing lock... [2024-12-18 02:57:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 02:57:19] Production.INFO: 29.25 MB #Memory Used# [2024-12-18 02:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 23:58:05 [end_date_ymd] => 2024-12-18 02:58:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-17 23:58:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 02:58:18] Production.INFO: count ==251 [2024-12-18 02:58:18] Production.ERROR: pbx CDR StartTime 2024-12-17 23:58:05 - End Time 2024-12-18 02:58:05 [2024-12-18 02:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045242', 'tblTempUsageDetail_20' ) start [2024-12-18 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045242', 'tblTempUsageDetail_20' ) end [2024-12-18 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045242', 'tblTempVendorCDR_20' ) start [2024-12-18 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045242', 'tblTempVendorCDR_20' ) end [2024-12-18 02:58:18] Production.INFO: ProcessCDR(1,14045242,1,1,2) [2024-12-18 02:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045242', 'tblTempUsageDetail_20' ) start [2024-12-18 02:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045242', 'tblTempUsageDetail_20' ) end [2024-12-18 02:58:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 02:58:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 02:58:21] Production.INFO: ==3046== Releasing lock... [2024-12-18 02:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 02:58:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-18 02:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-17 23:59:04 [end_date_ymd] => 2024-12-18 02:59:04 [RateCDR] => 1 ) [2024-12-18 02:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-17 23:59:04' and `end` < '2024-12-18 02:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 02:59:17] Production.INFO: count ==249 [2024-12-18 02:59:17] Production.ERROR: pbx CDR StartTime 2024-12-17 23:59:04 - End Time 2024-12-18 02:59:04 [2024-12-18 02:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 02:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045247', 'tblTempUsageDetail_20' ) start [2024-12-18 02:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045247', 'tblTempUsageDetail_20' ) end [2024-12-18 02:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045247', 'tblTempVendorCDR_20' ) start [2024-12-18 02:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045247', 'tblTempVendorCDR_20' ) end [2024-12-18 02:59:17] Production.INFO: ProcessCDR(1,14045247,1,1,2) [2024-12-18 02:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 02:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 02:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045247', 'tblTempUsageDetail_20' ) start [2024-12-18 02:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045247', 'tblTempUsageDetail_20' ) end [2024-12-18 02:59:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 02:59:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 02:59:20] Production.INFO: ==3127== Releasing lock... [2024-12-18 02:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 02:59:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-18 03:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 00:00:05 [end_date_ymd] => 2024-12-18 03:00:05 [RateCDR] => 1 ) [2024-12-18 03:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 00:00:05' and `end` < '2024-12-18 03:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 03:00:17] Production.INFO: count ==255 [2024-12-18 03:00:17] Production.ERROR: pbx CDR StartTime 2024-12-18 00:00:05 - End Time 2024-12-18 03:00:05 [2024-12-18 03:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 03:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045252', 'tblTempUsageDetail_20' ) start [2024-12-18 03:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045252', 'tblTempUsageDetail_20' ) end [2024-12-18 03:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045252', 'tblTempVendorCDR_20' ) start [2024-12-18 03:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045252', 'tblTempVendorCDR_20' ) end [2024-12-18 03:00:17] Production.INFO: ProcessCDR(1,14045252,1,1,2) [2024-12-18 03:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:00:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:00:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045252', 'tblTempUsageDetail_20' ) start [2024-12-18 03:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045252', 'tblTempUsageDetail_20' ) end [2024-12-18 03:00:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 03:00:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 03:00:21] Production.INFO: ==3205== Releasing lock... [2024-12-18 03:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 03:00:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-18 03:01:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 00:01:04 [end_date_ymd] => 2024-12-18 03:01:04 [RateCDR] => 1 ) [2024-12-18 03: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` >= '2024-12-18 00:01:04' and `end` < '2024-12-18 03: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 ,'') [2024-12-18 03:01:18] Production.INFO: count ==265 [2024-12-18 03:01:18] Production.ERROR: pbx CDR StartTime 2024-12-18 00:01:04 - End Time 2024-12-18 03:01:04 [2024-12-18 03:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045258', 'tblTempUsageDetail_20' ) start [2024-12-18 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045258', 'tblTempUsageDetail_20' ) end [2024-12-18 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045258', 'tblTempVendorCDR_20' ) start [2024-12-18 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045258', 'tblTempVendorCDR_20' ) end [2024-12-18 03:01:18] Production.INFO: ProcessCDR(1,14045258,1,1,2) [2024-12-18 03:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045258', 'tblTempUsageDetail_20' ) start [2024-12-18 03:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045258', 'tblTempUsageDetail_20' ) end [2024-12-18 03:01:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 03:01:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 03:01:21] Production.INFO: ==3299== Releasing lock... [2024-12-18 03:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 03:01:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-18 03:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 00:02:05 [end_date_ymd] => 2024-12-18 03:02:05 [RateCDR] => 1 ) [2024-12-18 03: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` >= '2024-12-18 00:02:05' and `end` < '2024-12-18 03: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 ,'') [2024-12-18 03:02:18] Production.INFO: count ==265 [2024-12-18 03:02:18] Production.ERROR: pbx CDR StartTime 2024-12-18 00:02:05 - End Time 2024-12-18 03:02:05 [2024-12-18 03:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045263', 'tblTempUsageDetail_20' ) start [2024-12-18 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045263', 'tblTempUsageDetail_20' ) end [2024-12-18 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045263', 'tblTempVendorCDR_20' ) start [2024-12-18 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045263', 'tblTempVendorCDR_20' ) end [2024-12-18 03:02:18] Production.INFO: ProcessCDR(1,14045263,1,1,2) [2024-12-18 03:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045263', 'tblTempUsageDetail_20' ) start [2024-12-18 03:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045263', 'tblTempUsageDetail_20' ) end [2024-12-18 03:02:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 03:02:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 03:02:21] Production.INFO: ==3458== Releasing lock... [2024-12-18 03:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 03:02:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-18 03:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 00:03:05 [end_date_ymd] => 2024-12-18 03:03:05 [RateCDR] => 1 ) [2024-12-18 03:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 00:03:05' and `end` < '2024-12-18 03:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 03:03:17] Production.INFO: count ==263 [2024-12-18 03:03:17] Production.ERROR: pbx CDR StartTime 2024-12-18 00:03:05 - End Time 2024-12-18 03:03:05 [2024-12-18 03:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045268', 'tblTempUsageDetail_20' ) start [2024-12-18 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045268', 'tblTempUsageDetail_20' ) end [2024-12-18 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045268', 'tblTempVendorCDR_20' ) start [2024-12-18 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045268', 'tblTempVendorCDR_20' ) end [2024-12-18 03:03:17] Production.INFO: ProcessCDR(1,14045268,1,1,2) [2024-12-18 03:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045268', 'tblTempUsageDetail_20' ) start [2024-12-18 03:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045268', 'tblTempUsageDetail_20' ) end [2024-12-18 03:03:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 03:03:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 03:03:20] Production.INFO: ==3530== Releasing lock... [2024-12-18 03:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 03:03:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-18 03:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 00:04:05 [end_date_ymd] => 2024-12-18 03:04:05 [RateCDR] => 1 ) [2024-12-18 03:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 00:04:05' and `end` < '2024-12-18 03:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 03:04:17] Production.INFO: count ==262 [2024-12-18 03:04:17] Production.ERROR: pbx CDR StartTime 2024-12-18 00:04:05 - End Time 2024-12-18 03:04:05 [2024-12-18 03:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 03:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045273', 'tblTempUsageDetail_20' ) start [2024-12-18 03:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045273', 'tblTempUsageDetail_20' ) end [2024-12-18 03:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045273', 'tblTempVendorCDR_20' ) start [2024-12-18 03:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045273', 'tblTempVendorCDR_20' ) end [2024-12-18 03:04:17] Production.INFO: ProcessCDR(1,14045273,1,1,2) [2024-12-18 03:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045273', 'tblTempUsageDetail_20' ) start [2024-12-18 03:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045273', 'tblTempUsageDetail_20' ) end [2024-12-18 03:04:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 03:04:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 03:04:20] Production.INFO: ==3606== Releasing lock... [2024-12-18 03:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 03:04:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-18 03:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 00:05:05 [end_date_ymd] => 2024-12-18 03:05:05 [RateCDR] => 1 ) [2024-12-18 03:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 00:05:05' and `end` < '2024-12-18 03:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 03:05:17] Production.INFO: count ==262 [2024-12-18 03:05:17] Production.ERROR: pbx CDR StartTime 2024-12-18 00:05:05 - End Time 2024-12-18 03:05:05 [2024-12-18 03:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045278', 'tblTempUsageDetail_20' ) start [2024-12-18 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045278', 'tblTempUsageDetail_20' ) end [2024-12-18 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045278', 'tblTempVendorCDR_20' ) start [2024-12-18 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045278', 'tblTempVendorCDR_20' ) end [2024-12-18 03:05:17] Production.INFO: ProcessCDR(1,14045278,1,1,2) [2024-12-18 03:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045278', 'tblTempUsageDetail_20' ) start [2024-12-18 03:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045278', 'tblTempUsageDetail_20' ) end [2024-12-18 03:05:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 03:05:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 03:05:20] Production.INFO: ==3687== Releasing lock... [2024-12-18 03:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 03:05:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-18 03:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 00:06:05 [end_date_ymd] => 2024-12-18 03:06:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 00:06:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 03:06:17] Production.INFO: count ==262 [2024-12-18 03:06:17] Production.ERROR: pbx CDR StartTime 2024-12-18 00:06:05 - End Time 2024-12-18 03:06:05 [2024-12-18 03:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 03:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045283', 'tblTempUsageDetail_20' ) start [2024-12-18 03:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045283', 'tblTempUsageDetail_20' ) end [2024-12-18 03:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045283', 'tblTempVendorCDR_20' ) start [2024-12-18 03:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045283', 'tblTempVendorCDR_20' ) end [2024-12-18 03:06:17] Production.INFO: ProcessCDR(1,14045283,1,1,2) [2024-12-18 03:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045283', 'tblTempUsageDetail_20' ) start [2024-12-18 03:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045283', 'tblTempUsageDetail_20' ) end [2024-12-18 03:06:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 03:06:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 03:06:20] Production.INFO: ==3876== Releasing lock... [2024-12-18 03:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 03:06:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-18 03:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 00:07:05 [end_date_ymd] => 2024-12-18 03:07:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 00:07:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 03:07:17] Production.INFO: count ==260 [2024-12-18 03:07:17] Production.ERROR: pbx CDR StartTime 2024-12-18 00:07:05 - End Time 2024-12-18 03:07:05 [2024-12-18 03:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045288', 'tblTempUsageDetail_20' ) start [2024-12-18 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045288', 'tblTempUsageDetail_20' ) end [2024-12-18 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045288', 'tblTempVendorCDR_20' ) start [2024-12-18 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045288', 'tblTempVendorCDR_20' ) end [2024-12-18 03:07:17] Production.INFO: ProcessCDR(1,14045288,1,1,2) [2024-12-18 03:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045288', 'tblTempUsageDetail_20' ) start [2024-12-18 03:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045288', 'tblTempUsageDetail_20' ) end [2024-12-18 03:07:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 03:07:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 03:07:20] Production.INFO: ==3956== Releasing lock... [2024-12-18 03:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 03:07:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-18 03:08:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 00:08:04 [end_date_ymd] => 2024-12-18 03:08:04 [RateCDR] => 1 ) [2024-12-18 03:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 00:08:04' and `end` < '2024-12-18 03:08:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 03:08:17] Production.INFO: count ==259 [2024-12-18 03:08:17] Production.ERROR: pbx CDR StartTime 2024-12-18 00:08:04 - End Time 2024-12-18 03:08:04 [2024-12-18 03:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 03:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045293', 'tblTempUsageDetail_20' ) start [2024-12-18 03:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045293', 'tblTempUsageDetail_20' ) end [2024-12-18 03:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045293', 'tblTempVendorCDR_20' ) start [2024-12-18 03:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045293', 'tblTempVendorCDR_20' ) end [2024-12-18 03:08:17] Production.INFO: ProcessCDR(1,14045293,1,1,2) [2024-12-18 03:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045293', 'tblTempUsageDetail_20' ) start [2024-12-18 03:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045293', 'tblTempUsageDetail_20' ) end [2024-12-18 03:08:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 03:08:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 03:08:20] Production.INFO: ==4033== Releasing lock... [2024-12-18 03:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 03:08:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-18 03:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 00:09:05 [end_date_ymd] => 2024-12-18 03:09:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 00:09:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 03:09:17] Production.INFO: count ==259 [2024-12-18 03:09:17] Production.ERROR: pbx CDR StartTime 2024-12-18 00:09:05 - End Time 2024-12-18 03:09:05 [2024-12-18 03:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045298', 'tblTempUsageDetail_20' ) start [2024-12-18 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045298', 'tblTempUsageDetail_20' ) end [2024-12-18 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045298', 'tblTempVendorCDR_20' ) start [2024-12-18 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045298', 'tblTempVendorCDR_20' ) end [2024-12-18 03:09:17] Production.INFO: ProcessCDR(1,14045298,1,1,2) [2024-12-18 03:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045298', 'tblTempUsageDetail_20' ) start [2024-12-18 03:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045298', 'tblTempUsageDetail_20' ) end [2024-12-18 03:09:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 03:09:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 03:09:20] Production.INFO: ==4195== Releasing lock... [2024-12-18 03:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 03:09:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-18 03:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 00:10:05 [end_date_ymd] => 2024-12-18 03:10:05 [RateCDR] => 1 ) [2024-12-18 03: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` >= '2024-12-18 00:10:05' and `end` < '2024-12-18 03: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 ,'') [2024-12-18 03:10:17] Production.INFO: count ==263 [2024-12-18 03:10:17] Production.ERROR: pbx CDR StartTime 2024-12-18 00:10:05 - End Time 2024-12-18 03:10:05 [2024-12-18 03:10:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 03:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045303', 'tblTempUsageDetail_20' ) start [2024-12-18 03:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045303', 'tblTempUsageDetail_20' ) end [2024-12-18 03:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045303', 'tblTempVendorCDR_20' ) start [2024-12-18 03:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045303', 'tblTempVendorCDR_20' ) end [2024-12-18 03:10:17] Production.INFO: ProcessCDR(1,14045303,1,1,2) [2024-12-18 03:10:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:10:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:10:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:10:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:10:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045303', 'tblTempUsageDetail_20' ) start [2024-12-18 03:10:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045303', 'tblTempUsageDetail_20' ) end [2024-12-18 03:10:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 03:10:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 03:10:20] Production.INFO: ==4273== Releasing lock... [2024-12-18 03:10:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 03:10:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-18 03:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 00:11:04 [end_date_ymd] => 2024-12-18 03:11:04 [RateCDR] => 1 ) [2024-12-18 03:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 00:11:04' and `end` < '2024-12-18 03:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 03:11:18] Production.INFO: count ==259 [2024-12-18 03:11:18] Production.ERROR: pbx CDR StartTime 2024-12-18 00:11:04 - End Time 2024-12-18 03:11:04 [2024-12-18 03:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045309', 'tblTempUsageDetail_20' ) start [2024-12-18 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045309', 'tblTempUsageDetail_20' ) end [2024-12-18 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045309', 'tblTempVendorCDR_20' ) start [2024-12-18 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045309', 'tblTempVendorCDR_20' ) end [2024-12-18 03:11:18] Production.INFO: ProcessCDR(1,14045309,1,1,2) [2024-12-18 03:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045309', 'tblTempUsageDetail_20' ) start [2024-12-18 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045309', 'tblTempUsageDetail_20' ) end [2024-12-18 03:11:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 03:11:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 03:11:21] Production.INFO: ==4353== Releasing lock... [2024-12-18 03:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 03:11:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-18 03:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 00:12:05 [end_date_ymd] => 2024-12-18 03:12:05 [RateCDR] => 1 ) [2024-12-18 03:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 00:12:05' and `end` < '2024-12-18 03:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 03:12:18] Production.INFO: count ==259 [2024-12-18 03:12:18] Production.ERROR: pbx CDR StartTime 2024-12-18 00:12:05 - End Time 2024-12-18 03:12:05 [2024-12-18 03:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045314', 'tblTempUsageDetail_20' ) start [2024-12-18 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045314', 'tblTempUsageDetail_20' ) end [2024-12-18 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045314', 'tblTempVendorCDR_20' ) start [2024-12-18 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045314', 'tblTempVendorCDR_20' ) end [2024-12-18 03:12:18] Production.INFO: ProcessCDR(1,14045314,1,1,2) [2024-12-18 03:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045314', 'tblTempUsageDetail_20' ) start [2024-12-18 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045314', 'tblTempUsageDetail_20' ) end [2024-12-18 03:12:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 03:12:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 03:12:21] Production.INFO: ==4435== Releasing lock... [2024-12-18 03:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 03:12:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-18 03:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 00:13:04 [end_date_ymd] => 2024-12-18 03:13:04 [RateCDR] => 1 ) [2024-12-18 03:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 00:13:04' and `end` < '2024-12-18 03:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 03:13:16] Production.INFO: count ==259 [2024-12-18 03:13:16] Production.ERROR: pbx CDR StartTime 2024-12-18 00:13:04 - End Time 2024-12-18 03:13:04 [2024-12-18 03:13:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 03:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045319', 'tblTempUsageDetail_20' ) start [2024-12-18 03:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045319', 'tblTempUsageDetail_20' ) end [2024-12-18 03:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045319', 'tblTempVendorCDR_20' ) start [2024-12-18 03:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045319', 'tblTempVendorCDR_20' ) end [2024-12-18 03:13:16] Production.INFO: ProcessCDR(1,14045319,1,1,2) [2024-12-18 03:13:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:13:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:13:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:13:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:13:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045319', 'tblTempUsageDetail_20' ) start [2024-12-18 03:13:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045319', 'tblTempUsageDetail_20' ) end [2024-12-18 03:13:19] Production.ERROR: pbx prc_insertCDR start [2024-12-18 03:13:19] Production.ERROR: pbx prc_insertCDR end [2024-12-18 03:13:19] Production.INFO: ==4598== Releasing lock... [2024-12-18 03:13:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 03:13:19] Production.INFO: 29.25 MB #Memory Used# [2024-12-18 03:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 00:14:05 [end_date_ymd] => 2024-12-18 03:14:05 [RateCDR] => 1 ) [2024-12-18 03:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 00:14:05' and `end` < '2024-12-18 03:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 03:14:18] Production.INFO: count ==259 [2024-12-18 03:14:18] Production.ERROR: pbx CDR StartTime 2024-12-18 00:14:05 - End Time 2024-12-18 03:14:05 [2024-12-18 03:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045324', 'tblTempUsageDetail_20' ) start [2024-12-18 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045324', 'tblTempUsageDetail_20' ) end [2024-12-18 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045324', 'tblTempVendorCDR_20' ) start [2024-12-18 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045324', 'tblTempVendorCDR_20' ) end [2024-12-18 03:14:18] Production.INFO: ProcessCDR(1,14045324,1,1,2) [2024-12-18 03:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045324', 'tblTempUsageDetail_20' ) start [2024-12-18 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045324', 'tblTempUsageDetail_20' ) end [2024-12-18 03:14:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 03:14:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 03:14:21] Production.INFO: ==4723== Releasing lock... [2024-12-18 03:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 03:14:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-18 03:15:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 00:15:04 [end_date_ymd] => 2024-12-18 03:15:04 [RateCDR] => 1 ) [2024-12-18 03: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` >= '2024-12-18 00:15:04' and `end` < '2024-12-18 03: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 ,'') [2024-12-18 03:15:16] Production.INFO: count ==259 [2024-12-18 03:15:16] Production.ERROR: pbx CDR StartTime 2024-12-18 00:15:04 - End Time 2024-12-18 03:15:04 [2024-12-18 03:15:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 03:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045329', 'tblTempUsageDetail_20' ) start [2024-12-18 03:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045329', 'tblTempUsageDetail_20' ) end [2024-12-18 03:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045329', 'tblTempVendorCDR_20' ) start [2024-12-18 03:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045329', 'tblTempVendorCDR_20' ) end [2024-12-18 03:15:16] Production.INFO: ProcessCDR(1,14045329,1,1,2) [2024-12-18 03:15:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:15:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:15:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:15:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:15:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045329', 'tblTempUsageDetail_20' ) start [2024-12-18 03:15:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045329', 'tblTempUsageDetail_20' ) end [2024-12-18 03:15:19] Production.ERROR: pbx prc_insertCDR start [2024-12-18 03:15:19] Production.ERROR: pbx prc_insertCDR end [2024-12-18 03:15:19] Production.INFO: ==4808== Releasing lock... [2024-12-18 03:15:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 03:15:19] Production.INFO: 29.25 MB #Memory Used# [2024-12-18 03:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 00:16:05 [end_date_ymd] => 2024-12-18 03:16:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 00:16:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 03:16:17] Production.INFO: count ==259 [2024-12-18 03:16:17] Production.ERROR: pbx CDR StartTime 2024-12-18 00:16:05 - End Time 2024-12-18 03:16:05 [2024-12-18 03:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045334', 'tblTempUsageDetail_20' ) start [2024-12-18 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045334', 'tblTempUsageDetail_20' ) end [2024-12-18 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045334', 'tblTempVendorCDR_20' ) start [2024-12-18 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045334', 'tblTempVendorCDR_20' ) end [2024-12-18 03:16:17] Production.INFO: ProcessCDR(1,14045334,1,1,2) [2024-12-18 03:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045334', 'tblTempUsageDetail_20' ) start [2024-12-18 03:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045334', 'tblTempUsageDetail_20' ) end [2024-12-18 03:16:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 03:16:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 03:16:20] Production.INFO: ==4892== Releasing lock... [2024-12-18 03:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 03:16:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-18 03:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 00:17:05 [end_date_ymd] => 2024-12-18 03:17:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 00:17:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 03:17:17] Production.INFO: count ==259 [2024-12-18 03:17:17] Production.ERROR: pbx CDR StartTime 2024-12-18 00:17:05 - End Time 2024-12-18 03:17:05 [2024-12-18 03:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045339', 'tblTempUsageDetail_20' ) start [2024-12-18 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045339', 'tblTempUsageDetail_20' ) end [2024-12-18 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045339', 'tblTempVendorCDR_20' ) start [2024-12-18 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045339', 'tblTempVendorCDR_20' ) end [2024-12-18 03:17:17] Production.INFO: ProcessCDR(1,14045339,1,1,2) [2024-12-18 03:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045339', 'tblTempUsageDetail_20' ) start [2024-12-18 03:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045339', 'tblTempUsageDetail_20' ) end [2024-12-18 03:17:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 03:17:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 03:17:20] Production.INFO: ==5053== Releasing lock... [2024-12-18 03:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 03:17:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-18 03:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 00:18:05 [end_date_ymd] => 2024-12-18 03:18:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 00:18:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 03:18:17] Production.INFO: count ==257 [2024-12-18 03:18:17] Production.ERROR: pbx CDR StartTime 2024-12-18 00:18:05 - End Time 2024-12-18 03:18:05 [2024-12-18 03:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045344', 'tblTempUsageDetail_20' ) start [2024-12-18 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045344', 'tblTempUsageDetail_20' ) end [2024-12-18 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045344', 'tblTempVendorCDR_20' ) start [2024-12-18 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045344', 'tblTempVendorCDR_20' ) end [2024-12-18 03:18:17] Production.INFO: ProcessCDR(1,14045344,1,1,2) [2024-12-18 03:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045344', 'tblTempUsageDetail_20' ) start [2024-12-18 03:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045344', 'tblTempUsageDetail_20' ) end [2024-12-18 03:18:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 03:18:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 03:18:20] Production.INFO: ==5142== Releasing lock... [2024-12-18 03:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 03:18:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-18 03:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 00:19:05 [end_date_ymd] => 2024-12-18 03:19:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 00:19:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 03:19:17] Production.INFO: count ==257 [2024-12-18 03:19:17] Production.ERROR: pbx CDR StartTime 2024-12-18 00:19:05 - End Time 2024-12-18 03:19:05 [2024-12-18 03:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045349', 'tblTempUsageDetail_20' ) start [2024-12-18 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045349', 'tblTempUsageDetail_20' ) end [2024-12-18 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045349', 'tblTempVendorCDR_20' ) start [2024-12-18 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045349', 'tblTempVendorCDR_20' ) end [2024-12-18 03:19:17] Production.INFO: ProcessCDR(1,14045349,1,1,2) [2024-12-18 03:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045349', 'tblTempUsageDetail_20' ) start [2024-12-18 03:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045349', 'tblTempUsageDetail_20' ) end [2024-12-18 03:19:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 03:19:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 03:19:20] Production.INFO: ==5234== Releasing lock... [2024-12-18 03:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 03:19:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-18 03:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 00:20:05 [end_date_ymd] => 2024-12-18 03:20:05 [RateCDR] => 1 ) [2024-12-18 03:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 00:20:05' and `end` < '2024-12-18 03:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 03:20:17] Production.INFO: count ==254 [2024-12-18 03:20:17] Production.ERROR: pbx CDR StartTime 2024-12-18 00:20:05 - End Time 2024-12-18 03:20:05 [2024-12-18 03:20:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 03:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045354', 'tblTempUsageDetail_20' ) start [2024-12-18 03:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045354', 'tblTempUsageDetail_20' ) end [2024-12-18 03:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045354', 'tblTempVendorCDR_20' ) start [2024-12-18 03:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045354', 'tblTempVendorCDR_20' ) end [2024-12-18 03:20:17] Production.INFO: ProcessCDR(1,14045354,1,1,2) [2024-12-18 03:20:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:20:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:20:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:20:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:20:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045354', 'tblTempUsageDetail_20' ) start [2024-12-18 03:20:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045354', 'tblTempUsageDetail_20' ) end [2024-12-18 03:20:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 03:20:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 03:20:20] Production.INFO: ==5329== Releasing lock... [2024-12-18 03:20:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 03:20:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-18 03:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 00:21:05 [end_date_ymd] => 2024-12-18 03:21:05 [RateCDR] => 1 ) [2024-12-18 03:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 00:21:05' and `end` < '2024-12-18 03:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 03:21:18] Production.INFO: count ==236 [2024-12-18 03:21:18] Production.ERROR: pbx CDR StartTime 2024-12-18 00:21:05 - End Time 2024-12-18 03:21:05 [2024-12-18 03:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045360', 'tblTempUsageDetail_20' ) start [2024-12-18 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045360', 'tblTempUsageDetail_20' ) end [2024-12-18 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045360', 'tblTempVendorCDR_20' ) start [2024-12-18 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045360', 'tblTempVendorCDR_20' ) end [2024-12-18 03:21:18] Production.INFO: ProcessCDR(1,14045360,1,1,2) [2024-12-18 03:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045360', 'tblTempUsageDetail_20' ) start [2024-12-18 03:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045360', 'tblTempUsageDetail_20' ) end [2024-12-18 03:21:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 03:21:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 03:21:21] Production.INFO: ==5417== Releasing lock... [2024-12-18 03:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 03:21:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-18 03:22:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 00:22:04 [end_date_ymd] => 2024-12-18 03:22:04 [RateCDR] => 1 ) [2024-12-18 03:22:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 00:22:04' and `end` < '2024-12-18 03:22:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 03:22:18] Production.INFO: count ==236 [2024-12-18 03:22:18] Production.ERROR: pbx CDR StartTime 2024-12-18 00:22:04 - End Time 2024-12-18 03:22:04 [2024-12-18 03:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045365', 'tblTempUsageDetail_20' ) start [2024-12-18 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045365', 'tblTempUsageDetail_20' ) end [2024-12-18 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045365', 'tblTempVendorCDR_20' ) start [2024-12-18 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045365', 'tblTempVendorCDR_20' ) end [2024-12-18 03:22:18] Production.INFO: ProcessCDR(1,14045365,1,1,2) [2024-12-18 03:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045365', 'tblTempUsageDetail_20' ) start [2024-12-18 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045365', 'tblTempUsageDetail_20' ) end [2024-12-18 03:22:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 03:22:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 03:22:21] Production.INFO: ==5515== Releasing lock... [2024-12-18 03:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 03:22:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-18 03:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 00:23:04 [end_date_ymd] => 2024-12-18 03:23:04 [RateCDR] => 1 ) [2024-12-18 03:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 00:23:04' and `end` < '2024-12-18 03:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 03:23:17] Production.INFO: count ==236 [2024-12-18 03:23:17] Production.ERROR: pbx CDR StartTime 2024-12-18 00:23:04 - End Time 2024-12-18 03:23:04 [2024-12-18 03:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045370', 'tblTempUsageDetail_20' ) start [2024-12-18 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045370', 'tblTempUsageDetail_20' ) end [2024-12-18 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045370', 'tblTempVendorCDR_20' ) start [2024-12-18 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045370', 'tblTempVendorCDR_20' ) end [2024-12-18 03:23:17] Production.INFO: ProcessCDR(1,14045370,1,1,2) [2024-12-18 03:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045370', 'tblTempUsageDetail_20' ) start [2024-12-18 03:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045370', 'tblTempUsageDetail_20' ) end [2024-12-18 03:23:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 03:23:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 03:23:20] Production.INFO: ==5607== Releasing lock... [2024-12-18 03:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 03:23:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-18 03:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 00:24:05 [end_date_ymd] => 2024-12-18 03:24:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 00:24:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 03:24:18] Production.INFO: count ==236 [2024-12-18 03:24:18] Production.ERROR: pbx CDR StartTime 2024-12-18 00:24:05 - End Time 2024-12-18 03:24:05 [2024-12-18 03:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045375', 'tblTempUsageDetail_20' ) start [2024-12-18 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045375', 'tblTempUsageDetail_20' ) end [2024-12-18 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045375', 'tblTempVendorCDR_20' ) start [2024-12-18 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045375', 'tblTempVendorCDR_20' ) end [2024-12-18 03:24:18] Production.INFO: ProcessCDR(1,14045375,1,1,2) [2024-12-18 03:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045375', 'tblTempUsageDetail_20' ) start [2024-12-18 03:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045375', 'tblTempUsageDetail_20' ) end [2024-12-18 03:24:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 03:24:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 03:24:21] Production.INFO: ==5731== Releasing lock... [2024-12-18 03:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 03:24:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-18 03:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 00:25:04 [end_date_ymd] => 2024-12-18 03:25:04 [RateCDR] => 1 ) [2024-12-18 03: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` >= '2024-12-18 00:25:04' and `end` < '2024-12-18 03: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 ,'') [2024-12-18 03:25:16] Production.INFO: count ==236 [2024-12-18 03:25:16] Production.ERROR: pbx CDR StartTime 2024-12-18 00:25:04 - End Time 2024-12-18 03:25:04 [2024-12-18 03:25:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 03:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045380', 'tblTempUsageDetail_20' ) start [2024-12-18 03:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045380', 'tblTempUsageDetail_20' ) end [2024-12-18 03:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045380', 'tblTempVendorCDR_20' ) start [2024-12-18 03:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045380', 'tblTempVendorCDR_20' ) end [2024-12-18 03:25:16] Production.INFO: ProcessCDR(1,14045380,1,1,2) [2024-12-18 03:25:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:25:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:25:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:25:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:25:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045380', 'tblTempUsageDetail_20' ) start [2024-12-18 03:25:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045380', 'tblTempUsageDetail_20' ) end [2024-12-18 03:25:19] Production.ERROR: pbx prc_insertCDR start [2024-12-18 03:25:19] Production.ERROR: pbx prc_insertCDR end [2024-12-18 03:25:19] Production.INFO: ==5820== Releasing lock... [2024-12-18 03:25:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 03:25:19] Production.INFO: 29.25 MB #Memory Used# [2024-12-18 03:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 00:26:05 [end_date_ymd] => 2024-12-18 03:26:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 00:26:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 03:26:17] Production.INFO: count ==236 [2024-12-18 03:26:17] Production.ERROR: pbx CDR StartTime 2024-12-18 00:26:05 - End Time 2024-12-18 03:26:05 [2024-12-18 03:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045385', 'tblTempUsageDetail_20' ) start [2024-12-18 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045385', 'tblTempUsageDetail_20' ) end [2024-12-18 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045385', 'tblTempVendorCDR_20' ) start [2024-12-18 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045385', 'tblTempVendorCDR_20' ) end [2024-12-18 03:26:17] Production.INFO: ProcessCDR(1,14045385,1,1,2) [2024-12-18 03:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045385', 'tblTempUsageDetail_20' ) start [2024-12-18 03:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045385', 'tblTempUsageDetail_20' ) end [2024-12-18 03:26:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 03:26:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 03:26:20] Production.INFO: ==5916== Releasing lock... [2024-12-18 03:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 03:26:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-18 03:27:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 00:27:04 [end_date_ymd] => 2024-12-18 03:27:04 [RateCDR] => 1 ) [2024-12-18 03:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 00:27:04' and `end` < '2024-12-18 03:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 03:27:16] Production.INFO: count ==236 [2024-12-18 03:27:16] Production.ERROR: pbx CDR StartTime 2024-12-18 00:27:04 - End Time 2024-12-18 03:27:04 [2024-12-18 03:27:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 03:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045390', 'tblTempUsageDetail_20' ) start [2024-12-18 03:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045390', 'tblTempUsageDetail_20' ) end [2024-12-18 03:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045390', 'tblTempVendorCDR_20' ) start [2024-12-18 03:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045390', 'tblTempVendorCDR_20' ) end [2024-12-18 03:27:16] Production.INFO: ProcessCDR(1,14045390,1,1,2) [2024-12-18 03:27:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:27:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:27:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:27:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:27:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045390', 'tblTempUsageDetail_20' ) start [2024-12-18 03:27:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045390', 'tblTempUsageDetail_20' ) end [2024-12-18 03:27:19] Production.ERROR: pbx prc_insertCDR start [2024-12-18 03:27:19] Production.ERROR: pbx prc_insertCDR end [2024-12-18 03:27:19] Production.INFO: ==5994== Releasing lock... [2024-12-18 03:27:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 03:27:19] Production.INFO: 29.25 MB #Memory Used# [2024-12-18 03:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 00:28:05 [end_date_ymd] => 2024-12-18 03:28:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 00:28:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 03:28:18] Production.INFO: count ==236 [2024-12-18 03:28:18] Production.ERROR: pbx CDR StartTime 2024-12-18 00:28:05 - End Time 2024-12-18 03:28:05 [2024-12-18 03:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045395', 'tblTempUsageDetail_20' ) start [2024-12-18 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045395', 'tblTempUsageDetail_20' ) end [2024-12-18 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045395', 'tblTempVendorCDR_20' ) start [2024-12-18 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045395', 'tblTempVendorCDR_20' ) end [2024-12-18 03:28:18] Production.INFO: ProcessCDR(1,14045395,1,1,2) [2024-12-18 03:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045395', 'tblTempUsageDetail_20' ) start [2024-12-18 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045395', 'tblTempUsageDetail_20' ) end [2024-12-18 03:28:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 03:28:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 03:28:21] Production.INFO: ==6088== Releasing lock... [2024-12-18 03:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 03:28:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-18 03:29:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 00:29:04 [end_date_ymd] => 2024-12-18 03:29:04 [RateCDR] => 1 ) [2024-12-18 03:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 00:29:04' and `end` < '2024-12-18 03:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 03:29:17] Production.INFO: count ==235 [2024-12-18 03:29:17] Production.ERROR: pbx CDR StartTime 2024-12-18 00:29:04 - End Time 2024-12-18 03:29:04 [2024-12-18 03:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045400', 'tblTempUsageDetail_20' ) start [2024-12-18 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045400', 'tblTempUsageDetail_20' ) end [2024-12-18 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045400', 'tblTempVendorCDR_20' ) start [2024-12-18 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045400', 'tblTempVendorCDR_20' ) end [2024-12-18 03:29:17] Production.INFO: ProcessCDR(1,14045400,1,1,2) [2024-12-18 03:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045400', 'tblTempUsageDetail_20' ) start [2024-12-18 03:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045400', 'tblTempUsageDetail_20' ) end [2024-12-18 03:29:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 03:29:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 03:29:20] Production.INFO: ==6173== Releasing lock... [2024-12-18 03:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 03:29:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-18 03:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 00:30:05 [end_date_ymd] => 2024-12-18 03:30:05 [RateCDR] => 1 ) [2024-12-18 03:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 00:30:05' and `end` < '2024-12-18 03:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 03:30:18] Production.INFO: count ==233 [2024-12-18 03:30:18] Production.ERROR: pbx CDR StartTime 2024-12-18 00:30:05 - End Time 2024-12-18 03:30:05 [2024-12-18 03:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045406', 'tblTempUsageDetail_20' ) start [2024-12-18 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045406', 'tblTempUsageDetail_20' ) end [2024-12-18 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045406', 'tblTempVendorCDR_20' ) start [2024-12-18 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045406', 'tblTempVendorCDR_20' ) end [2024-12-18 03:30:18] Production.INFO: ProcessCDR(1,14045406,1,1,2) [2024-12-18 03:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045406', 'tblTempUsageDetail_20' ) start [2024-12-18 03:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045406', 'tblTempUsageDetail_20' ) end [2024-12-18 03:30:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 03:30:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 03:30:21] Production.INFO: ==6257== Releasing lock... [2024-12-18 03:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 03:30:21] Production.INFO: 29 MB #Memory Used# [2024-12-18 03:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 00:31:05 [end_date_ymd] => 2024-12-18 03:31:05 [RateCDR] => 1 ) [2024-12-18 03:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 00:31:05' and `end` < '2024-12-18 03:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 03:31:17] Production.INFO: count ==231 [2024-12-18 03:31:17] Production.ERROR: pbx CDR StartTime 2024-12-18 00:31:05 - End Time 2024-12-18 03:31:05 [2024-12-18 03:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 03:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045411', 'tblTempUsageDetail_20' ) start [2024-12-18 03:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045411', 'tblTempUsageDetail_20' ) end [2024-12-18 03:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045411', 'tblTempVendorCDR_20' ) start [2024-12-18 03:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045411', 'tblTempVendorCDR_20' ) end [2024-12-18 03:31:17] Production.INFO: ProcessCDR(1,14045411,1,1,2) [2024-12-18 03:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045411', 'tblTempUsageDetail_20' ) start [2024-12-18 03:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045411', 'tblTempUsageDetail_20' ) end [2024-12-18 03:31:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 03:31:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 03:31:21] Production.INFO: ==6343== Releasing lock... [2024-12-18 03:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 03:31:21] Production.INFO: 29 MB #Memory Used# [2024-12-18 03:32:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 00:32:04 [end_date_ymd] => 2024-12-18 03:32:04 [RateCDR] => 1 ) [2024-12-18 03:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 00:32:04' and `end` < '2024-12-18 03:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 03:32:16] Production.INFO: count ==229 [2024-12-18 03:32:16] Production.ERROR: pbx CDR StartTime 2024-12-18 00:32:04 - End Time 2024-12-18 03:32:04 [2024-12-18 03:32:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 03:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045416', 'tblTempUsageDetail_20' ) start [2024-12-18 03:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045416', 'tblTempUsageDetail_20' ) end [2024-12-18 03:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045416', 'tblTempVendorCDR_20' ) start [2024-12-18 03:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045416', 'tblTempVendorCDR_20' ) end [2024-12-18 03:32:16] Production.INFO: ProcessCDR(1,14045416,1,1,2) [2024-12-18 03:32:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:32:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:32:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045416', 'tblTempUsageDetail_20' ) start [2024-12-18 03:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045416', 'tblTempUsageDetail_20' ) end [2024-12-18 03:32:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 03:32:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 03:32:20] Production.INFO: ==6424== Releasing lock... [2024-12-18 03:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 03:32:20] Production.INFO: 29 MB #Memory Used# [2024-12-18 03:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 00:33:05 [end_date_ymd] => 2024-12-18 03:33:05 [RateCDR] => 1 ) [2024-12-18 03:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 00:33:05' and `end` < '2024-12-18 03:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 03:33:18] Production.INFO: count ==228 [2024-12-18 03:33:18] Production.ERROR: pbx CDR StartTime 2024-12-18 00:33:05 - End Time 2024-12-18 03:33:05 [2024-12-18 03:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045421', 'tblTempUsageDetail_20' ) start [2024-12-18 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045421', 'tblTempUsageDetail_20' ) end [2024-12-18 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045421', 'tblTempVendorCDR_20' ) start [2024-12-18 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045421', 'tblTempVendorCDR_20' ) end [2024-12-18 03:33:18] Production.INFO: ProcessCDR(1,14045421,1,1,2) [2024-12-18 03:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045421', 'tblTempUsageDetail_20' ) start [2024-12-18 03:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045421', 'tblTempUsageDetail_20' ) end [2024-12-18 03:33:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 03:33:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 03:33:21] Production.INFO: ==6508== Releasing lock... [2024-12-18 03:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 03:33:21] Production.INFO: 29 MB #Memory Used# [2024-12-18 03:34:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 00:34:04 [end_date_ymd] => 2024-12-18 03:34:04 [RateCDR] => 1 ) [2024-12-18 03:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 00:34:04' and `end` < '2024-12-18 03:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 03:34:16] Production.INFO: count ==228 [2024-12-18 03:34:16] Production.ERROR: pbx CDR StartTime 2024-12-18 00:34:04 - End Time 2024-12-18 03:34:04 [2024-12-18 03:34:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 03:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045426', 'tblTempUsageDetail_20' ) start [2024-12-18 03:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045426', 'tblTempUsageDetail_20' ) end [2024-12-18 03:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045426', 'tblTempVendorCDR_20' ) start [2024-12-18 03:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045426', 'tblTempVendorCDR_20' ) end [2024-12-18 03:34:16] Production.INFO: ProcessCDR(1,14045426,1,1,2) [2024-12-18 03:34:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:34:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:34:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045426', 'tblTempUsageDetail_20' ) start [2024-12-18 03:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045426', 'tblTempUsageDetail_20' ) end [2024-12-18 03:34:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 03:34:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 03:34:20] Production.INFO: ==6588== Releasing lock... [2024-12-18 03:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 03:34:20] Production.INFO: 29 MB #Memory Used# [2024-12-18 03:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 00:35:05 [end_date_ymd] => 2024-12-18 03:35:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 00:35:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 03:35:17] Production.INFO: count ==228 [2024-12-18 03:35:17] Production.ERROR: pbx CDR StartTime 2024-12-18 00:35:05 - End Time 2024-12-18 03:35:05 [2024-12-18 03:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045431', 'tblTempUsageDetail_20' ) start [2024-12-18 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045431', 'tblTempUsageDetail_20' ) end [2024-12-18 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045431', 'tblTempVendorCDR_20' ) start [2024-12-18 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045431', 'tblTempVendorCDR_20' ) end [2024-12-18 03:35:17] Production.INFO: ProcessCDR(1,14045431,1,1,2) [2024-12-18 03:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045431', 'tblTempUsageDetail_20' ) start [2024-12-18 03:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045431', 'tblTempUsageDetail_20' ) end [2024-12-18 03:35:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 03:35:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 03:35:20] Production.INFO: ==6678== Releasing lock... [2024-12-18 03:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 03:35:20] Production.INFO: 29 MB #Memory Used# [2024-12-18 03:36:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 00:36:04 [end_date_ymd] => 2024-12-18 03:36:04 [RateCDR] => 1 ) [2024-12-18 03:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 00:36:04' and `end` < '2024-12-18 03:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 03:36:17] Production.INFO: count ==228 [2024-12-18 03:36:17] Production.ERROR: pbx CDR StartTime 2024-12-18 00:36:04 - End Time 2024-12-18 03:36:04 [2024-12-18 03:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 03:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045436', 'tblTempUsageDetail_20' ) start [2024-12-18 03:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045436', 'tblTempUsageDetail_20' ) end [2024-12-18 03:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045436', 'tblTempVendorCDR_20' ) start [2024-12-18 03:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045436', 'tblTempVendorCDR_20' ) end [2024-12-18 03:36:17] Production.INFO: ProcessCDR(1,14045436,1,1,2) [2024-12-18 03:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045436', 'tblTempUsageDetail_20' ) start [2024-12-18 03:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045436', 'tblTempUsageDetail_20' ) end [2024-12-18 03:36:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 03:36:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 03:36:20] Production.INFO: ==6757== Releasing lock... [2024-12-18 03:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 03:36:20] Production.INFO: 29 MB #Memory Used# [2024-12-18 03:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 00:37:05 [end_date_ymd] => 2024-12-18 03:37:05 [RateCDR] => 1 ) [2024-12-18 03:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 00:37:05' and `end` < '2024-12-18 03:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 03:37:17] Production.INFO: count ==228 [2024-12-18 03:37:17] Production.ERROR: pbx CDR StartTime 2024-12-18 00:37:05 - End Time 2024-12-18 03:37:05 [2024-12-18 03:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 03:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045441', 'tblTempUsageDetail_20' ) start [2024-12-18 03:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045441', 'tblTempUsageDetail_20' ) end [2024-12-18 03:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045441', 'tblTempVendorCDR_20' ) start [2024-12-18 03:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045441', 'tblTempVendorCDR_20' ) end [2024-12-18 03:37:17] Production.INFO: ProcessCDR(1,14045441,1,1,2) [2024-12-18 03:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045441', 'tblTempUsageDetail_20' ) start [2024-12-18 03:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045441', 'tblTempUsageDetail_20' ) end [2024-12-18 03:37:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 03:37:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 03:37:20] Production.INFO: ==6835== Releasing lock... [2024-12-18 03:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 03:37:20] Production.INFO: 29 MB #Memory Used# [2024-12-18 03:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 00:38:05 [end_date_ymd] => 2024-12-18 03:38:05 [RateCDR] => 1 ) [2024-12-18 03:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 00:38:05' and `end` < '2024-12-18 03:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 03:38:17] Production.INFO: count ==224 [2024-12-18 03:38:17] Production.ERROR: pbx CDR StartTime 2024-12-18 00:38:05 - End Time 2024-12-18 03:38:05 [2024-12-18 03:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 03:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045446', 'tblTempUsageDetail_20' ) start [2024-12-18 03:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045446', 'tblTempUsageDetail_20' ) end [2024-12-18 03:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045446', 'tblTempVendorCDR_20' ) start [2024-12-18 03:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045446', 'tblTempVendorCDR_20' ) end [2024-12-18 03:38:17] Production.INFO: ProcessCDR(1,14045446,1,1,2) [2024-12-18 03:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045446', 'tblTempUsageDetail_20' ) start [2024-12-18 03:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045446', 'tblTempUsageDetail_20' ) end [2024-12-18 03:38:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 03:38:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 03:38:20] Production.INFO: ==6918== Releasing lock... [2024-12-18 03:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 03:38:20] Production.INFO: 29 MB #Memory Used# [2024-12-18 03:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 00:39:04 [end_date_ymd] => 2024-12-18 03:39:04 [RateCDR] => 1 ) [2024-12-18 03:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 00:39:04' and `end` < '2024-12-18 03:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 03:39:16] Production.INFO: count ==224 [2024-12-18 03:39:16] Production.ERROR: pbx CDR StartTime 2024-12-18 00:39:04 - End Time 2024-12-18 03:39:04 [2024-12-18 03:39:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 03:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045451', 'tblTempUsageDetail_20' ) start [2024-12-18 03:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045451', 'tblTempUsageDetail_20' ) end [2024-12-18 03:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045451', 'tblTempVendorCDR_20' ) start [2024-12-18 03:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045451', 'tblTempVendorCDR_20' ) end [2024-12-18 03:39:16] Production.INFO: ProcessCDR(1,14045451,1,1,2) [2024-12-18 03:39:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:39:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:39:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045451', 'tblTempUsageDetail_20' ) start [2024-12-18 03:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045451', 'tblTempUsageDetail_20' ) end [2024-12-18 03:39:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 03:39:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 03:39:20] Production.INFO: ==7037== Releasing lock... [2024-12-18 03:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 03:39:20] Production.INFO: 29 MB #Memory Used# [2024-12-18 03:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 00:40:06 [end_date_ymd] => 2024-12-18 03:40:06 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 00:40:06' and `end` < '2024-12-18 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 ,'') [2024-12-18 03:40:19] Production.INFO: count ==224 [2024-12-18 03:40:19] Production.ERROR: pbx CDR StartTime 2024-12-18 00:40:06 - End Time 2024-12-18 03:40:06 [2024-12-18 03:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045457', 'tblTempUsageDetail_20' ) start [2024-12-18 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045457', 'tblTempUsageDetail_20' ) end [2024-12-18 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045457', 'tblTempVendorCDR_20' ) start [2024-12-18 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045457', 'tblTempVendorCDR_20' ) end [2024-12-18 03:40:19] Production.INFO: ProcessCDR(1,14045457,1,1,2) [2024-12-18 03:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045457', 'tblTempUsageDetail_20' ) start [2024-12-18 03:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045457', 'tblTempUsageDetail_20' ) end [2024-12-18 03:40:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 03:40:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 03:40:22] Production.INFO: ==7122== Releasing lock... [2024-12-18 03:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 03:40:22] Production.INFO: 29 MB #Memory Used# [2024-12-18 03:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 00:41:05 [end_date_ymd] => 2024-12-18 03:41:05 [RateCDR] => 1 ) [2024-12-18 03: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` >= '2024-12-18 00:41:05' and `end` < '2024-12-18 03: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 ,'') [2024-12-18 03:41:17] Production.INFO: count ==216 [2024-12-18 03:41:17] Production.ERROR: pbx CDR StartTime 2024-12-18 00:41:05 - End Time 2024-12-18 03:41:05 [2024-12-18 03:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 03:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045462', 'tblTempUsageDetail_20' ) start [2024-12-18 03:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045462', 'tblTempUsageDetail_20' ) end [2024-12-18 03:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045462', 'tblTempVendorCDR_20' ) start [2024-12-18 03:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045462', 'tblTempVendorCDR_20' ) end [2024-12-18 03:41:17] Production.INFO: ProcessCDR(1,14045462,1,1,2) [2024-12-18 03:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045462', 'tblTempUsageDetail_20' ) start [2024-12-18 03:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045462', 'tblTempUsageDetail_20' ) end [2024-12-18 03:41:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 03:41:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 03:41:20] Production.INFO: ==7200== Releasing lock... [2024-12-18 03:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 03:41:20] Production.INFO: 29 MB #Memory Used# [2024-12-18 03:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 00:42:05 [end_date_ymd] => 2024-12-18 03:42:05 [RateCDR] => 1 ) [2024-12-18 03:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 00:42:05' and `end` < '2024-12-18 03:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 03:42:17] Production.INFO: count ==216 [2024-12-18 03:42:17] Production.ERROR: pbx CDR StartTime 2024-12-18 00:42:05 - End Time 2024-12-18 03:42:05 [2024-12-18 03:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 03:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045467', 'tblTempUsageDetail_20' ) start [2024-12-18 03:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045467', 'tblTempUsageDetail_20' ) end [2024-12-18 03:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045467', 'tblTempVendorCDR_20' ) start [2024-12-18 03:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045467', 'tblTempVendorCDR_20' ) end [2024-12-18 03:42:17] Production.INFO: ProcessCDR(1,14045467,1,1,2) [2024-12-18 03:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045467', 'tblTempUsageDetail_20' ) start [2024-12-18 03:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045467', 'tblTempUsageDetail_20' ) end [2024-12-18 03:42:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 03:42:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 03:42:21] Production.INFO: ==7277== Releasing lock... [2024-12-18 03:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 03:42:21] Production.INFO: 29 MB #Memory Used# [2024-12-18 03:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 00:43:05 [end_date_ymd] => 2024-12-18 03:43:05 [RateCDR] => 1 ) [2024-12-18 03:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 00:43:05' and `end` < '2024-12-18 03:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 03:43:17] Production.INFO: count ==216 [2024-12-18 03:43:17] Production.ERROR: pbx CDR StartTime 2024-12-18 00:43:05 - End Time 2024-12-18 03:43:05 [2024-12-18 03:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 03:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045472', 'tblTempUsageDetail_20' ) start [2024-12-18 03:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045472', 'tblTempUsageDetail_20' ) end [2024-12-18 03:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045472', 'tblTempVendorCDR_20' ) start [2024-12-18 03:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045472', 'tblTempVendorCDR_20' ) end [2024-12-18 03:43:17] Production.INFO: ProcessCDR(1,14045472,1,1,2) [2024-12-18 03:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045472', 'tblTempUsageDetail_20' ) start [2024-12-18 03:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045472', 'tblTempUsageDetail_20' ) end [2024-12-18 03:43:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 03:43:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 03:43:20] Production.INFO: ==7354== Releasing lock... [2024-12-18 03:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 03:43:20] Production.INFO: 29 MB #Memory Used# [2024-12-18 03:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 00:44:05 [end_date_ymd] => 2024-12-18 03:44:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 00:44:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 03:44:18] Production.INFO: count ==216 [2024-12-18 03:44:18] Production.ERROR: pbx CDR StartTime 2024-12-18 00:44:05 - End Time 2024-12-18 03:44:05 [2024-12-18 03:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045477', 'tblTempUsageDetail_20' ) start [2024-12-18 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045477', 'tblTempUsageDetail_20' ) end [2024-12-18 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045477', 'tblTempVendorCDR_20' ) start [2024-12-18 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045477', 'tblTempVendorCDR_20' ) end [2024-12-18 03:44:18] Production.INFO: ProcessCDR(1,14045477,1,1,2) [2024-12-18 03:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045477', 'tblTempUsageDetail_20' ) start [2024-12-18 03:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045477', 'tblTempUsageDetail_20' ) end [2024-12-18 03:44:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 03:44:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 03:44:21] Production.INFO: ==7434== Releasing lock... [2024-12-18 03:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 03:44:21] Production.INFO: 29 MB #Memory Used# [2024-12-18 03:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 00:45:04 [end_date_ymd] => 2024-12-18 03:45:04 [RateCDR] => 1 ) [2024-12-18 03:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 00:45:04' and `end` < '2024-12-18 03:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 03:45:16] Production.INFO: count ==219 [2024-12-18 03:45:16] Production.ERROR: pbx CDR StartTime 2024-12-18 00:45:04 - End Time 2024-12-18 03:45:04 [2024-12-18 03:45:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 03:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045482', 'tblTempUsageDetail_20' ) start [2024-12-18 03:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045482', 'tblTempUsageDetail_20' ) end [2024-12-18 03:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045482', 'tblTempVendorCDR_20' ) start [2024-12-18 03:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045482', 'tblTempVendorCDR_20' ) end [2024-12-18 03:45:16] Production.INFO: ProcessCDR(1,14045482,1,1,2) [2024-12-18 03:45:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:45:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:45:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:45:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:45:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045482', 'tblTempUsageDetail_20' ) start [2024-12-18 03:45:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045482', 'tblTempUsageDetail_20' ) end [2024-12-18 03:45:19] Production.ERROR: pbx prc_insertCDR start [2024-12-18 03:45:19] Production.ERROR: pbx prc_insertCDR end [2024-12-18 03:45:19] Production.INFO: ==7513== Releasing lock... [2024-12-18 03:45:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 03:45:19] Production.INFO: 29 MB #Memory Used# [2024-12-18 03:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 00:46:05 [end_date_ymd] => 2024-12-18 03:46:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 00:46:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 03:46:18] Production.INFO: count ==218 [2024-12-18 03:46:18] Production.ERROR: pbx CDR StartTime 2024-12-18 00:46:05 - End Time 2024-12-18 03:46:05 [2024-12-18 03:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045487', 'tblTempUsageDetail_20' ) start [2024-12-18 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045487', 'tblTempUsageDetail_20' ) end [2024-12-18 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045487', 'tblTempVendorCDR_20' ) start [2024-12-18 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045487', 'tblTempVendorCDR_20' ) end [2024-12-18 03:46:18] Production.INFO: ProcessCDR(1,14045487,1,1,2) [2024-12-18 03:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045487', 'tblTempUsageDetail_20' ) start [2024-12-18 03:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045487', 'tblTempUsageDetail_20' ) end [2024-12-18 03:46:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 03:46:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 03:46:21] Production.INFO: ==7619== Releasing lock... [2024-12-18 03:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 03:46:21] Production.INFO: 29 MB #Memory Used# [2024-12-18 03:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 00:47:05 [end_date_ymd] => 2024-12-18 03:47:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 00:47:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 03:47:17] Production.INFO: count ==218 [2024-12-18 03:47:17] Production.ERROR: pbx CDR StartTime 2024-12-18 00:47:05 - End Time 2024-12-18 03:47:05 [2024-12-18 03:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045492', 'tblTempUsageDetail_20' ) start [2024-12-18 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045492', 'tblTempUsageDetail_20' ) end [2024-12-18 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045492', 'tblTempVendorCDR_20' ) start [2024-12-18 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045492', 'tblTempVendorCDR_20' ) end [2024-12-18 03:47:17] Production.INFO: ProcessCDR(1,14045492,1,1,2) [2024-12-18 03:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045492', 'tblTempUsageDetail_20' ) start [2024-12-18 03:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045492', 'tblTempUsageDetail_20' ) end [2024-12-18 03:47:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 03:47:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 03:47:20] Production.INFO: ==7711== Releasing lock... [2024-12-18 03:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 03:47:20] Production.INFO: 29 MB #Memory Used# [2024-12-18 03:48:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 00:48:04 [end_date_ymd] => 2024-12-18 03:48:04 [RateCDR] => 1 ) [2024-12-18 03: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` >= '2024-12-18 00:48:04' and `end` < '2024-12-18 03: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 ,'') [2024-12-18 03:48:16] Production.INFO: count ==218 [2024-12-18 03:48:16] Production.ERROR: pbx CDR StartTime 2024-12-18 00:48:04 - End Time 2024-12-18 03:48:04 [2024-12-18 03:48:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 03:48:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045497', 'tblTempUsageDetail_20' ) start [2024-12-18 03:48:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045497', 'tblTempUsageDetail_20' ) end [2024-12-18 03:48:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045497', 'tblTempVendorCDR_20' ) start [2024-12-18 03:48:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045497', 'tblTempVendorCDR_20' ) end [2024-12-18 03:48:16] Production.INFO: ProcessCDR(1,14045497,1,1,2) [2024-12-18 03:48:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:48:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:48:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:48:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:48:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045497', 'tblTempUsageDetail_20' ) start [2024-12-18 03:48:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045497', 'tblTempUsageDetail_20' ) end [2024-12-18 03:48:19] Production.ERROR: pbx prc_insertCDR start [2024-12-18 03:48:19] Production.ERROR: pbx prc_insertCDR end [2024-12-18 03:48:19] Production.INFO: ==7799== Releasing lock... [2024-12-18 03:48:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 03:48:19] Production.INFO: 29 MB #Memory Used# [2024-12-18 03:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 00:49:05 [end_date_ymd] => 2024-12-18 03:49:05 [RateCDR] => 1 ) [2024-12-18 03:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 00:49:05' and `end` < '2024-12-18 03:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 03:49:17] Production.INFO: count ==218 [2024-12-18 03:49:17] Production.ERROR: pbx CDR StartTime 2024-12-18 00:49:05 - End Time 2024-12-18 03:49:05 [2024-12-18 03:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045502', 'tblTempUsageDetail_20' ) start [2024-12-18 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045502', 'tblTempUsageDetail_20' ) end [2024-12-18 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045502', 'tblTempVendorCDR_20' ) start [2024-12-18 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045502', 'tblTempVendorCDR_20' ) end [2024-12-18 03:49:17] Production.INFO: ProcessCDR(1,14045502,1,1,2) [2024-12-18 03:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045502', 'tblTempUsageDetail_20' ) start [2024-12-18 03:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045502', 'tblTempUsageDetail_20' ) end [2024-12-18 03:49:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 03:49:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 03:49:20] Production.INFO: ==7892== Releasing lock... [2024-12-18 03:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 03:49:20] Production.INFO: 29 MB #Memory Used# [2024-12-18 03:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 00:50:05 [end_date_ymd] => 2024-12-18 03:50:05 [RateCDR] => 1 ) [2024-12-18 03:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 00:50:05' and `end` < '2024-12-18 03:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 03:50:17] Production.INFO: count ==214 [2024-12-18 03:50:17] Production.ERROR: pbx CDR StartTime 2024-12-18 00:50:05 - End Time 2024-12-18 03:50:05 [2024-12-18 03:50:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 03:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045508', 'tblTempUsageDetail_20' ) start [2024-12-18 03:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045508', 'tblTempUsageDetail_20' ) end [2024-12-18 03:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045508', 'tblTempVendorCDR_20' ) start [2024-12-18 03:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045508', 'tblTempVendorCDR_20' ) end [2024-12-18 03:50:17] Production.INFO: ProcessCDR(1,14045508,1,1,2) [2024-12-18 03:50:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:50:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:50:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:50:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045508', 'tblTempUsageDetail_20' ) start [2024-12-18 03:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045508', 'tblTempUsageDetail_20' ) end [2024-12-18 03:50:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 03:50:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 03:50:20] Production.INFO: ==7991== Releasing lock... [2024-12-18 03:50:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 03:50:20] Production.INFO: 29 MB #Memory Used# [2024-12-18 03:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 00:51:05 [end_date_ymd] => 2024-12-18 03:51:05 [RateCDR] => 1 ) [2024-12-18 03:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 00:51:05' and `end` < '2024-12-18 03:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 03:51:18] Production.INFO: count ==206 [2024-12-18 03:51:18] Production.ERROR: pbx CDR StartTime 2024-12-18 00:51:05 - End Time 2024-12-18 03:51:05 [2024-12-18 03:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045513', 'tblTempUsageDetail_20' ) start [2024-12-18 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045513', 'tblTempUsageDetail_20' ) end [2024-12-18 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045513', 'tblTempVendorCDR_20' ) start [2024-12-18 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045513', 'tblTempVendorCDR_20' ) end [2024-12-18 03:51:18] Production.INFO: ProcessCDR(1,14045513,1,1,2) [2024-12-18 03:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045513', 'tblTempUsageDetail_20' ) start [2024-12-18 03:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045513', 'tblTempUsageDetail_20' ) end [2024-12-18 03:51:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 03:51:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 03:51:21] Production.INFO: ==8082== Releasing lock... [2024-12-18 03:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 03:51:21] Production.INFO: 29 MB #Memory Used# [2024-12-18 03:52:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 00:52:04 [end_date_ymd] => 2024-12-18 03:52:04 [RateCDR] => 1 ) [2024-12-18 03:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 00:52:04' and `end` < '2024-12-18 03:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 03:52:17] Production.INFO: count ==206 [2024-12-18 03:52:17] Production.ERROR: pbx CDR StartTime 2024-12-18 00:52:04 - End Time 2024-12-18 03:52:04 [2024-12-18 03:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 03:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045518', 'tblTempUsageDetail_20' ) start [2024-12-18 03:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045518', 'tblTempUsageDetail_20' ) end [2024-12-18 03:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045518', 'tblTempVendorCDR_20' ) start [2024-12-18 03:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045518', 'tblTempVendorCDR_20' ) end [2024-12-18 03:52:17] Production.INFO: ProcessCDR(1,14045518,1,1,2) [2024-12-18 03:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045518', 'tblTempUsageDetail_20' ) start [2024-12-18 03:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045518', 'tblTempUsageDetail_20' ) end [2024-12-18 03:52:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 03:52:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 03:52:20] Production.INFO: ==8167== Releasing lock... [2024-12-18 03:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 03:52:20] Production.INFO: 29 MB #Memory Used# [2024-12-18 03:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 00:53:05 [end_date_ymd] => 2024-12-18 03:53:05 [RateCDR] => 1 ) [2024-12-18 03:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 00:53:05' and `end` < '2024-12-18 03:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 03:53:17] Production.INFO: count ==206 [2024-12-18 03:53:17] Production.ERROR: pbx CDR StartTime 2024-12-18 00:53:05 - End Time 2024-12-18 03:53:05 [2024-12-18 03:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 03:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045523', 'tblTempUsageDetail_20' ) start [2024-12-18 03:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045523', 'tblTempUsageDetail_20' ) end [2024-12-18 03:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045523', 'tblTempVendorCDR_20' ) start [2024-12-18 03:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045523', 'tblTempVendorCDR_20' ) end [2024-12-18 03:53:17] Production.INFO: ProcessCDR(1,14045523,1,1,2) [2024-12-18 03:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045523', 'tblTempUsageDetail_20' ) start [2024-12-18 03:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045523', 'tblTempUsageDetail_20' ) end [2024-12-18 03:53:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 03:53:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 03:53:20] Production.INFO: ==8252== Releasing lock... [2024-12-18 03:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 03:53:20] Production.INFO: 29 MB #Memory Used# [2024-12-18 03:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 00:54:05 [end_date_ymd] => 2024-12-18 03:54:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 00:54:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 03:54:18] Production.INFO: count ==206 [2024-12-18 03:54:18] Production.ERROR: pbx CDR StartTime 2024-12-18 00:54:05 - End Time 2024-12-18 03:54:05 [2024-12-18 03:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045528', 'tblTempUsageDetail_20' ) start [2024-12-18 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045528', 'tblTempUsageDetail_20' ) end [2024-12-18 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045528', 'tblTempVendorCDR_20' ) start [2024-12-18 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045528', 'tblTempVendorCDR_20' ) end [2024-12-18 03:54:18] Production.INFO: ProcessCDR(1,14045528,1,1,2) [2024-12-18 03:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045528', 'tblTempUsageDetail_20' ) start [2024-12-18 03:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045528', 'tblTempUsageDetail_20' ) end [2024-12-18 03:54:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 03:54:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 03:54:21] Production.INFO: ==8334== Releasing lock... [2024-12-18 03:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 03:54:21] Production.INFO: 29 MB #Memory Used# [2024-12-18 03:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 00:55:05 [end_date_ymd] => 2024-12-18 03:55:05 [RateCDR] => 1 ) [2024-12-18 03:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 00:55:05' and `end` < '2024-12-18 03:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 03:55:17] Production.INFO: count ==206 [2024-12-18 03:55:17] Production.ERROR: pbx CDR StartTime 2024-12-18 00:55:05 - End Time 2024-12-18 03:55:05 [2024-12-18 03:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 03:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045533', 'tblTempUsageDetail_20' ) start [2024-12-18 03:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045533', 'tblTempUsageDetail_20' ) end [2024-12-18 03:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045533', 'tblTempVendorCDR_20' ) start [2024-12-18 03:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045533', 'tblTempVendorCDR_20' ) end [2024-12-18 03:55:17] Production.INFO: ProcessCDR(1,14045533,1,1,2) [2024-12-18 03:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045533', 'tblTempUsageDetail_20' ) start [2024-12-18 03:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045533', 'tblTempUsageDetail_20' ) end [2024-12-18 03:55:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 03:55:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 03:55:20] Production.INFO: ==8458== Releasing lock... [2024-12-18 03:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 03:55:20] Production.INFO: 29 MB #Memory Used# [2024-12-18 03:56:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 00:56:04 [end_date_ymd] => 2024-12-18 03:56:04 [RateCDR] => 1 ) [2024-12-18 03:56:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 00:56:04' and `end` < '2024-12-18 03:56:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 03:56:17] Production.INFO: count ==206 [2024-12-18 03:56:17] Production.ERROR: pbx CDR StartTime 2024-12-18 00:56:04 - End Time 2024-12-18 03:56:04 [2024-12-18 03:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 03:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045538', 'tblTempUsageDetail_20' ) start [2024-12-18 03:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045538', 'tblTempUsageDetail_20' ) end [2024-12-18 03:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045538', 'tblTempVendorCDR_20' ) start [2024-12-18 03:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045538', 'tblTempVendorCDR_20' ) end [2024-12-18 03:56:17] Production.INFO: ProcessCDR(1,14045538,1,1,2) [2024-12-18 03:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045538', 'tblTempUsageDetail_20' ) start [2024-12-18 03:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045538', 'tblTempUsageDetail_20' ) end [2024-12-18 03:56:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 03:56:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 03:56:20] Production.INFO: ==8562== Releasing lock... [2024-12-18 03:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 03:56:20] Production.INFO: 29 MB #Memory Used# [2024-12-18 03:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 00:57:05 [end_date_ymd] => 2024-12-18 03:57:05 [RateCDR] => 1 ) [2024-12-18 03:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 00:57:05' and `end` < '2024-12-18 03:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 03:57:17] Production.INFO: count ==206 [2024-12-18 03:57:17] Production.ERROR: pbx CDR StartTime 2024-12-18 00:57:05 - End Time 2024-12-18 03:57:05 [2024-12-18 03:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045543', 'tblTempUsageDetail_20' ) start [2024-12-18 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045543', 'tblTempUsageDetail_20' ) end [2024-12-18 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045543', 'tblTempVendorCDR_20' ) start [2024-12-18 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045543', 'tblTempVendorCDR_20' ) end [2024-12-18 03:57:17] Production.INFO: ProcessCDR(1,14045543,1,1,2) [2024-12-18 03:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045543', 'tblTempUsageDetail_20' ) start [2024-12-18 03:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045543', 'tblTempUsageDetail_20' ) end [2024-12-18 03:57:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 03:57:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 03:57:20] Production.INFO: ==8639== Releasing lock... [2024-12-18 03:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 03:57:20] Production.INFO: 29 MB #Memory Used# [2024-12-18 03:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 00:58:05 [end_date_ymd] => 2024-12-18 03:58:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 00:58:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 03:58:17] Production.INFO: count ==206 [2024-12-18 03:58:17] Production.ERROR: pbx CDR StartTime 2024-12-18 00:58:05 - End Time 2024-12-18 03:58:05 [2024-12-18 03:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 03:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045548', 'tblTempUsageDetail_20' ) start [2024-12-18 03:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045548', 'tblTempUsageDetail_20' ) end [2024-12-18 03:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045548', 'tblTempVendorCDR_20' ) start [2024-12-18 03:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045548', 'tblTempVendorCDR_20' ) end [2024-12-18 03:58:17] Production.INFO: ProcessCDR(1,14045548,1,1,2) [2024-12-18 03:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045548', 'tblTempUsageDetail_20' ) start [2024-12-18 03:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045548', 'tblTempUsageDetail_20' ) end [2024-12-18 03:58:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 03:58:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 03:58:21] Production.INFO: ==8719== Releasing lock... [2024-12-18 03:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 03:58:21] Production.INFO: 29 MB #Memory Used# [2024-12-18 03:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 00:59:04 [end_date_ymd] => 2024-12-18 03:59:04 [RateCDR] => 1 ) [2024-12-18 03:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 00:59:04' and `end` < '2024-12-18 03:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 03:59:16] Production.INFO: count ==206 [2024-12-18 03:59:17] Production.ERROR: pbx CDR StartTime 2024-12-18 00:59:04 - End Time 2024-12-18 03:59:04 [2024-12-18 03:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 03:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045553', 'tblTempUsageDetail_20' ) start [2024-12-18 03:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045553', 'tblTempUsageDetail_20' ) end [2024-12-18 03:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045553', 'tblTempVendorCDR_20' ) start [2024-12-18 03:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045553', 'tblTempVendorCDR_20' ) end [2024-12-18 03:59:17] Production.INFO: ProcessCDR(1,14045553,1,1,2) [2024-12-18 03:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:59:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 03:59:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 03:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045553', 'tblTempUsageDetail_20' ) start [2024-12-18 03:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045553', 'tblTempUsageDetail_20' ) end [2024-12-18 03:59:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 03:59:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 03:59:20] Production.INFO: ==8796== Releasing lock... [2024-12-18 03:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 03:59:20] Production.INFO: 29 MB #Memory Used# [2024-12-18 04:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 01:00:06 [end_date_ymd] => 2024-12-18 04:00:06 [RateCDR] => 1 ) [2024-12-18 04:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 01:00:06' and `end` < '2024-12-18 04:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 04:00:18] Production.INFO: count ==200 [2024-12-18 04:00:18] Production.ERROR: pbx CDR StartTime 2024-12-18 01:00:06 - End Time 2024-12-18 04:00:06 [2024-12-18 04:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045560', 'tblTempUsageDetail_20' ) start [2024-12-18 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045560', 'tblTempUsageDetail_20' ) end [2024-12-18 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045560', 'tblTempVendorCDR_20' ) start [2024-12-18 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045560', 'tblTempVendorCDR_20' ) end [2024-12-18 04:00:18] Production.INFO: ProcessCDR(1,14045560,1,1,2) [2024-12-18 04:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045560', 'tblTempUsageDetail_20' ) start [2024-12-18 04:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045560', 'tblTempUsageDetail_20' ) end [2024-12-18 04:00:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 04:00:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 04:00:21] Production.INFO: ==8881== Releasing lock... [2024-12-18 04:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 04:00:21] Production.INFO: 28.75 MB #Memory Used# [2024-12-18 04:01:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 01:01:04 [end_date_ymd] => 2024-12-18 04:01:04 [RateCDR] => 1 ) [2024-12-18 04: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` >= '2024-12-18 01:01:04' and `end` < '2024-12-18 04: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 ,'') [2024-12-18 04:01:17] Production.INFO: count ==200 [2024-12-18 04:01:17] Production.ERROR: pbx CDR StartTime 2024-12-18 01:01:04 - End Time 2024-12-18 04:01:04 [2024-12-18 04:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 04:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045565', 'tblTempUsageDetail_20' ) start [2024-12-18 04:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045565', 'tblTempUsageDetail_20' ) end [2024-12-18 04:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045565', 'tblTempVendorCDR_20' ) start [2024-12-18 04:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045565', 'tblTempVendorCDR_20' ) end [2024-12-18 04:01:17] Production.INFO: ProcessCDR(1,14045565,1,1,2) [2024-12-18 04:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045565', 'tblTempUsageDetail_20' ) start [2024-12-18 04:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045565', 'tblTempUsageDetail_20' ) end [2024-12-18 04:01:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 04:01:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 04:01:20] Production.INFO: ==8975== Releasing lock... [2024-12-18 04:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 04:01:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-18 04:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 01:02:05 [end_date_ymd] => 2024-12-18 04:02:05 [RateCDR] => 1 ) [2024-12-18 04:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 01:02:05' and `end` < '2024-12-18 04:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 04:02:17] Production.INFO: count ==200 [2024-12-18 04:02:17] Production.ERROR: pbx CDR StartTime 2024-12-18 01:02:05 - End Time 2024-12-18 04:02:05 [2024-12-18 04:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045570', 'tblTempUsageDetail_20' ) start [2024-12-18 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045570', 'tblTempUsageDetail_20' ) end [2024-12-18 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045570', 'tblTempVendorCDR_20' ) start [2024-12-18 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045570', 'tblTempVendorCDR_20' ) end [2024-12-18 04:02:17] Production.INFO: ProcessCDR(1,14045570,1,1,2) [2024-12-18 04:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045570', 'tblTempUsageDetail_20' ) start [2024-12-18 04:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045570', 'tblTempUsageDetail_20' ) end [2024-12-18 04:02:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 04:02:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 04:02:20] Production.INFO: ==9056== Releasing lock... [2024-12-18 04:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 04:02:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-18 04:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 01:03:04 [end_date_ymd] => 2024-12-18 04:03:04 [RateCDR] => 1 ) [2024-12-18 04:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 01:03:04' and `end` < '2024-12-18 04:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 04:03:16] Production.INFO: count ==200 [2024-12-18 04:03:16] Production.ERROR: pbx CDR StartTime 2024-12-18 01:03:04 - End Time 2024-12-18 04:03:04 [2024-12-18 04:03:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 04:03:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045575', 'tblTempUsageDetail_20' ) start [2024-12-18 04:03:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045575', 'tblTempUsageDetail_20' ) end [2024-12-18 04:03:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045575', 'tblTempVendorCDR_20' ) start [2024-12-18 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045575', 'tblTempVendorCDR_20' ) end [2024-12-18 04:03:17] Production.INFO: ProcessCDR(1,14045575,1,1,2) [2024-12-18 04:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:03:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:03:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045575', 'tblTempUsageDetail_20' ) start [2024-12-18 04:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045575', 'tblTempUsageDetail_20' ) end [2024-12-18 04:03:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 04:03:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 04:03:20] Production.INFO: ==9136== Releasing lock... [2024-12-18 04:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 04:03:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-18 04:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 01:04:05 [end_date_ymd] => 2024-12-18 04:04:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 01:04:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 04:04:18] Production.INFO: count ==200 [2024-12-18 04:04:18] Production.ERROR: pbx CDR StartTime 2024-12-18 01:04:05 - End Time 2024-12-18 04:04:05 [2024-12-18 04:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045580', 'tblTempUsageDetail_20' ) start [2024-12-18 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045580', 'tblTempUsageDetail_20' ) end [2024-12-18 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045580', 'tblTempVendorCDR_20' ) start [2024-12-18 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045580', 'tblTempVendorCDR_20' ) end [2024-12-18 04:04:18] Production.INFO: ProcessCDR(1,14045580,1,1,2) [2024-12-18 04:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045580', 'tblTempUsageDetail_20' ) start [2024-12-18 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045580', 'tblTempUsageDetail_20' ) end [2024-12-18 04:04:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 04:04:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 04:04:21] Production.INFO: ==9212== Releasing lock... [2024-12-18 04:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 04:04:21] Production.INFO: 28.75 MB #Memory Used# [2024-12-18 04:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 01:05:05 [end_date_ymd] => 2024-12-18 04:05:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 01:05:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 04:05:17] Production.INFO: count ==200 [2024-12-18 04:05:17] Production.ERROR: pbx CDR StartTime 2024-12-18 01:05:05 - End Time 2024-12-18 04:05:05 [2024-12-18 04:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045585', 'tblTempUsageDetail_20' ) start [2024-12-18 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045585', 'tblTempUsageDetail_20' ) end [2024-12-18 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045585', 'tblTempVendorCDR_20' ) start [2024-12-18 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045585', 'tblTempVendorCDR_20' ) end [2024-12-18 04:05:17] Production.INFO: ProcessCDR(1,14045585,1,1,2) [2024-12-18 04:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045585', 'tblTempUsageDetail_20' ) start [2024-12-18 04:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045585', 'tblTempUsageDetail_20' ) end [2024-12-18 04:05:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 04:05:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 04:05:20] Production.INFO: ==9297== Releasing lock... [2024-12-18 04:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 04:05:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-18 04:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 01:06:05 [end_date_ymd] => 2024-12-18 04:06:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 01:06:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 04:06:17] Production.INFO: count ==200 [2024-12-18 04:06:17] Production.ERROR: pbx CDR StartTime 2024-12-18 01:06:05 - End Time 2024-12-18 04:06:05 [2024-12-18 04:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045590', 'tblTempUsageDetail_20' ) start [2024-12-18 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045590', 'tblTempUsageDetail_20' ) end [2024-12-18 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045590', 'tblTempVendorCDR_20' ) start [2024-12-18 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045590', 'tblTempVendorCDR_20' ) end [2024-12-18 04:06:17] Production.INFO: ProcessCDR(1,14045590,1,1,2) [2024-12-18 04:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045590', 'tblTempUsageDetail_20' ) start [2024-12-18 04:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045590', 'tblTempUsageDetail_20' ) end [2024-12-18 04:06:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 04:06:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 04:06:20] Production.INFO: ==9374== Releasing lock... [2024-12-18 04:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 04:06:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-18 04:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 01:07:05 [end_date_ymd] => 2024-12-18 04:07:05 [RateCDR] => 1 ) [2024-12-18 04:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 01:07:05' and `end` < '2024-12-18 04:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 04:07:17] Production.INFO: count ==200 [2024-12-18 04:07:17] Production.ERROR: pbx CDR StartTime 2024-12-18 01:07:05 - End Time 2024-12-18 04:07:05 [2024-12-18 04:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045595', 'tblTempUsageDetail_20' ) start [2024-12-18 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045595', 'tblTempUsageDetail_20' ) end [2024-12-18 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045595', 'tblTempVendorCDR_20' ) start [2024-12-18 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045595', 'tblTempVendorCDR_20' ) end [2024-12-18 04:07:17] Production.INFO: ProcessCDR(1,14045595,1,1,2) [2024-12-18 04:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045595', 'tblTempUsageDetail_20' ) start [2024-12-18 04:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045595', 'tblTempUsageDetail_20' ) end [2024-12-18 04:07:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 04:07:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 04:07:20] Production.INFO: ==9451== Releasing lock... [2024-12-18 04:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 04:07:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-18 04:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 01:08:04 [end_date_ymd] => 2024-12-18 04:08:04 [RateCDR] => 1 ) [2024-12-18 04:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 01:08:04' and `end` < '2024-12-18 04:08:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 04:08:17] Production.INFO: count ==200 [2024-12-18 04:08:17] Production.ERROR: pbx CDR StartTime 2024-12-18 01:08:04 - End Time 2024-12-18 04:08:04 [2024-12-18 04:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045600', 'tblTempUsageDetail_20' ) start [2024-12-18 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045600', 'tblTempUsageDetail_20' ) end [2024-12-18 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045600', 'tblTempVendorCDR_20' ) start [2024-12-18 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045600', 'tblTempVendorCDR_20' ) end [2024-12-18 04:08:17] Production.INFO: ProcessCDR(1,14045600,1,1,2) [2024-12-18 04:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045600', 'tblTempUsageDetail_20' ) start [2024-12-18 04:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045600', 'tblTempUsageDetail_20' ) end [2024-12-18 04:08:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 04:08:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 04:08:20] Production.INFO: ==9530== Releasing lock... [2024-12-18 04:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 04:08:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-18 04:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 01:09:05 [end_date_ymd] => 2024-12-18 04:09:05 [RateCDR] => 1 ) [2024-12-18 04:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 01:09:05' and `end` < '2024-12-18 04:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 04:09:17] Production.INFO: count ==199 [2024-12-18 04:09:17] Production.ERROR: pbx CDR StartTime 2024-12-18 01:09:05 - End Time 2024-12-18 04:09:05 [2024-12-18 04:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045605', 'tblTempUsageDetail_20' ) start [2024-12-18 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045605', 'tblTempUsageDetail_20' ) end [2024-12-18 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045605', 'tblTempVendorCDR_20' ) start [2024-12-18 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045605', 'tblTempVendorCDR_20' ) end [2024-12-18 04:09:17] Production.INFO: ProcessCDR(1,14045605,1,1,2) [2024-12-18 04:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045605', 'tblTempUsageDetail_20' ) start [2024-12-18 04:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045605', 'tblTempUsageDetail_20' ) end [2024-12-18 04:09:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 04:09:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 04:09:20] Production.INFO: ==9605== Releasing lock... [2024-12-18 04:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 04:09:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-18 04:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 01:10:05 [end_date_ymd] => 2024-12-18 04:10:05 [RateCDR] => 1 ) [2024-12-18 04:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 01:10:05' and `end` < '2024-12-18 04:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 04:10:17] Production.INFO: count ==195 [2024-12-18 04:10:17] Production.ERROR: pbx CDR StartTime 2024-12-18 01:10:05 - End Time 2024-12-18 04:10:05 [2024-12-18 04:10:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 04:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045611', 'tblTempUsageDetail_20' ) start [2024-12-18 04:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045611', 'tblTempUsageDetail_20' ) end [2024-12-18 04:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045611', 'tblTempVendorCDR_20' ) start [2024-12-18 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045611', 'tblTempVendorCDR_20' ) end [2024-12-18 04:10:18] Production.INFO: ProcessCDR(1,14045611,1,1,2) [2024-12-18 04:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:10:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:10:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:10:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:10:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045611', 'tblTempUsageDetail_20' ) start [2024-12-18 04:10:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045611', 'tblTempUsageDetail_20' ) end [2024-12-18 04:10:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 04:10:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 04:10:20] Production.INFO: ==9681== Releasing lock... [2024-12-18 04:10:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 04:10:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-18 04:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 01:11:05 [end_date_ymd] => 2024-12-18 04:11:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 01:11:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 04:11:17] Production.INFO: count ==181 [2024-12-18 04:11:17] Production.ERROR: pbx CDR StartTime 2024-12-18 01:11:05 - End Time 2024-12-18 04:11:05 [2024-12-18 04:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045616', 'tblTempUsageDetail_20' ) start [2024-12-18 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045616', 'tblTempUsageDetail_20' ) end [2024-12-18 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045616', 'tblTempVendorCDR_20' ) start [2024-12-18 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045616', 'tblTempVendorCDR_20' ) end [2024-12-18 04:11:17] Production.INFO: ProcessCDR(1,14045616,1,1,2) [2024-12-18 04:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045616', 'tblTempUsageDetail_20' ) start [2024-12-18 04:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045616', 'tblTempUsageDetail_20' ) end [2024-12-18 04:11:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 04:11:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 04:11:21] Production.INFO: ==9802== Releasing lock... [2024-12-18 04:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 04:11:21] Production.INFO: 28.75 MB #Memory Used# [2024-12-18 04:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 01:12:05 [end_date_ymd] => 2024-12-18 04:12:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 01:12:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 04:12:17] Production.INFO: count ==181 [2024-12-18 04:12:17] Production.ERROR: pbx CDR StartTime 2024-12-18 01:12:05 - End Time 2024-12-18 04:12:05 [2024-12-18 04:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 04:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045621', 'tblTempUsageDetail_20' ) start [2024-12-18 04:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045621', 'tblTempUsageDetail_20' ) end [2024-12-18 04:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045621', 'tblTempVendorCDR_20' ) start [2024-12-18 04:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045621', 'tblTempVendorCDR_20' ) end [2024-12-18 04:12:17] Production.INFO: ProcessCDR(1,14045621,1,1,2) [2024-12-18 04:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045621', 'tblTempUsageDetail_20' ) start [2024-12-18 04:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045621', 'tblTempUsageDetail_20' ) end [2024-12-18 04:12:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 04:12:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 04:12:20] Production.INFO: ==9879== Releasing lock... [2024-12-18 04:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 04:12:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-18 04:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 01:13:04 [end_date_ymd] => 2024-12-18 04:13:04 [RateCDR] => 1 ) [2024-12-18 04:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 01:13:04' and `end` < '2024-12-18 04:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 04:13:17] Production.INFO: count ==181 [2024-12-18 04:13:17] Production.ERROR: pbx CDR StartTime 2024-12-18 01:13:04 - End Time 2024-12-18 04:13:04 [2024-12-18 04:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045626', 'tblTempUsageDetail_20' ) start [2024-12-18 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045626', 'tblTempUsageDetail_20' ) end [2024-12-18 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045626', 'tblTempVendorCDR_20' ) start [2024-12-18 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045626', 'tblTempVendorCDR_20' ) end [2024-12-18 04:13:17] Production.INFO: ProcessCDR(1,14045626,1,1,2) [2024-12-18 04:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045626', 'tblTempUsageDetail_20' ) start [2024-12-18 04:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045626', 'tblTempUsageDetail_20' ) end [2024-12-18 04:13:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 04:13:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 04:13:20] Production.INFO: ==9957== Releasing lock... [2024-12-18 04:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 04:13:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-18 04:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 01:14:05 [end_date_ymd] => 2024-12-18 04:14:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 01:14:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 04:14:18] Production.INFO: count ==181 [2024-12-18 04:14:18] Production.ERROR: pbx CDR StartTime 2024-12-18 01:14:05 - End Time 2024-12-18 04:14:05 [2024-12-18 04:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045631', 'tblTempUsageDetail_20' ) start [2024-12-18 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045631', 'tblTempUsageDetail_20' ) end [2024-12-18 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045631', 'tblTempVendorCDR_20' ) start [2024-12-18 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045631', 'tblTempVendorCDR_20' ) end [2024-12-18 04:14:18] Production.INFO: ProcessCDR(1,14045631,1,1,2) [2024-12-18 04:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045631', 'tblTempUsageDetail_20' ) start [2024-12-18 04:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045631', 'tblTempUsageDetail_20' ) end [2024-12-18 04:14:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 04:14:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 04:14:21] Production.INFO: ==10037== Releasing lock... [2024-12-18 04:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 04:14:21] Production.INFO: 28.75 MB #Memory Used# [2024-12-18 04:15:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 01:15:04 [end_date_ymd] => 2024-12-18 04:15:04 [RateCDR] => 1 ) [2024-12-18 04: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` >= '2024-12-18 01:15:04' and `end` < '2024-12-18 04: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 ,'') [2024-12-18 04:15:16] Production.INFO: count ==181 [2024-12-18 04:15:16] Production.ERROR: pbx CDR StartTime 2024-12-18 01:15:04 - End Time 2024-12-18 04:15:04 [2024-12-18 04:15:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 04:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045636', 'tblTempUsageDetail_20' ) start [2024-12-18 04:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045636', 'tblTempUsageDetail_20' ) end [2024-12-18 04:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045636', 'tblTempVendorCDR_20' ) start [2024-12-18 04:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045636', 'tblTempVendorCDR_20' ) end [2024-12-18 04:15:16] Production.INFO: ProcessCDR(1,14045636,1,1,2) [2024-12-18 04:15:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:15:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:15:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:15:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:15:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045636', 'tblTempUsageDetail_20' ) start [2024-12-18 04:15:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045636', 'tblTempUsageDetail_20' ) end [2024-12-18 04:15:19] Production.ERROR: pbx prc_insertCDR start [2024-12-18 04:15:19] Production.ERROR: pbx prc_insertCDR end [2024-12-18 04:15:19] Production.INFO: ==10111== Releasing lock... [2024-12-18 04:15:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 04:15:19] Production.INFO: 28.75 MB #Memory Used# [2024-12-18 04:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 01:16:05 [end_date_ymd] => 2024-12-18 04:16:05 [RateCDR] => 1 ) [2024-12-18 04:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 01:16:05' and `end` < '2024-12-18 04:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 04:16:17] Production.INFO: count ==181 [2024-12-18 04:16:18] Production.ERROR: pbx CDR StartTime 2024-12-18 01:16:05 - End Time 2024-12-18 04:16:05 [2024-12-18 04:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045641', 'tblTempUsageDetail_20' ) start [2024-12-18 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045641', 'tblTempUsageDetail_20' ) end [2024-12-18 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045641', 'tblTempVendorCDR_20' ) start [2024-12-18 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045641', 'tblTempVendorCDR_20' ) end [2024-12-18 04:16:18] Production.INFO: ProcessCDR(1,14045641,1,1,2) [2024-12-18 04:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045641', 'tblTempUsageDetail_20' ) start [2024-12-18 04:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045641', 'tblTempUsageDetail_20' ) end [2024-12-18 04:16:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 04:16:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 04:16:21] Production.INFO: ==10191== Releasing lock... [2024-12-18 04:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 04:16:21] Production.INFO: 28.75 MB #Memory Used# [2024-12-18 04:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 01:17:04 [end_date_ymd] => 2024-12-18 04:17:04 [RateCDR] => 1 ) [2024-12-18 04: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` >= '2024-12-18 01:17:04' and `end` < '2024-12-18 04: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 ,'') [2024-12-18 04:17:17] Production.INFO: count ==181 [2024-12-18 04:17:17] Production.ERROR: pbx CDR StartTime 2024-12-18 01:17:04 - End Time 2024-12-18 04:17:04 [2024-12-18 04:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045646', 'tblTempUsageDetail_20' ) start [2024-12-18 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045646', 'tblTempUsageDetail_20' ) end [2024-12-18 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045646', 'tblTempVendorCDR_20' ) start [2024-12-18 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045646', 'tblTempVendorCDR_20' ) end [2024-12-18 04:17:17] Production.INFO: ProcessCDR(1,14045646,1,1,2) [2024-12-18 04:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045646', 'tblTempUsageDetail_20' ) start [2024-12-18 04:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045646', 'tblTempUsageDetail_20' ) end [2024-12-18 04:17:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 04:17:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 04:17:20] Production.INFO: ==10276== Releasing lock... [2024-12-18 04:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 04:17:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-18 04:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 01:18:05 [end_date_ymd] => 2024-12-18 04:18:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 01:18:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 04:18:18] Production.INFO: count ==181 [2024-12-18 04:18:18] Production.ERROR: pbx CDR StartTime 2024-12-18 01:18:05 - End Time 2024-12-18 04:18:05 [2024-12-18 04:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045651', 'tblTempUsageDetail_20' ) start [2024-12-18 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045651', 'tblTempUsageDetail_20' ) end [2024-12-18 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045651', 'tblTempVendorCDR_20' ) start [2024-12-18 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045651', 'tblTempVendorCDR_20' ) end [2024-12-18 04:18:18] Production.INFO: ProcessCDR(1,14045651,1,1,2) [2024-12-18 04:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045651', 'tblTempUsageDetail_20' ) start [2024-12-18 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045651', 'tblTempUsageDetail_20' ) end [2024-12-18 04:18:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 04:18:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 04:18:21] Production.INFO: ==10360== Releasing lock... [2024-12-18 04:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 04:18:21] Production.INFO: 28.75 MB #Memory Used# [2024-12-18 04:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 01:19:05 [end_date_ymd] => 2024-12-18 04:19:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 01:19:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 04:19:18] Production.INFO: count ==181 [2024-12-18 04:19:18] Production.ERROR: pbx CDR StartTime 2024-12-18 01:19:05 - End Time 2024-12-18 04:19:05 [2024-12-18 04:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045656', 'tblTempUsageDetail_20' ) start [2024-12-18 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045656', 'tblTempUsageDetail_20' ) end [2024-12-18 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045656', 'tblTempVendorCDR_20' ) start [2024-12-18 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045656', 'tblTempVendorCDR_20' ) end [2024-12-18 04:19:18] Production.INFO: ProcessCDR(1,14045656,1,1,2) [2024-12-18 04:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045656', 'tblTempUsageDetail_20' ) start [2024-12-18 04:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045656', 'tblTempUsageDetail_20' ) end [2024-12-18 04:19:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 04:19:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 04:19:21] Production.INFO: ==10439== Releasing lock... [2024-12-18 04:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 04:19:21] Production.INFO: 28.75 MB #Memory Used# [2024-12-18 04:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 01:20:05 [end_date_ymd] => 2024-12-18 04:20:05 [RateCDR] => 1 ) [2024-12-18 04: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` >= '2024-12-18 01:20:05' and `end` < '2024-12-18 04: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 ,'') [2024-12-18 04:20:17] Production.INFO: count ==177 [2024-12-18 04:20:17] Production.ERROR: pbx CDR StartTime 2024-12-18 01:20:05 - End Time 2024-12-18 04:20:05 [2024-12-18 04:20:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 04:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045661', 'tblTempUsageDetail_20' ) start [2024-12-18 04:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045661', 'tblTempUsageDetail_20' ) end [2024-12-18 04:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045661', 'tblTempVendorCDR_20' ) start [2024-12-18 04:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045661', 'tblTempVendorCDR_20' ) end [2024-12-18 04:20:17] Production.INFO: ProcessCDR(1,14045661,1,1,2) [2024-12-18 04:20:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:20:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:20:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:20:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:20:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045661', 'tblTempUsageDetail_20' ) start [2024-12-18 04:20:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045661', 'tblTempUsageDetail_20' ) end [2024-12-18 04:20:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 04:20:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 04:20:20] Production.INFO: ==10520== Releasing lock... [2024-12-18 04:20:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 04:20:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-18 04:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 01:21:05 [end_date_ymd] => 2024-12-18 04:21:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 01:21:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 04:21:17] Production.INFO: count ==177 [2024-12-18 04:21:17] Production.ERROR: pbx CDR StartTime 2024-12-18 01:21:05 - End Time 2024-12-18 04:21:05 [2024-12-18 04:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045667', 'tblTempUsageDetail_20' ) start [2024-12-18 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045667', 'tblTempUsageDetail_20' ) end [2024-12-18 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045667', 'tblTempVendorCDR_20' ) start [2024-12-18 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045667', 'tblTempVendorCDR_20' ) end [2024-12-18 04:21:17] Production.INFO: ProcessCDR(1,14045667,1,1,2) [2024-12-18 04:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045667', 'tblTempUsageDetail_20' ) start [2024-12-18 04:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045667', 'tblTempUsageDetail_20' ) end [2024-12-18 04:21:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 04:21:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 04:21:20] Production.INFO: ==10605== Releasing lock... [2024-12-18 04:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 04:21:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-18 04:22:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 01:22:04 [end_date_ymd] => 2024-12-18 04:22:04 [RateCDR] => 1 ) [2024-12-18 04:22:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 01:22:04' and `end` < '2024-12-18 04:22:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 04:22:16] Production.INFO: count ==177 [2024-12-18 04:22:16] Production.ERROR: pbx CDR StartTime 2024-12-18 01:22:04 - End Time 2024-12-18 04:22:04 [2024-12-18 04:22:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 04:22:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045672', 'tblTempUsageDetail_20' ) start [2024-12-18 04:22:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045672', 'tblTempUsageDetail_20' ) end [2024-12-18 04:22:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045672', 'tblTempVendorCDR_20' ) start [2024-12-18 04:22:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045672', 'tblTempVendorCDR_20' ) end [2024-12-18 04:22:16] Production.INFO: ProcessCDR(1,14045672,1,1,2) [2024-12-18 04:22:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:22:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:22:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:22:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:22:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045672', 'tblTempUsageDetail_20' ) start [2024-12-18 04:22:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045672', 'tblTempUsageDetail_20' ) end [2024-12-18 04:22:19] Production.ERROR: pbx prc_insertCDR start [2024-12-18 04:22:19] Production.ERROR: pbx prc_insertCDR end [2024-12-18 04:22:19] Production.INFO: ==10681== Releasing lock... [2024-12-18 04:22:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 04:22:19] Production.INFO: 28.75 MB #Memory Used# [2024-12-18 04:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 01:23:05 [end_date_ymd] => 2024-12-18 04:23:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 01:23:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 04:23:17] Production.INFO: count ==177 [2024-12-18 04:23:17] Production.ERROR: pbx CDR StartTime 2024-12-18 01:23:05 - End Time 2024-12-18 04:23:05 [2024-12-18 04:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045677', 'tblTempUsageDetail_20' ) start [2024-12-18 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045677', 'tblTempUsageDetail_20' ) end [2024-12-18 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045677', 'tblTempVendorCDR_20' ) start [2024-12-18 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045677', 'tblTempVendorCDR_20' ) end [2024-12-18 04:23:17] Production.INFO: ProcessCDR(1,14045677,1,1,2) [2024-12-18 04:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045677', 'tblTempUsageDetail_20' ) start [2024-12-18 04:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045677', 'tblTempUsageDetail_20' ) end [2024-12-18 04:23:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 04:23:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 04:23:20] Production.INFO: ==10754== Releasing lock... [2024-12-18 04:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 04:23:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-18 04:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 01:24:05 [end_date_ymd] => 2024-12-18 04:24:05 [RateCDR] => 1 ) [2024-12-18 04:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 01:24:05' and `end` < '2024-12-18 04:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 04:24:18] Production.INFO: count ==177 [2024-12-18 04:24:18] Production.ERROR: pbx CDR StartTime 2024-12-18 01:24:05 - End Time 2024-12-18 04:24:05 [2024-12-18 04:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045682', 'tblTempUsageDetail_20' ) start [2024-12-18 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045682', 'tblTempUsageDetail_20' ) end [2024-12-18 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045682', 'tblTempVendorCDR_20' ) start [2024-12-18 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045682', 'tblTempVendorCDR_20' ) end [2024-12-18 04:24:18] Production.INFO: ProcessCDR(1,14045682,1,1,2) [2024-12-18 04:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045682', 'tblTempUsageDetail_20' ) start [2024-12-18 04:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045682', 'tblTempUsageDetail_20' ) end [2024-12-18 04:24:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 04:24:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 04:24:21] Production.INFO: ==10833== Releasing lock... [2024-12-18 04:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 04:24:21] Production.INFO: 28.75 MB #Memory Used# [2024-12-18 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 01:25:05 [end_date_ymd] => 2024-12-18 04:25:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 01:25:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 04:25:17] Production.INFO: count ==177 [2024-12-18 04:25:17] Production.ERROR: pbx CDR StartTime 2024-12-18 01:25:05 - End Time 2024-12-18 04:25:05 [2024-12-18 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045687', 'tblTempUsageDetail_20' ) start [2024-12-18 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045687', 'tblTempUsageDetail_20' ) end [2024-12-18 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045687', 'tblTempVendorCDR_20' ) start [2024-12-18 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045687', 'tblTempVendorCDR_20' ) end [2024-12-18 04:25:17] Production.INFO: ProcessCDR(1,14045687,1,1,2) [2024-12-18 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045687', 'tblTempUsageDetail_20' ) start [2024-12-18 04:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045687', 'tblTempUsageDetail_20' ) end [2024-12-18 04:25:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 04:25:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 04:25:20] Production.INFO: ==10911== Releasing lock... [2024-12-18 04:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 04:25:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-18 04:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 01:26:05 [end_date_ymd] => 2024-12-18 04:26:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 01:26:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 04:26:17] Production.INFO: count ==176 [2024-12-18 04:26:17] Production.ERROR: pbx CDR StartTime 2024-12-18 01:26:05 - End Time 2024-12-18 04:26:05 [2024-12-18 04:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045692', 'tblTempUsageDetail_20' ) start [2024-12-18 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045692', 'tblTempUsageDetail_20' ) end [2024-12-18 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045692', 'tblTempVendorCDR_20' ) start [2024-12-18 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045692', 'tblTempVendorCDR_20' ) end [2024-12-18 04:26:17] Production.INFO: ProcessCDR(1,14045692,1,1,2) [2024-12-18 04:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045692', 'tblTempUsageDetail_20' ) start [2024-12-18 04:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045692', 'tblTempUsageDetail_20' ) end [2024-12-18 04:26:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 04:26:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 04:26:20] Production.INFO: ==11031== Releasing lock... [2024-12-18 04:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 04:26:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-18 04:27:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 01:27:04 [end_date_ymd] => 2024-12-18 04:27:04 [RateCDR] => 1 ) [2024-12-18 04:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 01:27:04' and `end` < '2024-12-18 04:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 04:27:16] Production.INFO: count ==176 [2024-12-18 04:27:16] Production.ERROR: pbx CDR StartTime 2024-12-18 01:27:04 - End Time 2024-12-18 04:27:04 [2024-12-18 04:27:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 04:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045697', 'tblTempUsageDetail_20' ) start [2024-12-18 04:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045697', 'tblTempUsageDetail_20' ) end [2024-12-18 04:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045697', 'tblTempVendorCDR_20' ) start [2024-12-18 04:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045697', 'tblTempVendorCDR_20' ) end [2024-12-18 04:27:16] Production.INFO: ProcessCDR(1,14045697,1,1,2) [2024-12-18 04:27:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:27:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:27:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:27:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:27:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045697', 'tblTempUsageDetail_20' ) start [2024-12-18 04:27:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045697', 'tblTempUsageDetail_20' ) end [2024-12-18 04:27:19] Production.ERROR: pbx prc_insertCDR start [2024-12-18 04:27:19] Production.ERROR: pbx prc_insertCDR end [2024-12-18 04:27:19] Production.INFO: ==11109== Releasing lock... [2024-12-18 04:27:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 04:27:19] Production.INFO: 28.75 MB #Memory Used# [2024-12-18 04:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 01:28:05 [end_date_ymd] => 2024-12-18 04:28:05 [RateCDR] => 1 ) [2024-12-18 04:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 01:28:05' and `end` < '2024-12-18 04:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 04:28:17] Production.INFO: count ==175 [2024-12-18 04:28:17] Production.ERROR: pbx CDR StartTime 2024-12-18 01:28:05 - End Time 2024-12-18 04:28:05 [2024-12-18 04:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045702', 'tblTempUsageDetail_20' ) start [2024-12-18 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045702', 'tblTempUsageDetail_20' ) end [2024-12-18 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045702', 'tblTempVendorCDR_20' ) start [2024-12-18 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045702', 'tblTempVendorCDR_20' ) end [2024-12-18 04:28:17] Production.INFO: ProcessCDR(1,14045702,1,1,2) [2024-12-18 04:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045702', 'tblTempUsageDetail_20' ) start [2024-12-18 04:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045702', 'tblTempUsageDetail_20' ) end [2024-12-18 04:28:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 04:28:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 04:28:20] Production.INFO: ==11185== Releasing lock... [2024-12-18 04:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 04:28:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-18 04:29:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 01:29:04 [end_date_ymd] => 2024-12-18 04:29:04 [RateCDR] => 1 ) [2024-12-18 04:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 01:29:04' and `end` < '2024-12-18 04:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 04:29:17] Production.INFO: count ==175 [2024-12-18 04:29:17] Production.ERROR: pbx CDR StartTime 2024-12-18 01:29:04 - End Time 2024-12-18 04:29:04 [2024-12-18 04:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045707', 'tblTempUsageDetail_20' ) start [2024-12-18 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045707', 'tblTempUsageDetail_20' ) end [2024-12-18 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045707', 'tblTempVendorCDR_20' ) start [2024-12-18 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045707', 'tblTempVendorCDR_20' ) end [2024-12-18 04:29:17] Production.INFO: ProcessCDR(1,14045707,1,1,2) [2024-12-18 04:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045707', 'tblTempUsageDetail_20' ) start [2024-12-18 04:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045707', 'tblTempUsageDetail_20' ) end [2024-12-18 04:29:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 04:29:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 04:29:20] Production.INFO: ==11260== Releasing lock... [2024-12-18 04:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 04:29:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-18 04:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 01:30:06 [end_date_ymd] => 2024-12-18 04:30:06 [RateCDR] => 1 ) [2024-12-18 04:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 01:30:06' and `end` < '2024-12-18 04:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 04:30:18] Production.INFO: count ==174 [2024-12-18 04:30:18] Production.ERROR: pbx CDR StartTime 2024-12-18 01:30:06 - End Time 2024-12-18 04:30:06 [2024-12-18 04:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045713', 'tblTempUsageDetail_20' ) start [2024-12-18 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045713', 'tblTempUsageDetail_20' ) end [2024-12-18 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045713', 'tblTempVendorCDR_20' ) start [2024-12-18 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045713', 'tblTempVendorCDR_20' ) end [2024-12-18 04:30:18] Production.INFO: ProcessCDR(1,14045713,1,1,2) [2024-12-18 04:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045713', 'tblTempUsageDetail_20' ) start [2024-12-18 04:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045713', 'tblTempUsageDetail_20' ) end [2024-12-18 04:30:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 04:30:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 04:30:22] Production.INFO: ==11339== Releasing lock... [2024-12-18 04:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 04:30:22] Production.INFO: 28.5 MB #Memory Used# [2024-12-18 04:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 01:31:05 [end_date_ymd] => 2024-12-18 04:31:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 01:31:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 04:31:18] Production.INFO: count ==175 [2024-12-18 04:31:18] Production.ERROR: pbx CDR StartTime 2024-12-18 01:31:05 - End Time 2024-12-18 04:31:05 [2024-12-18 04:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045719', 'tblTempUsageDetail_20' ) start [2024-12-18 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045719', 'tblTempUsageDetail_20' ) end [2024-12-18 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045719', 'tblTempVendorCDR_20' ) start [2024-12-18 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045719', 'tblTempVendorCDR_20' ) end [2024-12-18 04:31:18] Production.INFO: ProcessCDR(1,14045719,1,1,2) [2024-12-18 04:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045719', 'tblTempUsageDetail_20' ) start [2024-12-18 04:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045719', 'tblTempUsageDetail_20' ) end [2024-12-18 04:31:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 04:31:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 04:31:21] Production.INFO: ==11486== Releasing lock... [2024-12-18 04:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 04:31:21] Production.INFO: 28.75 MB #Memory Used# [2024-12-18 04:32:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 01:32:04 [end_date_ymd] => 2024-12-18 04:32:04 [RateCDR] => 1 ) [2024-12-18 04:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 01:32:04' and `end` < '2024-12-18 04:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 04:32:17] Production.INFO: count ==175 [2024-12-18 04:32:17] Production.ERROR: pbx CDR StartTime 2024-12-18 01:32:04 - End Time 2024-12-18 04:32:04 [2024-12-18 04:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045724', 'tblTempUsageDetail_20' ) start [2024-12-18 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045724', 'tblTempUsageDetail_20' ) end [2024-12-18 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045724', 'tblTempVendorCDR_20' ) start [2024-12-18 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045724', 'tblTempVendorCDR_20' ) end [2024-12-18 04:32:17] Production.INFO: ProcessCDR(1,14045724,1,1,2) [2024-12-18 04:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045724', 'tblTempUsageDetail_20' ) start [2024-12-18 04:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045724', 'tblTempUsageDetail_20' ) end [2024-12-18 04:32:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 04:32:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 04:32:20] Production.INFO: ==11566== Releasing lock... [2024-12-18 04:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 04:32:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-18 04:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 01:33:05 [end_date_ymd] => 2024-12-18 04:33:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 01:33:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 04:33:17] Production.INFO: count ==175 [2024-12-18 04:33:17] Production.ERROR: pbx CDR StartTime 2024-12-18 01:33:05 - End Time 2024-12-18 04:33:05 [2024-12-18 04:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045729', 'tblTempUsageDetail_20' ) start [2024-12-18 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045729', 'tblTempUsageDetail_20' ) end [2024-12-18 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045729', 'tblTempVendorCDR_20' ) start [2024-12-18 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045729', 'tblTempVendorCDR_20' ) end [2024-12-18 04:33:17] Production.INFO: ProcessCDR(1,14045729,1,1,2) [2024-12-18 04:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045729', 'tblTempUsageDetail_20' ) start [2024-12-18 04:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045729', 'tblTempUsageDetail_20' ) end [2024-12-18 04:33:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 04:33:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 04:33:20] Production.INFO: ==11649== Releasing lock... [2024-12-18 04:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 04:33:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-18 04:34:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 01:34:04 [end_date_ymd] => 2024-12-18 04:34:04 [RateCDR] => 1 ) [2024-12-18 04:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 01:34:04' and `end` < '2024-12-18 04:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 04:34:16] Production.INFO: count ==175 [2024-12-18 04:34:16] Production.ERROR: pbx CDR StartTime 2024-12-18 01:34:04 - End Time 2024-12-18 04:34:04 [2024-12-18 04:34:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 04:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045734', 'tblTempUsageDetail_20' ) start [2024-12-18 04:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045734', 'tblTempUsageDetail_20' ) end [2024-12-18 04:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045734', 'tblTempVendorCDR_20' ) start [2024-12-18 04:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045734', 'tblTempVendorCDR_20' ) end [2024-12-18 04:34:16] Production.INFO: ProcessCDR(1,14045734,1,1,2) [2024-12-18 04:34:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:34:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:34:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:34:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:34:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045734', 'tblTempUsageDetail_20' ) start [2024-12-18 04:34:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045734', 'tblTempUsageDetail_20' ) end [2024-12-18 04:34:19] Production.ERROR: pbx prc_insertCDR start [2024-12-18 04:34:19] Production.ERROR: pbx prc_insertCDR end [2024-12-18 04:34:19] Production.INFO: ==11729== Releasing lock... [2024-12-18 04:34:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 04:34:19] Production.INFO: 28.75 MB #Memory Used# [2024-12-18 04:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 01:35:04 [end_date_ymd] => 2024-12-18 04:35:04 [RateCDR] => 1 ) [2024-12-18 04:35: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` >= '2024-12-18 01:35:04' and `end` < '2024-12-18 04:35: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 ,'') [2024-12-18 04:35:17] Production.INFO: count ==175 [2024-12-18 04:35:17] Production.ERROR: pbx CDR StartTime 2024-12-18 01:35:04 - End Time 2024-12-18 04:35:04 [2024-12-18 04:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045739', 'tblTempUsageDetail_20' ) start [2024-12-18 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045739', 'tblTempUsageDetail_20' ) end [2024-12-18 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045739', 'tblTempVendorCDR_20' ) start [2024-12-18 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045739', 'tblTempVendorCDR_20' ) end [2024-12-18 04:35:17] Production.INFO: ProcessCDR(1,14045739,1,1,2) [2024-12-18 04:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045739', 'tblTempUsageDetail_20' ) start [2024-12-18 04:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045739', 'tblTempUsageDetail_20' ) end [2024-12-18 04:35:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 04:35:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 04:35:20] Production.INFO: ==11810== Releasing lock... [2024-12-18 04:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 04:35:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-18 04:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 01:36:05 [end_date_ymd] => 2024-12-18 04:36:05 [RateCDR] => 1 ) [2024-12-18 04:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 01:36:05' and `end` < '2024-12-18 04:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 04:36:18] Production.INFO: count ==175 [2024-12-18 04:36:18] Production.ERROR: pbx CDR StartTime 2024-12-18 01:36:05 - End Time 2024-12-18 04:36:05 [2024-12-18 04:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045744', 'tblTempUsageDetail_20' ) start [2024-12-18 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045744', 'tblTempUsageDetail_20' ) end [2024-12-18 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045744', 'tblTempVendorCDR_20' ) start [2024-12-18 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045744', 'tblTempVendorCDR_20' ) end [2024-12-18 04:36:18] Production.INFO: ProcessCDR(1,14045744,1,1,2) [2024-12-18 04:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045744', 'tblTempUsageDetail_20' ) start [2024-12-18 04:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045744', 'tblTempUsageDetail_20' ) end [2024-12-18 04:36:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 04:36:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 04:36:22] Production.INFO: ==11889== Releasing lock... [2024-12-18 04:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 04:36:22] Production.INFO: 28.75 MB #Memory Used# [2024-12-18 04:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 01:37:04 [end_date_ymd] => 2024-12-18 04:37:04 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 01:37:04' and `end` < '2024-12-18 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 ,'') [2024-12-18 04:37:17] Production.INFO: count ==175 [2024-12-18 04:37:17] Production.ERROR: pbx CDR StartTime 2024-12-18 01:37:04 - End Time 2024-12-18 04:37:04 [2024-12-18 04:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045749', 'tblTempUsageDetail_20' ) start [2024-12-18 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045749', 'tblTempUsageDetail_20' ) end [2024-12-18 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045749', 'tblTempVendorCDR_20' ) start [2024-12-18 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045749', 'tblTempVendorCDR_20' ) end [2024-12-18 04:37:17] Production.INFO: ProcessCDR(1,14045749,1,1,2) [2024-12-18 04:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045749', 'tblTempUsageDetail_20' ) start [2024-12-18 04:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045749', 'tblTempUsageDetail_20' ) end [2024-12-18 04:37:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 04:37:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 04:37:20] Production.INFO: ==11970== Releasing lock... [2024-12-18 04:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 04:37:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-18 04:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 01:38:05 [end_date_ymd] => 2024-12-18 04:38:05 [RateCDR] => 1 ) [2024-12-18 04:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 01:38:05' and `end` < '2024-12-18 04:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 04:38:17] Production.INFO: count ==175 [2024-12-18 04:38:17] Production.ERROR: pbx CDR StartTime 2024-12-18 01:38:05 - End Time 2024-12-18 04:38:05 [2024-12-18 04:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045754', 'tblTempUsageDetail_20' ) start [2024-12-18 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045754', 'tblTempUsageDetail_20' ) end [2024-12-18 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045754', 'tblTempVendorCDR_20' ) start [2024-12-18 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045754', 'tblTempVendorCDR_20' ) end [2024-12-18 04:38:17] Production.INFO: ProcessCDR(1,14045754,1,1,2) [2024-12-18 04:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045754', 'tblTempUsageDetail_20' ) start [2024-12-18 04:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045754', 'tblTempUsageDetail_20' ) end [2024-12-18 04:38:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 04:38:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 04:38:20] Production.INFO: ==12048== Releasing lock... [2024-12-18 04:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 04:38:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-18 04:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 01:39:04 [end_date_ymd] => 2024-12-18 04:39:04 [RateCDR] => 1 ) [2024-12-18 04:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 01:39:04' and `end` < '2024-12-18 04:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 04:39:16] Production.INFO: count ==175 [2024-12-18 04:39:16] Production.ERROR: pbx CDR StartTime 2024-12-18 01:39:04 - End Time 2024-12-18 04:39:04 [2024-12-18 04:39:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 04:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045759', 'tblTempUsageDetail_20' ) start [2024-12-18 04:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045759', 'tblTempUsageDetail_20' ) end [2024-12-18 04:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045759', 'tblTempVendorCDR_20' ) start [2024-12-18 04:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045759', 'tblTempVendorCDR_20' ) end [2024-12-18 04:39:16] Production.INFO: ProcessCDR(1,14045759,1,1,2) [2024-12-18 04:39:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:39:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:39:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:39:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:39:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045759', 'tblTempUsageDetail_20' ) start [2024-12-18 04:39:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045759', 'tblTempUsageDetail_20' ) end [2024-12-18 04:39:19] Production.ERROR: pbx prc_insertCDR start [2024-12-18 04:39:19] Production.ERROR: pbx prc_insertCDR end [2024-12-18 04:39:19] Production.INFO: ==12126== Releasing lock... [2024-12-18 04:39:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 04:39:19] Production.INFO: 28.75 MB #Memory Used# [2024-12-18 04:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 01:40:05 [end_date_ymd] => 2024-12-18 04:40:05 [RateCDR] => 1 ) [2024-12-18 04:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 01:40:05' and `end` < '2024-12-18 04:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 04:40:17] Production.INFO: count ==175 [2024-12-18 04:40:17] Production.ERROR: pbx CDR StartTime 2024-12-18 01:40:05 - End Time 2024-12-18 04:40:05 [2024-12-18 04:40:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 04:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045763', 'tblTempUsageDetail_20' ) start [2024-12-18 04:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045763', 'tblTempUsageDetail_20' ) end [2024-12-18 04:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045763', 'tblTempVendorCDR_20' ) start [2024-12-18 04:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045763', 'tblTempVendorCDR_20' ) end [2024-12-18 04:40:17] Production.INFO: ProcessCDR(1,14045763,1,1,2) [2024-12-18 04:40:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:40:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:40:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:40:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:40:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045763', 'tblTempUsageDetail_20' ) start [2024-12-18 04:40:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045763', 'tblTempUsageDetail_20' ) end [2024-12-18 04:40:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 04:40:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 04:40:20] Production.INFO: ==12206== Releasing lock... [2024-12-18 04:40:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 04:40:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-18 04:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 01:41:05 [end_date_ymd] => 2024-12-18 04:41:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 01:41:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 04:41:18] Production.INFO: count ==173 [2024-12-18 04:41:18] Production.ERROR: pbx CDR StartTime 2024-12-18 01:41:05 - End Time 2024-12-18 04:41:05 [2024-12-18 04:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045770', 'tblTempUsageDetail_20' ) start [2024-12-18 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045770', 'tblTempUsageDetail_20' ) end [2024-12-18 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045770', 'tblTempVendorCDR_20' ) start [2024-12-18 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045770', 'tblTempVendorCDR_20' ) end [2024-12-18 04:41:18] Production.INFO: ProcessCDR(1,14045770,1,1,2) [2024-12-18 04:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045770', 'tblTempUsageDetail_20' ) start [2024-12-18 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045770', 'tblTempUsageDetail_20' ) end [2024-12-18 04:41:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 04:41:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 04:41:21] Production.INFO: ==12280== Releasing lock... [2024-12-18 04:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 04:41:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-18 04:42:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 01:42:04 [end_date_ymd] => 2024-12-18 04:42:04 [RateCDR] => 1 ) [2024-12-18 04:42:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 01:42:04' and `end` < '2024-12-18 04:42:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 04:42:17] Production.INFO: count ==171 [2024-12-18 04:42:17] Production.ERROR: pbx CDR StartTime 2024-12-18 01:42:04 - End Time 2024-12-18 04:42:04 [2024-12-18 04:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045775', 'tblTempUsageDetail_20' ) start [2024-12-18 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045775', 'tblTempUsageDetail_20' ) end [2024-12-18 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045775', 'tblTempVendorCDR_20' ) start [2024-12-18 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045775', 'tblTempVendorCDR_20' ) end [2024-12-18 04:42:17] Production.INFO: ProcessCDR(1,14045775,1,1,2) [2024-12-18 04:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045775', 'tblTempUsageDetail_20' ) start [2024-12-18 04:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045775', 'tblTempUsageDetail_20' ) end [2024-12-18 04:42:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 04:42:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 04:42:20] Production.INFO: ==12390== Releasing lock... [2024-12-18 04:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 04:42:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-18 04:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 01:43:05 [end_date_ymd] => 2024-12-18 04:43:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 01:43:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 04:43:17] Production.INFO: count ==170 [2024-12-18 04:43:17] Production.ERROR: pbx CDR StartTime 2024-12-18 01:43:05 - End Time 2024-12-18 04:43:05 [2024-12-18 04:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045780', 'tblTempUsageDetail_20' ) start [2024-12-18 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045780', 'tblTempUsageDetail_20' ) end [2024-12-18 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045780', 'tblTempVendorCDR_20' ) start [2024-12-18 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045780', 'tblTempVendorCDR_20' ) end [2024-12-18 04:43:17] Production.INFO: ProcessCDR(1,14045780,1,1,2) [2024-12-18 04:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045780', 'tblTempUsageDetail_20' ) start [2024-12-18 04:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045780', 'tblTempUsageDetail_20' ) end [2024-12-18 04:43:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 04:43:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 04:43:20] Production.INFO: ==12462== Releasing lock... [2024-12-18 04:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 04:43:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-18 04:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 01:44:05 [end_date_ymd] => 2024-12-18 04:44:05 [RateCDR] => 1 ) [2024-12-18 04:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 01:44:05' and `end` < '2024-12-18 04:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 04:44:18] Production.INFO: count ==170 [2024-12-18 04:44:18] Production.ERROR: pbx CDR StartTime 2024-12-18 01:44:05 - End Time 2024-12-18 04:44:05 [2024-12-18 04:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045785', 'tblTempUsageDetail_20' ) start [2024-12-18 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045785', 'tblTempUsageDetail_20' ) end [2024-12-18 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045785', 'tblTempVendorCDR_20' ) start [2024-12-18 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045785', 'tblTempVendorCDR_20' ) end [2024-12-18 04:44:18] Production.INFO: ProcessCDR(1,14045785,1,1,2) [2024-12-18 04:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045785', 'tblTempUsageDetail_20' ) start [2024-12-18 04:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045785', 'tblTempUsageDetail_20' ) end [2024-12-18 04:44:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 04:44:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 04:44:21] Production.INFO: ==12532== Releasing lock... [2024-12-18 04:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 04:44:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-18 04:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 01:45:05 [end_date_ymd] => 2024-12-18 04:45:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 01:45:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 04:45:17] Production.INFO: count ==170 [2024-12-18 04:45:17] Production.ERROR: pbx CDR StartTime 2024-12-18 01:45:05 - End Time 2024-12-18 04:45:05 [2024-12-18 04:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045790', 'tblTempUsageDetail_20' ) start [2024-12-18 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045790', 'tblTempUsageDetail_20' ) end [2024-12-18 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045790', 'tblTempVendorCDR_20' ) start [2024-12-18 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045790', 'tblTempVendorCDR_20' ) end [2024-12-18 04:45:17] Production.INFO: ProcessCDR(1,14045790,1,1,2) [2024-12-18 04:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045790', 'tblTempUsageDetail_20' ) start [2024-12-18 04:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045790', 'tblTempUsageDetail_20' ) end [2024-12-18 04:45:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 04:45:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 04:45:20] Production.INFO: ==12602== Releasing lock... [2024-12-18 04:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 04:45:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-18 04:46:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 01:46:04 [end_date_ymd] => 2024-12-18 04:46:04 [RateCDR] => 1 ) [2024-12-18 04:46: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` >= '2024-12-18 01:46:04' and `end` < '2024-12-18 04: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 ,'') [2024-12-18 04:46:36] Production.INFO: count ==170 [2024-12-18 04:46:36] Production.ERROR: pbx CDR StartTime 2024-12-18 01:46:04 - End Time 2024-12-18 04:46:04 [2024-12-18 04:46:36] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 04:46:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045795', 'tblTempUsageDetail_20' ) start [2024-12-18 04:46:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045795', 'tblTempUsageDetail_20' ) end [2024-12-18 04:46:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045795', 'tblTempVendorCDR_20' ) start [2024-12-18 04:46:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045795', 'tblTempVendorCDR_20' ) end [2024-12-18 04:46:36] Production.INFO: ProcessCDR(1,14045795,1,1,2) [2024-12-18 04:46:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:46:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:46:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:46:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:46:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045795', 'tblTempUsageDetail_20' ) start [2024-12-18 04:46:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045795', 'tblTempUsageDetail_20' ) end [2024-12-18 04:46:39] Production.ERROR: pbx prc_insertCDR start [2024-12-18 04:46:39] Production.ERROR: pbx prc_insertCDR end [2024-12-18 04:46:39] Production.INFO: ==12676== Releasing lock... [2024-12-18 04:46:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 04:46:39] Production.INFO: 28.5 MB #Memory Used# [2024-12-18 04:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 01:47:05 [end_date_ymd] => 2024-12-18 04:47:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 01:47:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 04:47:18] Production.INFO: count ==170 [2024-12-18 04:47:18] Production.ERROR: pbx CDR StartTime 2024-12-18 01:47:05 - End Time 2024-12-18 04:47:05 [2024-12-18 04:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045800', 'tblTempUsageDetail_20' ) start [2024-12-18 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045800', 'tblTempUsageDetail_20' ) end [2024-12-18 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045800', 'tblTempVendorCDR_20' ) start [2024-12-18 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045800', 'tblTempVendorCDR_20' ) end [2024-12-18 04:47:18] Production.INFO: ProcessCDR(1,14045800,1,1,2) [2024-12-18 04:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045800', 'tblTempUsageDetail_20' ) start [2024-12-18 04:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045800', 'tblTempUsageDetail_20' ) end [2024-12-18 04:47:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 04:47:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 04:47:21] Production.INFO: ==12747== Releasing lock... [2024-12-18 04:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 04:47:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-18 04:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 01:48:05 [end_date_ymd] => 2024-12-18 04:48:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 01:48:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 04:48:19] Production.INFO: count ==170 [2024-12-18 04:48:19] Production.ERROR: pbx CDR StartTime 2024-12-18 01:48:05 - End Time 2024-12-18 04:48:05 [2024-12-18 04:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045805', 'tblTempUsageDetail_20' ) start [2024-12-18 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045805', 'tblTempUsageDetail_20' ) end [2024-12-18 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045805', 'tblTempVendorCDR_20' ) start [2024-12-18 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045805', 'tblTempVendorCDR_20' ) end [2024-12-18 04:48:19] Production.INFO: ProcessCDR(1,14045805,1,1,2) [2024-12-18 04:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045805', 'tblTempUsageDetail_20' ) start [2024-12-18 04:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045805', 'tblTempUsageDetail_20' ) end [2024-12-18 04:48:23] Production.ERROR: pbx prc_insertCDR start [2024-12-18 04:48:23] Production.ERROR: pbx prc_insertCDR end [2024-12-18 04:48:23] Production.INFO: ==12827== Releasing lock... [2024-12-18 04:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 04:48:23] Production.INFO: 28.5 MB #Memory Used# [2024-12-18 04:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 01:49:05 [end_date_ymd] => 2024-12-18 04:49:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 01:49:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 04:49:19] Production.INFO: count ==170 [2024-12-18 04:49:19] Production.ERROR: pbx CDR StartTime 2024-12-18 01:49:05 - End Time 2024-12-18 04:49:05 [2024-12-18 04:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045810', 'tblTempUsageDetail_20' ) start [2024-12-18 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045810', 'tblTempUsageDetail_20' ) end [2024-12-18 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045810', 'tblTempVendorCDR_20' ) start [2024-12-18 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045810', 'tblTempVendorCDR_20' ) end [2024-12-18 04:49:19] Production.INFO: ProcessCDR(1,14045810,1,1,2) [2024-12-18 04:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045810', 'tblTempUsageDetail_20' ) start [2024-12-18 04:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045810', 'tblTempUsageDetail_20' ) end [2024-12-18 04:49:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 04:49:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 04:49:22] Production.INFO: ==12912== Releasing lock... [2024-12-18 04:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 04:49:22] Production.INFO: 28.5 MB #Memory Used# [2024-12-18 04:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 01:50:06 [end_date_ymd] => 2024-12-18 04:50:06 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 01:50:06' and `end` < '2024-12-18 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 ,'') [2024-12-18 04:50:19] Production.INFO: count ==166 [2024-12-18 04:50:19] Production.ERROR: pbx CDR StartTime 2024-12-18 01:50:06 - End Time 2024-12-18 04:50:06 [2024-12-18 04:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045816', 'tblTempUsageDetail_20' ) start [2024-12-18 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045816', 'tblTempUsageDetail_20' ) end [2024-12-18 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045816', 'tblTempVendorCDR_20' ) start [2024-12-18 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045816', 'tblTempVendorCDR_20' ) end [2024-12-18 04:50:19] Production.INFO: ProcessCDR(1,14045816,1,1,2) [2024-12-18 04:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045816', 'tblTempUsageDetail_20' ) start [2024-12-18 04:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045816', 'tblTempUsageDetail_20' ) end [2024-12-18 04:50:23] Production.ERROR: pbx prc_insertCDR start [2024-12-18 04:50:23] Production.ERROR: pbx prc_insertCDR end [2024-12-18 04:50:23] Production.INFO: ==12998== Releasing lock... [2024-12-18 04:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 04:50:23] Production.INFO: 28.5 MB #Memory Used# [2024-12-18 04:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 01:51:04 [end_date_ymd] => 2024-12-18 04:51:04 [RateCDR] => 1 ) [2024-12-18 04:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 01:51:04' and `end` < '2024-12-18 04:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 04:51:18] Production.INFO: count ==162 [2024-12-18 04:51:18] Production.ERROR: pbx CDR StartTime 2024-12-18 01:51:04 - End Time 2024-12-18 04:51:04 [2024-12-18 04:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045821', 'tblTempUsageDetail_20' ) start [2024-12-18 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045821', 'tblTempUsageDetail_20' ) end [2024-12-18 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045821', 'tblTempVendorCDR_20' ) start [2024-12-18 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045821', 'tblTempVendorCDR_20' ) end [2024-12-18 04:51:18] Production.INFO: ProcessCDR(1,14045821,1,1,2) [2024-12-18 04:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045821', 'tblTempUsageDetail_20' ) start [2024-12-18 04:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045821', 'tblTempUsageDetail_20' ) end [2024-12-18 04:51:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 04:51:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 04:51:21] Production.INFO: ==13089== Releasing lock... [2024-12-18 04:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 04:51:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-18 04:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 01:52:05 [end_date_ymd] => 2024-12-18 04:52:05 [RateCDR] => 1 ) [2024-12-18 04:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 01:52:05' and `end` < '2024-12-18 04:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 04:52:18] Production.INFO: count ==160 [2024-12-18 04:52:18] Production.ERROR: pbx CDR StartTime 2024-12-18 01:52:05 - End Time 2024-12-18 04:52:05 [2024-12-18 04:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045826', 'tblTempUsageDetail_20' ) start [2024-12-18 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045826', 'tblTempUsageDetail_20' ) end [2024-12-18 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045826', 'tblTempVendorCDR_20' ) start [2024-12-18 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045826', 'tblTempVendorCDR_20' ) end [2024-12-18 04:52:18] Production.INFO: ProcessCDR(1,14045826,1,1,2) [2024-12-18 04:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045826', 'tblTempUsageDetail_20' ) start [2024-12-18 04:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045826', 'tblTempUsageDetail_20' ) end [2024-12-18 04:52:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 04:52:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 04:52:21] Production.INFO: ==13177== Releasing lock... [2024-12-18 04:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 04:52:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-18 04:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 01:53:05 [end_date_ymd] => 2024-12-18 04:53:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 01:53:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 04:53:17] Production.INFO: count ==159 [2024-12-18 04:53:17] Production.ERROR: pbx CDR StartTime 2024-12-18 01:53:05 - End Time 2024-12-18 04:53:05 [2024-12-18 04:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 04:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045831', 'tblTempUsageDetail_20' ) start [2024-12-18 04:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045831', 'tblTempUsageDetail_20' ) end [2024-12-18 04:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045831', 'tblTempVendorCDR_20' ) start [2024-12-18 04:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045831', 'tblTempVendorCDR_20' ) end [2024-12-18 04:53:17] Production.INFO: ProcessCDR(1,14045831,1,1,2) [2024-12-18 04:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045831', 'tblTempUsageDetail_20' ) start [2024-12-18 04:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045831', 'tblTempUsageDetail_20' ) end [2024-12-18 04:53:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 04:53:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 04:53:20] Production.INFO: ==13255== Releasing lock... [2024-12-18 04:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 04:53:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-18 04:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 01:54:05 [end_date_ymd] => 2024-12-18 04:54:05 [RateCDR] => 1 ) [2024-12-18 04:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 01:54:05' and `end` < '2024-12-18 04:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 04:54:19] Production.INFO: count ==159 [2024-12-18 04:54:19] Production.ERROR: pbx CDR StartTime 2024-12-18 01:54:05 - End Time 2024-12-18 04:54:05 [2024-12-18 04:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045836', 'tblTempUsageDetail_20' ) start [2024-12-18 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045836', 'tblTempUsageDetail_20' ) end [2024-12-18 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045836', 'tblTempVendorCDR_20' ) start [2024-12-18 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045836', 'tblTempVendorCDR_20' ) end [2024-12-18 04:54:19] Production.INFO: ProcessCDR(1,14045836,1,1,2) [2024-12-18 04:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045836', 'tblTempUsageDetail_20' ) start [2024-12-18 04:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045836', 'tblTempUsageDetail_20' ) end [2024-12-18 04:54:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 04:54:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 04:54:22] Production.INFO: ==13325== Releasing lock... [2024-12-18 04:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 04:54:22] Production.INFO: 28.5 MB #Memory Used# [2024-12-18 04:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 01:55:05 [end_date_ymd] => 2024-12-18 04:55:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 01:55:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 04:55:18] Production.INFO: count ==159 [2024-12-18 04:55:18] Production.ERROR: pbx CDR StartTime 2024-12-18 01:55:05 - End Time 2024-12-18 04:55:05 [2024-12-18 04:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045841', 'tblTempUsageDetail_20' ) start [2024-12-18 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045841', 'tblTempUsageDetail_20' ) end [2024-12-18 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045841', 'tblTempVendorCDR_20' ) start [2024-12-18 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045841', 'tblTempVendorCDR_20' ) end [2024-12-18 04:55:18] Production.INFO: ProcessCDR(1,14045841,1,1,2) [2024-12-18 04:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045841', 'tblTempUsageDetail_20' ) start [2024-12-18 04:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045841', 'tblTempUsageDetail_20' ) end [2024-12-18 04:55:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 04:55:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 04:55:21] Production.INFO: ==13397== Releasing lock... [2024-12-18 04:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 04:55:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-18 04:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 01:56:05 [end_date_ymd] => 2024-12-18 04:56:05 [RateCDR] => 1 ) [2024-12-18 04:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 01:56:05' and `end` < '2024-12-18 04:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 04:56:17] Production.INFO: count ==159 [2024-12-18 04:56:17] Production.ERROR: pbx CDR StartTime 2024-12-18 01:56:05 - End Time 2024-12-18 04:56:05 [2024-12-18 04:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 04:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045846', 'tblTempUsageDetail_20' ) start [2024-12-18 04:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045846', 'tblTempUsageDetail_20' ) end [2024-12-18 04:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045846', 'tblTempVendorCDR_20' ) start [2024-12-18 04:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045846', 'tblTempVendorCDR_20' ) end [2024-12-18 04:56:17] Production.INFO: ProcessCDR(1,14045846,1,1,2) [2024-12-18 04:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045846', 'tblTempUsageDetail_20' ) start [2024-12-18 04:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045846', 'tblTempUsageDetail_20' ) end [2024-12-18 04:56:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 04:56:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 04:56:20] Production.INFO: ==13474== Releasing lock... [2024-12-18 04:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 04:56:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-18 04:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 01:57:05 [end_date_ymd] => 2024-12-18 04:57:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 01:57:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 04:57:19] Production.INFO: count ==159 [2024-12-18 04:57:19] Production.ERROR: pbx CDR StartTime 2024-12-18 01:57:05 - End Time 2024-12-18 04:57:05 [2024-12-18 04:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045851', 'tblTempUsageDetail_20' ) start [2024-12-18 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045851', 'tblTempUsageDetail_20' ) end [2024-12-18 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045851', 'tblTempVendorCDR_20' ) start [2024-12-18 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045851', 'tblTempVendorCDR_20' ) end [2024-12-18 04:57:19] Production.INFO: ProcessCDR(1,14045851,1,1,2) [2024-12-18 04:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045851', 'tblTempUsageDetail_20' ) start [2024-12-18 04:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045851', 'tblTempUsageDetail_20' ) end [2024-12-18 04:57:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 04:57:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 04:57:22] Production.INFO: ==13551== Releasing lock... [2024-12-18 04:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 04:57:22] Production.INFO: 28.5 MB #Memory Used# [2024-12-18 04:58:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 01:58:04 [end_date_ymd] => 2024-12-18 04:58:04 [RateCDR] => 1 ) [2024-12-18 04: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` >= '2024-12-18 01:58:04' and `end` < '2024-12-18 04: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 ,'') [2024-12-18 04:58:19] Production.INFO: count ==159 [2024-12-18 04:58:19] Production.ERROR: pbx CDR StartTime 2024-12-18 01:58:04 - End Time 2024-12-18 04:58:04 [2024-12-18 04:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045856', 'tblTempUsageDetail_20' ) start [2024-12-18 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045856', 'tblTempUsageDetail_20' ) end [2024-12-18 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045856', 'tblTempVendorCDR_20' ) start [2024-12-18 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045856', 'tblTempVendorCDR_20' ) end [2024-12-18 04:58:19] Production.INFO: ProcessCDR(1,14045856,1,1,2) [2024-12-18 04:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045856', 'tblTempUsageDetail_20' ) start [2024-12-18 04:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045856', 'tblTempUsageDetail_20' ) end [2024-12-18 04:58:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 04:58:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 04:58:22] Production.INFO: ==13666== Releasing lock... [2024-12-18 04:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 04:58:22] Production.INFO: 28.5 MB #Memory Used# [2024-12-18 04:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 01:59:05 [end_date_ymd] => 2024-12-18 04:59:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 01:59:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 04:59:17] Production.INFO: count ==159 [2024-12-18 04:59:17] Production.ERROR: pbx CDR StartTime 2024-12-18 01:59:05 - End Time 2024-12-18 04:59:05 [2024-12-18 04:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 04:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045861', 'tblTempUsageDetail_20' ) start [2024-12-18 04:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045861', 'tblTempUsageDetail_20' ) end [2024-12-18 04:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045861', 'tblTempVendorCDR_20' ) start [2024-12-18 04:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045861', 'tblTempVendorCDR_20' ) end [2024-12-18 04:59:17] Production.INFO: ProcessCDR(1,14045861,1,1,2) [2024-12-18 04:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 04:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 04:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045861', 'tblTempUsageDetail_20' ) start [2024-12-18 04:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045861', 'tblTempUsageDetail_20' ) end [2024-12-18 04:59:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 04:59:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 04:59:21] Production.INFO: ==13742== Releasing lock... [2024-12-18 04:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 04:59:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-18 05:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 02:00:05 [end_date_ymd] => 2024-12-18 05:00:05 [RateCDR] => 1 ) [2024-12-18 05:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 02:00:05' and `end` < '2024-12-18 05:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 05:00:18] Production.INFO: count ==154 [2024-12-18 05:00:18] Production.ERROR: pbx CDR StartTime 2024-12-18 02:00:05 - End Time 2024-12-18 05:00:05 [2024-12-18 05:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045867', 'tblTempUsageDetail_20' ) start [2024-12-18 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045867', 'tblTempUsageDetail_20' ) end [2024-12-18 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045867', 'tblTempVendorCDR_20' ) start [2024-12-18 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045867', 'tblTempVendorCDR_20' ) end [2024-12-18 05:00:18] Production.INFO: ProcessCDR(1,14045867,1,1,2) [2024-12-18 05:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045867', 'tblTempUsageDetail_20' ) start [2024-12-18 05:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045867', 'tblTempUsageDetail_20' ) end [2024-12-18 05:00:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 05:00:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 05:00:21] Production.INFO: ==13820== Releasing lock... [2024-12-18 05:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 05:00:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-18 05:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 02:01:05 [end_date_ymd] => 2024-12-18 05:01:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 02:01:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 05:01:20] Production.INFO: count ==142 [2024-12-18 05:01:20] Production.ERROR: pbx CDR StartTime 2024-12-18 02:01:05 - End Time 2024-12-18 05:01:05 [2024-12-18 05:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 05:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045872', 'tblTempUsageDetail_20' ) start [2024-12-18 05:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045872', 'tblTempUsageDetail_20' ) end [2024-12-18 05:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045872', 'tblTempVendorCDR_20' ) start [2024-12-18 05:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045872', 'tblTempVendorCDR_20' ) end [2024-12-18 05:01:20] Production.INFO: ProcessCDR(1,14045872,1,1,2) [2024-12-18 05:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045872', 'tblTempUsageDetail_20' ) start [2024-12-18 05:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045872', 'tblTempUsageDetail_20' ) end [2024-12-18 05:01:23] Production.ERROR: pbx prc_insertCDR start [2024-12-18 05:01:23] Production.ERROR: pbx prc_insertCDR end [2024-12-18 05:01:23] Production.INFO: ==13910== Releasing lock... [2024-12-18 05:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 05:01:23] Production.INFO: 28.5 MB #Memory Used# [2024-12-18 05:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 02:02:05 [end_date_ymd] => 2024-12-18 05:02:05 [RateCDR] => 1 ) [2024-12-18 05:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 02:02:05' and `end` < '2024-12-18 05:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 05:02:18] Production.INFO: count ==142 [2024-12-18 05:02:18] Production.ERROR: pbx CDR StartTime 2024-12-18 02:02:05 - End Time 2024-12-18 05:02:05 [2024-12-18 05:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045877', 'tblTempUsageDetail_20' ) start [2024-12-18 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045877', 'tblTempUsageDetail_20' ) end [2024-12-18 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045877', 'tblTempVendorCDR_20' ) start [2024-12-18 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045877', 'tblTempVendorCDR_20' ) end [2024-12-18 05:02:18] Production.INFO: ProcessCDR(1,14045877,1,1,2) [2024-12-18 05:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045877', 'tblTempUsageDetail_20' ) start [2024-12-18 05:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045877', 'tblTempUsageDetail_20' ) end [2024-12-18 05:02:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 05:02:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 05:02:21] Production.INFO: ==13989== Releasing lock... [2024-12-18 05:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 05:02:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-18 05:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 02:03:05 [end_date_ymd] => 2024-12-18 05:03:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 02:03:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 05:03:19] Production.INFO: count ==135 [2024-12-18 05:03:19] Production.ERROR: pbx CDR StartTime 2024-12-18 02:03:05 - End Time 2024-12-18 05:03:05 [2024-12-18 05:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 05:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045882', 'tblTempUsageDetail_20' ) start [2024-12-18 05:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045882', 'tblTempUsageDetail_20' ) end [2024-12-18 05:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045882', 'tblTempVendorCDR_20' ) start [2024-12-18 05:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045882', 'tblTempVendorCDR_20' ) end [2024-12-18 05:03:19] Production.INFO: ProcessCDR(1,14045882,1,1,2) [2024-12-18 05:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045882', 'tblTempUsageDetail_20' ) start [2024-12-18 05:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045882', 'tblTempUsageDetail_20' ) end [2024-12-18 05:03:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 05:03:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 05:03:22] Production.INFO: ==14068== Releasing lock... [2024-12-18 05:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 05:03:22] Production.INFO: 28.25 MB #Memory Used# [2024-12-18 05:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 02:04:05 [end_date_ymd] => 2024-12-18 05:04:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 02:04:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 05:04:17] Production.INFO: count ==134 [2024-12-18 05:04:17] Production.ERROR: pbx CDR StartTime 2024-12-18 02:04:05 - End Time 2024-12-18 05:04:05 [2024-12-18 05:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 05:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045887', 'tblTempUsageDetail_20' ) start [2024-12-18 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045887', 'tblTempUsageDetail_20' ) end [2024-12-18 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045887', 'tblTempVendorCDR_20' ) start [2024-12-18 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045887', 'tblTempVendorCDR_20' ) end [2024-12-18 05:04:18] Production.INFO: ProcessCDR(1,14045887,1,1,2) [2024-12-18 05:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045887', 'tblTempUsageDetail_20' ) start [2024-12-18 05:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045887', 'tblTempUsageDetail_20' ) end [2024-12-18 05:04:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 05:04:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 05:04:21] Production.INFO: ==14151== Releasing lock... [2024-12-18 05:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 05:04:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-18 05:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 02:05:05 [end_date_ymd] => 2024-12-18 05:05:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 02:05:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 05:05:17] Production.INFO: count ==134 [2024-12-18 05:05:17] Production.ERROR: pbx CDR StartTime 2024-12-18 02:05:05 - End Time 2024-12-18 05:05:05 [2024-12-18 05:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045892', 'tblTempUsageDetail_20' ) start [2024-12-18 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045892', 'tblTempUsageDetail_20' ) end [2024-12-18 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045892', 'tblTempVendorCDR_20' ) start [2024-12-18 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045892', 'tblTempVendorCDR_20' ) end [2024-12-18 05:05:17] Production.INFO: ProcessCDR(1,14045892,1,1,2) [2024-12-18 05:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045892', 'tblTempUsageDetail_20' ) start [2024-12-18 05:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045892', 'tblTempUsageDetail_20' ) end [2024-12-18 05:05:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 05:05:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 05:05:21] Production.INFO: ==14230== Releasing lock... [2024-12-18 05:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 05:05:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-18 05:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 02:06:05 [end_date_ymd] => 2024-12-18 05:06:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 02:06:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 05:06:46] Production.INFO: count ==134 [2024-12-18 05:06:46] Production.ERROR: pbx CDR StartTime 2024-12-18 02:06:05 - End Time 2024-12-18 05:06:05 [2024-12-18 05:06:46] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 05:06:46] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045897', 'tblTempUsageDetail_20' ) start [2024-12-18 05:06:46] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045897', 'tblTempUsageDetail_20' ) end [2024-12-18 05:06:46] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045897', 'tblTempVendorCDR_20' ) start [2024-12-18 05:06:46] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045897', 'tblTempVendorCDR_20' ) end [2024-12-18 05:06:46] Production.INFO: ProcessCDR(1,14045897,1,1,2) [2024-12-18 05:06:46] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:06:48] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:06:48] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:06:51] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:06:51] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045897', 'tblTempUsageDetail_20' ) start [2024-12-18 05:06:51] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045897', 'tblTempUsageDetail_20' ) end [2024-12-18 05:06:51] Production.ERROR: pbx prc_insertCDR start [2024-12-18 05:06:51] Production.ERROR: pbx prc_insertCDR end [2024-12-18 05:06:51] Production.INFO: ==14305== Releasing lock... [2024-12-18 05:06:51] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 05:06:51] Production.INFO: 28.25 MB #Memory Used# [2024-12-18 05:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 02:07:04 [end_date_ymd] => 2024-12-18 05:07:04 [RateCDR] => 1 ) [2024-12-18 05:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 02:07:04' and `end` < '2024-12-18 05: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 ,'') [2024-12-18 05:07:17] Production.INFO: count ==134 [2024-12-18 05:07:17] Production.ERROR: pbx CDR StartTime 2024-12-18 02:07:04 - End Time 2024-12-18 05:07:04 [2024-12-18 05:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045902', 'tblTempUsageDetail_20' ) start [2024-12-18 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045902', 'tblTempUsageDetail_20' ) end [2024-12-18 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045902', 'tblTempVendorCDR_20' ) start [2024-12-18 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045902', 'tblTempVendorCDR_20' ) end [2024-12-18 05:07:17] Production.INFO: ProcessCDR(1,14045902,1,1,2) [2024-12-18 05:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045902', 'tblTempUsageDetail_20' ) start [2024-12-18 05:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045902', 'tblTempUsageDetail_20' ) end [2024-12-18 05:07:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 05:07:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 05:07:20] Production.INFO: ==14377== Releasing lock... [2024-12-18 05:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 05:07:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-18 05:08:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 02:08:04 [end_date_ymd] => 2024-12-18 05:08:04 [RateCDR] => 1 ) [2024-12-18 05:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 02:08:04' and `end` < '2024-12-18 05:08:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 05:08:17] Production.INFO: count ==134 [2024-12-18 05:08:17] Production.ERROR: pbx CDR StartTime 2024-12-18 02:08:04 - End Time 2024-12-18 05:08:04 [2024-12-18 05:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045907', 'tblTempUsageDetail_20' ) start [2024-12-18 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045907', 'tblTempUsageDetail_20' ) end [2024-12-18 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045907', 'tblTempVendorCDR_20' ) start [2024-12-18 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045907', 'tblTempVendorCDR_20' ) end [2024-12-18 05:08:17] Production.INFO: ProcessCDR(1,14045907,1,1,2) [2024-12-18 05:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045907', 'tblTempUsageDetail_20' ) start [2024-12-18 05:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045907', 'tblTempUsageDetail_20' ) end [2024-12-18 05:08:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 05:08:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 05:08:20] Production.INFO: ==14447== Releasing lock... [2024-12-18 05:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 05:08:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-18 05:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 02:09:05 [end_date_ymd] => 2024-12-18 05:09:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 02:09:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 05:09:17] Production.INFO: count ==134 [2024-12-18 05:09:17] Production.ERROR: pbx CDR StartTime 2024-12-18 02:09:05 - End Time 2024-12-18 05:09:05 [2024-12-18 05:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045912', 'tblTempUsageDetail_20' ) start [2024-12-18 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045912', 'tblTempUsageDetail_20' ) end [2024-12-18 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045912', 'tblTempVendorCDR_20' ) start [2024-12-18 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045912', 'tblTempVendorCDR_20' ) end [2024-12-18 05:09:17] Production.INFO: ProcessCDR(1,14045912,1,1,2) [2024-12-18 05:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045912', 'tblTempUsageDetail_20' ) start [2024-12-18 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045912', 'tblTempUsageDetail_20' ) end [2024-12-18 05:09:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 05:09:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 05:09:21] Production.INFO: ==14518== Releasing lock... [2024-12-18 05:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 05:09:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-18 05:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 02:10:06 [end_date_ymd] => 2024-12-18 05:10:06 [RateCDR] => 1 ) [2024-12-18 05:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 02:10:06' and `end` < '2024-12-18 05:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 05:10:18] Production.INFO: count ==132 [2024-12-18 05:10:18] Production.ERROR: pbx CDR StartTime 2024-12-18 02:10:06 - End Time 2024-12-18 05:10:06 [2024-12-18 05:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045917', 'tblTempUsageDetail_20' ) start [2024-12-18 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045917', 'tblTempUsageDetail_20' ) end [2024-12-18 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045917', 'tblTempVendorCDR_20' ) start [2024-12-18 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045917', 'tblTempVendorCDR_20' ) end [2024-12-18 05:10:18] Production.INFO: ProcessCDR(1,14045917,1,1,2) [2024-12-18 05:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045917', 'tblTempUsageDetail_20' ) start [2024-12-18 05:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045917', 'tblTempUsageDetail_20' ) end [2024-12-18 05:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 05:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 05:10:21] Production.INFO: ==14591== Releasing lock... [2024-12-18 05:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 05:10:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-18 05:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 02:11:05 [end_date_ymd] => 2024-12-18 05:11:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 02:11:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 05:11:17] Production.INFO: count ==132 [2024-12-18 05:11:17] Production.ERROR: pbx CDR StartTime 2024-12-18 02:11:05 - End Time 2024-12-18 05:11:05 [2024-12-18 05:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045923', 'tblTempUsageDetail_20' ) start [2024-12-18 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045923', 'tblTempUsageDetail_20' ) end [2024-12-18 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045923', 'tblTempVendorCDR_20' ) start [2024-12-18 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045923', 'tblTempVendorCDR_20' ) end [2024-12-18 05:11:17] Production.INFO: ProcessCDR(1,14045923,1,1,2) [2024-12-18 05:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045923', 'tblTempUsageDetail_20' ) start [2024-12-18 05:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045923', 'tblTempUsageDetail_20' ) end [2024-12-18 05:11:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 05:11:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 05:11:20] Production.INFO: ==14665== Releasing lock... [2024-12-18 05:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 05:11:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-18 05:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 02:12:05 [end_date_ymd] => 2024-12-18 05:12:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 02:12:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 05:12:18] Production.INFO: count ==132 [2024-12-18 05:12:18] Production.ERROR: pbx CDR StartTime 2024-12-18 02:12:05 - End Time 2024-12-18 05:12:05 [2024-12-18 05:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045928', 'tblTempUsageDetail_20' ) start [2024-12-18 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045928', 'tblTempUsageDetail_20' ) end [2024-12-18 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045928', 'tblTempVendorCDR_20' ) start [2024-12-18 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045928', 'tblTempVendorCDR_20' ) end [2024-12-18 05:12:18] Production.INFO: ProcessCDR(1,14045928,1,1,2) [2024-12-18 05:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045928', 'tblTempUsageDetail_20' ) start [2024-12-18 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045928', 'tblTempUsageDetail_20' ) end [2024-12-18 05:12:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 05:12:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 05:12:21] Production.INFO: ==14736== Releasing lock... [2024-12-18 05:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 05:12:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-18 05:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 02:13:04 [end_date_ymd] => 2024-12-18 05:13:04 [RateCDR] => 1 ) [2024-12-18 05:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 02:13:04' and `end` < '2024-12-18 05:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 05:13:17] Production.INFO: count ==132 [2024-12-18 05:13:17] Production.ERROR: pbx CDR StartTime 2024-12-18 02:13:04 - End Time 2024-12-18 05:13:04 [2024-12-18 05:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045933', 'tblTempUsageDetail_20' ) start [2024-12-18 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045933', 'tblTempUsageDetail_20' ) end [2024-12-18 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045933', 'tblTempVendorCDR_20' ) start [2024-12-18 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045933', 'tblTempVendorCDR_20' ) end [2024-12-18 05:13:17] Production.INFO: ProcessCDR(1,14045933,1,1,2) [2024-12-18 05:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045933', 'tblTempUsageDetail_20' ) start [2024-12-18 05:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045933', 'tblTempUsageDetail_20' ) end [2024-12-18 05:13:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 05:13:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 05:13:20] Production.INFO: ==14845== Releasing lock... [2024-12-18 05:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 05:13:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-18 05:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 02:14:05 [end_date_ymd] => 2024-12-18 05:14:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 02:14:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 05:14:18] Production.INFO: count ==132 [2024-12-18 05:14:18] Production.ERROR: pbx CDR StartTime 2024-12-18 02:14:05 - End Time 2024-12-18 05:14:05 [2024-12-18 05:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045938', 'tblTempUsageDetail_20' ) start [2024-12-18 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045938', 'tblTempUsageDetail_20' ) end [2024-12-18 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045938', 'tblTempVendorCDR_20' ) start [2024-12-18 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045938', 'tblTempVendorCDR_20' ) end [2024-12-18 05:14:18] Production.INFO: ProcessCDR(1,14045938,1,1,2) [2024-12-18 05:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045938', 'tblTempUsageDetail_20' ) start [2024-12-18 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045938', 'tblTempUsageDetail_20' ) end [2024-12-18 05:14:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 05:14:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 05:14:21] Production.INFO: ==14917== Releasing lock... [2024-12-18 05:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 05:14:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-18 05:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 02:15:05 [end_date_ymd] => 2024-12-18 05:15:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 02:15:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 05:15:17] Production.INFO: count ==132 [2024-12-18 05:15:17] Production.ERROR: pbx CDR StartTime 2024-12-18 02:15:05 - End Time 2024-12-18 05:15:05 [2024-12-18 05:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045943', 'tblTempUsageDetail_20' ) start [2024-12-18 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045943', 'tblTempUsageDetail_20' ) end [2024-12-18 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045943', 'tblTempVendorCDR_20' ) start [2024-12-18 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045943', 'tblTempVendorCDR_20' ) end [2024-12-18 05:15:17] Production.INFO: ProcessCDR(1,14045943,1,1,2) [2024-12-18 05:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045943', 'tblTempUsageDetail_20' ) start [2024-12-18 05:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045943', 'tblTempUsageDetail_20' ) end [2024-12-18 05:15:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 05:15:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 05:15:20] Production.INFO: ==14996== Releasing lock... [2024-12-18 05:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 05:15:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-18 05:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 02:16:05 [end_date_ymd] => 2024-12-18 05:16:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 02:16:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 05:16:18] Production.INFO: count ==132 [2024-12-18 05:16:18] Production.ERROR: pbx CDR StartTime 2024-12-18 02:16:05 - End Time 2024-12-18 05:16:05 [2024-12-18 05:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045948', 'tblTempUsageDetail_20' ) start [2024-12-18 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045948', 'tblTempUsageDetail_20' ) end [2024-12-18 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045948', 'tblTempVendorCDR_20' ) start [2024-12-18 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045948', 'tblTempVendorCDR_20' ) end [2024-12-18 05:16:18] Production.INFO: ProcessCDR(1,14045948,1,1,2) [2024-12-18 05:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045948', 'tblTempUsageDetail_20' ) start [2024-12-18 05:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045948', 'tblTempUsageDetail_20' ) end [2024-12-18 05:16:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 05:16:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 05:16:22] Production.INFO: ==15068== Releasing lock... [2024-12-18 05:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 05:16:22] Production.INFO: 28.25 MB #Memory Used# [2024-12-18 05:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 02:17:05 [end_date_ymd] => 2024-12-18 05:17:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 02:17:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 05:17:17] Production.INFO: count ==132 [2024-12-18 05:17:17] Production.ERROR: pbx CDR StartTime 2024-12-18 02:17:05 - End Time 2024-12-18 05:17:05 [2024-12-18 05:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045953', 'tblTempUsageDetail_20' ) start [2024-12-18 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045953', 'tblTempUsageDetail_20' ) end [2024-12-18 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045953', 'tblTempVendorCDR_20' ) start [2024-12-18 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045953', 'tblTempVendorCDR_20' ) end [2024-12-18 05:17:17] Production.INFO: ProcessCDR(1,14045953,1,1,2) [2024-12-18 05:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045953', 'tblTempUsageDetail_20' ) start [2024-12-18 05:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045953', 'tblTempUsageDetail_20' ) end [2024-12-18 05:17:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 05:17:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 05:17:20] Production.INFO: ==15143== Releasing lock... [2024-12-18 05:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 05:17:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-18 05:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 02:18:05 [end_date_ymd] => 2024-12-18 05:18:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 02:18:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 05:18:17] Production.INFO: count ==132 [2024-12-18 05:18:17] Production.ERROR: pbx CDR StartTime 2024-12-18 02:18:05 - End Time 2024-12-18 05:18:05 [2024-12-18 05:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045958', 'tblTempUsageDetail_20' ) start [2024-12-18 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045958', 'tblTempUsageDetail_20' ) end [2024-12-18 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045958', 'tblTempVendorCDR_20' ) start [2024-12-18 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045958', 'tblTempVendorCDR_20' ) end [2024-12-18 05:18:17] Production.INFO: ProcessCDR(1,14045958,1,1,2) [2024-12-18 05:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045958', 'tblTempUsageDetail_20' ) start [2024-12-18 05:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045958', 'tblTempUsageDetail_20' ) end [2024-12-18 05:18:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 05:18:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 05:18:20] Production.INFO: ==15216== Releasing lock... [2024-12-18 05:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 05:18:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-18 05:19:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 02:19:04 [end_date_ymd] => 2024-12-18 05:19:04 [RateCDR] => 1 ) [2024-12-18 05:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 02:19:04' and `end` < '2024-12-18 05:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 05:19:17] Production.INFO: count ==132 [2024-12-18 05:19:17] Production.ERROR: pbx CDR StartTime 2024-12-18 02:19:04 - End Time 2024-12-18 05:19:04 [2024-12-18 05:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045963', 'tblTempUsageDetail_20' ) start [2024-12-18 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045963', 'tblTempUsageDetail_20' ) end [2024-12-18 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045963', 'tblTempVendorCDR_20' ) start [2024-12-18 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045963', 'tblTempVendorCDR_20' ) end [2024-12-18 05:19:17] Production.INFO: ProcessCDR(1,14045963,1,1,2) [2024-12-18 05:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045963', 'tblTempUsageDetail_20' ) start [2024-12-18 05:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045963', 'tblTempUsageDetail_20' ) end [2024-12-18 05:19:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 05:19:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 05:19:20] Production.INFO: ==15291== Releasing lock... [2024-12-18 05:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 05:19:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-18 05:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 02:20:06 [end_date_ymd] => 2024-12-18 05:20:06 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 02:20:06' and `end` < '2024-12-18 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 ,'') [2024-12-18 05:20:17] Production.INFO: count ==126 [2024-12-18 05:20:17] Production.ERROR: pbx CDR StartTime 2024-12-18 02:20:06 - End Time 2024-12-18 05:20:06 [2024-12-18 05:20:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 05:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045969', 'tblTempUsageDetail_20' ) start [2024-12-18 05:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045969', 'tblTempUsageDetail_20' ) end [2024-12-18 05:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045969', 'tblTempVendorCDR_20' ) start [2024-12-18 05:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045969', 'tblTempVendorCDR_20' ) end [2024-12-18 05:20:17] Production.INFO: ProcessCDR(1,14045969,1,1,2) [2024-12-18 05:20:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:20:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:20:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045969', 'tblTempUsageDetail_20' ) start [2024-12-18 05:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045969', 'tblTempUsageDetail_20' ) end [2024-12-18 05:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 05:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 05:20:21] Production.INFO: ==15373== Releasing lock... [2024-12-18 05:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 05:20:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-18 05:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 02:21:04 [end_date_ymd] => 2024-12-18 05:21:04 [RateCDR] => 1 ) [2024-12-18 05:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 02:21:04' and `end` < '2024-12-18 05:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 05:21:17] Production.INFO: count ==121 [2024-12-18 05:21:17] Production.ERROR: pbx CDR StartTime 2024-12-18 02:21:04 - End Time 2024-12-18 05:21:04 [2024-12-18 05:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045974', 'tblTempUsageDetail_20' ) start [2024-12-18 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045974', 'tblTempUsageDetail_20' ) end [2024-12-18 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045974', 'tblTempVendorCDR_20' ) start [2024-12-18 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045974', 'tblTempVendorCDR_20' ) end [2024-12-18 05:21:17] Production.INFO: ProcessCDR(1,14045974,1,1,2) [2024-12-18 05:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045974', 'tblTempUsageDetail_20' ) start [2024-12-18 05:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045974', 'tblTempUsageDetail_20' ) end [2024-12-18 05:21:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 05:21:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 05:21:20] Production.INFO: ==15451== Releasing lock... [2024-12-18 05:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 05:21:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-18 05:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 02:22:05 [end_date_ymd] => 2024-12-18 05:22:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 02:22:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 05:22:17] Production.INFO: count ==120 [2024-12-18 05:22:17] Production.ERROR: pbx CDR StartTime 2024-12-18 02:22:05 - End Time 2024-12-18 05:22:05 [2024-12-18 05:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045979', 'tblTempUsageDetail_20' ) start [2024-12-18 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045979', 'tblTempUsageDetail_20' ) end [2024-12-18 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045979', 'tblTempVendorCDR_20' ) start [2024-12-18 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045979', 'tblTempVendorCDR_20' ) end [2024-12-18 05:22:17] Production.INFO: ProcessCDR(1,14045979,1,1,2) [2024-12-18 05:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045979', 'tblTempUsageDetail_20' ) start [2024-12-18 05:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045979', 'tblTempUsageDetail_20' ) end [2024-12-18 05:22:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 05:22:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 05:22:20] Production.INFO: ==15532== Releasing lock... [2024-12-18 05:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 05:22:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-18 05:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 02:23:04 [end_date_ymd] => 2024-12-18 05:23:04 [RateCDR] => 1 ) [2024-12-18 05:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 02:23:04' and `end` < '2024-12-18 05:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 05:23:16] Production.INFO: count ==119 [2024-12-18 05:23:16] Production.ERROR: pbx CDR StartTime 2024-12-18 02:23:04 - End Time 2024-12-18 05:23:04 [2024-12-18 05:23:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 05:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045984', 'tblTempUsageDetail_20' ) start [2024-12-18 05:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045984', 'tblTempUsageDetail_20' ) end [2024-12-18 05:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045984', 'tblTempVendorCDR_20' ) start [2024-12-18 05:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045984', 'tblTempVendorCDR_20' ) end [2024-12-18 05:23:16] Production.INFO: ProcessCDR(1,14045984,1,1,2) [2024-12-18 05:23:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:23:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:23:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:23:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:23:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045984', 'tblTempUsageDetail_20' ) start [2024-12-18 05:23:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045984', 'tblTempUsageDetail_20' ) end [2024-12-18 05:23:19] Production.ERROR: pbx prc_insertCDR start [2024-12-18 05:23:19] Production.ERROR: pbx prc_insertCDR end [2024-12-18 05:23:19] Production.INFO: ==15608== Releasing lock... [2024-12-18 05:23:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 05:23:19] Production.INFO: 28.25 MB #Memory Used# [2024-12-18 05:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 02:24:05 [end_date_ymd] => 2024-12-18 05:24:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 02:24:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 05:24:17] Production.INFO: count ==119 [2024-12-18 05:24:17] Production.ERROR: pbx CDR StartTime 2024-12-18 02:24:05 - End Time 2024-12-18 05:24:05 [2024-12-18 05:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045989', 'tblTempUsageDetail_20' ) start [2024-12-18 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045989', 'tblTempUsageDetail_20' ) end [2024-12-18 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045989', 'tblTempVendorCDR_20' ) start [2024-12-18 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045989', 'tblTempVendorCDR_20' ) end [2024-12-18 05:24:17] Production.INFO: ProcessCDR(1,14045989,1,1,2) [2024-12-18 05:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045989', 'tblTempUsageDetail_20' ) start [2024-12-18 05:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045989', 'tblTempUsageDetail_20' ) end [2024-12-18 05:24:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 05:24:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 05:24:20] Production.INFO: ==15692== Releasing lock... [2024-12-18 05:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 05:24:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-18 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 02:25:05 [end_date_ymd] => 2024-12-18 05:25:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 02:25:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 05:25:17] Production.INFO: count ==119 [2024-12-18 05:25:17] Production.ERROR: pbx CDR StartTime 2024-12-18 02:25:05 - End Time 2024-12-18 05:25:05 [2024-12-18 05:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045994', 'tblTempUsageDetail_20' ) start [2024-12-18 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045994', 'tblTempUsageDetail_20' ) end [2024-12-18 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045994', 'tblTempVendorCDR_20' ) start [2024-12-18 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045994', 'tblTempVendorCDR_20' ) end [2024-12-18 05:25:17] Production.INFO: ProcessCDR(1,14045994,1,1,2) [2024-12-18 05:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045994', 'tblTempUsageDetail_20' ) start [2024-12-18 05:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045994', 'tblTempUsageDetail_20' ) end [2024-12-18 05:25:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 05:25:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 05:25:20] Production.INFO: ==15771== Releasing lock... [2024-12-18 05:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 05:25:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-18 05:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 02:26:04 [end_date_ymd] => 2024-12-18 05:26:04 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 02:26:04' and `end` < '2024-12-18 05:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 05:26:17] Production.INFO: count ==119 [2024-12-18 05:26:17] Production.ERROR: pbx CDR StartTime 2024-12-18 02:26:04 - End Time 2024-12-18 05:26:04 [2024-12-18 05:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045999', 'tblTempUsageDetail_20' ) start [2024-12-18 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14045999', 'tblTempUsageDetail_20' ) end [2024-12-18 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045999', 'tblTempVendorCDR_20' ) start [2024-12-18 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14045999', 'tblTempVendorCDR_20' ) end [2024-12-18 05:26:17] Production.INFO: ProcessCDR(1,14045999,1,1,2) [2024-12-18 05:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14045999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14045999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14045999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14045999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045999', 'tblTempUsageDetail_20' ) start [2024-12-18 05:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14045999', 'tblTempUsageDetail_20' ) end [2024-12-18 05:26:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 05:26:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 05:26:21] Production.INFO: ==15856== Releasing lock... [2024-12-18 05:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 05:26:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-18 05:27:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 02:27:04 [end_date_ymd] => 2024-12-18 05:27:04 [RateCDR] => 1 ) [2024-12-18 05:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 02:27:04' and `end` < '2024-12-18 05:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 05:27:16] Production.INFO: count ==119 [2024-12-18 05:27:16] Production.ERROR: pbx CDR StartTime 2024-12-18 02:27:04 - End Time 2024-12-18 05:27:04 [2024-12-18 05:27:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 05:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046004', 'tblTempUsageDetail_20' ) start [2024-12-18 05:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046004', 'tblTempUsageDetail_20' ) end [2024-12-18 05:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046004', 'tblTempVendorCDR_20' ) start [2024-12-18 05:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046004', 'tblTempVendorCDR_20' ) end [2024-12-18 05:27:16] Production.INFO: ProcessCDR(1,14046004,1,1,2) [2024-12-18 05:27:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:27:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:27:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:27:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:27:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046004', 'tblTempUsageDetail_20' ) start [2024-12-18 05:27:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046004', 'tblTempUsageDetail_20' ) end [2024-12-18 05:27:19] Production.ERROR: pbx prc_insertCDR start [2024-12-18 05:27:19] Production.ERROR: pbx prc_insertCDR end [2024-12-18 05:27:19] Production.INFO: ==15938== Releasing lock... [2024-12-18 05:27:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 05:27:19] Production.INFO: 28.25 MB #Memory Used# [2024-12-18 05:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 02:28:05 [end_date_ymd] => 2024-12-18 05:28:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 02:28:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 05:28:17] Production.INFO: count ==119 [2024-12-18 05:28:17] Production.ERROR: pbx CDR StartTime 2024-12-18 02:28:05 - End Time 2024-12-18 05:28:05 [2024-12-18 05:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046009', 'tblTempUsageDetail_20' ) start [2024-12-18 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046009', 'tblTempUsageDetail_20' ) end [2024-12-18 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046009', 'tblTempVendorCDR_20' ) start [2024-12-18 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046009', 'tblTempVendorCDR_20' ) end [2024-12-18 05:28:17] Production.INFO: ProcessCDR(1,14046009,1,1,2) [2024-12-18 05:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046009', 'tblTempUsageDetail_20' ) start [2024-12-18 05:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046009', 'tblTempUsageDetail_20' ) end [2024-12-18 05:28:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 05:28:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 05:28:21] Production.INFO: ==16020== Releasing lock... [2024-12-18 05:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 05:28:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-18 05:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 02:29:05 [end_date_ymd] => 2024-12-18 05:29:05 [RateCDR] => 1 ) [2024-12-18 05:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 02:29:05' and `end` < '2024-12-18 05:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 05:29:17] Production.INFO: count ==119 [2024-12-18 05:29:17] Production.ERROR: pbx CDR StartTime 2024-12-18 02:29:05 - End Time 2024-12-18 05:29:05 [2024-12-18 05:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046014', 'tblTempUsageDetail_20' ) start [2024-12-18 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046014', 'tblTempUsageDetail_20' ) end [2024-12-18 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046014', 'tblTempVendorCDR_20' ) start [2024-12-18 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046014', 'tblTempVendorCDR_20' ) end [2024-12-18 05:29:17] Production.INFO: ProcessCDR(1,14046014,1,1,2) [2024-12-18 05:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046014', 'tblTempUsageDetail_20' ) start [2024-12-18 05:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046014', 'tblTempUsageDetail_20' ) end [2024-12-18 05:29:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 05:29:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 05:29:20] Production.INFO: ==16147== Releasing lock... [2024-12-18 05:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 05:29:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-18 05:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 02:30:06 [end_date_ymd] => 2024-12-18 05:30:06 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 02:30:06' and `end` < '2024-12-18 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 ,'') [2024-12-18 05:30:18] Production.INFO: count ==111 [2024-12-18 05:30:18] Production.ERROR: pbx CDR StartTime 2024-12-18 02:30:06 - End Time 2024-12-18 05:30:06 [2024-12-18 05:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046020', 'tblTempUsageDetail_20' ) start [2024-12-18 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046020', 'tblTempUsageDetail_20' ) end [2024-12-18 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046020', 'tblTempVendorCDR_20' ) start [2024-12-18 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046020', 'tblTempVendorCDR_20' ) end [2024-12-18 05:30:18] Production.INFO: ProcessCDR(1,14046020,1,1,2) [2024-12-18 05:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046020', 'tblTempUsageDetail_20' ) start [2024-12-18 05:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046020', 'tblTempUsageDetail_20' ) end [2024-12-18 05:30:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 05:30:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 05:30:21] Production.INFO: ==16229== Releasing lock... [2024-12-18 05:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 05:30:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-18 05:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 02:31:04 [end_date_ymd] => 2024-12-18 05:31:04 [RateCDR] => 1 ) [2024-12-18 05:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 02:31:04' and `end` < '2024-12-18 05:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 05:31:17] Production.INFO: count ==108 [2024-12-18 05:31:17] Production.ERROR: pbx CDR StartTime 2024-12-18 02:31:04 - End Time 2024-12-18 05:31:04 [2024-12-18 05:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046025', 'tblTempUsageDetail_20' ) start [2024-12-18 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046025', 'tblTempUsageDetail_20' ) end [2024-12-18 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046025', 'tblTempVendorCDR_20' ) start [2024-12-18 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046025', 'tblTempVendorCDR_20' ) end [2024-12-18 05:31:17] Production.INFO: ProcessCDR(1,14046025,1,1,2) [2024-12-18 05:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046025', 'tblTempUsageDetail_20' ) start [2024-12-18 05:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046025', 'tblTempUsageDetail_20' ) end [2024-12-18 05:31:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 05:31:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 05:31:20] Production.INFO: ==16313== Releasing lock... [2024-12-18 05:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 05:31:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-18 05:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 02:32:05 [end_date_ymd] => 2024-12-18 05:32:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 02:32:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 05:32:18] Production.INFO: count ==108 [2024-12-18 05:32:18] Production.ERROR: pbx CDR StartTime 2024-12-18 02:32:05 - End Time 2024-12-18 05:32:05 [2024-12-18 05:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046030', 'tblTempUsageDetail_20' ) start [2024-12-18 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046030', 'tblTempUsageDetail_20' ) end [2024-12-18 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046030', 'tblTempVendorCDR_20' ) start [2024-12-18 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046030', 'tblTempVendorCDR_20' ) end [2024-12-18 05:32:18] Production.INFO: ProcessCDR(1,14046030,1,1,2) [2024-12-18 05:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046030', 'tblTempUsageDetail_20' ) start [2024-12-18 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046030', 'tblTempUsageDetail_20' ) end [2024-12-18 05:32:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 05:32:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 05:32:21] Production.INFO: ==16390== Releasing lock... [2024-12-18 05:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 05:32:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-18 05:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 02:33:05 [end_date_ymd] => 2024-12-18 05:33:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 02:33:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 05:33:17] Production.INFO: count ==108 [2024-12-18 05:33:17] Production.ERROR: pbx CDR StartTime 2024-12-18 02:33:05 - End Time 2024-12-18 05:33:05 [2024-12-18 05:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046035', 'tblTempUsageDetail_20' ) start [2024-12-18 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046035', 'tblTempUsageDetail_20' ) end [2024-12-18 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046035', 'tblTempVendorCDR_20' ) start [2024-12-18 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046035', 'tblTempVendorCDR_20' ) end [2024-12-18 05:33:17] Production.INFO: ProcessCDR(1,14046035,1,1,2) [2024-12-18 05:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046035', 'tblTempUsageDetail_20' ) start [2024-12-18 05:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046035', 'tblTempUsageDetail_20' ) end [2024-12-18 05:33:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 05:33:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 05:33:20] Production.INFO: ==16470== Releasing lock... [2024-12-18 05:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 05:33:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-18 05:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 02:34:05 [end_date_ymd] => 2024-12-18 05:34:05 [RateCDR] => 1 ) [2024-12-18 05:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 02:34:05' and `end` < '2024-12-18 05:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 05:34:17] Production.INFO: count ==108 [2024-12-18 05:34:17] Production.ERROR: pbx CDR StartTime 2024-12-18 02:34:05 - End Time 2024-12-18 05:34:05 [2024-12-18 05:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046040', 'tblTempUsageDetail_20' ) start [2024-12-18 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046040', 'tblTempUsageDetail_20' ) end [2024-12-18 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046040', 'tblTempVendorCDR_20' ) start [2024-12-18 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046040', 'tblTempVendorCDR_20' ) end [2024-12-18 05:34:17] Production.INFO: ProcessCDR(1,14046040,1,1,2) [2024-12-18 05:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046040', 'tblTempUsageDetail_20' ) start [2024-12-18 05:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046040', 'tblTempUsageDetail_20' ) end [2024-12-18 05:34:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 05:34:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 05:34:20] Production.INFO: ==16549== Releasing lock... [2024-12-18 05:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 05:34:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-18 05:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 02:35:05 [end_date_ymd] => 2024-12-18 05:35:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 02:35:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 05:35:17] Production.INFO: count ==108 [2024-12-18 05:35:17] Production.ERROR: pbx CDR StartTime 2024-12-18 02:35:05 - End Time 2024-12-18 05:35:05 [2024-12-18 05:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046045', 'tblTempUsageDetail_20' ) start [2024-12-18 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046045', 'tblTempUsageDetail_20' ) end [2024-12-18 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046045', 'tblTempVendorCDR_20' ) start [2024-12-18 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046045', 'tblTempVendorCDR_20' ) end [2024-12-18 05:35:17] Production.INFO: ProcessCDR(1,14046045,1,1,2) [2024-12-18 05:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046045', 'tblTempUsageDetail_20' ) start [2024-12-18 05:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046045', 'tblTempUsageDetail_20' ) end [2024-12-18 05:35:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 05:35:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 05:35:20] Production.INFO: ==16632== Releasing lock... [2024-12-18 05:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 05:35:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-18 05:36:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 02:36:04 [end_date_ymd] => 2024-12-18 05:36:04 [RateCDR] => 1 ) [2024-12-18 05:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 02:36:04' and `end` < '2024-12-18 05:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 05:36:16] Production.INFO: count ==108 [2024-12-18 05:36:16] Production.ERROR: pbx CDR StartTime 2024-12-18 02:36:04 - End Time 2024-12-18 05:36:04 [2024-12-18 05:36:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 05:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046050', 'tblTempUsageDetail_20' ) start [2024-12-18 05:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046050', 'tblTempUsageDetail_20' ) end [2024-12-18 05:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046050', 'tblTempVendorCDR_20' ) start [2024-12-18 05:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046050', 'tblTempVendorCDR_20' ) end [2024-12-18 05:36:16] Production.INFO: ProcessCDR(1,14046050,1,1,2) [2024-12-18 05:36:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:36:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:36:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:36:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:36:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046050', 'tblTempUsageDetail_20' ) start [2024-12-18 05:36:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046050', 'tblTempUsageDetail_20' ) end [2024-12-18 05:36:19] Production.ERROR: pbx prc_insertCDR start [2024-12-18 05:36:19] Production.ERROR: pbx prc_insertCDR end [2024-12-18 05:36:19] Production.INFO: ==16714== Releasing lock... [2024-12-18 05:36:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 05:36:19] Production.INFO: 28.25 MB #Memory Used# [2024-12-18 05:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 02:37:05 [end_date_ymd] => 2024-12-18 05:37:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 02:37:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 05:37:18] Production.INFO: count ==108 [2024-12-18 05:37:18] Production.ERROR: pbx CDR StartTime 2024-12-18 02:37:05 - End Time 2024-12-18 05:37:05 [2024-12-18 05:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046055', 'tblTempUsageDetail_20' ) start [2024-12-18 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046055', 'tblTempUsageDetail_20' ) end [2024-12-18 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046055', 'tblTempVendorCDR_20' ) start [2024-12-18 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046055', 'tblTempVendorCDR_20' ) end [2024-12-18 05:37:18] Production.INFO: ProcessCDR(1,14046055,1,1,2) [2024-12-18 05:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046055', 'tblTempUsageDetail_20' ) start [2024-12-18 05:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046055', 'tblTempUsageDetail_20' ) end [2024-12-18 05:37:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 05:37:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 05:37:21] Production.INFO: ==16790== Releasing lock... [2024-12-18 05:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 05:37:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-18 05:38:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 02:38:04 [end_date_ymd] => 2024-12-18 05:38:04 [RateCDR] => 1 ) [2024-12-18 05:38:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 02:38:04' and `end` < '2024-12-18 05:38:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 05:38:17] Production.INFO: count ==108 [2024-12-18 05:38:17] Production.ERROR: pbx CDR StartTime 2024-12-18 02:38:04 - End Time 2024-12-18 05:38:04 [2024-12-18 05:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046060', 'tblTempUsageDetail_20' ) start [2024-12-18 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046060', 'tblTempUsageDetail_20' ) end [2024-12-18 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046060', 'tblTempVendorCDR_20' ) start [2024-12-18 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046060', 'tblTempVendorCDR_20' ) end [2024-12-18 05:38:17] Production.INFO: ProcessCDR(1,14046060,1,1,2) [2024-12-18 05:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046060', 'tblTempUsageDetail_20' ) start [2024-12-18 05:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046060', 'tblTempUsageDetail_20' ) end [2024-12-18 05:38:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 05:38:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 05:38:20] Production.INFO: ==16871== Releasing lock... [2024-12-18 05:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 05:38:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-18 05:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 02:39:04 [end_date_ymd] => 2024-12-18 05:39:04 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 02:39:04' and `end` < '2024-12-18 05:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 05:39:17] Production.INFO: count ==109 [2024-12-18 05:39:17] Production.ERROR: pbx CDR StartTime 2024-12-18 02:39:04 - End Time 2024-12-18 05:39:04 [2024-12-18 05:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046065', 'tblTempUsageDetail_20' ) start [2024-12-18 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046065', 'tblTempUsageDetail_20' ) end [2024-12-18 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046065', 'tblTempVendorCDR_20' ) start [2024-12-18 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046065', 'tblTempVendorCDR_20' ) end [2024-12-18 05:39:17] Production.INFO: ProcessCDR(1,14046065,1,1,2) [2024-12-18 05:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046065', 'tblTempUsageDetail_20' ) start [2024-12-18 05:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046065', 'tblTempUsageDetail_20' ) end [2024-12-18 05:39:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 05:39:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 05:39:20] Production.INFO: ==16946== Releasing lock... [2024-12-18 05:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 05:39:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-18 05:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 02:40:06 [end_date_ymd] => 2024-12-18 05:40:06 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 02:40:06' and `end` < '2024-12-18 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 ,'') [2024-12-18 05:40:19] Production.INFO: count ==101 [2024-12-18 05:40:19] Production.ERROR: pbx CDR StartTime 2024-12-18 02:40:06 - End Time 2024-12-18 05:40:06 [2024-12-18 05:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046071', 'tblTempUsageDetail_20' ) start [2024-12-18 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046071', 'tblTempUsageDetail_20' ) end [2024-12-18 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046071', 'tblTempVendorCDR_20' ) start [2024-12-18 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046071', 'tblTempVendorCDR_20' ) end [2024-12-18 05:40:19] Production.INFO: ProcessCDR(1,14046071,1,1,2) [2024-12-18 05:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046071', 'tblTempUsageDetail_20' ) start [2024-12-18 05:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046071', 'tblTempUsageDetail_20' ) end [2024-12-18 05:40:23] Production.ERROR: pbx prc_insertCDR start [2024-12-18 05:40:23] Production.ERROR: pbx prc_insertCDR end [2024-12-18 05:40:23] Production.INFO: ==17028== Releasing lock... [2024-12-18 05:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 05:40:23] Production.INFO: 28 MB #Memory Used# [2024-12-18 05:41:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 02:41:04 [end_date_ymd] => 2024-12-18 05:41:04 [RateCDR] => 1 ) [2024-12-18 05:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 02:41:04' and `end` < '2024-12-18 05:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 05:41:17] Production.INFO: count ==97 [2024-12-18 05:41:17] Production.ERROR: pbx CDR StartTime 2024-12-18 02:41:04 - End Time 2024-12-18 05:41:04 [2024-12-18 05:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046076', 'tblTempUsageDetail_20' ) start [2024-12-18 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046076', 'tblTempUsageDetail_20' ) end [2024-12-18 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046076', 'tblTempVendorCDR_20' ) start [2024-12-18 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046076', 'tblTempVendorCDR_20' ) end [2024-12-18 05:41:17] Production.INFO: ProcessCDR(1,14046076,1,1,2) [2024-12-18 05:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046076', 'tblTempUsageDetail_20' ) start [2024-12-18 05:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046076', 'tblTempUsageDetail_20' ) end [2024-12-18 05:41:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 05:41:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 05:41:20] Production.INFO: ==17104== Releasing lock... [2024-12-18 05:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 05:41:20] Production.INFO: 28 MB #Memory Used# [2024-12-18 05:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 02:42:05 [end_date_ymd] => 2024-12-18 05:42:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 02:42:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 05:42:17] Production.INFO: count ==97 [2024-12-18 05:42:17] Production.ERROR: pbx CDR StartTime 2024-12-18 02:42:05 - End Time 2024-12-18 05:42:05 [2024-12-18 05:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046081', 'tblTempUsageDetail_20' ) start [2024-12-18 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046081', 'tblTempUsageDetail_20' ) end [2024-12-18 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046081', 'tblTempVendorCDR_20' ) start [2024-12-18 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046081', 'tblTempVendorCDR_20' ) end [2024-12-18 05:42:17] Production.INFO: ProcessCDR(1,14046081,1,1,2) [2024-12-18 05:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046081', 'tblTempUsageDetail_20' ) start [2024-12-18 05:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046081', 'tblTempUsageDetail_20' ) end [2024-12-18 05:42:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 05:42:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 05:42:20] Production.INFO: ==17184== Releasing lock... [2024-12-18 05:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 05:42:20] Production.INFO: 28 MB #Memory Used# [2024-12-18 05:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 02:43:04 [end_date_ymd] => 2024-12-18 05:43:04 [RateCDR] => 1 ) [2024-12-18 05:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 02:43:04' and `end` < '2024-12-18 05:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 05:43:17] Production.INFO: count ==97 [2024-12-18 05:43:17] Production.ERROR: pbx CDR StartTime 2024-12-18 02:43:04 - End Time 2024-12-18 05:43:04 [2024-12-18 05:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046086', 'tblTempUsageDetail_20' ) start [2024-12-18 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046086', 'tblTempUsageDetail_20' ) end [2024-12-18 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046086', 'tblTempVendorCDR_20' ) start [2024-12-18 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046086', 'tblTempVendorCDR_20' ) end [2024-12-18 05:43:17] Production.INFO: ProcessCDR(1,14046086,1,1,2) [2024-12-18 05:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046086', 'tblTempUsageDetail_20' ) start [2024-12-18 05:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046086', 'tblTempUsageDetail_20' ) end [2024-12-18 05:43:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 05:43:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 05:43:20] Production.INFO: ==17262== Releasing lock... [2024-12-18 05:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 05:43:20] Production.INFO: 28 MB #Memory Used# [2024-12-18 05:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 02:44:05 [end_date_ymd] => 2024-12-18 05:44:05 [RateCDR] => 1 ) [2024-12-18 05:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 02:44:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 05:44:16] Production.INFO: count ==96 [2024-12-18 05:44:16] Production.ERROR: pbx CDR StartTime 2024-12-18 02:44:05 - End Time 2024-12-18 05:44:05 [2024-12-18 05:44:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 05:44:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046091', 'tblTempUsageDetail_20' ) start [2024-12-18 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046091', 'tblTempUsageDetail_20' ) end [2024-12-18 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046091', 'tblTempVendorCDR_20' ) start [2024-12-18 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046091', 'tblTempVendorCDR_20' ) end [2024-12-18 05:44:17] Production.INFO: ProcessCDR(1,14046091,1,1,2) [2024-12-18 05:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:44:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:44:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046091', 'tblTempUsageDetail_20' ) start [2024-12-18 05:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046091', 'tblTempUsageDetail_20' ) end [2024-12-18 05:44:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 05:44:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 05:44:20] Production.INFO: ==17340== Releasing lock... [2024-12-18 05:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 05:44:20] Production.INFO: 28 MB #Memory Used# [2024-12-18 05:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 02:45:05 [end_date_ymd] => 2024-12-18 05:45:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 02:45:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 05:45:17] Production.INFO: count ==96 [2024-12-18 05:45:17] Production.ERROR: pbx CDR StartTime 2024-12-18 02:45:05 - End Time 2024-12-18 05:45:05 [2024-12-18 05:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046096', 'tblTempUsageDetail_20' ) start [2024-12-18 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046096', 'tblTempUsageDetail_20' ) end [2024-12-18 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046096', 'tblTempVendorCDR_20' ) start [2024-12-18 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046096', 'tblTempVendorCDR_20' ) end [2024-12-18 05:45:17] Production.INFO: ProcessCDR(1,14046096,1,1,2) [2024-12-18 05:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046096', 'tblTempUsageDetail_20' ) start [2024-12-18 05:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046096', 'tblTempUsageDetail_20' ) end [2024-12-18 05:45:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 05:45:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 05:45:20] Production.INFO: ==17458== Releasing lock... [2024-12-18 05:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 05:45:20] Production.INFO: 28 MB #Memory Used# [2024-12-18 05:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 02:46:05 [end_date_ymd] => 2024-12-18 05:46:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 02:46:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 05:46:18] Production.INFO: count ==96 [2024-12-18 05:46:18] Production.ERROR: pbx CDR StartTime 2024-12-18 02:46:05 - End Time 2024-12-18 05:46:05 [2024-12-18 05:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046101', 'tblTempUsageDetail_20' ) start [2024-12-18 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046101', 'tblTempUsageDetail_20' ) end [2024-12-18 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046101', 'tblTempVendorCDR_20' ) start [2024-12-18 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046101', 'tblTempVendorCDR_20' ) end [2024-12-18 05:46:18] Production.INFO: ProcessCDR(1,14046101,1,1,2) [2024-12-18 05:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046101', 'tblTempUsageDetail_20' ) start [2024-12-18 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046101', 'tblTempUsageDetail_20' ) end [2024-12-18 05:46:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 05:46:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 05:46:21] Production.INFO: ==17532== Releasing lock... [2024-12-18 05:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 05:46:21] Production.INFO: 28 MB #Memory Used# [2024-12-18 05:47:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 02:47:04 [end_date_ymd] => 2024-12-18 05:47:04 [RateCDR] => 1 ) [2024-12-18 05:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 02:47:04' and `end` < '2024-12-18 05:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 05:47:17] Production.INFO: count ==96 [2024-12-18 05:47:17] Production.ERROR: pbx CDR StartTime 2024-12-18 02:47:04 - End Time 2024-12-18 05:47:04 [2024-12-18 05:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046106', 'tblTempUsageDetail_20' ) start [2024-12-18 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046106', 'tblTempUsageDetail_20' ) end [2024-12-18 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046106', 'tblTempVendorCDR_20' ) start [2024-12-18 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046106', 'tblTempVendorCDR_20' ) end [2024-12-18 05:47:17] Production.INFO: ProcessCDR(1,14046106,1,1,2) [2024-12-18 05:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046106', 'tblTempUsageDetail_20' ) start [2024-12-18 05:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046106', 'tblTempUsageDetail_20' ) end [2024-12-18 05:47:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 05:47:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 05:47:20] Production.INFO: ==17607== Releasing lock... [2024-12-18 05:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 05:47:20] Production.INFO: 28 MB #Memory Used# [2024-12-18 05:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 02:48:05 [end_date_ymd] => 2024-12-18 05:48:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 02:48:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 05:48:17] Production.INFO: count ==96 [2024-12-18 05:48:17] Production.ERROR: pbx CDR StartTime 2024-12-18 02:48:05 - End Time 2024-12-18 05:48:05 [2024-12-18 05:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046111', 'tblTempUsageDetail_20' ) start [2024-12-18 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046111', 'tblTempUsageDetail_20' ) end [2024-12-18 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046111', 'tblTempVendorCDR_20' ) start [2024-12-18 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046111', 'tblTempVendorCDR_20' ) end [2024-12-18 05:48:17] Production.INFO: ProcessCDR(1,14046111,1,1,2) [2024-12-18 05:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046111', 'tblTempUsageDetail_20' ) start [2024-12-18 05:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046111', 'tblTempUsageDetail_20' ) end [2024-12-18 05:48:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 05:48:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 05:48:20] Production.INFO: ==17683== Releasing lock... [2024-12-18 05:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 05:48:20] Production.INFO: 28 MB #Memory Used# [2024-12-18 05:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 02:49:05 [end_date_ymd] => 2024-12-18 05:49:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 02:49:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 05:49:17] Production.INFO: count ==96 [2024-12-18 05:49:17] Production.ERROR: pbx CDR StartTime 2024-12-18 02:49:05 - End Time 2024-12-18 05:49:05 [2024-12-18 05:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046116', 'tblTempUsageDetail_20' ) start [2024-12-18 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046116', 'tblTempUsageDetail_20' ) end [2024-12-18 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046116', 'tblTempVendorCDR_20' ) start [2024-12-18 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046116', 'tblTempVendorCDR_20' ) end [2024-12-18 05:49:17] Production.INFO: ProcessCDR(1,14046116,1,1,2) [2024-12-18 05:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046116', 'tblTempUsageDetail_20' ) start [2024-12-18 05:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046116', 'tblTempUsageDetail_20' ) end [2024-12-18 05:49:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 05:49:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 05:49:20] Production.INFO: ==17754== Releasing lock... [2024-12-18 05:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 05:49:20] Production.INFO: 28 MB #Memory Used# [2024-12-18 05:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 02:50:05 [end_date_ymd] => 2024-12-18 05:50:05 [RateCDR] => 1 ) [2024-12-18 05:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 02:50:05' and `end` < '2024-12-18 05:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 05:50:18] Production.INFO: count ==94 [2024-12-18 05:50:18] Production.ERROR: pbx CDR StartTime 2024-12-18 02:50:05 - End Time 2024-12-18 05:50:05 [2024-12-18 05:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046122', 'tblTempUsageDetail_20' ) start [2024-12-18 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046122', 'tblTempUsageDetail_20' ) end [2024-12-18 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046122', 'tblTempVendorCDR_20' ) start [2024-12-18 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046122', 'tblTempVendorCDR_20' ) end [2024-12-18 05:50:18] Production.INFO: ProcessCDR(1,14046122,1,1,2) [2024-12-18 05:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046122', 'tblTempUsageDetail_20' ) start [2024-12-18 05:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046122', 'tblTempUsageDetail_20' ) end [2024-12-18 05:50:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 05:50:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 05:50:21] Production.INFO: ==17829== Releasing lock... [2024-12-18 05:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 05:50:21] Production.INFO: 28 MB #Memory Used# [2024-12-18 05:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 02:51:05 [end_date_ymd] => 2024-12-18 05:51:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 02:51:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 05:51:17] Production.INFO: count ==94 [2024-12-18 05:51:17] Production.ERROR: pbx CDR StartTime 2024-12-18 02:51:05 - End Time 2024-12-18 05:51:05 [2024-12-18 05:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046127', 'tblTempUsageDetail_20' ) start [2024-12-18 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046127', 'tblTempUsageDetail_20' ) end [2024-12-18 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046127', 'tblTempVendorCDR_20' ) start [2024-12-18 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046127', 'tblTempVendorCDR_20' ) end [2024-12-18 05:51:17] Production.INFO: ProcessCDR(1,14046127,1,1,2) [2024-12-18 05:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046127', 'tblTempUsageDetail_20' ) start [2024-12-18 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046127', 'tblTempUsageDetail_20' ) end [2024-12-18 05:51:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 05:51:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 05:51:21] Production.INFO: ==17906== Releasing lock... [2024-12-18 05:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 05:51:21] Production.INFO: 28 MB #Memory Used# [2024-12-18 05:52:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 02:52:04 [end_date_ymd] => 2024-12-18 05:52:04 [RateCDR] => 1 ) [2024-12-18 05:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 02:52:04' and `end` < '2024-12-18 05:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 05:52:17] Production.INFO: count ==94 [2024-12-18 05:52:17] Production.ERROR: pbx CDR StartTime 2024-12-18 02:52:04 - End Time 2024-12-18 05:52:04 [2024-12-18 05:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046132', 'tblTempUsageDetail_20' ) start [2024-12-18 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046132', 'tblTempUsageDetail_20' ) end [2024-12-18 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046132', 'tblTempVendorCDR_20' ) start [2024-12-18 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046132', 'tblTempVendorCDR_20' ) end [2024-12-18 05:52:17] Production.INFO: ProcessCDR(1,14046132,1,1,2) [2024-12-18 05:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046132', 'tblTempUsageDetail_20' ) start [2024-12-18 05:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046132', 'tblTempUsageDetail_20' ) end [2024-12-18 05:52:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 05:52:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 05:52:20] Production.INFO: ==17979== Releasing lock... [2024-12-18 05:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 05:52:20] Production.INFO: 28 MB #Memory Used# [2024-12-18 05:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 02:53:05 [end_date_ymd] => 2024-12-18 05:53:05 [RateCDR] => 1 ) [2024-12-18 05:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 02:53:05' and `end` < '2024-12-18 05:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 05:53:17] Production.INFO: count ==94 [2024-12-18 05:53:17] Production.ERROR: pbx CDR StartTime 2024-12-18 02:53:05 - End Time 2024-12-18 05:53:05 [2024-12-18 05:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046137', 'tblTempUsageDetail_20' ) start [2024-12-18 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046137', 'tblTempUsageDetail_20' ) end [2024-12-18 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046137', 'tblTempVendorCDR_20' ) start [2024-12-18 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046137', 'tblTempVendorCDR_20' ) end [2024-12-18 05:53:17] Production.INFO: ProcessCDR(1,14046137,1,1,2) [2024-12-18 05:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046137', 'tblTempUsageDetail_20' ) start [2024-12-18 05:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046137', 'tblTempUsageDetail_20' ) end [2024-12-18 05:53:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 05:53:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 05:53:20] Production.INFO: ==18049== Releasing lock... [2024-12-18 05:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 05:53:20] Production.INFO: 28 MB #Memory Used# [2024-12-18 05:54:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 02:54:04 [end_date_ymd] => 2024-12-18 05:54:04 [RateCDR] => 1 ) [2024-12-18 05: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` >= '2024-12-18 02:54:04' and `end` < '2024-12-18 05:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 05:54:16] Production.INFO: count ==94 [2024-12-18 05:54:17] Production.ERROR: pbx CDR StartTime 2024-12-18 02:54:04 - End Time 2024-12-18 05:54:04 [2024-12-18 05:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046142', 'tblTempUsageDetail_20' ) start [2024-12-18 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046142', 'tblTempUsageDetail_20' ) end [2024-12-18 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046142', 'tblTempVendorCDR_20' ) start [2024-12-18 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046142', 'tblTempVendorCDR_20' ) end [2024-12-18 05:54:17] Production.INFO: ProcessCDR(1,14046142,1,1,2) [2024-12-18 05:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:54:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:54:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046142', 'tblTempUsageDetail_20' ) start [2024-12-18 05:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046142', 'tblTempUsageDetail_20' ) end [2024-12-18 05:54:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 05:54:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 05:54:20] Production.INFO: ==18121== Releasing lock... [2024-12-18 05:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 05:54:20] Production.INFO: 28 MB #Memory Used# [2024-12-18 05:55:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 02:55:04 [end_date_ymd] => 2024-12-18 05:55:04 [RateCDR] => 1 ) [2024-12-18 05:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 02:55:04' and `end` < '2024-12-18 05:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 05:55:17] Production.INFO: count ==94 [2024-12-18 05:55:17] Production.ERROR: pbx CDR StartTime 2024-12-18 02:55:04 - End Time 2024-12-18 05:55:04 [2024-12-18 05:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046147', 'tblTempUsageDetail_20' ) start [2024-12-18 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046147', 'tblTempUsageDetail_20' ) end [2024-12-18 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046147', 'tblTempVendorCDR_20' ) start [2024-12-18 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046147', 'tblTempVendorCDR_20' ) end [2024-12-18 05:55:17] Production.INFO: ProcessCDR(1,14046147,1,1,2) [2024-12-18 05:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046147', 'tblTempUsageDetail_20' ) start [2024-12-18 05:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046147', 'tblTempUsageDetail_20' ) end [2024-12-18 05:55:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 05:55:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 05:55:20] Production.INFO: ==18192== Releasing lock... [2024-12-18 05:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 05:55:20] Production.INFO: 28 MB #Memory Used# [2024-12-18 05:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 02:56:05 [end_date_ymd] => 2024-12-18 05:56:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 02:56:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 05:56:18] Production.INFO: count ==94 [2024-12-18 05:56:18] Production.ERROR: pbx CDR StartTime 2024-12-18 02:56:05 - End Time 2024-12-18 05:56:05 [2024-12-18 05:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046152', 'tblTempUsageDetail_20' ) start [2024-12-18 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046152', 'tblTempUsageDetail_20' ) end [2024-12-18 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046152', 'tblTempVendorCDR_20' ) start [2024-12-18 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046152', 'tblTempVendorCDR_20' ) end [2024-12-18 05:56:18] Production.INFO: ProcessCDR(1,14046152,1,1,2) [2024-12-18 05:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046152', 'tblTempUsageDetail_20' ) start [2024-12-18 05:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046152', 'tblTempUsageDetail_20' ) end [2024-12-18 05:56:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 05:56:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 05:56:21] Production.INFO: ==18265== Releasing lock... [2024-12-18 05:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 05:56:21] Production.INFO: 28 MB #Memory Used# [2024-12-18 05:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 02:57:05 [end_date_ymd] => 2024-12-18 05:57:05 [RateCDR] => 1 ) [2024-12-18 05:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 02:57:05' and `end` < '2024-12-18 05:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 05:57:17] Production.INFO: count ==94 [2024-12-18 05:57:17] Production.ERROR: pbx CDR StartTime 2024-12-18 02:57:05 - End Time 2024-12-18 05:57:05 [2024-12-18 05:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046157', 'tblTempUsageDetail_20' ) start [2024-12-18 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046157', 'tblTempUsageDetail_20' ) end [2024-12-18 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046157', 'tblTempVendorCDR_20' ) start [2024-12-18 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046157', 'tblTempVendorCDR_20' ) end [2024-12-18 05:57:17] Production.INFO: ProcessCDR(1,14046157,1,1,2) [2024-12-18 05:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046157', 'tblTempUsageDetail_20' ) start [2024-12-18 05:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046157', 'tblTempUsageDetail_20' ) end [2024-12-18 05:57:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 05:57:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 05:57:20] Production.INFO: ==18334== Releasing lock... [2024-12-18 05:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 05:57:20] Production.INFO: 28 MB #Memory Used# [2024-12-18 05:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 02:58:05 [end_date_ymd] => 2024-12-18 05:58:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 02:58:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 05:58:18] Production.INFO: count ==94 [2024-12-18 05:58:18] Production.ERROR: pbx CDR StartTime 2024-12-18 02:58:05 - End Time 2024-12-18 05:58:05 [2024-12-18 05:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046162', 'tblTempUsageDetail_20' ) start [2024-12-18 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046162', 'tblTempUsageDetail_20' ) end [2024-12-18 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046162', 'tblTempVendorCDR_20' ) start [2024-12-18 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046162', 'tblTempVendorCDR_20' ) end [2024-12-18 05:58:18] Production.INFO: ProcessCDR(1,14046162,1,1,2) [2024-12-18 05:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046162', 'tblTempUsageDetail_20' ) start [2024-12-18 05:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046162', 'tblTempUsageDetail_20' ) end [2024-12-18 05:58:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 05:58:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 05:58:21] Production.INFO: ==18406== Releasing lock... [2024-12-18 05:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 05:58:21] Production.INFO: 28 MB #Memory Used# [2024-12-18 05:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 02:59:05 [end_date_ymd] => 2024-12-18 05:59:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 02:59:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 05:59:17] Production.INFO: count ==94 [2024-12-18 05:59:17] Production.ERROR: pbx CDR StartTime 2024-12-18 02:59:05 - End Time 2024-12-18 05:59:05 [2024-12-18 05:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046167', 'tblTempUsageDetail_20' ) start [2024-12-18 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046167', 'tblTempUsageDetail_20' ) end [2024-12-18 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046167', 'tblTempVendorCDR_20' ) start [2024-12-18 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046167', 'tblTempVendorCDR_20' ) end [2024-12-18 05:59:17] Production.INFO: ProcessCDR(1,14046167,1,1,2) [2024-12-18 05:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 05:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 05:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046167', 'tblTempUsageDetail_20' ) start [2024-12-18 05:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046167', 'tblTempUsageDetail_20' ) end [2024-12-18 05:59:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 05:59:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 05:59:20] Production.INFO: ==18477== Releasing lock... [2024-12-18 05:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 05:59:20] Production.INFO: 28 MB #Memory Used# [2024-12-18 06:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 03:00:06 [end_date_ymd] => 2024-12-18 06:00:06 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 03:00:06' and `end` < '2024-12-18 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 ,'') [2024-12-18 06:00:18] Production.INFO: count ==88 [2024-12-18 06:00:18] Production.ERROR: pbx CDR StartTime 2024-12-18 03:00:06 - End Time 2024-12-18 06:00:06 [2024-12-18 06:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046173', 'tblTempUsageDetail_20' ) start [2024-12-18 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046173', 'tblTempUsageDetail_20' ) end [2024-12-18 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046173', 'tblTempVendorCDR_20' ) start [2024-12-18 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046173', 'tblTempVendorCDR_20' ) end [2024-12-18 06:00:18] Production.INFO: ProcessCDR(1,14046173,1,1,2) [2024-12-18 06:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046173', 'tblTempUsageDetail_20' ) start [2024-12-18 06:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046173', 'tblTempUsageDetail_20' ) end [2024-12-18 06:00:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 06:00:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 06:00:21] Production.INFO: ==18550== Releasing lock... [2024-12-18 06:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 06:00:21] Production.INFO: 28 MB #Memory Used# [2024-12-18 06:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 03:01:05 [end_date_ymd] => 2024-12-18 06:01:05 [RateCDR] => 1 ) [2024-12-18 06:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 03:01:05' and `end` < '2024-12-18 06:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 06:01:18] Production.INFO: count ==80 [2024-12-18 06:01:18] Production.ERROR: pbx CDR StartTime 2024-12-18 03:01:05 - End Time 2024-12-18 06:01:05 [2024-12-18 06:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046178', 'tblTempUsageDetail_20' ) start [2024-12-18 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046178', 'tblTempUsageDetail_20' ) end [2024-12-18 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046178', 'tblTempVendorCDR_20' ) start [2024-12-18 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046178', 'tblTempVendorCDR_20' ) end [2024-12-18 06:01:18] Production.INFO: ProcessCDR(1,14046178,1,1,2) [2024-12-18 06:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046178', 'tblTempUsageDetail_20' ) start [2024-12-18 06:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046178', 'tblTempUsageDetail_20' ) end [2024-12-18 06:01:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 06:01:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 06:01:21] Production.INFO: ==18673== Releasing lock... [2024-12-18 06:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 06:01:21] Production.INFO: 28 MB #Memory Used# [2024-12-18 06:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 03:02:05 [end_date_ymd] => 2024-12-18 06:02:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 03:02:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 06:02:18] Production.INFO: count ==80 [2024-12-18 06:02:18] Production.ERROR: pbx CDR StartTime 2024-12-18 03:02:05 - End Time 2024-12-18 06:02:05 [2024-12-18 06:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046183', 'tblTempUsageDetail_20' ) start [2024-12-18 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046183', 'tblTempUsageDetail_20' ) end [2024-12-18 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046183', 'tblTempVendorCDR_20' ) start [2024-12-18 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046183', 'tblTempVendorCDR_20' ) end [2024-12-18 06:02:18] Production.INFO: ProcessCDR(1,14046183,1,1,2) [2024-12-18 06:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046183', 'tblTempUsageDetail_20' ) start [2024-12-18 06:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046183', 'tblTempUsageDetail_20' ) end [2024-12-18 06:02:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 06:02:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 06:02:21] Production.INFO: ==18743== Releasing lock... [2024-12-18 06:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 06:02:21] Production.INFO: 28 MB #Memory Used# [2024-12-18 06:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 03:03:04 [end_date_ymd] => 2024-12-18 06:03:04 [RateCDR] => 1 ) [2024-12-18 06:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 03:03:04' and `end` < '2024-12-18 06:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 06:03:16] Production.INFO: count ==80 [2024-12-18 06:03:16] Production.ERROR: pbx CDR StartTime 2024-12-18 03:03:04 - End Time 2024-12-18 06:03:04 [2024-12-18 06:03:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 06:03:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046188', 'tblTempUsageDetail_20' ) start [2024-12-18 06:03:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046188', 'tblTempUsageDetail_20' ) end [2024-12-18 06:03:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046188', 'tblTempVendorCDR_20' ) start [2024-12-18 06:03:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046188', 'tblTempVendorCDR_20' ) end [2024-12-18 06:03:16] Production.INFO: ProcessCDR(1,14046188,1,1,2) [2024-12-18 06:03:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:03:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:03:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:03:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:03:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046188', 'tblTempUsageDetail_20' ) start [2024-12-18 06:03:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046188', 'tblTempUsageDetail_20' ) end [2024-12-18 06:03:19] Production.ERROR: pbx prc_insertCDR start [2024-12-18 06:03:19] Production.ERROR: pbx prc_insertCDR end [2024-12-18 06:03:19] Production.INFO: ==18817== Releasing lock... [2024-12-18 06:03:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 06:03:19] Production.INFO: 28 MB #Memory Used# [2024-12-18 06:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 03:04:05 [end_date_ymd] => 2024-12-18 06:04:05 [RateCDR] => 1 ) [2024-12-18 06:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 03:04:05' and `end` < '2024-12-18 06:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 06:04:18] Production.INFO: count ==80 [2024-12-18 06:04:18] Production.ERROR: pbx CDR StartTime 2024-12-18 03:04:05 - End Time 2024-12-18 06:04:05 [2024-12-18 06:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046193', 'tblTempUsageDetail_20' ) start [2024-12-18 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046193', 'tblTempUsageDetail_20' ) end [2024-12-18 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046193', 'tblTempVendorCDR_20' ) start [2024-12-18 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046193', 'tblTempVendorCDR_20' ) end [2024-12-18 06:04:18] Production.INFO: ProcessCDR(1,14046193,1,1,2) [2024-12-18 06:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046193', 'tblTempUsageDetail_20' ) start [2024-12-18 06:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046193', 'tblTempUsageDetail_20' ) end [2024-12-18 06:04:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 06:04:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 06:04:21] Production.INFO: ==18888== Releasing lock... [2024-12-18 06:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 06:04:21] Production.INFO: 28 MB #Memory Used# [2024-12-18 06:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 03:05:04 [end_date_ymd] => 2024-12-18 06:05:04 [RateCDR] => 1 ) [2024-12-18 06:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 03:05:04' and `end` < '2024-12-18 06:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 06:05:16] Production.INFO: count ==80 [2024-12-18 06:05:16] Production.ERROR: pbx CDR StartTime 2024-12-18 03:05:04 - End Time 2024-12-18 06:05:04 [2024-12-18 06:05:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 06:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046198', 'tblTempUsageDetail_20' ) start [2024-12-18 06:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046198', 'tblTempUsageDetail_20' ) end [2024-12-18 06:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046198', 'tblTempVendorCDR_20' ) start [2024-12-18 06:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046198', 'tblTempVendorCDR_20' ) end [2024-12-18 06:05:16] Production.INFO: ProcessCDR(1,14046198,1,1,2) [2024-12-18 06:05:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:05:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:05:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046198', 'tblTempUsageDetail_20' ) start [2024-12-18 06:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046198', 'tblTempUsageDetail_20' ) end [2024-12-18 06:05:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 06:05:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 06:05:20] Production.INFO: ==18957== Releasing lock... [2024-12-18 06:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 06:05:20] Production.INFO: 28 MB #Memory Used# [2024-12-18 06:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 03:06:05 [end_date_ymd] => 2024-12-18 06:06:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 03:06:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 06:06:17] Production.INFO: count ==80 [2024-12-18 06:06:17] Production.ERROR: pbx CDR StartTime 2024-12-18 03:06:05 - End Time 2024-12-18 06:06:05 [2024-12-18 06:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046203', 'tblTempUsageDetail_20' ) start [2024-12-18 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046203', 'tblTempUsageDetail_20' ) end [2024-12-18 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046203', 'tblTempVendorCDR_20' ) start [2024-12-18 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046203', 'tblTempVendorCDR_20' ) end [2024-12-18 06:06:17] Production.INFO: ProcessCDR(1,14046203,1,1,2) [2024-12-18 06:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046203', 'tblTempUsageDetail_20' ) start [2024-12-18 06:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046203', 'tblTempUsageDetail_20' ) end [2024-12-18 06:06:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 06:06:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 06:06:20] Production.INFO: ==19030== Releasing lock... [2024-12-18 06:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 06:06:20] Production.INFO: 28 MB #Memory Used# [2024-12-18 06:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 03:07:04 [end_date_ymd] => 2024-12-18 06:07:04 [RateCDR] => 1 ) [2024-12-18 06:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 03:07:04' and `end` < '2024-12-18 06:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 06:07:16] Production.INFO: count ==80 [2024-12-18 06:07:16] Production.ERROR: pbx CDR StartTime 2024-12-18 03:07:04 - End Time 2024-12-18 06:07:04 [2024-12-18 06:07:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 06:07:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046208', 'tblTempUsageDetail_20' ) start [2024-12-18 06:07:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046208', 'tblTempUsageDetail_20' ) end [2024-12-18 06:07:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046208', 'tblTempVendorCDR_20' ) start [2024-12-18 06:07:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046208', 'tblTempVendorCDR_20' ) end [2024-12-18 06:07:16] Production.INFO: ProcessCDR(1,14046208,1,1,2) [2024-12-18 06:07:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:07:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:07:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:07:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:07:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046208', 'tblTempUsageDetail_20' ) start [2024-12-18 06:07:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046208', 'tblTempUsageDetail_20' ) end [2024-12-18 06:07:19] Production.ERROR: pbx prc_insertCDR start [2024-12-18 06:07:19] Production.ERROR: pbx prc_insertCDR end [2024-12-18 06:07:20] Production.INFO: ==19099== Releasing lock... [2024-12-18 06:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 06:07:20] Production.INFO: 28 MB #Memory Used# [2024-12-18 06:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 03:08:05 [end_date_ymd] => 2024-12-18 06:08:05 [RateCDR] => 1 ) [2024-12-18 06:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 03:08:05' and `end` < '2024-12-18 06:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 06:08:17] Production.INFO: count ==80 [2024-12-18 06:08:17] Production.ERROR: pbx CDR StartTime 2024-12-18 03:08:05 - End Time 2024-12-18 06:08:05 [2024-12-18 06:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046213', 'tblTempUsageDetail_20' ) start [2024-12-18 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046213', 'tblTempUsageDetail_20' ) end [2024-12-18 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046213', 'tblTempVendorCDR_20' ) start [2024-12-18 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046213', 'tblTempVendorCDR_20' ) end [2024-12-18 06:08:17] Production.INFO: ProcessCDR(1,14046213,1,1,2) [2024-12-18 06:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046213', 'tblTempUsageDetail_20' ) start [2024-12-18 06:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046213', 'tblTempUsageDetail_20' ) end [2024-12-18 06:08:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 06:08:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 06:08:20] Production.INFO: ==19169== Releasing lock... [2024-12-18 06:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 06:08:20] Production.INFO: 28 MB #Memory Used# [2024-12-18 06:09:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 03:09:06 [end_date_ymd] => 2024-12-18 06:09:06 [RateCDR] => 1 ) [2024-12-18 06:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 03:09:06' and `end` < '2024-12-18 06:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 06:09:18] Production.INFO: count ==80 [2024-12-18 06:09:18] Production.ERROR: pbx CDR StartTime 2024-12-18 03:09:06 - End Time 2024-12-18 06:09:06 [2024-12-18 06:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046218', 'tblTempUsageDetail_20' ) start [2024-12-18 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046218', 'tblTempUsageDetail_20' ) end [2024-12-18 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046218', 'tblTempVendorCDR_20' ) start [2024-12-18 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046218', 'tblTempVendorCDR_20' ) end [2024-12-18 06:09:18] Production.INFO: ProcessCDR(1,14046218,1,1,2) [2024-12-18 06:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046218', 'tblTempUsageDetail_20' ) start [2024-12-18 06:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046218', 'tblTempUsageDetail_20' ) end [2024-12-18 06:09:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 06:09:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 06:09:21] Production.INFO: ==19241== Releasing lock... [2024-12-18 06:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 06:09:21] Production.INFO: 28 MB #Memory Used# [2024-12-18 06:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 03:10:06 [end_date_ymd] => 2024-12-18 06:10:06 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 03:10:06' and `end` < '2024-12-18 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 ,'') [2024-12-18 06:10:18] Production.INFO: count ==72 [2024-12-18 06:10:18] Production.ERROR: pbx CDR StartTime 2024-12-18 03:10:06 - End Time 2024-12-18 06:10:06 [2024-12-18 06:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046224', 'tblTempUsageDetail_20' ) start [2024-12-18 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046224', 'tblTempUsageDetail_20' ) end [2024-12-18 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046224', 'tblTempVendorCDR_20' ) start [2024-12-18 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046224', 'tblTempVendorCDR_20' ) end [2024-12-18 06:10:18] Production.INFO: ProcessCDR(1,14046224,1,1,2) [2024-12-18 06:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046224', 'tblTempUsageDetail_20' ) start [2024-12-18 06:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046224', 'tblTempUsageDetail_20' ) end [2024-12-18 06:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 06:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 06:10:21] Production.INFO: ==19312== Releasing lock... [2024-12-18 06:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 06:10:21] Production.INFO: 28 MB #Memory Used# [2024-12-18 06:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 03:11:05 [end_date_ymd] => 2024-12-18 06:11:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 03:11:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 06:11:18] Production.INFO: count ==70 [2024-12-18 06:11:18] Production.ERROR: pbx CDR StartTime 2024-12-18 03:11:05 - End Time 2024-12-18 06:11:05 [2024-12-18 06:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046229', 'tblTempUsageDetail_20' ) start [2024-12-18 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046229', 'tblTempUsageDetail_20' ) end [2024-12-18 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046229', 'tblTempVendorCDR_20' ) start [2024-12-18 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046229', 'tblTempVendorCDR_20' ) end [2024-12-18 06:11:18] Production.INFO: ProcessCDR(1,14046229,1,1,2) [2024-12-18 06:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046229', 'tblTempUsageDetail_20' ) start [2024-12-18 06:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046229', 'tblTempUsageDetail_20' ) end [2024-12-18 06:11:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 06:11:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 06:11:22] Production.INFO: ==19385== Releasing lock... [2024-12-18 06:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 06:11:22] Production.INFO: 28 MB #Memory Used# [2024-12-18 06:12:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 03:12:04 [end_date_ymd] => 2024-12-18 06:12:04 [RateCDR] => 1 ) [2024-12-18 06:12:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 03:12:04' and `end` < '2024-12-18 06:12:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 06:12:17] Production.INFO: count ==70 [2024-12-18 06:12:17] Production.ERROR: pbx CDR StartTime 2024-12-18 03:12:04 - End Time 2024-12-18 06:12:04 [2024-12-18 06:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046234', 'tblTempUsageDetail_20' ) start [2024-12-18 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046234', 'tblTempUsageDetail_20' ) end [2024-12-18 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046234', 'tblTempVendorCDR_20' ) start [2024-12-18 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046234', 'tblTempVendorCDR_20' ) end [2024-12-18 06:12:17] Production.INFO: ProcessCDR(1,14046234,1,1,2) [2024-12-18 06:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046234', 'tblTempUsageDetail_20' ) start [2024-12-18 06:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046234', 'tblTempUsageDetail_20' ) end [2024-12-18 06:12:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 06:12:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 06:12:20] Production.INFO: ==19455== Releasing lock... [2024-12-18 06:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 06:12:20] Production.INFO: 28 MB #Memory Used# [2024-12-18 06:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 03:13:05 [end_date_ymd] => 2024-12-18 06:13:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 03:13:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 06:13:17] Production.INFO: count ==71 [2024-12-18 06:13:17] Production.ERROR: pbx CDR StartTime 2024-12-18 03:13:05 - End Time 2024-12-18 06:13:05 [2024-12-18 06:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046239', 'tblTempUsageDetail_20' ) start [2024-12-18 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046239', 'tblTempUsageDetail_20' ) end [2024-12-18 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046239', 'tblTempVendorCDR_20' ) start [2024-12-18 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046239', 'tblTempVendorCDR_20' ) end [2024-12-18 06:13:17] Production.INFO: ProcessCDR(1,14046239,1,1,2) [2024-12-18 06:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046239', 'tblTempUsageDetail_20' ) start [2024-12-18 06:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046239', 'tblTempUsageDetail_20' ) end [2024-12-18 06:13:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 06:13:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 06:13:22] Production.INFO: ==19525== Releasing lock... [2024-12-18 06:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 06:13:22] Production.INFO: 28 MB #Memory Used# [2024-12-18 06:14:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 03:14:04 [end_date_ymd] => 2024-12-18 06:14:04 [RateCDR] => 1 ) [2024-12-18 06:14:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 03:14:04' and `end` < '2024-12-18 06:14:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 06:14:16] Production.INFO: count ==71 [2024-12-18 06:14:16] Production.ERROR: pbx CDR StartTime 2024-12-18 03:14:04 - End Time 2024-12-18 06:14:04 [2024-12-18 06:14:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 06:14:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046244', 'tblTempUsageDetail_20' ) start [2024-12-18 06:14:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046244', 'tblTempUsageDetail_20' ) end [2024-12-18 06:14:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046244', 'tblTempVendorCDR_20' ) start [2024-12-18 06:14:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046244', 'tblTempVendorCDR_20' ) end [2024-12-18 06:14:16] Production.INFO: ProcessCDR(1,14046244,1,1,2) [2024-12-18 06:14:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:14:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:14:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046244', 'tblTempUsageDetail_20' ) start [2024-12-18 06:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046244', 'tblTempUsageDetail_20' ) end [2024-12-18 06:14:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 06:14:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 06:14:20] Production.INFO: ==19600== Releasing lock... [2024-12-18 06:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 06:14:20] Production.INFO: 28 MB #Memory Used# [2024-12-18 06:15:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 03:15:04 [end_date_ymd] => 2024-12-18 06:15:04 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 03:15:04' and `end` < '2024-12-18 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 ,'') [2024-12-18 06:15:16] Production.INFO: count ==71 [2024-12-18 06:15:16] Production.ERROR: pbx CDR StartTime 2024-12-18 03:15:04 - End Time 2024-12-18 06:15:04 [2024-12-18 06:15:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 06:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046249', 'tblTempUsageDetail_20' ) start [2024-12-18 06:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046249', 'tblTempUsageDetail_20' ) end [2024-12-18 06:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046249', 'tblTempVendorCDR_20' ) start [2024-12-18 06:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046249', 'tblTempVendorCDR_20' ) end [2024-12-18 06:15:16] Production.INFO: ProcessCDR(1,14046249,1,1,2) [2024-12-18 06:15:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046249', 'tblTempUsageDetail_20' ) start [2024-12-18 06:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046249', 'tblTempUsageDetail_20' ) end [2024-12-18 06:15:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 06:15:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 06:15:20] Production.INFO: ==19675== Releasing lock... [2024-12-18 06:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 06:15:20] Production.INFO: 28 MB #Memory Used# [2024-12-18 06:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 03:16:05 [end_date_ymd] => 2024-12-18 06:16:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 03:16:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 06:16:17] Production.INFO: count ==71 [2024-12-18 06:16:17] Production.ERROR: pbx CDR StartTime 2024-12-18 03:16:05 - End Time 2024-12-18 06:16:05 [2024-12-18 06:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046254', 'tblTempUsageDetail_20' ) start [2024-12-18 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046254', 'tblTempUsageDetail_20' ) end [2024-12-18 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046254', 'tblTempVendorCDR_20' ) start [2024-12-18 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046254', 'tblTempVendorCDR_20' ) end [2024-12-18 06:16:17] Production.INFO: ProcessCDR(1,14046254,1,1,2) [2024-12-18 06:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046254', 'tblTempUsageDetail_20' ) start [2024-12-18 06:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046254', 'tblTempUsageDetail_20' ) end [2024-12-18 06:16:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 06:16:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 06:16:20] Production.INFO: ==19791== Releasing lock... [2024-12-18 06:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 06:16:20] Production.INFO: 28 MB #Memory Used# [2024-12-18 06:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 03:17:05 [end_date_ymd] => 2024-12-18 06:17:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 03:17:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 06:17:17] Production.INFO: count ==71 [2024-12-18 06:17:17] Production.ERROR: pbx CDR StartTime 2024-12-18 03:17:05 - End Time 2024-12-18 06:17:05 [2024-12-18 06:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046259', 'tblTempUsageDetail_20' ) start [2024-12-18 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046259', 'tblTempUsageDetail_20' ) end [2024-12-18 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046259', 'tblTempVendorCDR_20' ) start [2024-12-18 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046259', 'tblTempVendorCDR_20' ) end [2024-12-18 06:17:17] Production.INFO: ProcessCDR(1,14046259,1,1,2) [2024-12-18 06:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046259', 'tblTempUsageDetail_20' ) start [2024-12-18 06:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046259', 'tblTempUsageDetail_20' ) end [2024-12-18 06:17:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 06:17:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 06:17:21] Production.INFO: ==19862== Releasing lock... [2024-12-18 06:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 06:17:21] Production.INFO: 28 MB #Memory Used# [2024-12-18 06:18:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 03:18:06 [end_date_ymd] => 2024-12-18 06:18:06 [RateCDR] => 1 ) [2024-12-18 06:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 03:18:06' and `end` < '2024-12-18 06:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 06:18:18] Production.INFO: count ==71 [2024-12-18 06:18:18] Production.ERROR: pbx CDR StartTime 2024-12-18 03:18:06 - End Time 2024-12-18 06:18:06 [2024-12-18 06:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046264', 'tblTempUsageDetail_20' ) start [2024-12-18 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046264', 'tblTempUsageDetail_20' ) end [2024-12-18 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046264', 'tblTempVendorCDR_20' ) start [2024-12-18 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046264', 'tblTempVendorCDR_20' ) end [2024-12-18 06:18:18] Production.INFO: ProcessCDR(1,14046264,1,1,2) [2024-12-18 06:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046264', 'tblTempUsageDetail_20' ) start [2024-12-18 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046264', 'tblTempUsageDetail_20' ) end [2024-12-18 06:18:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 06:18:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 06:18:21] Production.INFO: ==19935== Releasing lock... [2024-12-18 06:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 06:18:21] Production.INFO: 28 MB #Memory Used# [2024-12-18 06:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 03:19:05 [end_date_ymd] => 2024-12-18 06:19:05 [RateCDR] => 1 ) [2024-12-18 06:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 03:19:05' and `end` < '2024-12-18 06:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 06:19:18] Production.INFO: count ==71 [2024-12-18 06:19:18] Production.ERROR: pbx CDR StartTime 2024-12-18 03:19:05 - End Time 2024-12-18 06:19:05 [2024-12-18 06:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046269', 'tblTempUsageDetail_20' ) start [2024-12-18 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046269', 'tblTempUsageDetail_20' ) end [2024-12-18 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046269', 'tblTempVendorCDR_20' ) start [2024-12-18 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046269', 'tblTempVendorCDR_20' ) end [2024-12-18 06:19:18] Production.INFO: ProcessCDR(1,14046269,1,1,2) [2024-12-18 06:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046269', 'tblTempUsageDetail_20' ) start [2024-12-18 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046269', 'tblTempUsageDetail_20' ) end [2024-12-18 06:19:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 06:19:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 06:19:21] Production.INFO: ==20012== Releasing lock... [2024-12-18 06:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 06:19:21] Production.INFO: 28 MB #Memory Used# [2024-12-18 06:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 03:20:06 [end_date_ymd] => 2024-12-18 06:20:06 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 03:20:06' and `end` < '2024-12-18 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 ,'') [2024-12-18 06:20:18] Production.INFO: count ==69 [2024-12-18 06:20:18] Production.ERROR: pbx CDR StartTime 2024-12-18 03:20:06 - End Time 2024-12-18 06:20:06 [2024-12-18 06:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046275', 'tblTempUsageDetail_20' ) start [2024-12-18 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046275', 'tblTempUsageDetail_20' ) end [2024-12-18 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046275', 'tblTempVendorCDR_20' ) start [2024-12-18 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046275', 'tblTempVendorCDR_20' ) end [2024-12-18 06:20:18] Production.INFO: ProcessCDR(1,14046275,1,1,2) [2024-12-18 06:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046275', 'tblTempUsageDetail_20' ) start [2024-12-18 06:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046275', 'tblTempUsageDetail_20' ) end [2024-12-18 06:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 06:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 06:20:21] Production.INFO: ==20092== Releasing lock... [2024-12-18 06:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 06:20:21] Production.INFO: 28 MB #Memory Used# [2024-12-18 06:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 03:21:04 [end_date_ymd] => 2024-12-18 06:21:04 [RateCDR] => 1 ) [2024-12-18 06:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 03:21:04' and `end` < '2024-12-18 06:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 06:21:17] Production.INFO: count ==69 [2024-12-18 06:21:17] Production.ERROR: pbx CDR StartTime 2024-12-18 03:21:04 - End Time 2024-12-18 06:21:04 [2024-12-18 06:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046280', 'tblTempUsageDetail_20' ) start [2024-12-18 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046280', 'tblTempUsageDetail_20' ) end [2024-12-18 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046280', 'tblTempVendorCDR_20' ) start [2024-12-18 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046280', 'tblTempVendorCDR_20' ) end [2024-12-18 06:21:17] Production.INFO: ProcessCDR(1,14046280,1,1,2) [2024-12-18 06:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046280', 'tblTempUsageDetail_20' ) start [2024-12-18 06:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046280', 'tblTempUsageDetail_20' ) end [2024-12-18 06:21:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 06:21:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 06:21:20] Production.INFO: ==20167== Releasing lock... [2024-12-18 06:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 06:21:20] Production.INFO: 28 MB #Memory Used# [2024-12-18 06:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 03:22:05 [end_date_ymd] => 2024-12-18 06:22:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 03:22:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 06:22:18] Production.INFO: count ==69 [2024-12-18 06:22:18] Production.ERROR: pbx CDR StartTime 2024-12-18 03:22:05 - End Time 2024-12-18 06:22:05 [2024-12-18 06:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046285', 'tblTempUsageDetail_20' ) start [2024-12-18 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046285', 'tblTempUsageDetail_20' ) end [2024-12-18 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046285', 'tblTempVendorCDR_20' ) start [2024-12-18 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046285', 'tblTempVendorCDR_20' ) end [2024-12-18 06:22:18] Production.INFO: ProcessCDR(1,14046285,1,1,2) [2024-12-18 06:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046285', 'tblTempUsageDetail_20' ) start [2024-12-18 06:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046285', 'tblTempUsageDetail_20' ) end [2024-12-18 06:22:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 06:22:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 06:22:22] Production.INFO: ==20249== Releasing lock... [2024-12-18 06:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 06:22:22] Production.INFO: 28 MB #Memory Used# [2024-12-18 06:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 03:23:05 [end_date_ymd] => 2024-12-18 06:23:05 [RateCDR] => 1 ) [2024-12-18 06:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 03:23:05' and `end` < '2024-12-18 06:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 06:23:17] Production.INFO: count ==69 [2024-12-18 06:23:17] Production.ERROR: pbx CDR StartTime 2024-12-18 03:23:05 - End Time 2024-12-18 06:23:05 [2024-12-18 06:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046290', 'tblTempUsageDetail_20' ) start [2024-12-18 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046290', 'tblTempUsageDetail_20' ) end [2024-12-18 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046290', 'tblTempVendorCDR_20' ) start [2024-12-18 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046290', 'tblTempVendorCDR_20' ) end [2024-12-18 06:23:17] Production.INFO: ProcessCDR(1,14046290,1,1,2) [2024-12-18 06:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046290', 'tblTempUsageDetail_20' ) start [2024-12-18 06:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046290', 'tblTempUsageDetail_20' ) end [2024-12-18 06:23:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 06:23:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 06:23:20] Production.INFO: ==20330== Releasing lock... [2024-12-18 06:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 06:23:20] Production.INFO: 28 MB #Memory Used# [2024-12-18 06:24:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 03:24:06 [end_date_ymd] => 2024-12-18 06:24:06 [RateCDR] => 1 ) [2024-12-18 06:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 03:24:06' and `end` < '2024-12-18 06:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 06:24:18] Production.INFO: count ==69 [2024-12-18 06:24:18] Production.ERROR: pbx CDR StartTime 2024-12-18 03:24:06 - End Time 2024-12-18 06:24:06 [2024-12-18 06:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046295', 'tblTempUsageDetail_20' ) start [2024-12-18 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046295', 'tblTempUsageDetail_20' ) end [2024-12-18 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046295', 'tblTempVendorCDR_20' ) start [2024-12-18 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046295', 'tblTempVendorCDR_20' ) end [2024-12-18 06:24:18] Production.INFO: ProcessCDR(1,14046295,1,1,2) [2024-12-18 06:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046295', 'tblTempUsageDetail_20' ) start [2024-12-18 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046295', 'tblTempUsageDetail_20' ) end [2024-12-18 06:24:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 06:24:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 06:24:21] Production.INFO: ==20406== Releasing lock... [2024-12-18 06:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 06:24:21] Production.INFO: 28 MB #Memory Used# [2024-12-18 06:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 03:25:04 [end_date_ymd] => 2024-12-18 06:25:04 [RateCDR] => 1 ) [2024-12-18 06: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` >= '2024-12-18 03:25:04' and `end` < '2024-12-18 06: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 ,'') [2024-12-18 06:25:16] Production.INFO: count ==69 [2024-12-18 06:25:16] Production.ERROR: pbx CDR StartTime 2024-12-18 03:25:04 - End Time 2024-12-18 06:25:04 [2024-12-18 06:25:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 06:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046300', 'tblTempUsageDetail_20' ) start [2024-12-18 06:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046300', 'tblTempUsageDetail_20' ) end [2024-12-18 06:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046300', 'tblTempVendorCDR_20' ) start [2024-12-18 06:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046300', 'tblTempVendorCDR_20' ) end [2024-12-18 06:25:16] Production.INFO: ProcessCDR(1,14046300,1,1,2) [2024-12-18 06:25:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:25:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:25:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:25:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:25:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046300', 'tblTempUsageDetail_20' ) start [2024-12-18 06:25:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046300', 'tblTempUsageDetail_20' ) end [2024-12-18 06:25:19] Production.ERROR: pbx prc_insertCDR start [2024-12-18 06:25:19] Production.ERROR: pbx prc_insertCDR end [2024-12-18 06:25:19] Production.INFO: ==20484== Releasing lock... [2024-12-18 06:25:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 06:25:19] Production.INFO: 28 MB #Memory Used# [2024-12-18 06:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 03:26:05 [end_date_ymd] => 2024-12-18 06:26:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 03:26:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 06:26:18] Production.INFO: count ==69 [2024-12-18 06:26:18] Production.ERROR: pbx CDR StartTime 2024-12-18 03:26:05 - End Time 2024-12-18 06:26:05 [2024-12-18 06:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046305', 'tblTempUsageDetail_20' ) start [2024-12-18 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046305', 'tblTempUsageDetail_20' ) end [2024-12-18 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046305', 'tblTempVendorCDR_20' ) start [2024-12-18 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046305', 'tblTempVendorCDR_20' ) end [2024-12-18 06:26:18] Production.INFO: ProcessCDR(1,14046305,1,1,2) [2024-12-18 06:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046305', 'tblTempUsageDetail_20' ) start [2024-12-18 06:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046305', 'tblTempUsageDetail_20' ) end [2024-12-18 06:26:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 06:26:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 06:26:21] Production.INFO: ==20567== Releasing lock... [2024-12-18 06:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 06:26:21] Production.INFO: 28 MB #Memory Used# [2024-12-18 06:27:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 03:27:04 [end_date_ymd] => 2024-12-18 06:27:04 [RateCDR] => 1 ) [2024-12-18 06:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 03:27:04' and `end` < '2024-12-18 06:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 06:27:17] Production.INFO: count ==69 [2024-12-18 06:27:17] Production.ERROR: pbx CDR StartTime 2024-12-18 03:27:04 - End Time 2024-12-18 06:27:04 [2024-12-18 06:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046310', 'tblTempUsageDetail_20' ) start [2024-12-18 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046310', 'tblTempUsageDetail_20' ) end [2024-12-18 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046310', 'tblTempVendorCDR_20' ) start [2024-12-18 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046310', 'tblTempVendorCDR_20' ) end [2024-12-18 06:27:17] Production.INFO: ProcessCDR(1,14046310,1,1,2) [2024-12-18 06:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046310', 'tblTempUsageDetail_20' ) start [2024-12-18 06:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046310', 'tblTempUsageDetail_20' ) end [2024-12-18 06:27:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 06:27:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 06:27:20] Production.INFO: ==20640== Releasing lock... [2024-12-18 06:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 06:27:20] Production.INFO: 28 MB #Memory Used# [2024-12-18 06:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 03:28:05 [end_date_ymd] => 2024-12-18 06:28:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 03:28:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 06:28:18] Production.INFO: count ==69 [2024-12-18 06:28:18] Production.ERROR: pbx CDR StartTime 2024-12-18 03:28:05 - End Time 2024-12-18 06:28:05 [2024-12-18 06:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046315', 'tblTempUsageDetail_20' ) start [2024-12-18 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046315', 'tblTempUsageDetail_20' ) end [2024-12-18 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046315', 'tblTempVendorCDR_20' ) start [2024-12-18 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046315', 'tblTempVendorCDR_20' ) end [2024-12-18 06:28:18] Production.INFO: ProcessCDR(1,14046315,1,1,2) [2024-12-18 06:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046315', 'tblTempUsageDetail_20' ) start [2024-12-18 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046315', 'tblTempUsageDetail_20' ) end [2024-12-18 06:28:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 06:28:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 06:28:21] Production.INFO: ==20718== Releasing lock... [2024-12-18 06:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 06:28:21] Production.INFO: 28 MB #Memory Used# [2024-12-18 06:29:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 03:29:04 [end_date_ymd] => 2024-12-18 06:29:04 [RateCDR] => 1 ) [2024-12-18 06:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 03:29:04' and `end` < '2024-12-18 06:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 06:29:17] Production.INFO: count ==69 [2024-12-18 06:29:17] Production.ERROR: pbx CDR StartTime 2024-12-18 03:29:04 - End Time 2024-12-18 06:29:04 [2024-12-18 06:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046320', 'tblTempUsageDetail_20' ) start [2024-12-18 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046320', 'tblTempUsageDetail_20' ) end [2024-12-18 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046320', 'tblTempVendorCDR_20' ) start [2024-12-18 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046320', 'tblTempVendorCDR_20' ) end [2024-12-18 06:29:17] Production.INFO: ProcessCDR(1,14046320,1,1,2) [2024-12-18 06:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046320', 'tblTempUsageDetail_20' ) start [2024-12-18 06:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046320', 'tblTempUsageDetail_20' ) end [2024-12-18 06:29:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 06:29:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 06:29:20] Production.INFO: ==20795== Releasing lock... [2024-12-18 06:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 06:29:20] Production.INFO: 28 MB #Memory Used# [2024-12-18 06:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 03:30:05 [end_date_ymd] => 2024-12-18 06:30:05 [RateCDR] => 1 ) [2024-12-18 06:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 03:30:05' and `end` < '2024-12-18 06:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 06:30:17] Production.INFO: count ==69 [2024-12-18 06:30:17] Production.ERROR: pbx CDR StartTime 2024-12-18 03:30:05 - End Time 2024-12-18 06:30:05 [2024-12-18 06:30:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 06:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046326', 'tblTempUsageDetail_20' ) start [2024-12-18 06:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046326', 'tblTempUsageDetail_20' ) end [2024-12-18 06:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046326', 'tblTempVendorCDR_20' ) start [2024-12-18 06:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046326', 'tblTempVendorCDR_20' ) end [2024-12-18 06:30:17] Production.INFO: ProcessCDR(1,14046326,1,1,2) [2024-12-18 06:30:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:30:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:30:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:30:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046326', 'tblTempUsageDetail_20' ) start [2024-12-18 06:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046326', 'tblTempUsageDetail_20' ) end [2024-12-18 06:30:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 06:30:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 06:30:20] Production.INFO: ==20874== Releasing lock... [2024-12-18 06:30:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 06:30:20] Production.INFO: 28 MB #Memory Used# [2024-12-18 06:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 03:31:05 [end_date_ymd] => 2024-12-18 06:31:05 [RateCDR] => 1 ) [2024-12-18 06:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 03:31:05' and `end` < '2024-12-18 06:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 06:31:17] Production.INFO: count ==70 [2024-12-18 06:31:17] Production.ERROR: pbx CDR StartTime 2024-12-18 03:31:05 - End Time 2024-12-18 06:31:05 [2024-12-18 06:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046331', 'tblTempUsageDetail_20' ) start [2024-12-18 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046331', 'tblTempUsageDetail_20' ) end [2024-12-18 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046331', 'tblTempVendorCDR_20' ) start [2024-12-18 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046331', 'tblTempVendorCDR_20' ) end [2024-12-18 06:31:17] Production.INFO: ProcessCDR(1,14046331,1,1,2) [2024-12-18 06:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046331', 'tblTempUsageDetail_20' ) start [2024-12-18 06:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046331', 'tblTempUsageDetail_20' ) end [2024-12-18 06:31:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 06:31:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 06:31:21] Production.INFO: ==20953== Releasing lock... [2024-12-18 06:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 06:31:21] Production.INFO: 28 MB #Memory Used# [2024-12-18 06:32:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 03:32:04 [end_date_ymd] => 2024-12-18 06:32:04 [RateCDR] => 1 ) [2024-12-18 06:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 03:32:04' and `end` < '2024-12-18 06:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 06:32:16] Production.INFO: count ==70 [2024-12-18 06:32:16] Production.ERROR: pbx CDR StartTime 2024-12-18 03:32:04 - End Time 2024-12-18 06:32:04 [2024-12-18 06:32:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 06:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046336', 'tblTempUsageDetail_20' ) start [2024-12-18 06:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046336', 'tblTempUsageDetail_20' ) end [2024-12-18 06:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046336', 'tblTempVendorCDR_20' ) start [2024-12-18 06:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046336', 'tblTempVendorCDR_20' ) end [2024-12-18 06:32:16] Production.INFO: ProcessCDR(1,14046336,1,1,2) [2024-12-18 06:32:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:32:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:32:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:32:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:32:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046336', 'tblTempUsageDetail_20' ) start [2024-12-18 06:32:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046336', 'tblTempUsageDetail_20' ) end [2024-12-18 06:32:19] Production.ERROR: pbx prc_insertCDR start [2024-12-18 06:32:19] Production.ERROR: pbx prc_insertCDR end [2024-12-18 06:32:19] Production.INFO: ==21073== Releasing lock... [2024-12-18 06:32:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 06:32:19] Production.INFO: 28 MB #Memory Used# [2024-12-18 06:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 03:33:05 [end_date_ymd] => 2024-12-18 06:33:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 03:33:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 06:33:18] Production.INFO: count ==70 [2024-12-18 06:33:18] Production.ERROR: pbx CDR StartTime 2024-12-18 03:33:05 - End Time 2024-12-18 06:33:05 [2024-12-18 06:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046341', 'tblTempUsageDetail_20' ) start [2024-12-18 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046341', 'tblTempUsageDetail_20' ) end [2024-12-18 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046341', 'tblTempVendorCDR_20' ) start [2024-12-18 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046341', 'tblTempVendorCDR_20' ) end [2024-12-18 06:33:18] Production.INFO: ProcessCDR(1,14046341,1,1,2) [2024-12-18 06:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046341', 'tblTempUsageDetail_20' ) start [2024-12-18 06:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046341', 'tblTempUsageDetail_20' ) end [2024-12-18 06:33:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 06:33:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 06:33:21] Production.INFO: ==21156== Releasing lock... [2024-12-18 06:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 06:33:21] Production.INFO: 28 MB #Memory Used# [2024-12-18 06:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 03:34:05 [end_date_ymd] => 2024-12-18 06:34:05 [RateCDR] => 1 ) [2024-12-18 06:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 03:34:05' and `end` < '2024-12-18 06:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 06:34:17] Production.INFO: count ==70 [2024-12-18 06:34:17] Production.ERROR: pbx CDR StartTime 2024-12-18 03:34:05 - End Time 2024-12-18 06:34:05 [2024-12-18 06:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046346', 'tblTempUsageDetail_20' ) start [2024-12-18 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046346', 'tblTempUsageDetail_20' ) end [2024-12-18 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046346', 'tblTempVendorCDR_20' ) start [2024-12-18 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046346', 'tblTempVendorCDR_20' ) end [2024-12-18 06:34:17] Production.INFO: ProcessCDR(1,14046346,1,1,2) [2024-12-18 06:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046346', 'tblTempUsageDetail_20' ) start [2024-12-18 06:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046346', 'tblTempUsageDetail_20' ) end [2024-12-18 06:34:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 06:34:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 06:34:20] Production.INFO: ==21233== Releasing lock... [2024-12-18 06:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 06:34:20] Production.INFO: 28 MB #Memory Used# [2024-12-18 06:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 03:35:05 [end_date_ymd] => 2024-12-18 06:35:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 03:35:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 06:35:17] Production.INFO: count ==70 [2024-12-18 06:35:17] Production.ERROR: pbx CDR StartTime 2024-12-18 03:35:05 - End Time 2024-12-18 06:35:05 [2024-12-18 06:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046351', 'tblTempUsageDetail_20' ) start [2024-12-18 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046351', 'tblTempUsageDetail_20' ) end [2024-12-18 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046351', 'tblTempVendorCDR_20' ) start [2024-12-18 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046351', 'tblTempVendorCDR_20' ) end [2024-12-18 06:35:17] Production.INFO: ProcessCDR(1,14046351,1,1,2) [2024-12-18 06:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046351', 'tblTempUsageDetail_20' ) start [2024-12-18 06:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046351', 'tblTempUsageDetail_20' ) end [2024-12-18 06:35:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 06:35:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 06:35:20] Production.INFO: ==21312== Releasing lock... [2024-12-18 06:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 06:35:20] Production.INFO: 28 MB #Memory Used# [2024-12-18 06:36:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 03:36:04 [end_date_ymd] => 2024-12-18 06:36:04 [RateCDR] => 1 ) [2024-12-18 06:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 03:36:04' and `end` < '2024-12-18 06:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 06:36:17] Production.INFO: count ==70 [2024-12-18 06:36:17] Production.ERROR: pbx CDR StartTime 2024-12-18 03:36:04 - End Time 2024-12-18 06:36:04 [2024-12-18 06:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046356', 'tblTempUsageDetail_20' ) start [2024-12-18 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046356', 'tblTempUsageDetail_20' ) end [2024-12-18 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046356', 'tblTempVendorCDR_20' ) start [2024-12-18 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046356', 'tblTempVendorCDR_20' ) end [2024-12-18 06:36:17] Production.INFO: ProcessCDR(1,14046356,1,1,2) [2024-12-18 06:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046356', 'tblTempUsageDetail_20' ) start [2024-12-18 06:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046356', 'tblTempUsageDetail_20' ) end [2024-12-18 06:36:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 06:36:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 06:36:20] Production.INFO: ==21387== Releasing lock... [2024-12-18 06:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 06:36:20] Production.INFO: 28 MB #Memory Used# [2024-12-18 06:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 03:37:05 [end_date_ymd] => 2024-12-18 06:37:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 03:37:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 06:37:17] Production.INFO: count ==70 [2024-12-18 06:37:17] Production.ERROR: pbx CDR StartTime 2024-12-18 03:37:05 - End Time 2024-12-18 06:37:05 [2024-12-18 06:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046361', 'tblTempUsageDetail_20' ) start [2024-12-18 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046361', 'tblTempUsageDetail_20' ) end [2024-12-18 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046361', 'tblTempVendorCDR_20' ) start [2024-12-18 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046361', 'tblTempVendorCDR_20' ) end [2024-12-18 06:37:17] Production.INFO: ProcessCDR(1,14046361,1,1,2) [2024-12-18 06:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046361', 'tblTempUsageDetail_20' ) start [2024-12-18 06:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046361', 'tblTempUsageDetail_20' ) end [2024-12-18 06:37:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 06:37:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 06:37:20] Production.INFO: ==21469== Releasing lock... [2024-12-18 06:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 06:37:20] Production.INFO: 28 MB #Memory Used# [2024-12-18 06:38:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 03:38:04 [end_date_ymd] => 2024-12-18 06:38:04 [RateCDR] => 1 ) [2024-12-18 06:38:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 03:38:04' and `end` < '2024-12-18 06:38:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 06:38:16] Production.INFO: count ==70 [2024-12-18 06:38:17] Production.ERROR: pbx CDR StartTime 2024-12-18 03:38:04 - End Time 2024-12-18 06:38:04 [2024-12-18 06:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046366', 'tblTempUsageDetail_20' ) start [2024-12-18 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046366', 'tblTempUsageDetail_20' ) end [2024-12-18 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046366', 'tblTempVendorCDR_20' ) start [2024-12-18 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046366', 'tblTempVendorCDR_20' ) end [2024-12-18 06:38:17] Production.INFO: ProcessCDR(1,14046366,1,1,2) [2024-12-18 06:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:38:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:38:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046366', 'tblTempUsageDetail_20' ) start [2024-12-18 06:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046366', 'tblTempUsageDetail_20' ) end [2024-12-18 06:38:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 06:38:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 06:38:20] Production.INFO: ==21545== Releasing lock... [2024-12-18 06:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 06:38:20] Production.INFO: 28 MB #Memory Used# [2024-12-18 06:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 03:39:05 [end_date_ymd] => 2024-12-18 06:39:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 03:39:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 06:39:17] Production.INFO: count ==70 [2024-12-18 06:39:17] Production.ERROR: pbx CDR StartTime 2024-12-18 03:39:05 - End Time 2024-12-18 06:39:05 [2024-12-18 06:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046371', 'tblTempUsageDetail_20' ) start [2024-12-18 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046371', 'tblTempUsageDetail_20' ) end [2024-12-18 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046371', 'tblTempVendorCDR_20' ) start [2024-12-18 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046371', 'tblTempVendorCDR_20' ) end [2024-12-18 06:39:17] Production.INFO: ProcessCDR(1,14046371,1,1,2) [2024-12-18 06:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046371', 'tblTempUsageDetail_20' ) start [2024-12-18 06:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046371', 'tblTempUsageDetail_20' ) end [2024-12-18 06:39:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 06:39:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 06:39:20] Production.INFO: ==21624== Releasing lock... [2024-12-18 06:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 06:39:20] Production.INFO: 28 MB #Memory Used# [2024-12-18 06:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 03:40:06 [end_date_ymd] => 2024-12-18 06:40:06 [RateCDR] => 1 ) [2024-12-18 06:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 03:40:06' and `end` < '2024-12-18 06:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 06:40:18] Production.INFO: count ==64 [2024-12-18 06:40:18] Production.ERROR: pbx CDR StartTime 2024-12-18 03:40:06 - End Time 2024-12-18 06:40:06 [2024-12-18 06:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046377', 'tblTempUsageDetail_20' ) start [2024-12-18 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046377', 'tblTempUsageDetail_20' ) end [2024-12-18 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046377', 'tblTempVendorCDR_20' ) start [2024-12-18 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046377', 'tblTempVendorCDR_20' ) end [2024-12-18 06:40:18] Production.INFO: ProcessCDR(1,14046377,1,1,2) [2024-12-18 06:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046377', 'tblTempUsageDetail_20' ) start [2024-12-18 06:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046377', 'tblTempUsageDetail_20' ) end [2024-12-18 06:40:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 06:40:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 06:40:21] Production.INFO: ==21705== Releasing lock... [2024-12-18 06:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 06:40:21] Production.INFO: 28 MB #Memory Used# [2024-12-18 06:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 03:41:05 [end_date_ymd] => 2024-12-18 06:41:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 03:41:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 06:41:17] Production.INFO: count ==61 [2024-12-18 06:41:17] Production.ERROR: pbx CDR StartTime 2024-12-18 03:41:05 - End Time 2024-12-18 06:41:05 [2024-12-18 06:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046382', 'tblTempUsageDetail_20' ) start [2024-12-18 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046382', 'tblTempUsageDetail_20' ) end [2024-12-18 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046382', 'tblTempVendorCDR_20' ) start [2024-12-18 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046382', 'tblTempVendorCDR_20' ) end [2024-12-18 06:41:17] Production.INFO: ProcessCDR(1,14046382,1,1,2) [2024-12-18 06:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046382', 'tblTempUsageDetail_20' ) start [2024-12-18 06:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046382', 'tblTempUsageDetail_20' ) end [2024-12-18 06:41:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 06:41:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 06:41:20] Production.INFO: ==21780== Releasing lock... [2024-12-18 06:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 06:41:20] Production.INFO: 28 MB #Memory Used# [2024-12-18 06:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 03:42:05 [end_date_ymd] => 2024-12-18 06:42:05 [RateCDR] => 1 ) [2024-12-18 06:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 03:42:05' and `end` < '2024-12-18 06:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 06:42:17] Production.INFO: count ==61 [2024-12-18 06:42:17] Production.ERROR: pbx CDR StartTime 2024-12-18 03:42:05 - End Time 2024-12-18 06:42:05 [2024-12-18 06:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046387', 'tblTempUsageDetail_20' ) start [2024-12-18 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046387', 'tblTempUsageDetail_20' ) end [2024-12-18 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046387', 'tblTempVendorCDR_20' ) start [2024-12-18 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046387', 'tblTempVendorCDR_20' ) end [2024-12-18 06:42:17] Production.INFO: ProcessCDR(1,14046387,1,1,2) [2024-12-18 06:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046387', 'tblTempUsageDetail_20' ) start [2024-12-18 06:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046387', 'tblTempUsageDetail_20' ) end [2024-12-18 06:42:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 06:42:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 06:42:20] Production.INFO: ==21858== Releasing lock... [2024-12-18 06:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 06:42:20] Production.INFO: 28 MB #Memory Used# [2024-12-18 06:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 03:43:04 [end_date_ymd] => 2024-12-18 06:43:04 [RateCDR] => 1 ) [2024-12-18 06:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 03:43:04' and `end` < '2024-12-18 06:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 06:43:16] Production.INFO: count ==60 [2024-12-18 06:43:16] Production.ERROR: pbx CDR StartTime 2024-12-18 03:43:04 - End Time 2024-12-18 06:43:04 [2024-12-18 06:43:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 06:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046392', 'tblTempUsageDetail_20' ) start [2024-12-18 06:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046392', 'tblTempUsageDetail_20' ) end [2024-12-18 06:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046392', 'tblTempVendorCDR_20' ) start [2024-12-18 06:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046392', 'tblTempVendorCDR_20' ) end [2024-12-18 06:43:16] Production.INFO: ProcessCDR(1,14046392,1,1,2) [2024-12-18 06:43:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:43:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:43:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:43:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:43:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046392', 'tblTempUsageDetail_20' ) start [2024-12-18 06:43:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046392', 'tblTempUsageDetail_20' ) end [2024-12-18 06:43:19] Production.ERROR: pbx prc_insertCDR start [2024-12-18 06:43:19] Production.ERROR: pbx prc_insertCDR end [2024-12-18 06:43:19] Production.INFO: ==21936== Releasing lock... [2024-12-18 06:43:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 06:43:19] Production.INFO: 28 MB #Memory Used# [2024-12-18 06:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 03:44:05 [end_date_ymd] => 2024-12-18 06:44:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 03:44:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 06:44:18] Production.INFO: count ==60 [2024-12-18 06:44:18] Production.ERROR: pbx CDR StartTime 2024-12-18 03:44:05 - End Time 2024-12-18 06:44:05 [2024-12-18 06:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046397', 'tblTempUsageDetail_20' ) start [2024-12-18 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046397', 'tblTempUsageDetail_20' ) end [2024-12-18 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046397', 'tblTempVendorCDR_20' ) start [2024-12-18 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046397', 'tblTempVendorCDR_20' ) end [2024-12-18 06:44:18] Production.INFO: ProcessCDR(1,14046397,1,1,2) [2024-12-18 06:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046397', 'tblTempUsageDetail_20' ) start [2024-12-18 06:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046397', 'tblTempUsageDetail_20' ) end [2024-12-18 06:44:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 06:44:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 06:44:21] Production.INFO: ==22015== Releasing lock... [2024-12-18 06:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 06:44:21] Production.INFO: 28 MB #Memory Used# [2024-12-18 06:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 03:45:04 [end_date_ymd] => 2024-12-18 06:45:04 [RateCDR] => 1 ) [2024-12-18 06:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 03:45:04' and `end` < '2024-12-18 06:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 06:45:16] Production.INFO: count ==59 [2024-12-18 06:45:16] Production.ERROR: pbx CDR StartTime 2024-12-18 03:45:04 - End Time 2024-12-18 06:45:04 [2024-12-18 06:45:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 06:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046402', 'tblTempUsageDetail_20' ) start [2024-12-18 06:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046402', 'tblTempUsageDetail_20' ) end [2024-12-18 06:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046402', 'tblTempVendorCDR_20' ) start [2024-12-18 06:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046402', 'tblTempVendorCDR_20' ) end [2024-12-18 06:45:16] Production.INFO: ProcessCDR(1,14046402,1,1,2) [2024-12-18 06:45:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:45:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:45:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046402', 'tblTempUsageDetail_20' ) start [2024-12-18 06:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046402', 'tblTempUsageDetail_20' ) end [2024-12-18 06:45:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 06:45:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 06:45:20] Production.INFO: ==22090== Releasing lock... [2024-12-18 06:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 06:45:20] Production.INFO: 28 MB #Memory Used# [2024-12-18 06:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 03:46:05 [end_date_ymd] => 2024-12-18 06:46:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 03:46:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 06:46:17] Production.INFO: count ==59 [2024-12-18 06:46:17] Production.ERROR: pbx CDR StartTime 2024-12-18 03:46:05 - End Time 2024-12-18 06:46:05 [2024-12-18 06:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046407', 'tblTempUsageDetail_20' ) start [2024-12-18 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046407', 'tblTempUsageDetail_20' ) end [2024-12-18 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046407', 'tblTempVendorCDR_20' ) start [2024-12-18 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046407', 'tblTempVendorCDR_20' ) end [2024-12-18 06:46:17] Production.INFO: ProcessCDR(1,14046407,1,1,2) [2024-12-18 06:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046407', 'tblTempUsageDetail_20' ) start [2024-12-18 06:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046407', 'tblTempUsageDetail_20' ) end [2024-12-18 06:46:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 06:46:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 06:46:20] Production.INFO: ==22165== Releasing lock... [2024-12-18 06:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 06:46:20] Production.INFO: 28 MB #Memory Used# [2024-12-18 06:47:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 03:47:04 [end_date_ymd] => 2024-12-18 06:47:04 [RateCDR] => 1 ) [2024-12-18 06:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 03:47:04' and `end` < '2024-12-18 06:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 06:47:16] Production.INFO: count ==59 [2024-12-18 06:47:16] Production.ERROR: pbx CDR StartTime 2024-12-18 03:47:04 - End Time 2024-12-18 06:47:04 [2024-12-18 06:47:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 06:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046412', 'tblTempUsageDetail_20' ) start [2024-12-18 06:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046412', 'tblTempUsageDetail_20' ) end [2024-12-18 06:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046412', 'tblTempVendorCDR_20' ) start [2024-12-18 06:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046412', 'tblTempVendorCDR_20' ) end [2024-12-18 06:47:16] Production.INFO: ProcessCDR(1,14046412,1,1,2) [2024-12-18 06:47:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:47:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:47:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046412', 'tblTempUsageDetail_20' ) start [2024-12-18 06:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046412', 'tblTempUsageDetail_20' ) end [2024-12-18 06:47:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 06:47:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 06:47:20] Production.INFO: ==22245== Releasing lock... [2024-12-18 06:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 06:47:20] Production.INFO: 28 MB #Memory Used# [2024-12-18 06:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 03:48:05 [end_date_ymd] => 2024-12-18 06:48:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 03:48:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 06:48:17] Production.INFO: count ==59 [2024-12-18 06:48:17] Production.ERROR: pbx CDR StartTime 2024-12-18 03:48:05 - End Time 2024-12-18 06:48:05 [2024-12-18 06:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046417', 'tblTempUsageDetail_20' ) start [2024-12-18 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046417', 'tblTempUsageDetail_20' ) end [2024-12-18 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046417', 'tblTempVendorCDR_20' ) start [2024-12-18 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046417', 'tblTempVendorCDR_20' ) end [2024-12-18 06:48:17] Production.INFO: ProcessCDR(1,14046417,1,1,2) [2024-12-18 06:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046417', 'tblTempUsageDetail_20' ) start [2024-12-18 06:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046417', 'tblTempUsageDetail_20' ) end [2024-12-18 06:48:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 06:48:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 06:48:20] Production.INFO: ==22363== Releasing lock... [2024-12-18 06:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 06:48:20] Production.INFO: 28 MB #Memory Used# [2024-12-18 06:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 03:49:05 [end_date_ymd] => 2024-12-18 06:49:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 03:49:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 06:49:18] Production.INFO: count ==59 [2024-12-18 06:49:18] Production.ERROR: pbx CDR StartTime 2024-12-18 03:49:05 - End Time 2024-12-18 06:49:05 [2024-12-18 06:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046422', 'tblTempUsageDetail_20' ) start [2024-12-18 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046422', 'tblTempUsageDetail_20' ) end [2024-12-18 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046422', 'tblTempVendorCDR_20' ) start [2024-12-18 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046422', 'tblTempVendorCDR_20' ) end [2024-12-18 06:49:18] Production.INFO: ProcessCDR(1,14046422,1,1,2) [2024-12-18 06:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046422', 'tblTempUsageDetail_20' ) start [2024-12-18 06:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046422', 'tblTempUsageDetail_20' ) end [2024-12-18 06:49:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 06:49:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 06:49:21] Production.INFO: ==22437== Releasing lock... [2024-12-18 06:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 06:49:21] Production.INFO: 28 MB #Memory Used# [2024-12-18 06:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 03:50:05 [end_date_ymd] => 2024-12-18 06:50:05 [RateCDR] => 1 ) [2024-12-18 06:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 03:50:05' and `end` < '2024-12-18 06:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 06:50:17] Production.INFO: count ==57 [2024-12-18 06:50:17] Production.ERROR: pbx CDR StartTime 2024-12-18 03:50:05 - End Time 2024-12-18 06:50:05 [2024-12-18 06:50:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 06:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046428', 'tblTempUsageDetail_20' ) start [2024-12-18 06:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046428', 'tblTempUsageDetail_20' ) end [2024-12-18 06:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046428', 'tblTempVendorCDR_20' ) start [2024-12-18 06:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046428', 'tblTempVendorCDR_20' ) end [2024-12-18 06:50:17] Production.INFO: ProcessCDR(1,14046428,1,1,2) [2024-12-18 06:50:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:50:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:50:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:50:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046428', 'tblTempUsageDetail_20' ) start [2024-12-18 06:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046428', 'tblTempUsageDetail_20' ) end [2024-12-18 06:50:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 06:50:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 06:50:20] Production.INFO: ==22511== Releasing lock... [2024-12-18 06:50:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 06:50:20] Production.INFO: 28 MB #Memory Used# [2024-12-18 06:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 03:51:05 [end_date_ymd] => 2024-12-18 06:51:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 03:51:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 06:51:17] Production.INFO: count ==57 [2024-12-18 06:51:17] Production.ERROR: pbx CDR StartTime 2024-12-18 03:51:05 - End Time 2024-12-18 06:51:05 [2024-12-18 06:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046433', 'tblTempUsageDetail_20' ) start [2024-12-18 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046433', 'tblTempUsageDetail_20' ) end [2024-12-18 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046433', 'tblTempVendorCDR_20' ) start [2024-12-18 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046433', 'tblTempVendorCDR_20' ) end [2024-12-18 06:51:17] Production.INFO: ProcessCDR(1,14046433,1,1,2) [2024-12-18 06:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046433', 'tblTempUsageDetail_20' ) start [2024-12-18 06:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046433', 'tblTempUsageDetail_20' ) end [2024-12-18 06:51:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 06:51:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 06:51:20] Production.INFO: ==22590== Releasing lock... [2024-12-18 06:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 06:51:20] Production.INFO: 28 MB #Memory Used# [2024-12-18 06:52:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 03:52:04 [end_date_ymd] => 2024-12-18 06:52:04 [RateCDR] => 1 ) [2024-12-18 06:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 03:52:04' and `end` < '2024-12-18 06:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 06:52:17] Production.INFO: count ==57 [2024-12-18 06:52:17] Production.ERROR: pbx CDR StartTime 2024-12-18 03:52:04 - End Time 2024-12-18 06:52:04 [2024-12-18 06:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046435', 'tblTempUsageDetail_20' ) start [2024-12-18 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046435', 'tblTempUsageDetail_20' ) end [2024-12-18 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046435', 'tblTempVendorCDR_20' ) start [2024-12-18 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046435', 'tblTempVendorCDR_20' ) end [2024-12-18 06:52:17] Production.INFO: ProcessCDR(1,14046435,1,1,2) [2024-12-18 06:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046435', 'tblTempUsageDetail_20' ) start [2024-12-18 06:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046435', 'tblTempUsageDetail_20' ) end [2024-12-18 06:52:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 06:52:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 06:52:20] Production.INFO: ==22659== Releasing lock... [2024-12-18 06:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 06:52:20] Production.INFO: 28 MB #Memory Used# [2024-12-18 06:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 03:53:05 [end_date_ymd] => 2024-12-18 06:53:05 [RateCDR] => 1 ) [2024-12-18 06:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 03:53:05' and `end` < '2024-12-18 06:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 06:53:18] Production.INFO: count ==57 [2024-12-18 06:53:18] Production.ERROR: pbx CDR StartTime 2024-12-18 03:53:05 - End Time 2024-12-18 06:53:05 [2024-12-18 06:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046443', 'tblTempUsageDetail_20' ) start [2024-12-18 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046443', 'tblTempUsageDetail_20' ) end [2024-12-18 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046443', 'tblTempVendorCDR_20' ) start [2024-12-18 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046443', 'tblTempVendorCDR_20' ) end [2024-12-18 06:53:18] Production.INFO: ProcessCDR(1,14046443,1,1,2) [2024-12-18 06:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046443', 'tblTempUsageDetail_20' ) start [2024-12-18 06:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046443', 'tblTempUsageDetail_20' ) end [2024-12-18 06:53:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 06:53:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 06:53:21] Production.INFO: ==22732== Releasing lock... [2024-12-18 06:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 06:53:21] Production.INFO: 28 MB #Memory Used# [2024-12-18 06:54:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 03:54:04 [end_date_ymd] => 2024-12-18 06:54:04 [RateCDR] => 1 ) [2024-12-18 06: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` >= '2024-12-18 03:54:04' and `end` < '2024-12-18 06: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 ,'') [2024-12-18 06:54:17] Production.INFO: count ==57 [2024-12-18 06:54:17] Production.ERROR: pbx CDR StartTime 2024-12-18 03:54:04 - End Time 2024-12-18 06:54:04 [2024-12-18 06:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046448', 'tblTempUsageDetail_20' ) start [2024-12-18 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046448', 'tblTempUsageDetail_20' ) end [2024-12-18 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046448', 'tblTempVendorCDR_20' ) start [2024-12-18 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046448', 'tblTempVendorCDR_20' ) end [2024-12-18 06:54:17] Production.INFO: ProcessCDR(1,14046448,1,1,2) [2024-12-18 06:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046448', 'tblTempUsageDetail_20' ) start [2024-12-18 06:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046448', 'tblTempUsageDetail_20' ) end [2024-12-18 06:54:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 06:54:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 06:54:20] Production.INFO: ==22802== Releasing lock... [2024-12-18 06:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 06:54:20] Production.INFO: 28 MB #Memory Used# [2024-12-18 06:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 03:55:05 [end_date_ymd] => 2024-12-18 06:55:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 03:55:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 06:55:17] Production.INFO: count ==57 [2024-12-18 06:55:17] Production.ERROR: pbx CDR StartTime 2024-12-18 03:55:05 - End Time 2024-12-18 06:55:05 [2024-12-18 06:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046453', 'tblTempUsageDetail_20' ) start [2024-12-18 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046453', 'tblTempUsageDetail_20' ) end [2024-12-18 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046453', 'tblTempVendorCDR_20' ) start [2024-12-18 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046453', 'tblTempVendorCDR_20' ) end [2024-12-18 06:55:17] Production.INFO: ProcessCDR(1,14046453,1,1,2) [2024-12-18 06:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046453', 'tblTempUsageDetail_20' ) start [2024-12-18 06:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046453', 'tblTempUsageDetail_20' ) end [2024-12-18 06:55:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 06:55:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 06:55:20] Production.INFO: ==22876== Releasing lock... [2024-12-18 06:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 06:55:20] Production.INFO: 28 MB #Memory Used# [2024-12-18 06:56:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 03:56:04 [end_date_ymd] => 2024-12-18 06:56:04 [RateCDR] => 1 ) [2024-12-18 06:56:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 03:56:04' and `end` < '2024-12-18 06:56:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 06:56:17] Production.INFO: count ==57 [2024-12-18 06:56:17] Production.ERROR: pbx CDR StartTime 2024-12-18 03:56:04 - End Time 2024-12-18 06:56:04 [2024-12-18 06:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046458', 'tblTempUsageDetail_20' ) start [2024-12-18 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046458', 'tblTempUsageDetail_20' ) end [2024-12-18 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046458', 'tblTempVendorCDR_20' ) start [2024-12-18 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046458', 'tblTempVendorCDR_20' ) end [2024-12-18 06:56:17] Production.INFO: ProcessCDR(1,14046458,1,1,2) [2024-12-18 06:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046458', 'tblTempUsageDetail_20' ) start [2024-12-18 06:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046458', 'tblTempUsageDetail_20' ) end [2024-12-18 06:56:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 06:56:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 06:56:20] Production.INFO: ==22945== Releasing lock... [2024-12-18 06:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 06:56:20] Production.INFO: 28 MB #Memory Used# [2024-12-18 06:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 03:57:05 [end_date_ymd] => 2024-12-18 06:57:05 [RateCDR] => 1 ) [2024-12-18 06:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 03:57:05' and `end` < '2024-12-18 06:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 06:57:17] Production.INFO: count ==58 [2024-12-18 06:57:17] Production.ERROR: pbx CDR StartTime 2024-12-18 03:57:05 - End Time 2024-12-18 06:57:05 [2024-12-18 06:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046463', 'tblTempUsageDetail_20' ) start [2024-12-18 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046463', 'tblTempUsageDetail_20' ) end [2024-12-18 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046463', 'tblTempVendorCDR_20' ) start [2024-12-18 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046463', 'tblTempVendorCDR_20' ) end [2024-12-18 06:57:17] Production.INFO: ProcessCDR(1,14046463,1,1,2) [2024-12-18 06:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046463', 'tblTempUsageDetail_20' ) start [2024-12-18 06:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046463', 'tblTempUsageDetail_20' ) end [2024-12-18 06:57:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 06:57:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 06:57:22] Production.INFO: ==23014== Releasing lock... [2024-12-18 06:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 06:57:22] Production.INFO: 28 MB #Memory Used# [2024-12-18 06:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 03:58:05 [end_date_ymd] => 2024-12-18 06:58:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 03:58:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 06:58:16] Production.INFO: count ==58 [2024-12-18 06:58:16] Production.ERROR: pbx CDR StartTime 2024-12-18 03:58:05 - End Time 2024-12-18 06:58:05 [2024-12-18 06:58:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 06:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046468', 'tblTempUsageDetail_20' ) start [2024-12-18 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046468', 'tblTempUsageDetail_20' ) end [2024-12-18 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046468', 'tblTempVendorCDR_20' ) start [2024-12-18 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046468', 'tblTempVendorCDR_20' ) end [2024-12-18 06:58:17] Production.INFO: ProcessCDR(1,14046468,1,1,2) [2024-12-18 06:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:58:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:58:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046468', 'tblTempUsageDetail_20' ) start [2024-12-18 06:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046468', 'tblTempUsageDetail_20' ) end [2024-12-18 06:58:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 06:58:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 06:58:20] Production.INFO: ==23083== Releasing lock... [2024-12-18 06:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 06:58:20] Production.INFO: 28 MB #Memory Used# [2024-12-18 06:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 03:59:05 [end_date_ymd] => 2024-12-18 06:59:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 03:59:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 06:59:17] Production.INFO: count ==58 [2024-12-18 06:59:17] Production.ERROR: pbx CDR StartTime 2024-12-18 03:59:05 - End Time 2024-12-18 06:59:05 [2024-12-18 06:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046473', 'tblTempUsageDetail_20' ) start [2024-12-18 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046473', 'tblTempUsageDetail_20' ) end [2024-12-18 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046473', 'tblTempVendorCDR_20' ) start [2024-12-18 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046473', 'tblTempVendorCDR_20' ) end [2024-12-18 06:59:17] Production.INFO: ProcessCDR(1,14046473,1,1,2) [2024-12-18 06:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 06:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 06:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046473', 'tblTempUsageDetail_20' ) start [2024-12-18 06:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046473', 'tblTempUsageDetail_20' ) end [2024-12-18 06:59:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 06:59:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 06:59:20] Production.INFO: ==23154== Releasing lock... [2024-12-18 06:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 06:59:20] Production.INFO: 28 MB #Memory Used# [2024-12-18 07:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 04:00:05 [end_date_ymd] => 2024-12-18 07:00:05 [RateCDR] => 1 ) [2024-12-18 07:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 04:00:05' and `end` < '2024-12-18 07:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 07:00:17] Production.INFO: count ==58 [2024-12-18 07:00:17] Production.ERROR: pbx CDR StartTime 2024-12-18 04:00:05 - End Time 2024-12-18 07:00:05 [2024-12-18 07:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 07:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046479', 'tblTempUsageDetail_20' ) start [2024-12-18 07:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046479', 'tblTempUsageDetail_20' ) end [2024-12-18 07:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046479', 'tblTempVendorCDR_20' ) start [2024-12-18 07:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046479', 'tblTempVendorCDR_20' ) end [2024-12-18 07:00:17] Production.INFO: ProcessCDR(1,14046479,1,1,2) [2024-12-18 07:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:00:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:00:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:00:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:00:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046479', 'tblTempUsageDetail_20' ) start [2024-12-18 07:00:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046479', 'tblTempUsageDetail_20' ) end [2024-12-18 07:00:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 07:00:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 07:00:20] Production.INFO: ==23225== Releasing lock... [2024-12-18 07:00:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 07:00:20] Production.INFO: 28 MB #Memory Used# [2024-12-18 07:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 04:01:05 [end_date_ymd] => 2024-12-18 07:01:05 [RateCDR] => 1 ) [2024-12-18 07:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 04:01:05' and `end` < '2024-12-18 07:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 07:01:17] Production.INFO: count ==58 [2024-12-18 07:01:17] Production.ERROR: pbx CDR StartTime 2024-12-18 04:01:05 - End Time 2024-12-18 07:01:05 [2024-12-18 07:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 07:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046484', 'tblTempUsageDetail_20' ) start [2024-12-18 07:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046484', 'tblTempUsageDetail_20' ) end [2024-12-18 07:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046484', 'tblTempVendorCDR_20' ) start [2024-12-18 07:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046484', 'tblTempVendorCDR_20' ) end [2024-12-18 07:01:17] Production.INFO: ProcessCDR(1,14046484,1,1,2) [2024-12-18 07:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046484', 'tblTempUsageDetail_20' ) start [2024-12-18 07:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046484', 'tblTempUsageDetail_20' ) end [2024-12-18 07:01:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 07:01:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 07:01:20] Production.INFO: ==23316== Releasing lock... [2024-12-18 07:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 07:01:20] Production.INFO: 28 MB #Memory Used# [2024-12-18 07:02:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 04:02:04 [end_date_ymd] => 2024-12-18 07:02:04 [RateCDR] => 1 ) [2024-12-18 07:02:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 04:02:04' and `end` < '2024-12-18 07:02:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 07:02:17] Production.INFO: count ==58 [2024-12-18 07:02:17] Production.ERROR: pbx CDR StartTime 2024-12-18 04:02:04 - End Time 2024-12-18 07:02:04 [2024-12-18 07:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 07:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046489', 'tblTempUsageDetail_20' ) start [2024-12-18 07:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046489', 'tblTempUsageDetail_20' ) end [2024-12-18 07:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046489', 'tblTempVendorCDR_20' ) start [2024-12-18 07:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046489', 'tblTempVendorCDR_20' ) end [2024-12-18 07:02:17] Production.INFO: ProcessCDR(1,14046489,1,1,2) [2024-12-18 07:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046489', 'tblTempUsageDetail_20' ) start [2024-12-18 07:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046489', 'tblTempUsageDetail_20' ) end [2024-12-18 07:02:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 07:02:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 07:02:20] Production.INFO: ==23468== Releasing lock... [2024-12-18 07:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 07:02:20] Production.INFO: 28 MB #Memory Used# [2024-12-18 07:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 04:03:05 [end_date_ymd] => 2024-12-18 07:03:05 [RateCDR] => 1 ) [2024-12-18 07:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 04:03:05' and `end` < '2024-12-18 07:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 07:03:17] Production.INFO: count ==58 [2024-12-18 07:03:17] Production.ERROR: pbx CDR StartTime 2024-12-18 04:03:05 - End Time 2024-12-18 07:03:05 [2024-12-18 07:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 07:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046494', 'tblTempUsageDetail_20' ) start [2024-12-18 07:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046494', 'tblTempUsageDetail_20' ) end [2024-12-18 07:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046494', 'tblTempVendorCDR_20' ) start [2024-12-18 07:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046494', 'tblTempVendorCDR_20' ) end [2024-12-18 07:03:17] Production.INFO: ProcessCDR(1,14046494,1,1,2) [2024-12-18 07:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046494', 'tblTempUsageDetail_20' ) start [2024-12-18 07:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046494', 'tblTempUsageDetail_20' ) end [2024-12-18 07:03:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 07:03:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 07:03:21] Production.INFO: ==23580== Releasing lock... [2024-12-18 07:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 07:03:21] Production.INFO: 28 MB #Memory Used# [2024-12-18 07:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 04:04:05 [end_date_ymd] => 2024-12-18 07:04:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 04:04:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 07:04:18] Production.INFO: count ==58 [2024-12-18 07:04:18] Production.ERROR: pbx CDR StartTime 2024-12-18 04:04:05 - End Time 2024-12-18 07:04:05 [2024-12-18 07:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046499', 'tblTempUsageDetail_20' ) start [2024-12-18 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046499', 'tblTempUsageDetail_20' ) end [2024-12-18 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046499', 'tblTempVendorCDR_20' ) start [2024-12-18 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046499', 'tblTempVendorCDR_20' ) end [2024-12-18 07:04:18] Production.INFO: ProcessCDR(1,14046499,1,1,2) [2024-12-18 07:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046499', 'tblTempUsageDetail_20' ) start [2024-12-18 07:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046499', 'tblTempUsageDetail_20' ) end [2024-12-18 07:04:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 07:04:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 07:04:21] Production.INFO: ==23652== Releasing lock... [2024-12-18 07:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 07:04:21] Production.INFO: 28 MB #Memory Used# [2024-12-18 07:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 04:05:05 [end_date_ymd] => 2024-12-18 07:05:05 [RateCDR] => 1 ) [2024-12-18 07:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 04:05:05' and `end` < '2024-12-18 07:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 07:05:17] Production.INFO: count ==58 [2024-12-18 07:05:17] Production.ERROR: pbx CDR StartTime 2024-12-18 04:05:05 - End Time 2024-12-18 07:05:05 [2024-12-18 07:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 07:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046504', 'tblTempUsageDetail_20' ) start [2024-12-18 07:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046504', 'tblTempUsageDetail_20' ) end [2024-12-18 07:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046504', 'tblTempVendorCDR_20' ) start [2024-12-18 07:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046504', 'tblTempVendorCDR_20' ) end [2024-12-18 07:05:17] Production.INFO: ProcessCDR(1,14046504,1,1,2) [2024-12-18 07:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046504', 'tblTempUsageDetail_20' ) start [2024-12-18 07:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046504', 'tblTempUsageDetail_20' ) end [2024-12-18 07:05:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 07:05:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 07:05:20] Production.INFO: ==23800== Releasing lock... [2024-12-18 07:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 07:05:20] Production.INFO: 28 MB #Memory Used# [2024-12-18 07:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 04:06:05 [end_date_ymd] => 2024-12-18 07:06:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 04:06:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 07:06:17] Production.INFO: count ==58 [2024-12-18 07:06:17] Production.ERROR: pbx CDR StartTime 2024-12-18 04:06:05 - End Time 2024-12-18 07:06:05 [2024-12-18 07:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 07:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046509', 'tblTempUsageDetail_20' ) start [2024-12-18 07:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046509', 'tblTempUsageDetail_20' ) end [2024-12-18 07:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046509', 'tblTempVendorCDR_20' ) start [2024-12-18 07:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046509', 'tblTempVendorCDR_20' ) end [2024-12-18 07:06:17] Production.INFO: ProcessCDR(1,14046509,1,1,2) [2024-12-18 07:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046509', 'tblTempUsageDetail_20' ) start [2024-12-18 07:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046509', 'tblTempUsageDetail_20' ) end [2024-12-18 07:06:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 07:06:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 07:06:20] Production.INFO: ==23873== Releasing lock... [2024-12-18 07:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 07:06:20] Production.INFO: 28 MB #Memory Used# [2024-12-18 07:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 04:07:05 [end_date_ymd] => 2024-12-18 07:07:05 [RateCDR] => 1 ) [2024-12-18 07:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 04:07:05' and `end` < '2024-12-18 07:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 07:07:17] Production.INFO: count ==58 [2024-12-18 07:07:17] Production.ERROR: pbx CDR StartTime 2024-12-18 04:07:05 - End Time 2024-12-18 07:07:05 [2024-12-18 07:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 07:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046514', 'tblTempUsageDetail_20' ) start [2024-12-18 07:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046514', 'tblTempUsageDetail_20' ) end [2024-12-18 07:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046514', 'tblTempVendorCDR_20' ) start [2024-12-18 07:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046514', 'tblTempVendorCDR_20' ) end [2024-12-18 07:07:17] Production.INFO: ProcessCDR(1,14046514,1,1,2) [2024-12-18 07:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046514', 'tblTempUsageDetail_20' ) start [2024-12-18 07:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046514', 'tblTempUsageDetail_20' ) end [2024-12-18 07:07:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 07:07:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 07:07:20] Production.INFO: ==23948== Releasing lock... [2024-12-18 07:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 07:07:20] Production.INFO: 28 MB #Memory Used# [2024-12-18 07:08:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 04:08:06 [end_date_ymd] => 2024-12-18 07:08:06 [RateCDR] => 1 ) [2024-12-18 07: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` >= '2024-12-18 04:08:06' and `end` < '2024-12-18 07: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 ,'') [2024-12-18 07:08:17] Production.INFO: count ==58 [2024-12-18 07:08:17] Production.ERROR: pbx CDR StartTime 2024-12-18 04:08:06 - End Time 2024-12-18 07:08:06 [2024-12-18 07:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 07:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046519', 'tblTempUsageDetail_20' ) start [2024-12-18 07:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046519', 'tblTempUsageDetail_20' ) end [2024-12-18 07:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046519', 'tblTempVendorCDR_20' ) start [2024-12-18 07:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046519', 'tblTempVendorCDR_20' ) end [2024-12-18 07:08:17] Production.INFO: ProcessCDR(1,14046519,1,1,2) [2024-12-18 07:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046519', 'tblTempUsageDetail_20' ) start [2024-12-18 07:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046519', 'tblTempUsageDetail_20' ) end [2024-12-18 07:08:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 07:08:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 07:08:21] Production.INFO: ==24019== Releasing lock... [2024-12-18 07:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 07:08:21] Production.INFO: 28 MB #Memory Used# [2024-12-18 07:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 04:09:05 [end_date_ymd] => 2024-12-18 07:09:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 04:09:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 07:09:17] Production.INFO: count ==58 [2024-12-18 07:09:17] Production.ERROR: pbx CDR StartTime 2024-12-18 04:09:05 - End Time 2024-12-18 07:09:05 [2024-12-18 07:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 07:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046524', 'tblTempUsageDetail_20' ) start [2024-12-18 07:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046524', 'tblTempUsageDetail_20' ) end [2024-12-18 07:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046524', 'tblTempVendorCDR_20' ) start [2024-12-18 07:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046524', 'tblTempVendorCDR_20' ) end [2024-12-18 07:09:17] Production.INFO: ProcessCDR(1,14046524,1,1,2) [2024-12-18 07:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046524', 'tblTempUsageDetail_20' ) start [2024-12-18 07:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046524', 'tblTempUsageDetail_20' ) end [2024-12-18 07:09:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 07:09:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 07:09:20] Production.INFO: ==24171== Releasing lock... [2024-12-18 07:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 07:09:20] Production.INFO: 28 MB #Memory Used# [2024-12-18 07:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 04:10:06 [end_date_ymd] => 2024-12-18 07:10:06 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 04:10:06' and `end` < '2024-12-18 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 ,'') [2024-12-18 07:10:18] Production.INFO: count ==58 [2024-12-18 07:10:18] Production.ERROR: pbx CDR StartTime 2024-12-18 04:10:06 - End Time 2024-12-18 07:10:06 [2024-12-18 07:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 07:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046530', 'tblTempUsageDetail_20' ) start [2024-12-18 07:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046530', 'tblTempUsageDetail_20' ) end [2024-12-18 07:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046530', 'tblTempVendorCDR_20' ) start [2024-12-18 07:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046530', 'tblTempVendorCDR_20' ) end [2024-12-18 07:10:18] Production.INFO: ProcessCDR(1,14046530,1,1,2) [2024-12-18 07:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046530', 'tblTempUsageDetail_20' ) start [2024-12-18 07:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046530', 'tblTempUsageDetail_20' ) end [2024-12-18 07:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 07:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 07:10:21] Production.INFO: ==24250== Releasing lock... [2024-12-18 07:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 07:10:21] Production.INFO: 28 MB #Memory Used# [2024-12-18 07:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 04:11:05 [end_date_ymd] => 2024-12-18 07:11:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 04:11:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 07:11:17] Production.INFO: count ==58 [2024-12-18 07:11:17] Production.ERROR: pbx CDR StartTime 2024-12-18 04:11:05 - End Time 2024-12-18 07:11:05 [2024-12-18 07:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 07:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046535', 'tblTempUsageDetail_20' ) start [2024-12-18 07:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046535', 'tblTempUsageDetail_20' ) end [2024-12-18 07:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046535', 'tblTempVendorCDR_20' ) start [2024-12-18 07:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046535', 'tblTempVendorCDR_20' ) end [2024-12-18 07:11:17] Production.INFO: ProcessCDR(1,14046535,1,1,2) [2024-12-18 07:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046535', 'tblTempUsageDetail_20' ) start [2024-12-18 07:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046535', 'tblTempUsageDetail_20' ) end [2024-12-18 07:11:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 07:11:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 07:11:20] Production.INFO: ==24322== Releasing lock... [2024-12-18 07:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 07:11:20] Production.INFO: 28 MB #Memory Used# [2024-12-18 07:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 04:12:05 [end_date_ymd] => 2024-12-18 07:12:05 [RateCDR] => 1 ) [2024-12-18 07:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 04:12:05' and `end` < '2024-12-18 07:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 07:12:17] Production.INFO: count ==59 [2024-12-18 07:12:17] Production.ERROR: pbx CDR StartTime 2024-12-18 04:12:05 - End Time 2024-12-18 07:12:05 [2024-12-18 07:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 07:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046540', 'tblTempUsageDetail_20' ) start [2024-12-18 07:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046540', 'tblTempUsageDetail_20' ) end [2024-12-18 07:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046540', 'tblTempVendorCDR_20' ) start [2024-12-18 07:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046540', 'tblTempVendorCDR_20' ) end [2024-12-18 07:12:17] Production.INFO: ProcessCDR(1,14046540,1,1,2) [2024-12-18 07:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046540', 'tblTempUsageDetail_20' ) start [2024-12-18 07:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046540', 'tblTempUsageDetail_20' ) end [2024-12-18 07:12:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 07:12:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 07:12:20] Production.INFO: ==24477== Releasing lock... [2024-12-18 07:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 07:12:20] Production.INFO: 28 MB #Memory Used# [2024-12-18 07:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 04:13:05 [end_date_ymd] => 2024-12-18 07:13:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 04:13:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 07:13:17] Production.INFO: count ==64 [2024-12-18 07:13:17] Production.ERROR: pbx CDR StartTime 2024-12-18 04:13:05 - End Time 2024-12-18 07:13:05 [2024-12-18 07:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 07:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046545', 'tblTempUsageDetail_20' ) start [2024-12-18 07:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046545', 'tblTempUsageDetail_20' ) end [2024-12-18 07:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046545', 'tblTempVendorCDR_20' ) start [2024-12-18 07:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046545', 'tblTempVendorCDR_20' ) end [2024-12-18 07:13:17] Production.INFO: ProcessCDR(1,14046545,1,1,2) [2024-12-18 07:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046545', 'tblTempUsageDetail_20' ) start [2024-12-18 07:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046545', 'tblTempUsageDetail_20' ) end [2024-12-18 07:13:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 07:13:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 07:13:21] Production.INFO: ==24555== Releasing lock... [2024-12-18 07:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 07:13:21] Production.INFO: 28 MB #Memory Used# [2024-12-18 07:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 04:14:05 [end_date_ymd] => 2024-12-18 07:14:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 04:14:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 07:14:17] Production.INFO: count ==64 [2024-12-18 07:14:17] Production.ERROR: pbx CDR StartTime 2024-12-18 04:14:05 - End Time 2024-12-18 07:14:05 [2024-12-18 07:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046550', 'tblTempUsageDetail_20' ) start [2024-12-18 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046550', 'tblTempUsageDetail_20' ) end [2024-12-18 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046550', 'tblTempVendorCDR_20' ) start [2024-12-18 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046550', 'tblTempVendorCDR_20' ) end [2024-12-18 07:14:18] Production.INFO: ProcessCDR(1,14046550,1,1,2) [2024-12-18 07:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046550', 'tblTempUsageDetail_20' ) start [2024-12-18 07:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046550', 'tblTempUsageDetail_20' ) end [2024-12-18 07:14:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 07:14:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 07:14:21] Production.INFO: ==24630== Releasing lock... [2024-12-18 07:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 07:14:21] Production.INFO: 28 MB #Memory Used# [2024-12-18 07:15:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 04:15:04 [end_date_ymd] => 2024-12-18 07:15:04 [RateCDR] => 1 ) [2024-12-18 07: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` >= '2024-12-18 04:15:04' and `end` < '2024-12-18 07: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 ,'') [2024-12-18 07:15:17] Production.INFO: count ==64 [2024-12-18 07:15:17] Production.ERROR: pbx CDR StartTime 2024-12-18 04:15:04 - End Time 2024-12-18 07:15:04 [2024-12-18 07:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 07:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046555', 'tblTempUsageDetail_20' ) start [2024-12-18 07:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046555', 'tblTempUsageDetail_20' ) end [2024-12-18 07:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046555', 'tblTempVendorCDR_20' ) start [2024-12-18 07:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046555', 'tblTempVendorCDR_20' ) end [2024-12-18 07:15:17] Production.INFO: ProcessCDR(1,14046555,1,1,2) [2024-12-18 07:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046555', 'tblTempUsageDetail_20' ) start [2024-12-18 07:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046555', 'tblTempUsageDetail_20' ) end [2024-12-18 07:15:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 07:15:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 07:15:20] Production.INFO: ==24745== Releasing lock... [2024-12-18 07:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 07:15:20] Production.INFO: 28 MB #Memory Used# [2024-12-18 07:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 04:16:05 [end_date_ymd] => 2024-12-18 07:16:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 04:16:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 07:16:18] Production.INFO: count ==64 [2024-12-18 07:16:18] Production.ERROR: pbx CDR StartTime 2024-12-18 04:16:05 - End Time 2024-12-18 07:16:05 [2024-12-18 07:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046560', 'tblTempUsageDetail_20' ) start [2024-12-18 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046560', 'tblTempUsageDetail_20' ) end [2024-12-18 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046560', 'tblTempVendorCDR_20' ) start [2024-12-18 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046560', 'tblTempVendorCDR_20' ) end [2024-12-18 07:16:18] Production.INFO: ProcessCDR(1,14046560,1,1,2) [2024-12-18 07:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046560', 'tblTempUsageDetail_20' ) start [2024-12-18 07:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046560', 'tblTempUsageDetail_20' ) end [2024-12-18 07:16:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 07:16:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 07:16:21] Production.INFO: ==24862== Releasing lock... [2024-12-18 07:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 07:16:21] Production.INFO: 28 MB #Memory Used# [2024-12-18 07:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 04:17:04 [end_date_ymd] => 2024-12-18 07:17:04 [RateCDR] => 1 ) [2024-12-18 07: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` >= '2024-12-18 04:17:04' and `end` < '2024-12-18 07: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 ,'') [2024-12-18 07:17:16] Production.INFO: count ==64 [2024-12-18 07:17:16] Production.ERROR: pbx CDR StartTime 2024-12-18 04:17:04 - End Time 2024-12-18 07:17:04 [2024-12-18 07:17:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 07:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046565', 'tblTempUsageDetail_20' ) start [2024-12-18 07:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046565', 'tblTempUsageDetail_20' ) end [2024-12-18 07:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046565', 'tblTempVendorCDR_20' ) start [2024-12-18 07:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046565', 'tblTempVendorCDR_20' ) end [2024-12-18 07:17:16] Production.INFO: ProcessCDR(1,14046565,1,1,2) [2024-12-18 07:17:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046565', 'tblTempUsageDetail_20' ) start [2024-12-18 07:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046565', 'tblTempUsageDetail_20' ) end [2024-12-18 07:17:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 07:17:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 07:17:20] Production.INFO: ==24937== Releasing lock... [2024-12-18 07:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 07:17:20] Production.INFO: 28 MB #Memory Used# [2024-12-18 07:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 04:18:05 [end_date_ymd] => 2024-12-18 07:18:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 04:18:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 07:18:18] Production.INFO: count ==64 [2024-12-18 07:18:18] Production.ERROR: pbx CDR StartTime 2024-12-18 04:18:05 - End Time 2024-12-18 07:18:05 [2024-12-18 07:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046570', 'tblTempUsageDetail_20' ) start [2024-12-18 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046570', 'tblTempUsageDetail_20' ) end [2024-12-18 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046570', 'tblTempVendorCDR_20' ) start [2024-12-18 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046570', 'tblTempVendorCDR_20' ) end [2024-12-18 07:18:18] Production.INFO: ProcessCDR(1,14046570,1,1,2) [2024-12-18 07:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046570', 'tblTempUsageDetail_20' ) start [2024-12-18 07:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046570', 'tblTempUsageDetail_20' ) end [2024-12-18 07:18:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 07:18:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 07:18:21] Production.INFO: ==25017== Releasing lock... [2024-12-18 07:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 07:18:21] Production.INFO: 28 MB #Memory Used# [2024-12-18 07:19:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 04:19:04 [end_date_ymd] => 2024-12-18 07:19:04 [RateCDR] => 1 ) [2024-12-18 07: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` >= '2024-12-18 04:19:04' and `end` < '2024-12-18 07: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 ,'') [2024-12-18 07:19:17] Production.INFO: count ==64 [2024-12-18 07:19:17] Production.ERROR: pbx CDR StartTime 2024-12-18 04:19:04 - End Time 2024-12-18 07:19:04 [2024-12-18 07:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046575', 'tblTempUsageDetail_20' ) start [2024-12-18 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046575', 'tblTempUsageDetail_20' ) end [2024-12-18 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046575', 'tblTempVendorCDR_20' ) start [2024-12-18 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046575', 'tblTempVendorCDR_20' ) end [2024-12-18 07:19:17] Production.INFO: ProcessCDR(1,14046575,1,1,2) [2024-12-18 07:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:19:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:19:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:19:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:19:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046575', 'tblTempUsageDetail_20' ) start [2024-12-18 07:19:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046575', 'tblTempUsageDetail_20' ) end [2024-12-18 07:19:19] Production.ERROR: pbx prc_insertCDR start [2024-12-18 07:19:19] Production.ERROR: pbx prc_insertCDR end [2024-12-18 07:19:19] Production.INFO: ==25144== Releasing lock... [2024-12-18 07:19:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 07:19:19] Production.INFO: 28 MB #Memory Used# [2024-12-18 07:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 04:20:06 [end_date_ymd] => 2024-12-18 07:20:06 [RateCDR] => 1 ) [2024-12-18 07:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 04:20:06' and `end` < '2024-12-18 07:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 07:20:19] Production.INFO: count ==70 [2024-12-18 07:20:19] Production.ERROR: pbx CDR StartTime 2024-12-18 04:20:06 - End Time 2024-12-18 07:20:06 [2024-12-18 07:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046581', 'tblTempUsageDetail_20' ) start [2024-12-18 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046581', 'tblTempUsageDetail_20' ) end [2024-12-18 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046581', 'tblTempVendorCDR_20' ) start [2024-12-18 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046581', 'tblTempVendorCDR_20' ) end [2024-12-18 07:20:19] Production.INFO: ProcessCDR(1,14046581,1,1,2) [2024-12-18 07:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046581', 'tblTempUsageDetail_20' ) start [2024-12-18 07:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046581', 'tblTempUsageDetail_20' ) end [2024-12-18 07:20:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 07:20:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 07:20:22] Production.INFO: ==25221== Releasing lock... [2024-12-18 07:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 07:20:22] Production.INFO: 28 MB #Memory Used# [2024-12-18 07:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 04:21:04 [end_date_ymd] => 2024-12-18 07:21:04 [RateCDR] => 1 ) [2024-12-18 07:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 04:21:04' and `end` < '2024-12-18 07:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 07:21:16] Production.INFO: count ==70 [2024-12-18 07:21:16] Production.ERROR: pbx CDR StartTime 2024-12-18 04:21:04 - End Time 2024-12-18 07:21:04 [2024-12-18 07:21:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 07:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046586', 'tblTempUsageDetail_20' ) start [2024-12-18 07:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046586', 'tblTempUsageDetail_20' ) end [2024-12-18 07:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046586', 'tblTempVendorCDR_20' ) start [2024-12-18 07:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046586', 'tblTempVendorCDR_20' ) end [2024-12-18 07:21:16] Production.INFO: ProcessCDR(1,14046586,1,1,2) [2024-12-18 07:21:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:21:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:21:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:21:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:21:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046586', 'tblTempUsageDetail_20' ) start [2024-12-18 07:21:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046586', 'tblTempUsageDetail_20' ) end [2024-12-18 07:21:19] Production.ERROR: pbx prc_insertCDR start [2024-12-18 07:21:19] Production.ERROR: pbx prc_insertCDR end [2024-12-18 07:21:19] Production.INFO: ==25300== Releasing lock... [2024-12-18 07:21:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 07:21:19] Production.INFO: 28 MB #Memory Used# [2024-12-18 07:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 04:22:05 [end_date_ymd] => 2024-12-18 07:22:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 04:22:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 07:22:18] Production.INFO: count ==70 [2024-12-18 07:22:18] Production.ERROR: pbx CDR StartTime 2024-12-18 04:22:05 - End Time 2024-12-18 07:22:05 [2024-12-18 07:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046591', 'tblTempUsageDetail_20' ) start [2024-12-18 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046591', 'tblTempUsageDetail_20' ) end [2024-12-18 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046591', 'tblTempVendorCDR_20' ) start [2024-12-18 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046591', 'tblTempVendorCDR_20' ) end [2024-12-18 07:22:18] Production.INFO: ProcessCDR(1,14046591,1,1,2) [2024-12-18 07:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046591', 'tblTempUsageDetail_20' ) start [2024-12-18 07:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046591', 'tblTempUsageDetail_20' ) end [2024-12-18 07:22:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 07:22:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 07:22:22] Production.INFO: ==25380== Releasing lock... [2024-12-18 07:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 07:22:22] Production.INFO: 28 MB #Memory Used# [2024-12-18 07:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 04:23:05 [end_date_ymd] => 2024-12-18 07:23:05 [RateCDR] => 1 ) [2024-12-18 07:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 04:23:05' and `end` < '2024-12-18 07:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 07:23:18] Production.INFO: count ==71 [2024-12-18 07:23:18] Production.ERROR: pbx CDR StartTime 2024-12-18 04:23:05 - End Time 2024-12-18 07:23:05 [2024-12-18 07:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046596', 'tblTempUsageDetail_20' ) start [2024-12-18 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046596', 'tblTempUsageDetail_20' ) end [2024-12-18 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046596', 'tblTempVendorCDR_20' ) start [2024-12-18 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046596', 'tblTempVendorCDR_20' ) end [2024-12-18 07:23:18] Production.INFO: ProcessCDR(1,14046596,1,1,2) [2024-12-18 07:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046596', 'tblTempUsageDetail_20' ) start [2024-12-18 07:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046596', 'tblTempUsageDetail_20' ) end [2024-12-18 07:23:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 07:23:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 07:23:22] Production.INFO: ==25457== Releasing lock... [2024-12-18 07:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 07:23:22] Production.INFO: 28 MB #Memory Used# [2024-12-18 07:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 04:24:05 [end_date_ymd] => 2024-12-18 07:24:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 04:24:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 07:24:18] Production.INFO: count ==72 [2024-12-18 07:24:18] Production.ERROR: pbx CDR StartTime 2024-12-18 04:24:05 - End Time 2024-12-18 07:24:05 [2024-12-18 07:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046601', 'tblTempUsageDetail_20' ) start [2024-12-18 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046601', 'tblTempUsageDetail_20' ) end [2024-12-18 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046601', 'tblTempVendorCDR_20' ) start [2024-12-18 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046601', 'tblTempVendorCDR_20' ) end [2024-12-18 07:24:18] Production.INFO: ProcessCDR(1,14046601,1,1,2) [2024-12-18 07:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046601', 'tblTempUsageDetail_20' ) start [2024-12-18 07:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046601', 'tblTempUsageDetail_20' ) end [2024-12-18 07:24:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 07:24:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 07:24:21] Production.INFO: ==25537== Releasing lock... [2024-12-18 07:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 07:24:21] Production.INFO: 28 MB #Memory Used# [2024-12-18 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 04:25:05 [end_date_ymd] => 2024-12-18 07:25:05 [RateCDR] => 1 ) [2024-12-18 07:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 04:25:05' and `end` < '2024-12-18 07:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 07:25:18] Production.INFO: count ==77 [2024-12-18 07:25:18] Production.ERROR: pbx CDR StartTime 2024-12-18 04:25:05 - End Time 2024-12-18 07:25:05 [2024-12-18 07:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046606', 'tblTempUsageDetail_20' ) start [2024-12-18 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046606', 'tblTempUsageDetail_20' ) end [2024-12-18 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046606', 'tblTempVendorCDR_20' ) start [2024-12-18 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046606', 'tblTempVendorCDR_20' ) end [2024-12-18 07:25:18] Production.INFO: ProcessCDR(1,14046606,1,1,2) [2024-12-18 07:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046606', 'tblTempUsageDetail_20' ) start [2024-12-18 07:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046606', 'tblTempUsageDetail_20' ) end [2024-12-18 07:25:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 07:25:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 07:25:21] Production.INFO: ==25611== Releasing lock... [2024-12-18 07:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 07:25:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-18 07:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 04:26:05 [end_date_ymd] => 2024-12-18 07:26:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 04:26:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 07:26:19] Production.INFO: count ==79 [2024-12-18 07:26:19] Production.ERROR: pbx CDR StartTime 2024-12-18 04:26:05 - End Time 2024-12-18 07:26:05 [2024-12-18 07:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 07:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046611', 'tblTempUsageDetail_20' ) start [2024-12-18 07:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046611', 'tblTempUsageDetail_20' ) end [2024-12-18 07:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046611', 'tblTempVendorCDR_20' ) start [2024-12-18 07:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046611', 'tblTempVendorCDR_20' ) end [2024-12-18 07:26:19] Production.INFO: ProcessCDR(1,14046611,1,1,2) [2024-12-18 07:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046611', 'tblTempUsageDetail_20' ) start [2024-12-18 07:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046611', 'tblTempUsageDetail_20' ) end [2024-12-18 07:26:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 07:26:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 07:26:22] Production.INFO: ==25696== Releasing lock... [2024-12-18 07:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 07:26:22] Production.INFO: 28.25 MB #Memory Used# [2024-12-18 07:27:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 04:27:04 [end_date_ymd] => 2024-12-18 07:27:04 [RateCDR] => 1 ) [2024-12-18 07:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 04:27:04' and `end` < '2024-12-18 07:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 07:27:16] Production.INFO: count ==79 [2024-12-18 07:27:16] Production.ERROR: pbx CDR StartTime 2024-12-18 04:27:04 - End Time 2024-12-18 07:27:04 [2024-12-18 07:27:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 07:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046616', 'tblTempUsageDetail_20' ) start [2024-12-18 07:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046616', 'tblTempUsageDetail_20' ) end [2024-12-18 07:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046616', 'tblTempVendorCDR_20' ) start [2024-12-18 07:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046616', 'tblTempVendorCDR_20' ) end [2024-12-18 07:27:16] Production.INFO: ProcessCDR(1,14046616,1,1,2) [2024-12-18 07:27:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:27:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:27:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:27:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:27:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046616', 'tblTempUsageDetail_20' ) start [2024-12-18 07:27:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046616', 'tblTempUsageDetail_20' ) end [2024-12-18 07:27:19] Production.ERROR: pbx prc_insertCDR start [2024-12-18 07:27:19] Production.ERROR: pbx prc_insertCDR end [2024-12-18 07:27:19] Production.INFO: ==25771== Releasing lock... [2024-12-18 07:27:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 07:27:19] Production.INFO: 28.25 MB #Memory Used# [2024-12-18 07:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 04:28:05 [end_date_ymd] => 2024-12-18 07:28:05 [RateCDR] => 1 ) [2024-12-18 07:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 04:28:05' and `end` < '2024-12-18 07:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 07:28:17] Production.INFO: count ==79 [2024-12-18 07:28:17] Production.ERROR: pbx CDR StartTime 2024-12-18 04:28:05 - End Time 2024-12-18 07:28:05 [2024-12-18 07:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 07:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046621', 'tblTempUsageDetail_20' ) start [2024-12-18 07:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046621', 'tblTempUsageDetail_20' ) end [2024-12-18 07:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046621', 'tblTempVendorCDR_20' ) start [2024-12-18 07:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046621', 'tblTempVendorCDR_20' ) end [2024-12-18 07:28:17] Production.INFO: ProcessCDR(1,14046621,1,1,2) [2024-12-18 07:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046621', 'tblTempUsageDetail_20' ) start [2024-12-18 07:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046621', 'tblTempUsageDetail_20' ) end [2024-12-18 07:28:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 07:28:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 07:28:20] Production.INFO: ==25850== Releasing lock... [2024-12-18 07:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 07:28:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-18 07:29:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 04:29:04 [end_date_ymd] => 2024-12-18 07:29:04 [RateCDR] => 1 ) [2024-12-18 07:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 04:29:04' and `end` < '2024-12-18 07:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 07:29:16] Production.INFO: count ==79 [2024-12-18 07:29:16] Production.ERROR: pbx CDR StartTime 2024-12-18 04:29:04 - End Time 2024-12-18 07:29:04 [2024-12-18 07:29:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 07:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046626', 'tblTempUsageDetail_20' ) start [2024-12-18 07:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046626', 'tblTempUsageDetail_20' ) end [2024-12-18 07:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046626', 'tblTempVendorCDR_20' ) start [2024-12-18 07:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046626', 'tblTempVendorCDR_20' ) end [2024-12-18 07:29:16] Production.INFO: ProcessCDR(1,14046626,1,1,2) [2024-12-18 07:29:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046626', 'tblTempUsageDetail_20' ) start [2024-12-18 07:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046626', 'tblTempUsageDetail_20' ) end [2024-12-18 07:29:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 07:29:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 07:29:20] Production.INFO: ==25928== Releasing lock... [2024-12-18 07:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 07:29:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-18 07:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 04:30:06 [end_date_ymd] => 2024-12-18 07:30:06 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 04:30:06' and `end` < '2024-12-18 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 ,'') [2024-12-18 07:30:18] Production.INFO: count ==78 [2024-12-18 07:30:18] Production.ERROR: pbx CDR StartTime 2024-12-18 04:30:06 - End Time 2024-12-18 07:30:06 [2024-12-18 07:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046632', 'tblTempUsageDetail_20' ) start [2024-12-18 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046632', 'tblTempUsageDetail_20' ) end [2024-12-18 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046632', 'tblTempVendorCDR_20' ) start [2024-12-18 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046632', 'tblTempVendorCDR_20' ) end [2024-12-18 07:30:18] Production.INFO: ProcessCDR(1,14046632,1,1,2) [2024-12-18 07:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046632', 'tblTempUsageDetail_20' ) start [2024-12-18 07:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046632', 'tblTempUsageDetail_20' ) end [2024-12-18 07:30:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 07:30:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 07:30:21] Production.INFO: ==26013== Releasing lock... [2024-12-18 07:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 07:30:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-18 07:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 04:31:04 [end_date_ymd] => 2024-12-18 07:31:04 [RateCDR] => 1 ) [2024-12-18 07:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 04:31:04' and `end` < '2024-12-18 07:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 07:31:17] Production.INFO: count ==78 [2024-12-18 07:31:17] Production.ERROR: pbx CDR StartTime 2024-12-18 04:31:04 - End Time 2024-12-18 07:31:04 [2024-12-18 07:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046637', 'tblTempUsageDetail_20' ) start [2024-12-18 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046637', 'tblTempUsageDetail_20' ) end [2024-12-18 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046637', 'tblTempVendorCDR_20' ) start [2024-12-18 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046637', 'tblTempVendorCDR_20' ) end [2024-12-18 07:31:17] Production.INFO: ProcessCDR(1,14046637,1,1,2) [2024-12-18 07:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046637', 'tblTempUsageDetail_20' ) start [2024-12-18 07:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046637', 'tblTempUsageDetail_20' ) end [2024-12-18 07:31:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 07:31:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 07:31:20] Production.INFO: ==26089== Releasing lock... [2024-12-18 07:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 07:31:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-18 07:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 04:32:05 [end_date_ymd] => 2024-12-18 07:32:05 [RateCDR] => 1 ) [2024-12-18 07:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 04:32:05' and `end` < '2024-12-18 07:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 07:32:18] Production.INFO: count ==78 [2024-12-18 07:32:18] Production.ERROR: pbx CDR StartTime 2024-12-18 04:32:05 - End Time 2024-12-18 07:32:05 [2024-12-18 07:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046642', 'tblTempUsageDetail_20' ) start [2024-12-18 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046642', 'tblTempUsageDetail_20' ) end [2024-12-18 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046642', 'tblTempVendorCDR_20' ) start [2024-12-18 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046642', 'tblTempVendorCDR_20' ) end [2024-12-18 07:32:18] Production.INFO: ProcessCDR(1,14046642,1,1,2) [2024-12-18 07:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046642', 'tblTempUsageDetail_20' ) start [2024-12-18 07:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046642', 'tblTempUsageDetail_20' ) end [2024-12-18 07:32:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 07:32:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 07:32:21] Production.INFO: ==26171== Releasing lock... [2024-12-18 07:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 07:32:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-18 07:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 04:33:05 [end_date_ymd] => 2024-12-18 07:33:05 [RateCDR] => 1 ) [2024-12-18 07:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 04:33:05' and `end` < '2024-12-18 07:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 07:33:17] Production.INFO: count ==79 [2024-12-18 07:33:17] Production.ERROR: pbx CDR StartTime 2024-12-18 04:33:05 - End Time 2024-12-18 07:33:05 [2024-12-18 07:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046647', 'tblTempUsageDetail_20' ) start [2024-12-18 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046647', 'tblTempUsageDetail_20' ) end [2024-12-18 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046647', 'tblTempVendorCDR_20' ) start [2024-12-18 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046647', 'tblTempVendorCDR_20' ) end [2024-12-18 07:33:17] Production.INFO: ProcessCDR(1,14046647,1,1,2) [2024-12-18 07:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046647', 'tblTempUsageDetail_20' ) start [2024-12-18 07:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046647', 'tblTempUsageDetail_20' ) end [2024-12-18 07:33:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 07:33:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 07:33:22] Production.INFO: ==26248== Releasing lock... [2024-12-18 07:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 07:33:22] Production.INFO: 28.25 MB #Memory Used# [2024-12-18 07:34:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 04:34:04 [end_date_ymd] => 2024-12-18 07:34:04 [RateCDR] => 1 ) [2024-12-18 07:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 04:34:04' and `end` < '2024-12-18 07:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 07:34:16] Production.INFO: count ==79 [2024-12-18 07:34:16] Production.ERROR: pbx CDR StartTime 2024-12-18 04:34:04 - End Time 2024-12-18 07:34:04 [2024-12-18 07:34:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 07:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046652', 'tblTempUsageDetail_20' ) start [2024-12-18 07:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046652', 'tblTempUsageDetail_20' ) end [2024-12-18 07:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046652', 'tblTempVendorCDR_20' ) start [2024-12-18 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046652', 'tblTempVendorCDR_20' ) end [2024-12-18 07:34:17] Production.INFO: ProcessCDR(1,14046652,1,1,2) [2024-12-18 07:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046652', 'tblTempUsageDetail_20' ) start [2024-12-18 07:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046652', 'tblTempUsageDetail_20' ) end [2024-12-18 07:34:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 07:34:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 07:34:20] Production.INFO: ==26326== Releasing lock... [2024-12-18 07:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 07:34:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-18 07:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 04:35:05 [end_date_ymd] => 2024-12-18 07:35:05 [RateCDR] => 1 ) [2024-12-18 07:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 04:35:05' and `end` < '2024-12-18 07:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 07:35:17] Production.INFO: count ==79 [2024-12-18 07:35:17] Production.ERROR: pbx CDR StartTime 2024-12-18 04:35:05 - End Time 2024-12-18 07:35:05 [2024-12-18 07:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046657', 'tblTempUsageDetail_20' ) start [2024-12-18 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046657', 'tblTempUsageDetail_20' ) end [2024-12-18 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046657', 'tblTempVendorCDR_20' ) start [2024-12-18 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046657', 'tblTempVendorCDR_20' ) end [2024-12-18 07:35:17] Production.INFO: ProcessCDR(1,14046657,1,1,2) [2024-12-18 07:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046657', 'tblTempUsageDetail_20' ) start [2024-12-18 07:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046657', 'tblTempUsageDetail_20' ) end [2024-12-18 07:35:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 07:35:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 07:35:20] Production.INFO: ==26444== Releasing lock... [2024-12-18 07:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 07:35:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-18 07:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 04:36:05 [end_date_ymd] => 2024-12-18 07:36:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 04:36:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 07:36:17] Production.INFO: count ==79 [2024-12-18 07:36:17] Production.ERROR: pbx CDR StartTime 2024-12-18 04:36:05 - End Time 2024-12-18 07:36:05 [2024-12-18 07:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046662', 'tblTempUsageDetail_20' ) start [2024-12-18 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046662', 'tblTempUsageDetail_20' ) end [2024-12-18 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046662', 'tblTempVendorCDR_20' ) start [2024-12-18 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046662', 'tblTempVendorCDR_20' ) end [2024-12-18 07:36:17] Production.INFO: ProcessCDR(1,14046662,1,1,2) [2024-12-18 07:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046662', 'tblTempUsageDetail_20' ) start [2024-12-18 07:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046662', 'tblTempUsageDetail_20' ) end [2024-12-18 07:36:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 07:36:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 07:36:21] Production.INFO: ==26519== Releasing lock... [2024-12-18 07:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 07:36:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-18 07:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 04:37:05 [end_date_ymd] => 2024-12-18 07:37:05 [RateCDR] => 1 ) [2024-12-18 07:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 04:37:05' and `end` < '2024-12-18 07:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 07:37:17] Production.INFO: count ==79 [2024-12-18 07:37:17] Production.ERROR: pbx CDR StartTime 2024-12-18 04:37:05 - End Time 2024-12-18 07:37:05 [2024-12-18 07:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046667', 'tblTempUsageDetail_20' ) start [2024-12-18 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046667', 'tblTempUsageDetail_20' ) end [2024-12-18 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046667', 'tblTempVendorCDR_20' ) start [2024-12-18 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046667', 'tblTempVendorCDR_20' ) end [2024-12-18 07:37:17] Production.INFO: ProcessCDR(1,14046667,1,1,2) [2024-12-18 07:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046667', 'tblTempUsageDetail_20' ) start [2024-12-18 07:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046667', 'tblTempUsageDetail_20' ) end [2024-12-18 07:37:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 07:37:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 07:37:20] Production.INFO: ==26598== Releasing lock... [2024-12-18 07:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 07:37:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-18 07:38:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 04:38:04 [end_date_ymd] => 2024-12-18 07:38:04 [RateCDR] => 1 ) [2024-12-18 07:38:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 04:38:04' and `end` < '2024-12-18 07:38:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 07:38:18] Production.INFO: count ==85 [2024-12-18 07:38:18] Production.ERROR: pbx CDR StartTime 2024-12-18 04:38:04 - End Time 2024-12-18 07:38:04 [2024-12-18 07:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046672', 'tblTempUsageDetail_20' ) start [2024-12-18 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046672', 'tblTempUsageDetail_20' ) end [2024-12-18 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046672', 'tblTempVendorCDR_20' ) start [2024-12-18 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046672', 'tblTempVendorCDR_20' ) end [2024-12-18 07:38:18] Production.INFO: ProcessCDR(1,14046672,1,1,2) [2024-12-18 07:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046672', 'tblTempUsageDetail_20' ) start [2024-12-18 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046672', 'tblTempUsageDetail_20' ) end [2024-12-18 07:38:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 07:38:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 07:38:21] Production.INFO: ==26678== Releasing lock... [2024-12-18 07:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 07:38:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-18 07:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 04:39:05 [end_date_ymd] => 2024-12-18 07:39:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 04:39:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 07:39:18] Production.INFO: count ==86 [2024-12-18 07:39:18] Production.ERROR: pbx CDR StartTime 2024-12-18 04:39:05 - End Time 2024-12-18 07:39:05 [2024-12-18 07:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046677', 'tblTempUsageDetail_20' ) start [2024-12-18 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046677', 'tblTempUsageDetail_20' ) end [2024-12-18 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046677', 'tblTempVendorCDR_20' ) start [2024-12-18 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046677', 'tblTempVendorCDR_20' ) end [2024-12-18 07:39:18] Production.INFO: ProcessCDR(1,14046677,1,1,2) [2024-12-18 07:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046677', 'tblTempUsageDetail_20' ) start [2024-12-18 07:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046677', 'tblTempUsageDetail_20' ) end [2024-12-18 07:39:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 07:39:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 07:39:21] Production.INFO: ==26756== Releasing lock... [2024-12-18 07:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 07:39:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-18 07:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 04:40:05 [end_date_ymd] => 2024-12-18 07:40:05 [RateCDR] => 1 ) [2024-12-18 07:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 04:40:05' and `end` < '2024-12-18 07:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 07:40:17] Production.INFO: count ==86 [2024-12-18 07:40:17] Production.ERROR: pbx CDR StartTime 2024-12-18 04:40:05 - End Time 2024-12-18 07:40:05 [2024-12-18 07:40:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 07:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046683', 'tblTempUsageDetail_20' ) start [2024-12-18 07:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046683', 'tblTempUsageDetail_20' ) end [2024-12-18 07:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046683', 'tblTempVendorCDR_20' ) start [2024-12-18 07:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046683', 'tblTempVendorCDR_20' ) end [2024-12-18 07:40:17] Production.INFO: ProcessCDR(1,14046683,1,1,2) [2024-12-18 07:40:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:40:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:40:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046683', 'tblTempUsageDetail_20' ) start [2024-12-18 07:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046683', 'tblTempUsageDetail_20' ) end [2024-12-18 07:40:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 07:40:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 07:40:21] Production.INFO: ==26835== Releasing lock... [2024-12-18 07:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 07:40:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-18 07:41:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 04:41:04 [end_date_ymd] => 2024-12-18 07:41:04 [RateCDR] => 1 ) [2024-12-18 07:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 04:41:04' and `end` < '2024-12-18 07:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 07:41:16] Production.INFO: count ==100 [2024-12-18 07:41:16] Production.ERROR: pbx CDR StartTime 2024-12-18 04:41:04 - End Time 2024-12-18 07:41:04 [2024-12-18 07:41:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 07:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046688', 'tblTempUsageDetail_20' ) start [2024-12-18 07:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046688', 'tblTempUsageDetail_20' ) end [2024-12-18 07:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046688', 'tblTempVendorCDR_20' ) start [2024-12-18 07:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046688', 'tblTempVendorCDR_20' ) end [2024-12-18 07:41:16] Production.INFO: ProcessCDR(1,14046688,1,1,2) [2024-12-18 07:41:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:41:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:41:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:41:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:41:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046688', 'tblTempUsageDetail_20' ) start [2024-12-18 07:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046688', 'tblTempUsageDetail_20' ) end [2024-12-18 07:41:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 07:41:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 07:41:20] Production.INFO: ==26918== Releasing lock... [2024-12-18 07:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 07:41:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-18 07:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 04:42:05 [end_date_ymd] => 2024-12-18 07:42:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 04:42:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 07:42:17] Production.INFO: count ==105 [2024-12-18 07:42:17] Production.ERROR: pbx CDR StartTime 2024-12-18 04:42:05 - End Time 2024-12-18 07:42:05 [2024-12-18 07:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046693', 'tblTempUsageDetail_20' ) start [2024-12-18 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046693', 'tblTempUsageDetail_20' ) end [2024-12-18 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046693', 'tblTempVendorCDR_20' ) start [2024-12-18 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046693', 'tblTempVendorCDR_20' ) end [2024-12-18 07:42:17] Production.INFO: ProcessCDR(1,14046693,1,1,2) [2024-12-18 07:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046693', 'tblTempUsageDetail_20' ) start [2024-12-18 07:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046693', 'tblTempUsageDetail_20' ) end [2024-12-18 07:42:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 07:42:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 07:42:20] Production.INFO: ==26996== Releasing lock... [2024-12-18 07:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 07:42:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-18 07:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 04:43:04 [end_date_ymd] => 2024-12-18 07:43:04 [RateCDR] => 1 ) [2024-12-18 07:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 04:43:04' and `end` < '2024-12-18 07:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 07:43:16] Production.INFO: count ==105 [2024-12-18 07:43:16] Production.ERROR: pbx CDR StartTime 2024-12-18 04:43:04 - End Time 2024-12-18 07:43:04 [2024-12-18 07:43:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 07:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046698', 'tblTempUsageDetail_20' ) start [2024-12-18 07:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046698', 'tblTempUsageDetail_20' ) end [2024-12-18 07:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046698', 'tblTempVendorCDR_20' ) start [2024-12-18 07:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046698', 'tblTempVendorCDR_20' ) end [2024-12-18 07:43:16] Production.INFO: ProcessCDR(1,14046698,1,1,2) [2024-12-18 07:43:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:43:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:43:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046698', 'tblTempUsageDetail_20' ) start [2024-12-18 07:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046698', 'tblTempUsageDetail_20' ) end [2024-12-18 07:43:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 07:43:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 07:43:20] Production.INFO: ==27078== Releasing lock... [2024-12-18 07:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 07:43:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-18 07:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 04:44:05 [end_date_ymd] => 2024-12-18 07:44:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 04:44:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 07:44:17] Production.INFO: count ==105 [2024-12-18 07:44:17] Production.ERROR: pbx CDR StartTime 2024-12-18 04:44:05 - End Time 2024-12-18 07:44:05 [2024-12-18 07:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046703', 'tblTempUsageDetail_20' ) start [2024-12-18 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046703', 'tblTempUsageDetail_20' ) end [2024-12-18 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046703', 'tblTempVendorCDR_20' ) start [2024-12-18 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046703', 'tblTempVendorCDR_20' ) end [2024-12-18 07:44:17] Production.INFO: ProcessCDR(1,14046703,1,1,2) [2024-12-18 07:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046703', 'tblTempUsageDetail_20' ) start [2024-12-18 07:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046703', 'tblTempUsageDetail_20' ) end [2024-12-18 07:44:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 07:44:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 07:44:20] Production.INFO: ==27151== Releasing lock... [2024-12-18 07:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 07:44:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-18 07:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 04:45:04 [end_date_ymd] => 2024-12-18 07:45:04 [RateCDR] => 1 ) [2024-12-18 07:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 04:45:04' and `end` < '2024-12-18 07:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 07:45:17] Production.INFO: count ==105 [2024-12-18 07:45:17] Production.ERROR: pbx CDR StartTime 2024-12-18 04:45:04 - End Time 2024-12-18 07:45:04 [2024-12-18 07:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046708', 'tblTempUsageDetail_20' ) start [2024-12-18 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046708', 'tblTempUsageDetail_20' ) end [2024-12-18 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046708', 'tblTempVendorCDR_20' ) start [2024-12-18 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046708', 'tblTempVendorCDR_20' ) end [2024-12-18 07:45:17] Production.INFO: ProcessCDR(1,14046708,1,1,2) [2024-12-18 07:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046708', 'tblTempUsageDetail_20' ) start [2024-12-18 07:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046708', 'tblTempUsageDetail_20' ) end [2024-12-18 07:45:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 07:45:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 07:45:20] Production.INFO: ==27229== Releasing lock... [2024-12-18 07:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 07:45:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-18 07:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 04:46:05 [end_date_ymd] => 2024-12-18 07:46:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 04:46:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 07:46:17] Production.INFO: count ==107 [2024-12-18 07:46:17] Production.ERROR: pbx CDR StartTime 2024-12-18 04:46:05 - End Time 2024-12-18 07:46:05 [2024-12-18 07:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046713', 'tblTempUsageDetail_20' ) start [2024-12-18 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046713', 'tblTempUsageDetail_20' ) end [2024-12-18 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046713', 'tblTempVendorCDR_20' ) start [2024-12-18 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046713', 'tblTempVendorCDR_20' ) end [2024-12-18 07:46:17] Production.INFO: ProcessCDR(1,14046713,1,1,2) [2024-12-18 07:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046713', 'tblTempUsageDetail_20' ) start [2024-12-18 07:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046713', 'tblTempUsageDetail_20' ) end [2024-12-18 07:46:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 07:46:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 07:46:20] Production.INFO: ==27308== Releasing lock... [2024-12-18 07:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 07:46:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-18 07:47:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 04:47:04 [end_date_ymd] => 2024-12-18 07:47:04 [RateCDR] => 1 ) [2024-12-18 07:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 04:47:04' and `end` < '2024-12-18 07:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 07:47:17] Production.INFO: count ==108 [2024-12-18 07:47:17] Production.ERROR: pbx CDR StartTime 2024-12-18 04:47:04 - End Time 2024-12-18 07:47:04 [2024-12-18 07:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046718', 'tblTempUsageDetail_20' ) start [2024-12-18 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046718', 'tblTempUsageDetail_20' ) end [2024-12-18 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046718', 'tblTempVendorCDR_20' ) start [2024-12-18 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046718', 'tblTempVendorCDR_20' ) end [2024-12-18 07:47:17] Production.INFO: ProcessCDR(1,14046718,1,1,2) [2024-12-18 07:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046718', 'tblTempUsageDetail_20' ) start [2024-12-18 07:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046718', 'tblTempUsageDetail_20' ) end [2024-12-18 07:47:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 07:47:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 07:47:22] Production.INFO: ==27393== Releasing lock... [2024-12-18 07:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 07:47:22] Production.INFO: 28.5 MB #Memory Used# [2024-12-18 07:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 04:48:05 [end_date_ymd] => 2024-12-18 07:48:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 04:48:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 07:48:18] Production.INFO: count ==114 [2024-12-18 07:48:18] Production.ERROR: pbx CDR StartTime 2024-12-18 04:48:05 - End Time 2024-12-18 07:48:05 [2024-12-18 07:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046723', 'tblTempUsageDetail_20' ) start [2024-12-18 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046723', 'tblTempUsageDetail_20' ) end [2024-12-18 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046723', 'tblTempVendorCDR_20' ) start [2024-12-18 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046723', 'tblTempVendorCDR_20' ) end [2024-12-18 07:48:18] Production.INFO: ProcessCDR(1,14046723,1,1,2) [2024-12-18 07:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046723', 'tblTempUsageDetail_20' ) start [2024-12-18 07:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046723', 'tblTempUsageDetail_20' ) end [2024-12-18 07:48:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 07:48:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 07:48:21] Production.INFO: ==27476== Releasing lock... [2024-12-18 07:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 07:48:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-18 07:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 04:49:04 [end_date_ymd] => 2024-12-18 07:49:04 [RateCDR] => 1 ) [2024-12-18 07:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 04:49:04' and `end` < '2024-12-18 07:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 07:49:16] Production.INFO: count ==115 [2024-12-18 07:49:16] Production.ERROR: pbx CDR StartTime 2024-12-18 04:49:04 - End Time 2024-12-18 07:49:04 [2024-12-18 07:49:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 07:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046728', 'tblTempUsageDetail_20' ) start [2024-12-18 07:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046728', 'tblTempUsageDetail_20' ) end [2024-12-18 07:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046728', 'tblTempVendorCDR_20' ) start [2024-12-18 07:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046728', 'tblTempVendorCDR_20' ) end [2024-12-18 07:49:16] Production.INFO: ProcessCDR(1,14046728,1,1,2) [2024-12-18 07:49:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046728', 'tblTempUsageDetail_20' ) start [2024-12-18 07:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046728', 'tblTempUsageDetail_20' ) end [2024-12-18 07:49:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 07:49:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 07:49:21] Production.INFO: ==27555== Releasing lock... [2024-12-18 07:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 07:49:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-18 07:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 04:50:05 [end_date_ymd] => 2024-12-18 07:50:05 [RateCDR] => 1 ) [2024-12-18 07:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 04:50:05' and `end` < '2024-12-18 07:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 07:50:17] Production.INFO: count ==117 [2024-12-18 07:50:17] Production.ERROR: pbx CDR StartTime 2024-12-18 04:50:05 - End Time 2024-12-18 07:50:05 [2024-12-18 07:50:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 07:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046734', 'tblTempUsageDetail_20' ) start [2024-12-18 07:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046734', 'tblTempUsageDetail_20' ) end [2024-12-18 07:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046734', 'tblTempVendorCDR_20' ) start [2024-12-18 07:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046734', 'tblTempVendorCDR_20' ) end [2024-12-18 07:50:17] Production.INFO: ProcessCDR(1,14046734,1,1,2) [2024-12-18 07:50:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:50:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:50:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046734', 'tblTempUsageDetail_20' ) start [2024-12-18 07:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046734', 'tblTempUsageDetail_20' ) end [2024-12-18 07:50:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 07:50:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 07:50:21] Production.INFO: ==27676== Releasing lock... [2024-12-18 07:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 07:50:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-18 07:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 04:51:04 [end_date_ymd] => 2024-12-18 07:51:04 [RateCDR] => 1 ) [2024-12-18 07:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 04:51:04' and `end` < '2024-12-18 07:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 07:51:17] Production.INFO: count ==129 [2024-12-18 07:51:17] Production.ERROR: pbx CDR StartTime 2024-12-18 04:51:04 - End Time 2024-12-18 07:51:04 [2024-12-18 07:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046739', 'tblTempUsageDetail_20' ) start [2024-12-18 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046739', 'tblTempUsageDetail_20' ) end [2024-12-18 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046739', 'tblTempVendorCDR_20' ) start [2024-12-18 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046739', 'tblTempVendorCDR_20' ) end [2024-12-18 07:51:17] Production.INFO: ProcessCDR(1,14046739,1,1,2) [2024-12-18 07:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046739', 'tblTempUsageDetail_20' ) start [2024-12-18 07:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046739', 'tblTempUsageDetail_20' ) end [2024-12-18 07:51:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 07:51:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 07:51:20] Production.INFO: ==27751== Releasing lock... [2024-12-18 07:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 07:51:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-18 07:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 04:52:05 [end_date_ymd] => 2024-12-18 07:52:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 04:52:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 07:52:17] Production.INFO: count ==130 [2024-12-18 07:52:17] Production.ERROR: pbx CDR StartTime 2024-12-18 04:52:05 - End Time 2024-12-18 07:52:05 [2024-12-18 07:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046744', 'tblTempUsageDetail_20' ) start [2024-12-18 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046744', 'tblTempUsageDetail_20' ) end [2024-12-18 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046744', 'tblTempVendorCDR_20' ) start [2024-12-18 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046744', 'tblTempVendorCDR_20' ) end [2024-12-18 07:52:17] Production.INFO: ProcessCDR(1,14046744,1,1,2) [2024-12-18 07:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046744', 'tblTempUsageDetail_20' ) start [2024-12-18 07:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046744', 'tblTempUsageDetail_20' ) end [2024-12-18 07:52:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 07:52:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 07:52:20] Production.INFO: ==27825== Releasing lock... [2024-12-18 07:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 07:52:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-18 07:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 04:53:05 [end_date_ymd] => 2024-12-18 07:53:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 04:53:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 07:53:17] Production.INFO: count ==131 [2024-12-18 07:53:17] Production.ERROR: pbx CDR StartTime 2024-12-18 04:53:05 - End Time 2024-12-18 07:53:05 [2024-12-18 07:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046749', 'tblTempUsageDetail_20' ) start [2024-12-18 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046749', 'tblTempUsageDetail_20' ) end [2024-12-18 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046749', 'tblTempVendorCDR_20' ) start [2024-12-18 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046749', 'tblTempVendorCDR_20' ) end [2024-12-18 07:53:17] Production.INFO: ProcessCDR(1,14046749,1,1,2) [2024-12-18 07:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046749', 'tblTempUsageDetail_20' ) start [2024-12-18 07:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046749', 'tblTempUsageDetail_20' ) end [2024-12-18 07:53:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 07:53:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 07:53:20] Production.INFO: ==27907== Releasing lock... [2024-12-18 07:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 07:53:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-18 07:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 04:54:05 [end_date_ymd] => 2024-12-18 07:54:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 04:54:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 07:54:17] Production.INFO: count ==135 [2024-12-18 07:54:17] Production.ERROR: pbx CDR StartTime 2024-12-18 04:54:05 - End Time 2024-12-18 07:54:05 [2024-12-18 07:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046754', 'tblTempUsageDetail_20' ) start [2024-12-18 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046754', 'tblTempUsageDetail_20' ) end [2024-12-18 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046754', 'tblTempVendorCDR_20' ) start [2024-12-18 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046754', 'tblTempVendorCDR_20' ) end [2024-12-18 07:54:17] Production.INFO: ProcessCDR(1,14046754,1,1,2) [2024-12-18 07:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046754', 'tblTempUsageDetail_20' ) start [2024-12-18 07:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046754', 'tblTempUsageDetail_20' ) end [2024-12-18 07:54:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 07:54:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 07:54:21] Production.INFO: ==27983== Releasing lock... [2024-12-18 07:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 07:54:21] Production.INFO: 28.75 MB #Memory Used# [2024-12-18 07:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 04:55:05 [end_date_ymd] => 2024-12-18 07:55:05 [RateCDR] => 1 ) [2024-12-18 07:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 04:55:05' and `end` < '2024-12-18 07:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 07:55:18] Production.INFO: count ==145 [2024-12-18 07:55:18] Production.ERROR: pbx CDR StartTime 2024-12-18 04:55:05 - End Time 2024-12-18 07:55:05 [2024-12-18 07:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046759', 'tblTempUsageDetail_20' ) start [2024-12-18 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046759', 'tblTempUsageDetail_20' ) end [2024-12-18 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046759', 'tblTempVendorCDR_20' ) start [2024-12-18 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046759', 'tblTempVendorCDR_20' ) end [2024-12-18 07:55:18] Production.INFO: ProcessCDR(1,14046759,1,1,2) [2024-12-18 07:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046759', 'tblTempUsageDetail_20' ) start [2024-12-18 07:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046759', 'tblTempUsageDetail_20' ) end [2024-12-18 07:55:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 07:55:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 07:55:21] Production.INFO: ==28058== Releasing lock... [2024-12-18 07:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 07:55:21] Production.INFO: 28.75 MB #Memory Used# [2024-12-18 07:56:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 04:56:04 [end_date_ymd] => 2024-12-18 07:56:04 [RateCDR] => 1 ) [2024-12-18 07:56:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 04:56:04' and `end` < '2024-12-18 07:56:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 07:56:18] Production.INFO: count ==145 [2024-12-18 07:56:18] Production.ERROR: pbx CDR StartTime 2024-12-18 04:56:04 - End Time 2024-12-18 07:56:04 [2024-12-18 07:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046764', 'tblTempUsageDetail_20' ) start [2024-12-18 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046764', 'tblTempUsageDetail_20' ) end [2024-12-18 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046764', 'tblTempVendorCDR_20' ) start [2024-12-18 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046764', 'tblTempVendorCDR_20' ) end [2024-12-18 07:56:18] Production.INFO: ProcessCDR(1,14046764,1,1,2) [2024-12-18 07:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046764', 'tblTempUsageDetail_20' ) start [2024-12-18 07:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046764', 'tblTempUsageDetail_20' ) end [2024-12-18 07:56:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 07:56:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 07:56:21] Production.INFO: ==28133== Releasing lock... [2024-12-18 07:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 07:56:21] Production.INFO: 28.75 MB #Memory Used# [2024-12-18 07:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 04:57:05 [end_date_ymd] => 2024-12-18 07:57:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 04:57:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 07:57:17] Production.INFO: count ==146 [2024-12-18 07:57:17] Production.ERROR: pbx CDR StartTime 2024-12-18 04:57:05 - End Time 2024-12-18 07:57:05 [2024-12-18 07:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046769', 'tblTempUsageDetail_20' ) start [2024-12-18 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046769', 'tblTempUsageDetail_20' ) end [2024-12-18 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046769', 'tblTempVendorCDR_20' ) start [2024-12-18 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046769', 'tblTempVendorCDR_20' ) end [2024-12-18 07:57:17] Production.INFO: ProcessCDR(1,14046769,1,1,2) [2024-12-18 07:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046769', 'tblTempUsageDetail_20' ) start [2024-12-18 07:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046769', 'tblTempUsageDetail_20' ) end [2024-12-18 07:57:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 07:57:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 07:57:20] Production.INFO: ==28213== Releasing lock... [2024-12-18 07:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 07:57:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-18 07:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 04:58:05 [end_date_ymd] => 2024-12-18 07:58:05 [RateCDR] => 1 ) [2024-12-18 07:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 04:58:05' and `end` < '2024-12-18 07:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 07:58:18] Production.INFO: count ==146 [2024-12-18 07:58:18] Production.ERROR: pbx CDR StartTime 2024-12-18 04:58:05 - End Time 2024-12-18 07:58:05 [2024-12-18 07:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046774', 'tblTempUsageDetail_20' ) start [2024-12-18 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046774', 'tblTempUsageDetail_20' ) end [2024-12-18 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046774', 'tblTempVendorCDR_20' ) start [2024-12-18 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046774', 'tblTempVendorCDR_20' ) end [2024-12-18 07:58:18] Production.INFO: ProcessCDR(1,14046774,1,1,2) [2024-12-18 07:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046774', 'tblTempUsageDetail_20' ) start [2024-12-18 07:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046774', 'tblTempUsageDetail_20' ) end [2024-12-18 07:58:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 07:58:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 07:58:21] Production.INFO: ==28284== Releasing lock... [2024-12-18 07:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 07:58:21] Production.INFO: 28.75 MB #Memory Used# [2024-12-18 07:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 04:59:05 [end_date_ymd] => 2024-12-18 07:59:05 [RateCDR] => 1 ) [2024-12-18 07:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 04:59:05' and `end` < '2024-12-18 07:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 07:59:17] Production.INFO: count ==146 [2024-12-18 07:59:17] Production.ERROR: pbx CDR StartTime 2024-12-18 04:59:05 - End Time 2024-12-18 07:59:05 [2024-12-18 07:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046779', 'tblTempUsageDetail_20' ) start [2024-12-18 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046779', 'tblTempUsageDetail_20' ) end [2024-12-18 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046779', 'tblTempVendorCDR_20' ) start [2024-12-18 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046779', 'tblTempVendorCDR_20' ) end [2024-12-18 07:59:17] Production.INFO: ProcessCDR(1,14046779,1,1,2) [2024-12-18 07:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 07:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 07:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046779', 'tblTempUsageDetail_20' ) start [2024-12-18 07:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046779', 'tblTempUsageDetail_20' ) end [2024-12-18 07:59:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 07:59:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 07:59:20] Production.INFO: ==28364== Releasing lock... [2024-12-18 07:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 07:59:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-18 08:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 05:00:05 [end_date_ymd] => 2024-12-18 08:00:05 [RateCDR] => 1 ) [2024-12-18 08:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 05:00:05' and `end` < '2024-12-18 08:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 08:00:17] Production.INFO: count ==153 [2024-12-18 08:00:17] Production.ERROR: pbx CDR StartTime 2024-12-18 05:00:05 - End Time 2024-12-18 08:00:05 [2024-12-18 08:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 08:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046785', 'tblTempUsageDetail_20' ) start [2024-12-18 08:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046785', 'tblTempUsageDetail_20' ) end [2024-12-18 08:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046785', 'tblTempVendorCDR_20' ) start [2024-12-18 08:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046785', 'tblTempVendorCDR_20' ) end [2024-12-18 08:00:17] Production.INFO: ProcessCDR(1,14046785,1,1,2) [2024-12-18 08:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046785', 'tblTempUsageDetail_20' ) start [2024-12-18 08:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046785', 'tblTempUsageDetail_20' ) end [2024-12-18 08:00:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 08:00:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 08:00:21] Production.INFO: ==28441== Releasing lock... [2024-12-18 08:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 08:00:21] Production.INFO: 29 MB #Memory Used# [2024-12-18 08:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 05:01:05 [end_date_ymd] => 2024-12-18 08:01:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 05:01:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 08:01:17] Production.INFO: count ==164 [2024-12-18 08:01:17] Production.ERROR: pbx CDR StartTime 2024-12-18 05:01:05 - End Time 2024-12-18 08:01:05 [2024-12-18 08:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046790', 'tblTempUsageDetail_20' ) start [2024-12-18 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046790', 'tblTempUsageDetail_20' ) end [2024-12-18 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046790', 'tblTempVendorCDR_20' ) start [2024-12-18 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046790', 'tblTempVendorCDR_20' ) end [2024-12-18 08:01:17] Production.INFO: ProcessCDR(1,14046790,1,1,2) [2024-12-18 08:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046790', 'tblTempUsageDetail_20' ) start [2024-12-18 08:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046790', 'tblTempUsageDetail_20' ) end [2024-12-18 08:01:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 08:01:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 08:01:22] Production.INFO: ==28534== Releasing lock... [2024-12-18 08:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 08:01:22] Production.INFO: 29 MB #Memory Used# [2024-12-18 08:02:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 05:02:06 [end_date_ymd] => 2024-12-18 08:02:06 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 05:02:06' and `end` < '2024-12-18 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 ,'') [2024-12-18 08:02:18] Production.INFO: count ==166 [2024-12-18 08:02:18] Production.ERROR: pbx CDR StartTime 2024-12-18 05:02:06 - End Time 2024-12-18 08:02:06 [2024-12-18 08:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046795', 'tblTempUsageDetail_20' ) start [2024-12-18 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046795', 'tblTempUsageDetail_20' ) end [2024-12-18 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046795', 'tblTempVendorCDR_20' ) start [2024-12-18 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046795', 'tblTempVendorCDR_20' ) end [2024-12-18 08:02:18] Production.INFO: ProcessCDR(1,14046795,1,1,2) [2024-12-18 08:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046795', 'tblTempUsageDetail_20' ) start [2024-12-18 08:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046795', 'tblTempUsageDetail_20' ) end [2024-12-18 08:02:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 08:02:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 08:02:22] Production.INFO: ==28616== Releasing lock... [2024-12-18 08:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 08:02:22] Production.INFO: 29.25 MB #Memory Used# [2024-12-18 08:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 05:03:05 [end_date_ymd] => 2024-12-18 08:03:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 05:03:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 08:03:17] Production.INFO: count ==178 [2024-12-18 08:03:17] Production.ERROR: pbx CDR StartTime 2024-12-18 05:03:05 - End Time 2024-12-18 08:03:05 [2024-12-18 08:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046800', 'tblTempUsageDetail_20' ) start [2024-12-18 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046800', 'tblTempUsageDetail_20' ) end [2024-12-18 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046800', 'tblTempVendorCDR_20' ) start [2024-12-18 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046800', 'tblTempVendorCDR_20' ) end [2024-12-18 08:03:17] Production.INFO: ProcessCDR(1,14046800,1,1,2) [2024-12-18 08:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046800', 'tblTempUsageDetail_20' ) start [2024-12-18 08:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046800', 'tblTempUsageDetail_20' ) end [2024-12-18 08:03:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 08:03:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 08:03:20] Production.INFO: ==28697== Releasing lock... [2024-12-18 08:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 08:03:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-18 08:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 05:04:05 [end_date_ymd] => 2024-12-18 08:04:05 [RateCDR] => 1 ) [2024-12-18 08:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 05:04:05' and `end` < '2024-12-18 08:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 08:04:17] Production.INFO: count ==184 [2024-12-18 08:04:17] Production.ERROR: pbx CDR StartTime 2024-12-18 05:04:05 - End Time 2024-12-18 08:04:05 [2024-12-18 08:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046805', 'tblTempUsageDetail_20' ) start [2024-12-18 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046805', 'tblTempUsageDetail_20' ) end [2024-12-18 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046805', 'tblTempVendorCDR_20' ) start [2024-12-18 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046805', 'tblTempVendorCDR_20' ) end [2024-12-18 08:04:17] Production.INFO: ProcessCDR(1,14046805,1,1,2) [2024-12-18 08:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046805', 'tblTempUsageDetail_20' ) start [2024-12-18 08:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046805', 'tblTempUsageDetail_20' ) end [2024-12-18 08:04:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 08:04:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 08:04:22] Production.INFO: ==28776== Releasing lock... [2024-12-18 08:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 08:04:22] Production.INFO: 29.5 MB #Memory Used# [2024-12-18 08:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 05:05:05 [end_date_ymd] => 2024-12-18 08:05:05 [RateCDR] => 1 ) [2024-12-18 08:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 05:05:05' and `end` < '2024-12-18 08:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 08:05:17] Production.INFO: count ==197 [2024-12-18 08:05:17] Production.ERROR: pbx CDR StartTime 2024-12-18 05:05:05 - End Time 2024-12-18 08:05:05 [2024-12-18 08:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046810', 'tblTempUsageDetail_20' ) start [2024-12-18 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046810', 'tblTempUsageDetail_20' ) end [2024-12-18 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046810', 'tblTempVendorCDR_20' ) start [2024-12-18 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046810', 'tblTempVendorCDR_20' ) end [2024-12-18 08:05:17] Production.INFO: ProcessCDR(1,14046810,1,1,2) [2024-12-18 08:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046810', 'tblTempUsageDetail_20' ) start [2024-12-18 08:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046810', 'tblTempUsageDetail_20' ) end [2024-12-18 08:05:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 08:05:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 08:05:21] Production.INFO: ==28856== Releasing lock... [2024-12-18 08:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 08:05:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-18 08:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 05:06:05 [end_date_ymd] => 2024-12-18 08:06:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 05:06:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 08:06:18] Production.INFO: count ==211 [2024-12-18 08:06:18] Production.ERROR: pbx CDR StartTime 2024-12-18 05:06:05 - End Time 2024-12-18 08:06:05 [2024-12-18 08:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046815', 'tblTempUsageDetail_20' ) start [2024-12-18 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046815', 'tblTempUsageDetail_20' ) end [2024-12-18 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046815', 'tblTempVendorCDR_20' ) start [2024-12-18 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046815', 'tblTempVendorCDR_20' ) end [2024-12-18 08:06:18] Production.INFO: ProcessCDR(1,14046815,1,1,2) [2024-12-18 08:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046815', 'tblTempUsageDetail_20' ) start [2024-12-18 08:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046815', 'tblTempUsageDetail_20' ) end [2024-12-18 08:06:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 08:06:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 08:06:21] Production.INFO: ==28971== Releasing lock... [2024-12-18 08:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 08:06:21] Production.INFO: 30 MB #Memory Used# [2024-12-18 08:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 05:07:04 [end_date_ymd] => 2024-12-18 08:07:04 [RateCDR] => 1 ) [2024-12-18 08:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 05:07:04' and `end` < '2024-12-18 08: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 ,'') [2024-12-18 08:07:17] Production.INFO: count ==217 [2024-12-18 08:07:17] Production.ERROR: pbx CDR StartTime 2024-12-18 05:07:04 - End Time 2024-12-18 08:07:04 [2024-12-18 08:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046820', 'tblTempUsageDetail_20' ) start [2024-12-18 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046820', 'tblTempUsageDetail_20' ) end [2024-12-18 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046820', 'tblTempVendorCDR_20' ) start [2024-12-18 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046820', 'tblTempVendorCDR_20' ) end [2024-12-18 08:07:17] Production.INFO: ProcessCDR(1,14046820,1,1,2) [2024-12-18 08:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046820', 'tblTempUsageDetail_20' ) start [2024-12-18 08:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046820', 'tblTempUsageDetail_20' ) end [2024-12-18 08:07:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 08:07:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 08:07:20] Production.INFO: ==29047== Releasing lock... [2024-12-18 08:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 08:07:20] Production.INFO: 30 MB #Memory Used# [2024-12-18 08:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 05:08:05 [end_date_ymd] => 2024-12-18 08:08:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 05:08:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 08:08:18] Production.INFO: count ==223 [2024-12-18 08:08:18] Production.ERROR: pbx CDR StartTime 2024-12-18 05:08:05 - End Time 2024-12-18 08:08:05 [2024-12-18 08:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046825', 'tblTempUsageDetail_20' ) start [2024-12-18 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046825', 'tblTempUsageDetail_20' ) end [2024-12-18 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046825', 'tblTempVendorCDR_20' ) start [2024-12-18 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046825', 'tblTempVendorCDR_20' ) end [2024-12-18 08:08:18] Production.INFO: ProcessCDR(1,14046825,1,1,2) [2024-12-18 08:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046825', 'tblTempUsageDetail_20' ) start [2024-12-18 08:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046825', 'tblTempUsageDetail_20' ) end [2024-12-18 08:08:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 08:08:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 08:08:22] Production.INFO: ==29123== Releasing lock... [2024-12-18 08:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 08:08:22] Production.INFO: 30 MB #Memory Used# [2024-12-18 08:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 05:09:04 [end_date_ymd] => 2024-12-18 08:09:04 [RateCDR] => 1 ) [2024-12-18 08:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 05:09:04' and `end` < '2024-12-18 08:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 08:09:17] Production.INFO: count ==229 [2024-12-18 08:09:17] Production.ERROR: pbx CDR StartTime 2024-12-18 05:09:04 - End Time 2024-12-18 08:09:04 [2024-12-18 08:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046830', 'tblTempUsageDetail_20' ) start [2024-12-18 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046830', 'tblTempUsageDetail_20' ) end [2024-12-18 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046830', 'tblTempVendorCDR_20' ) start [2024-12-18 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046830', 'tblTempVendorCDR_20' ) end [2024-12-18 08:09:17] Production.INFO: ProcessCDR(1,14046830,1,1,2) [2024-12-18 08:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046830', 'tblTempUsageDetail_20' ) start [2024-12-18 08:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046830', 'tblTempUsageDetail_20' ) end [2024-12-18 08:09:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 08:09:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 08:09:22] Production.INFO: ==29203== Releasing lock... [2024-12-18 08:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 08:09:22] Production.INFO: 29.75 MB #Memory Used# [2024-12-18 08:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 05:10:05 [end_date_ymd] => 2024-12-18 08:10:05 [RateCDR] => 1 ) [2024-12-18 08: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` >= '2024-12-18 05:10:05' and `end` < '2024-12-18 08: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 ,'') [2024-12-18 08:10:17] Production.INFO: count ==235 [2024-12-18 08:10:18] Production.ERROR: pbx CDR StartTime 2024-12-18 05:10:05 - End Time 2024-12-18 08:10:05 [2024-12-18 08:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046836', 'tblTempUsageDetail_20' ) start [2024-12-18 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046836', 'tblTempUsageDetail_20' ) end [2024-12-18 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046836', 'tblTempVendorCDR_20' ) start [2024-12-18 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046836', 'tblTempVendorCDR_20' ) end [2024-12-18 08:10:18] Production.INFO: ProcessCDR(1,14046836,1,1,2) [2024-12-18 08:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:10:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:10:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046836', 'tblTempUsageDetail_20' ) start [2024-12-18 08:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046836', 'tblTempUsageDetail_20' ) end [2024-12-18 08:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 08:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 08:10:21] Production.INFO: ==29286== Releasing lock... [2024-12-18 08:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 08:10:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-18 08:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 05:11:05 [end_date_ymd] => 2024-12-18 08:11:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 05:11:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 08:11:18] Production.INFO: count ==262 [2024-12-18 08:11:18] Production.ERROR: pbx CDR StartTime 2024-12-18 05:11:05 - End Time 2024-12-18 08:11:05 [2024-12-18 08:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046841', 'tblTempUsageDetail_20' ) start [2024-12-18 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046841', 'tblTempUsageDetail_20' ) end [2024-12-18 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046841', 'tblTempVendorCDR_20' ) start [2024-12-18 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046841', 'tblTempVendorCDR_20' ) end [2024-12-18 08:11:18] Production.INFO: ProcessCDR(1,14046841,1,1,2) [2024-12-18 08:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046841', 'tblTempUsageDetail_20' ) start [2024-12-18 08:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046841', 'tblTempUsageDetail_20' ) end [2024-12-18 08:11:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 08:11:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 08:11:21] Production.INFO: ==29363== Releasing lock... [2024-12-18 08:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 08:11:21] Production.INFO: 30 MB #Memory Used# [2024-12-18 08:12:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 05:12:04 [end_date_ymd] => 2024-12-18 08:12:04 [RateCDR] => 1 ) [2024-12-18 08:12:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 05:12:04' and `end` < '2024-12-18 08:12:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 08:12:18] Production.INFO: count ==283 [2024-12-18 08:12:18] Production.ERROR: pbx CDR StartTime 2024-12-18 05:12:04 - End Time 2024-12-18 08:12:04 [2024-12-18 08:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046846', 'tblTempUsageDetail_20' ) start [2024-12-18 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046846', 'tblTempUsageDetail_20' ) end [2024-12-18 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046846', 'tblTempVendorCDR_20' ) start [2024-12-18 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046846', 'tblTempVendorCDR_20' ) end [2024-12-18 08:12:18] Production.INFO: ProcessCDR(1,14046846,1,1,2) [2024-12-18 08:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046846', 'tblTempUsageDetail_20' ) start [2024-12-18 08:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046846', 'tblTempUsageDetail_20' ) end [2024-12-18 08:12:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 08:12:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 08:12:21] Production.INFO: ==29440== Releasing lock... [2024-12-18 08:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 08:12:21] Production.INFO: 30.5 MB #Memory Used# [2024-12-18 08:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 05:13:05 [end_date_ymd] => 2024-12-18 08:13:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 05:13:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 08:13:17] Production.INFO: count ==310 [2024-12-18 08:13:17] Production.ERROR: pbx CDR StartTime 2024-12-18 05:13:05 - End Time 2024-12-18 08:13:05 [2024-12-18 08:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046851', 'tblTempUsageDetail_20' ) start [2024-12-18 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046851', 'tblTempUsageDetail_20' ) end [2024-12-18 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046851', 'tblTempVendorCDR_20' ) start [2024-12-18 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046851', 'tblTempVendorCDR_20' ) end [2024-12-18 08:13:17] Production.INFO: ProcessCDR(1,14046851,1,1,2) [2024-12-18 08:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046851', 'tblTempUsageDetail_20' ) start [2024-12-18 08:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046851', 'tblTempUsageDetail_20' ) end [2024-12-18 08:13:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 08:13:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 08:13:21] Production.INFO: ==29514== Releasing lock... [2024-12-18 08:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 08:13:21] Production.INFO: 31 MB #Memory Used# [2024-12-18 08:14:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 05:14:04 [end_date_ymd] => 2024-12-18 08:14:04 [RateCDR] => 1 ) [2024-12-18 08:14:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 05:14:04' and `end` < '2024-12-18 08:14:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 08:14:16] Production.INFO: count ==326 [2024-12-18 08:14:16] Production.ERROR: pbx CDR StartTime 2024-12-18 05:14:04 - End Time 2024-12-18 08:14:04 [2024-12-18 08:14:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 08:14:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046856', 'tblTempUsageDetail_20' ) start [2024-12-18 08:14:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046856', 'tblTempUsageDetail_20' ) end [2024-12-18 08:14:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046856', 'tblTempVendorCDR_20' ) start [2024-12-18 08:14:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046856', 'tblTempVendorCDR_20' ) end [2024-12-18 08:14:16] Production.INFO: ProcessCDR(1,14046856,1,1,2) [2024-12-18 08:14:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:14:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:14:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:14:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:14:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046856', 'tblTempUsageDetail_20' ) start [2024-12-18 08:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046856', 'tblTempUsageDetail_20' ) end [2024-12-18 08:14:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 08:14:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 08:14:20] Production.INFO: ==29592== Releasing lock... [2024-12-18 08:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 08:14:20] Production.INFO: 30.75 MB #Memory Used# [2024-12-18 08:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 05:15:05 [end_date_ymd] => 2024-12-18 08:15:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 05:15:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 08:15:17] Production.INFO: count ==327 [2024-12-18 08:15:17] Production.ERROR: pbx CDR StartTime 2024-12-18 05:15:05 - End Time 2024-12-18 08:15:05 [2024-12-18 08:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046861', 'tblTempUsageDetail_20' ) start [2024-12-18 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046861', 'tblTempUsageDetail_20' ) end [2024-12-18 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046861', 'tblTempVendorCDR_20' ) start [2024-12-18 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046861', 'tblTempVendorCDR_20' ) end [2024-12-18 08:15:17] Production.INFO: ProcessCDR(1,14046861,1,1,2) [2024-12-18 08:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046861', 'tblTempUsageDetail_20' ) start [2024-12-18 08:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046861', 'tblTempUsageDetail_20' ) end [2024-12-18 08:15:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 08:15:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 08:15:22] Production.INFO: ==29670== Releasing lock... [2024-12-18 08:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 08:15:22] Production.INFO: 30.75 MB #Memory Used# [2024-12-18 08:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 05:16:05 [end_date_ymd] => 2024-12-18 08:16:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 05:16:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 08:16:17] Production.INFO: count ==327 [2024-12-18 08:16:17] Production.ERROR: pbx CDR StartTime 2024-12-18 05:16:05 - End Time 2024-12-18 08:16:05 [2024-12-18 08:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 08:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046866', 'tblTempUsageDetail_20' ) start [2024-12-18 08:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046866', 'tblTempUsageDetail_20' ) end [2024-12-18 08:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046866', 'tblTempVendorCDR_20' ) start [2024-12-18 08:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046866', 'tblTempVendorCDR_20' ) end [2024-12-18 08:16:17] Production.INFO: ProcessCDR(1,14046866,1,1,2) [2024-12-18 08:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046866', 'tblTempUsageDetail_20' ) start [2024-12-18 08:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046866', 'tblTempUsageDetail_20' ) end [2024-12-18 08:16:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 08:16:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 08:16:21] Production.INFO: ==29751== Releasing lock... [2024-12-18 08:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 08:16:21] Production.INFO: 30.75 MB #Memory Used# [2024-12-18 08:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 05:17:05 [end_date_ymd] => 2024-12-18 08:17:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 05:17:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 08:17:17] Production.INFO: count ==327 [2024-12-18 08:17:17] Production.ERROR: pbx CDR StartTime 2024-12-18 05:17:05 - End Time 2024-12-18 08:17:05 [2024-12-18 08:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046871', 'tblTempUsageDetail_20' ) start [2024-12-18 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046871', 'tblTempUsageDetail_20' ) end [2024-12-18 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046871', 'tblTempVendorCDR_20' ) start [2024-12-18 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046871', 'tblTempVendorCDR_20' ) end [2024-12-18 08:17:17] Production.INFO: ProcessCDR(1,14046871,1,1,2) [2024-12-18 08:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046871', 'tblTempUsageDetail_20' ) start [2024-12-18 08:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046871', 'tblTempUsageDetail_20' ) end [2024-12-18 08:17:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 08:17:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 08:17:21] Production.INFO: ==29840== Releasing lock... [2024-12-18 08:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 08:17:21] Production.INFO: 30.75 MB #Memory Used# [2024-12-18 08:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 05:18:05 [end_date_ymd] => 2024-12-18 08:18:05 [RateCDR] => 1 ) [2024-12-18 08:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 05:18:05' and `end` < '2024-12-18 08:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 08:18:17] Production.INFO: count ==343 [2024-12-18 08:18:17] Production.ERROR: pbx CDR StartTime 2024-12-18 05:18:05 - End Time 2024-12-18 08:18:05 [2024-12-18 08:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046876', 'tblTempUsageDetail_20' ) start [2024-12-18 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046876', 'tblTempUsageDetail_20' ) end [2024-12-18 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046876', 'tblTempVendorCDR_20' ) start [2024-12-18 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046876', 'tblTempVendorCDR_20' ) end [2024-12-18 08:18:17] Production.INFO: ProcessCDR(1,14046876,1,1,2) [2024-12-18 08:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046876', 'tblTempUsageDetail_20' ) start [2024-12-18 08:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046876', 'tblTempUsageDetail_20' ) end [2024-12-18 08:18:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 08:18:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 08:18:20] Production.INFO: ==29915== Releasing lock... [2024-12-18 08:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 08:18:20] Production.INFO: 31 MB #Memory Used# [2024-12-18 08:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 05:19:05 [end_date_ymd] => 2024-12-18 08:19:05 [RateCDR] => 1 ) [2024-12-18 08:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 05:19:05' and `end` < '2024-12-18 08:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 08:19:17] Production.INFO: count ==369 [2024-12-18 08:19:17] Production.ERROR: pbx CDR StartTime 2024-12-18 05:19:05 - End Time 2024-12-18 08:19:05 [2024-12-18 08:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046881', 'tblTempUsageDetail_20' ) start [2024-12-18 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046881', 'tblTempUsageDetail_20' ) end [2024-12-18 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046881', 'tblTempVendorCDR_20' ) start [2024-12-18 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046881', 'tblTempVendorCDR_20' ) end [2024-12-18 08:19:17] Production.INFO: ProcessCDR(1,14046881,1,1,2) [2024-12-18 08:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046881', 'tblTempUsageDetail_20' ) start [2024-12-18 08:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046881', 'tblTempUsageDetail_20' ) end [2024-12-18 08:19:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 08:19:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 08:19:21] Production.INFO: ==29995== Releasing lock... [2024-12-18 08:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 08:19:21] Production.INFO: 31.25 MB #Memory Used# [2024-12-18 08:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 05:20:05 [end_date_ymd] => 2024-12-18 08:20:05 [RateCDR] => 1 ) [2024-12-18 08: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` >= '2024-12-18 05:20:05' and `end` < '2024-12-18 08: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 ,'') [2024-12-18 08:20:17] Production.INFO: count ==380 [2024-12-18 08:20:17] Production.ERROR: pbx CDR StartTime 2024-12-18 05:20:05 - End Time 2024-12-18 08:20:05 [2024-12-18 08:20:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 08:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046886', 'tblTempUsageDetail_20' ) start [2024-12-18 08:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046886', 'tblTempUsageDetail_20' ) end [2024-12-18 08:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046886', 'tblTempVendorCDR_20' ) start [2024-12-18 08:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046886', 'tblTempVendorCDR_20' ) end [2024-12-18 08:20:17] Production.INFO: ProcessCDR(1,14046886,1,1,2) [2024-12-18 08:20:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046886', 'tblTempUsageDetail_20' ) start [2024-12-18 08:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046886', 'tblTempUsageDetail_20' ) end [2024-12-18 08:20:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 08:20:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 08:20:22] Production.INFO: ==30068== Releasing lock... [2024-12-18 08:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 08:20:22] Production.INFO: 31.75 MB #Memory Used# [2024-12-18 08:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 05:21:04 [end_date_ymd] => 2024-12-18 08:21:04 [RateCDR] => 1 ) [2024-12-18 08:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 05:21:04' and `end` < '2024-12-18 08:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 08:21:18] Production.INFO: count ==405 [2024-12-18 08:21:18] Production.ERROR: pbx CDR StartTime 2024-12-18 05:21:04 - End Time 2024-12-18 08:21:04 [2024-12-18 08:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046892', 'tblTempUsageDetail_20' ) start [2024-12-18 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046892', 'tblTempUsageDetail_20' ) end [2024-12-18 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046892', 'tblTempVendorCDR_20' ) start [2024-12-18 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046892', 'tblTempVendorCDR_20' ) end [2024-12-18 08:21:18] Production.INFO: ProcessCDR(1,14046892,1,1,2) [2024-12-18 08:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046892', 'tblTempUsageDetail_20' ) start [2024-12-18 08:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046892', 'tblTempUsageDetail_20' ) end [2024-12-18 08:21:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 08:21:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 08:21:22] Production.INFO: ==30147== Releasing lock... [2024-12-18 08:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 08:21:22] Production.INFO: 31.5 MB #Memory Used# [2024-12-18 08:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 05:22:05 [end_date_ymd] => 2024-12-18 08:22:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 05:22:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 08:22:17] Production.INFO: count ==406 [2024-12-18 08:22:18] Production.ERROR: pbx CDR StartTime 2024-12-18 05:22:05 - End Time 2024-12-18 08:22:05 [2024-12-18 08:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046897', 'tblTempUsageDetail_20' ) start [2024-12-18 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046897', 'tblTempUsageDetail_20' ) end [2024-12-18 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046897', 'tblTempVendorCDR_20' ) start [2024-12-18 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046897', 'tblTempVendorCDR_20' ) end [2024-12-18 08:22:18] Production.INFO: ProcessCDR(1,14046897,1,1,2) [2024-12-18 08:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046897', 'tblTempUsageDetail_20' ) start [2024-12-18 08:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046897', 'tblTempUsageDetail_20' ) end [2024-12-18 08:22:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 08:22:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 08:22:21] Production.INFO: ==30266== Releasing lock... [2024-12-18 08:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 08:22:21] Production.INFO: 31.75 MB #Memory Used# [2024-12-18 08:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 05:23:05 [end_date_ymd] => 2024-12-18 08:23:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 05:23:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 08:23:17] Production.INFO: count ==414 [2024-12-18 08:23:17] Production.ERROR: pbx CDR StartTime 2024-12-18 05:23:05 - End Time 2024-12-18 08:23:05 [2024-12-18 08:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046902', 'tblTempUsageDetail_20' ) start [2024-12-18 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046902', 'tblTempUsageDetail_20' ) end [2024-12-18 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046902', 'tblTempVendorCDR_20' ) start [2024-12-18 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046902', 'tblTempVendorCDR_20' ) end [2024-12-18 08:23:17] Production.INFO: ProcessCDR(1,14046902,1,1,2) [2024-12-18 08:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046902', 'tblTempUsageDetail_20' ) start [2024-12-18 08:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046902', 'tblTempUsageDetail_20' ) end [2024-12-18 08:23:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 08:23:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 08:23:20] Production.INFO: ==30343== Releasing lock... [2024-12-18 08:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 08:23:20] Production.INFO: 31.75 MB #Memory Used# [2024-12-18 08:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 05:24:05 [end_date_ymd] => 2024-12-18 08:24:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 05:24:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 08:24:19] Production.INFO: count ==415 [2024-12-18 08:24:19] Production.ERROR: pbx CDR StartTime 2024-12-18 05:24:05 - End Time 2024-12-18 08:24:05 [2024-12-18 08:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 08:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046907', 'tblTempUsageDetail_20' ) start [2024-12-18 08:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046907', 'tblTempUsageDetail_20' ) end [2024-12-18 08:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046907', 'tblTempVendorCDR_20' ) start [2024-12-18 08:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046907', 'tblTempVendorCDR_20' ) end [2024-12-18 08:24:19] Production.INFO: ProcessCDR(1,14046907,1,1,2) [2024-12-18 08:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046907', 'tblTempUsageDetail_20' ) start [2024-12-18 08:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046907', 'tblTempUsageDetail_20' ) end [2024-12-18 08:24:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 08:24:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 08:24:22] Production.INFO: ==30421== Releasing lock... [2024-12-18 08:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 08:24:22] Production.INFO: 31.75 MB #Memory Used# [2024-12-18 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 05:25:05 [end_date_ymd] => 2024-12-18 08:25:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 05:25:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 08:25:17] Production.INFO: count ==418 [2024-12-18 08:25:17] Production.ERROR: pbx CDR StartTime 2024-12-18 05:25:05 - End Time 2024-12-18 08:25:05 [2024-12-18 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046912', 'tblTempUsageDetail_20' ) start [2024-12-18 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046912', 'tblTempUsageDetail_20' ) end [2024-12-18 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046912', 'tblTempVendorCDR_20' ) start [2024-12-18 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046912', 'tblTempVendorCDR_20' ) end [2024-12-18 08:25:17] Production.INFO: ProcessCDR(1,14046912,1,1,2) [2024-12-18 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046912', 'tblTempUsageDetail_20' ) start [2024-12-18 08:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046912', 'tblTempUsageDetail_20' ) end [2024-12-18 08:25:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 08:25:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 08:25:21] Production.INFO: ==30504== Releasing lock... [2024-12-18 08:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 08:25:21] Production.INFO: 31.75 MB #Memory Used# [2024-12-18 08:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 05:26:05 [end_date_ymd] => 2024-12-18 08:26:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 05:26:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 08:26:17] Production.INFO: count ==430 [2024-12-18 08:26:17] Production.ERROR: pbx CDR StartTime 2024-12-18 05:26:05 - End Time 2024-12-18 08:26:05 [2024-12-18 08:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046917', 'tblTempUsageDetail_20' ) start [2024-12-18 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046917', 'tblTempUsageDetail_20' ) end [2024-12-18 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046917', 'tblTempVendorCDR_20' ) start [2024-12-18 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046917', 'tblTempVendorCDR_20' ) end [2024-12-18 08:26:17] Production.INFO: ProcessCDR(1,14046917,1,1,2) [2024-12-18 08:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046917', 'tblTempUsageDetail_20' ) start [2024-12-18 08:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046917', 'tblTempUsageDetail_20' ) end [2024-12-18 08:26:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 08:26:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 08:26:22] Production.INFO: ==30580== Releasing lock... [2024-12-18 08:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 08:26:22] Production.INFO: 31.75 MB #Memory Used# [2024-12-18 08:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 05:27:05 [end_date_ymd] => 2024-12-18 08:27:05 [RateCDR] => 1 ) [2024-12-18 08:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 05:27:05' and `end` < '2024-12-18 08:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 08:27:17] Production.INFO: count ==441 [2024-12-18 08:27:17] Production.ERROR: pbx CDR StartTime 2024-12-18 05:27:05 - End Time 2024-12-18 08:27:05 [2024-12-18 08:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046922', 'tblTempUsageDetail_20' ) start [2024-12-18 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046922', 'tblTempUsageDetail_20' ) end [2024-12-18 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046922', 'tblTempVendorCDR_20' ) start [2024-12-18 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046922', 'tblTempVendorCDR_20' ) end [2024-12-18 08:27:17] Production.INFO: ProcessCDR(1,14046922,1,1,2) [2024-12-18 08:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046922', 'tblTempUsageDetail_20' ) start [2024-12-18 08:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046922', 'tblTempUsageDetail_20' ) end [2024-12-18 08:27:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 08:27:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 08:27:20] Production.INFO: ==30661== Releasing lock... [2024-12-18 08:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 08:27:20] Production.INFO: 32 MB #Memory Used# [2024-12-18 08:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 05:28:05 [end_date_ymd] => 2024-12-18 08:28:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 05:28:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 08:28:17] Production.INFO: count ==448 [2024-12-18 08:28:17] Production.ERROR: pbx CDR StartTime 2024-12-18 05:28:05 - End Time 2024-12-18 08:28:05 [2024-12-18 08:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046927', 'tblTempUsageDetail_20' ) start [2024-12-18 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046927', 'tblTempUsageDetail_20' ) end [2024-12-18 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046927', 'tblTempVendorCDR_20' ) start [2024-12-18 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046927', 'tblTempVendorCDR_20' ) end [2024-12-18 08:28:17] Production.INFO: ProcessCDR(1,14046927,1,1,2) [2024-12-18 08:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046927', 'tblTempUsageDetail_20' ) start [2024-12-18 08:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046927', 'tblTempUsageDetail_20' ) end [2024-12-18 08:28:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 08:28:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 08:28:22] Production.INFO: ==30744== Releasing lock... [2024-12-18 08:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 08:28:22] Production.INFO: 32.5 MB #Memory Used# [2024-12-18 08:29:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 05:29:04 [end_date_ymd] => 2024-12-18 08:29:04 [RateCDR] => 1 ) [2024-12-18 08:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 05:29:04' and `end` < '2024-12-18 08:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 08:29:17] Production.INFO: count ==461 [2024-12-18 08:29:17] Production.ERROR: pbx CDR StartTime 2024-12-18 05:29:04 - End Time 2024-12-18 08:29:04 [2024-12-18 08:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046932', 'tblTempUsageDetail_20' ) start [2024-12-18 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046932', 'tblTempUsageDetail_20' ) end [2024-12-18 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046932', 'tblTempVendorCDR_20' ) start [2024-12-18 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046932', 'tblTempVendorCDR_20' ) end [2024-12-18 08:29:17] Production.INFO: ProcessCDR(1,14046932,1,1,2) [2024-12-18 08:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046932', 'tblTempUsageDetail_20' ) start [2024-12-18 08:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046932', 'tblTempUsageDetail_20' ) end [2024-12-18 08:29:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 08:29:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 08:29:21] Production.INFO: ==30823== Releasing lock... [2024-12-18 08:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 08:29:21] Production.INFO: 32.25 MB #Memory Used# [2024-12-18 08:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 05:30:05 [end_date_ymd] => 2024-12-18 08:30:05 [RateCDR] => 1 ) [2024-12-18 08:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 05:30:05' and `end` < '2024-12-18 08:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 08:30:18] Production.INFO: count ==479 [2024-12-18 08:30:18] Production.ERROR: pbx CDR StartTime 2024-12-18 05:30:05 - End Time 2024-12-18 08:30:05 [2024-12-18 08:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046938', 'tblTempUsageDetail_20' ) start [2024-12-18 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046938', 'tblTempUsageDetail_20' ) end [2024-12-18 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046938', 'tblTempVendorCDR_20' ) start [2024-12-18 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046938', 'tblTempVendorCDR_20' ) end [2024-12-18 08:30:18] Production.INFO: ProcessCDR(1,14046938,1,1,2) [2024-12-18 08:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046938', 'tblTempUsageDetail_20' ) start [2024-12-18 08:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046938', 'tblTempUsageDetail_20' ) end [2024-12-18 08:30:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 08:30:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 08:30:22] Production.INFO: ==30910== Releasing lock... [2024-12-18 08:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 08:30:22] Production.INFO: 32.25 MB #Memory Used# [2024-12-18 08:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 05:31:05 [end_date_ymd] => 2024-12-18 08:31:05 [RateCDR] => 1 ) [2024-12-18 08:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 05:31:05' and `end` < '2024-12-18 08:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 08:31:18] Production.INFO: count ==511 [2024-12-18 08:31:18] Production.ERROR: pbx CDR StartTime 2024-12-18 05:31:05 - End Time 2024-12-18 08:31:05 [2024-12-18 08:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046943', 'tblTempUsageDetail_20' ) start [2024-12-18 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046943', 'tblTempUsageDetail_20' ) end [2024-12-18 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046943', 'tblTempVendorCDR_20' ) start [2024-12-18 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046943', 'tblTempVendorCDR_20' ) end [2024-12-18 08:31:18] Production.INFO: ProcessCDR(1,14046943,1,1,2) [2024-12-18 08:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046943', 'tblTempUsageDetail_20' ) start [2024-12-18 08:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046943', 'tblTempUsageDetail_20' ) end [2024-12-18 08:31:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 08:31:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 08:31:22] Production.INFO: ==31002== Releasing lock... [2024-12-18 08:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 08:31:22] Production.INFO: 32.75 MB #Memory Used# [2024-12-18 08:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 05:32:05 [end_date_ymd] => 2024-12-18 08:32:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 05:32:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 08:32:17] Production.INFO: count ==512 [2024-12-18 08:32:17] Production.ERROR: pbx CDR StartTime 2024-12-18 05:32:05 - End Time 2024-12-18 08:32:05 [2024-12-18 08:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 08:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046948', 'tblTempUsageDetail_20' ) start [2024-12-18 08:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046948', 'tblTempUsageDetail_20' ) end [2024-12-18 08:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046948', 'tblTempVendorCDR_20' ) start [2024-12-18 08:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046948', 'tblTempVendorCDR_20' ) end [2024-12-18 08:32:17] Production.INFO: ProcessCDR(1,14046948,1,1,2) [2024-12-18 08:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046948', 'tblTempUsageDetail_20' ) start [2024-12-18 08:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046948', 'tblTempUsageDetail_20' ) end [2024-12-18 08:32:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 08:32:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 08:32:20] Production.INFO: ==31086== Releasing lock... [2024-12-18 08:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 08:32:20] Production.INFO: 33 MB #Memory Used# [2024-12-18 08:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 05:33:05 [end_date_ymd] => 2024-12-18 08:33:05 [RateCDR] => 1 ) [2024-12-18 08:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 05:33:05' and `end` < '2024-12-18 08:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 08:33:17] Production.INFO: count ==513 [2024-12-18 08:33:17] Production.ERROR: pbx CDR StartTime 2024-12-18 05:33:05 - End Time 2024-12-18 08:33:05 [2024-12-18 08:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 08:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046953', 'tblTempUsageDetail_20' ) start [2024-12-18 08:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046953', 'tblTempUsageDetail_20' ) end [2024-12-18 08:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046953', 'tblTempVendorCDR_20' ) start [2024-12-18 08:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046953', 'tblTempVendorCDR_20' ) end [2024-12-18 08:33:17] Production.INFO: ProcessCDR(1,14046953,1,1,2) [2024-12-18 08:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046953', 'tblTempUsageDetail_20' ) start [2024-12-18 08:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046953', 'tblTempUsageDetail_20' ) end [2024-12-18 08:33:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 08:33:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 08:33:22] Production.INFO: ==31171== Releasing lock... [2024-12-18 08:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 08:33:22] Production.INFO: 32.75 MB #Memory Used# [2024-12-18 08:34:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 05:34:04 [end_date_ymd] => 2024-12-18 08:34:04 [RateCDR] => 1 ) [2024-12-18 08:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 05:34:04' and `end` < '2024-12-18 08:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 08:34:16] Production.INFO: count ==519 [2024-12-18 08:34:16] Production.ERROR: pbx CDR StartTime 2024-12-18 05:34:04 - End Time 2024-12-18 08:34:04 [2024-12-18 08:34:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 08:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046958', 'tblTempUsageDetail_20' ) start [2024-12-18 08:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046958', 'tblTempUsageDetail_20' ) end [2024-12-18 08:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046958', 'tblTempVendorCDR_20' ) start [2024-12-18 08:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046958', 'tblTempVendorCDR_20' ) end [2024-12-18 08:34:16] Production.INFO: ProcessCDR(1,14046958,1,1,2) [2024-12-18 08:34:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:34:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:34:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:34:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:34:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046958', 'tblTempUsageDetail_20' ) start [2024-12-18 08:34:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046958', 'tblTempUsageDetail_20' ) end [2024-12-18 08:34:19] Production.ERROR: pbx prc_insertCDR start [2024-12-18 08:34:19] Production.ERROR: pbx prc_insertCDR end [2024-12-18 08:34:19] Production.INFO: ==31257== Releasing lock... [2024-12-18 08:34:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 08:34:19] Production.INFO: 32.25 MB #Memory Used# [2024-12-18 08:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 05:35:05 [end_date_ymd] => 2024-12-18 08:35:05 [RateCDR] => 1 ) [2024-12-18 08:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 05:35:05' and `end` < '2024-12-18 08:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 08:35:17] Production.INFO: count ==524 [2024-12-18 08:35:17] Production.ERROR: pbx CDR StartTime 2024-12-18 05:35:05 - End Time 2024-12-18 08:35:05 [2024-12-18 08:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046963', 'tblTempUsageDetail_20' ) start [2024-12-18 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046963', 'tblTempUsageDetail_20' ) end [2024-12-18 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046963', 'tblTempVendorCDR_20' ) start [2024-12-18 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046963', 'tblTempVendorCDR_20' ) end [2024-12-18 08:35:17] Production.INFO: ProcessCDR(1,14046963,1,1,2) [2024-12-18 08:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046963', 'tblTempUsageDetail_20' ) start [2024-12-18 08:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046963', 'tblTempUsageDetail_20' ) end [2024-12-18 08:35:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 08:35:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 08:35:22] Production.INFO: ==31337== Releasing lock... [2024-12-18 08:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 08:35:22] Production.INFO: 32.25 MB #Memory Used# [2024-12-18 08:36:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 05:36:04 [end_date_ymd] => 2024-12-18 08:36:04 [RateCDR] => 1 ) [2024-12-18 08:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 05:36:04' and `end` < '2024-12-18 08:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 08:36:17] Production.INFO: count ==529 [2024-12-18 08:36:17] Production.ERROR: pbx CDR StartTime 2024-12-18 05:36:04 - End Time 2024-12-18 08:36:04 [2024-12-18 08:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046968', 'tblTempUsageDetail_20' ) start [2024-12-18 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046968', 'tblTempUsageDetail_20' ) end [2024-12-18 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046968', 'tblTempVendorCDR_20' ) start [2024-12-18 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046968', 'tblTempVendorCDR_20' ) end [2024-12-18 08:36:17] Production.INFO: ProcessCDR(1,14046968,1,1,2) [2024-12-18 08:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046968', 'tblTempUsageDetail_20' ) start [2024-12-18 08:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046968', 'tblTempUsageDetail_20' ) end [2024-12-18 08:36:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 08:36:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 08:36:21] Production.INFO: ==31418== Releasing lock... [2024-12-18 08:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 08:36:21] Production.INFO: 32.75 MB #Memory Used# [2024-12-18 08:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 05:37:05 [end_date_ymd] => 2024-12-18 08:37:05 [RateCDR] => 1 ) [2024-12-18 08:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 05:37:05' and `end` < '2024-12-18 08:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 08:37:17] Production.INFO: count ==546 [2024-12-18 08:37:17] Production.ERROR: pbx CDR StartTime 2024-12-18 05:37:05 - End Time 2024-12-18 08:37:05 [2024-12-18 08:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046973', 'tblTempUsageDetail_20' ) start [2024-12-18 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046973', 'tblTempUsageDetail_20' ) end [2024-12-18 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046973', 'tblTempVendorCDR_20' ) start [2024-12-18 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046973', 'tblTempVendorCDR_20' ) end [2024-12-18 08:37:17] Production.INFO: ProcessCDR(1,14046973,1,1,2) [2024-12-18 08:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046973', 'tblTempUsageDetail_20' ) start [2024-12-18 08:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046973', 'tblTempUsageDetail_20' ) end [2024-12-18 08:37:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 08:37:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 08:37:20] Production.INFO: ==31543== Releasing lock... [2024-12-18 08:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 08:37:20] Production.INFO: 32.75 MB #Memory Used# [2024-12-18 08:38:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 05:38:04 [end_date_ymd] => 2024-12-18 08:38:04 [RateCDR] => 1 ) [2024-12-18 08:38:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 05:38:04' and `end` < '2024-12-18 08:38:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 08:38:16] Production.INFO: count ==553 [2024-12-18 08:38:17] Production.ERROR: pbx CDR StartTime 2024-12-18 05:38:04 - End Time 2024-12-18 08:38:04 [2024-12-18 08:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 08:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046978', 'tblTempUsageDetail_20' ) start [2024-12-18 08:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046978', 'tblTempUsageDetail_20' ) end [2024-12-18 08:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046978', 'tblTempVendorCDR_20' ) start [2024-12-18 08:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046978', 'tblTempVendorCDR_20' ) end [2024-12-18 08:38:17] Production.INFO: ProcessCDR(1,14046978,1,1,2) [2024-12-18 08:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046978', 'tblTempUsageDetail_20' ) start [2024-12-18 08:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046978', 'tblTempUsageDetail_20' ) end [2024-12-18 08:38:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 08:38:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 08:38:20] Production.INFO: ==31619== Releasing lock... [2024-12-18 08:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 08:38:20] Production.INFO: 32.5 MB #Memory Used# [2024-12-18 08:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 05:39:04 [end_date_ymd] => 2024-12-18 08:39:04 [RateCDR] => 1 ) [2024-12-18 08:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 05:39:04' and `end` < '2024-12-18 08:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 08:39:18] Production.INFO: count ==583 [2024-12-18 08:39:18] Production.ERROR: pbx CDR StartTime 2024-12-18 05:39:04 - End Time 2024-12-18 08:39:04 [2024-12-18 08:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046983', 'tblTempUsageDetail_20' ) start [2024-12-18 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046983', 'tblTempUsageDetail_20' ) end [2024-12-18 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046983', 'tblTempVendorCDR_20' ) start [2024-12-18 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046983', 'tblTempVendorCDR_20' ) end [2024-12-18 08:39:18] Production.INFO: ProcessCDR(1,14046983,1,1,2) [2024-12-18 08:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046983', 'tblTempUsageDetail_20' ) start [2024-12-18 08:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046983', 'tblTempUsageDetail_20' ) end [2024-12-18 08:39:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 08:39:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 08:39:21] Production.INFO: ==31695== Releasing lock... [2024-12-18 08:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 08:39:21] Production.INFO: 32.75 MB #Memory Used# [2024-12-18 08:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 05:40:06 [end_date_ymd] => 2024-12-18 08:40:06 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 05:40:06' and `end` < '2024-12-18 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 ,'') [2024-12-18 08:40:18] Production.INFO: count ==595 [2024-12-18 08:40:18] Production.ERROR: pbx CDR StartTime 2024-12-18 05:40:06 - End Time 2024-12-18 08:40:06 [2024-12-18 08:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046989', 'tblTempUsageDetail_20' ) start [2024-12-18 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046989', 'tblTempUsageDetail_20' ) end [2024-12-18 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046989', 'tblTempVendorCDR_20' ) start [2024-12-18 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046989', 'tblTempVendorCDR_20' ) end [2024-12-18 08:40:18] Production.INFO: ProcessCDR(1,14046989,1,1,2) [2024-12-18 08:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046989', 'tblTempUsageDetail_20' ) start [2024-12-18 08:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046989', 'tblTempUsageDetail_20' ) end [2024-12-18 08:40:23] Production.ERROR: pbx prc_insertCDR start [2024-12-18 08:40:23] Production.ERROR: pbx prc_insertCDR end [2024-12-18 08:40:23] Production.INFO: ==31777== Releasing lock... [2024-12-18 08:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 08:40:23] Production.INFO: 33.25 MB #Memory Used# [2024-12-18 08:41:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 05:41:04 [end_date_ymd] => 2024-12-18 08:41:04 [RateCDR] => 1 ) [2024-12-18 08:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 05:41:04' and `end` < '2024-12-18 08:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 08:41:17] Production.INFO: count ==638 [2024-12-18 08:41:17] Production.ERROR: pbx CDR StartTime 2024-12-18 05:41:04 - End Time 2024-12-18 08:41:04 [2024-12-18 08:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046994', 'tblTempUsageDetail_20' ) start [2024-12-18 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046994', 'tblTempUsageDetail_20' ) end [2024-12-18 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046994', 'tblTempVendorCDR_20' ) start [2024-12-18 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046994', 'tblTempVendorCDR_20' ) end [2024-12-18 08:41:17] Production.INFO: ProcessCDR(1,14046994,1,1,2) [2024-12-18 08:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046994', 'tblTempUsageDetail_20' ) start [2024-12-18 08:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046994', 'tblTempUsageDetail_20' ) end [2024-12-18 08:41:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 08:41:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 08:41:22] Production.INFO: ==31851== Releasing lock... [2024-12-18 08:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 08:41:22] Production.INFO: 33.25 MB #Memory Used# [2024-12-18 08:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 05:42:05 [end_date_ymd] => 2024-12-18 08:42:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 05:42:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 08:42:18] Production.INFO: count ==657 [2024-12-18 08:42:18] Production.ERROR: pbx CDR StartTime 2024-12-18 05:42:05 - End Time 2024-12-18 08:42:05 [2024-12-18 08:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046999', 'tblTempUsageDetail_20' ) start [2024-12-18 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14046999', 'tblTempUsageDetail_20' ) end [2024-12-18 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046999', 'tblTempVendorCDR_20' ) start [2024-12-18 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14046999', 'tblTempVendorCDR_20' ) end [2024-12-18 08:42:18] Production.INFO: ProcessCDR(1,14046999,1,1,2) [2024-12-18 08:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14046999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14046999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14046999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14046999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046999', 'tblTempUsageDetail_20' ) start [2024-12-18 08:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14046999', 'tblTempUsageDetail_20' ) end [2024-12-18 08:42:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 08:42:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 08:42:22] Production.INFO: ==31932== Releasing lock... [2024-12-18 08:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 08:42:22] Production.INFO: 33.5 MB #Memory Used# [2024-12-18 08:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 05:43:05 [end_date_ymd] => 2024-12-18 08:43:05 [RateCDR] => 1 ) [2024-12-18 08:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 05:43:05' and `end` < '2024-12-18 08:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 08:43:17] Production.INFO: count ==669 [2024-12-18 08:43:17] Production.ERROR: pbx CDR StartTime 2024-12-18 05:43:05 - End Time 2024-12-18 08:43:05 [2024-12-18 08:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047004', 'tblTempUsageDetail_20' ) start [2024-12-18 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047004', 'tblTempUsageDetail_20' ) end [2024-12-18 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047004', 'tblTempVendorCDR_20' ) start [2024-12-18 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047004', 'tblTempVendorCDR_20' ) end [2024-12-18 08:43:17] Production.INFO: ProcessCDR(1,14047004,1,1,2) [2024-12-18 08:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047004', 'tblTempUsageDetail_20' ) start [2024-12-18 08:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047004', 'tblTempUsageDetail_20' ) end [2024-12-18 08:43:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 08:43:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 08:43:21] Production.INFO: ==32008== Releasing lock... [2024-12-18 08:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 08:43:21] Production.INFO: 33.75 MB #Memory Used# [2024-12-18 08:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 05:44:05 [end_date_ymd] => 2024-12-18 08:44:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 05:44:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 08:44:18] Production.INFO: count ==685 [2024-12-18 08:44:18] Production.ERROR: pbx CDR StartTime 2024-12-18 05:44:05 - End Time 2024-12-18 08:44:05 [2024-12-18 08:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047009', 'tblTempUsageDetail_20' ) start [2024-12-18 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047009', 'tblTempUsageDetail_20' ) end [2024-12-18 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047009', 'tblTempVendorCDR_20' ) start [2024-12-18 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047009', 'tblTempVendorCDR_20' ) end [2024-12-18 08:44:18] Production.INFO: ProcessCDR(1,14047009,1,1,2) [2024-12-18 08:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047009', 'tblTempUsageDetail_20' ) start [2024-12-18 08:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047009', 'tblTempUsageDetail_20' ) end [2024-12-18 08:44:23] Production.ERROR: pbx prc_insertCDR start [2024-12-18 08:44:23] Production.ERROR: pbx prc_insertCDR end [2024-12-18 08:44:23] Production.INFO: ==32085== Releasing lock... [2024-12-18 08:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 08:44:23] Production.INFO: 33.75 MB #Memory Used# [2024-12-18 08:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 05:45:04 [end_date_ymd] => 2024-12-18 08:45:04 [RateCDR] => 1 ) [2024-12-18 08:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 05:45:04' and `end` < '2024-12-18 08:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 08:45:17] Production.INFO: count ==691 [2024-12-18 08:45:17] Production.ERROR: pbx CDR StartTime 2024-12-18 05:45:04 - End Time 2024-12-18 08:45:04 [2024-12-18 08:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047014', 'tblTempUsageDetail_20' ) start [2024-12-18 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047014', 'tblTempUsageDetail_20' ) end [2024-12-18 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047014', 'tblTempVendorCDR_20' ) start [2024-12-18 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047014', 'tblTempVendorCDR_20' ) end [2024-12-18 08:45:17] Production.INFO: ProcessCDR(1,14047014,1,1,2) [2024-12-18 08:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047014', 'tblTempUsageDetail_20' ) start [2024-12-18 08:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047014', 'tblTempUsageDetail_20' ) end [2024-12-18 08:45:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 08:45:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 08:45:20] Production.INFO: ==32164== Releasing lock... [2024-12-18 08:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 08:45:20] Production.INFO: 33.5 MB #Memory Used# [2024-12-18 08:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 05:46:05 [end_date_ymd] => 2024-12-18 08:46:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 05:46:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 08:46:18] Production.INFO: count ==705 [2024-12-18 08:46:18] Production.ERROR: pbx CDR StartTime 2024-12-18 05:46:05 - End Time 2024-12-18 08:46:05 [2024-12-18 08:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047019', 'tblTempUsageDetail_20' ) start [2024-12-18 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047019', 'tblTempUsageDetail_20' ) end [2024-12-18 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047019', 'tblTempVendorCDR_20' ) start [2024-12-18 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047019', 'tblTempVendorCDR_20' ) end [2024-12-18 08:46:18] Production.INFO: ProcessCDR(1,14047019,1,1,2) [2024-12-18 08:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047019', 'tblTempUsageDetail_20' ) start [2024-12-18 08:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047019', 'tblTempUsageDetail_20' ) end [2024-12-18 08:46:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 08:46:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 08:46:21] Production.INFO: ==32241== Releasing lock... [2024-12-18 08:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 08:46:21] Production.INFO: 33.75 MB #Memory Used# [2024-12-18 08:47:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 05:47:04 [end_date_ymd] => 2024-12-18 08:47:04 [RateCDR] => 1 ) [2024-12-18 08:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 05:47:04' and `end` < '2024-12-18 08:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 08:47:17] Production.INFO: count ==725 [2024-12-18 08:47:17] Production.ERROR: pbx CDR StartTime 2024-12-18 05:47:04 - End Time 2024-12-18 08:47:04 [2024-12-18 08:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047024', 'tblTempUsageDetail_20' ) start [2024-12-18 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047024', 'tblTempUsageDetail_20' ) end [2024-12-18 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047024', 'tblTempVendorCDR_20' ) start [2024-12-18 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047024', 'tblTempVendorCDR_20' ) end [2024-12-18 08:47:17] Production.INFO: ProcessCDR(1,14047024,1,1,2) [2024-12-18 08:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047024', 'tblTempUsageDetail_20' ) start [2024-12-18 08:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047024', 'tblTempUsageDetail_20' ) end [2024-12-18 08:47:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 08:47:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 08:47:22] Production.INFO: ==32318== Releasing lock... [2024-12-18 08:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 08:47:22] Production.INFO: 33.5 MB #Memory Used# [2024-12-18 08:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 05:48:05 [end_date_ymd] => 2024-12-18 08:48:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 05:48:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 08:48:18] Production.INFO: count ==730 [2024-12-18 08:48:18] Production.ERROR: pbx CDR StartTime 2024-12-18 05:48:05 - End Time 2024-12-18 08:48:05 [2024-12-18 08:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047029', 'tblTempUsageDetail_20' ) start [2024-12-18 08:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047029', 'tblTempUsageDetail_20' ) end [2024-12-18 08:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047029', 'tblTempVendorCDR_20' ) start [2024-12-18 08:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047029', 'tblTempVendorCDR_20' ) end [2024-12-18 08:48:19] Production.INFO: ProcessCDR(1,14047029,1,1,2) [2024-12-18 08:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047029', 'tblTempUsageDetail_20' ) start [2024-12-18 08:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047029', 'tblTempUsageDetail_20' ) end [2024-12-18 08:48:23] Production.ERROR: pbx prc_insertCDR start [2024-12-18 08:48:23] Production.ERROR: pbx prc_insertCDR end [2024-12-18 08:48:23] Production.INFO: ==32399== Releasing lock... [2024-12-18 08:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 08:48:23] Production.INFO: 34 MB #Memory Used# [2024-12-18 08:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 05:49:05 [end_date_ymd] => 2024-12-18 08:49:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 05:49:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 08:49:17] Production.INFO: count ==751 [2024-12-18 08:49:17] Production.ERROR: pbx CDR StartTime 2024-12-18 05:49:05 - End Time 2024-12-18 08:49:05 [2024-12-18 08:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 08:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047034', 'tblTempUsageDetail_20' ) start [2024-12-18 08:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047034', 'tblTempUsageDetail_20' ) end [2024-12-18 08:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047034', 'tblTempVendorCDR_20' ) start [2024-12-18 08:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047034', 'tblTempVendorCDR_20' ) end [2024-12-18 08:49:17] Production.INFO: ProcessCDR(1,14047034,1,1,2) [2024-12-18 08:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047034', 'tblTempUsageDetail_20' ) start [2024-12-18 08:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047034', 'tblTempUsageDetail_20' ) end [2024-12-18 08:49:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 08:49:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 08:49:22] Production.INFO: ==32472== Releasing lock... [2024-12-18 08:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 08:49:22] Production.INFO: 34.25 MB #Memory Used# [2024-12-18 08:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 05:50:05 [end_date_ymd] => 2024-12-18 08:50:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 05:50:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 08:50:18] Production.INFO: count ==765 [2024-12-18 08:50:18] Production.ERROR: pbx CDR StartTime 2024-12-18 05:50:05 - End Time 2024-12-18 08:50:05 [2024-12-18 08:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047040', 'tblTempUsageDetail_20' ) start [2024-12-18 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047040', 'tblTempUsageDetail_20' ) end [2024-12-18 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047040', 'tblTempVendorCDR_20' ) start [2024-12-18 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047040', 'tblTempVendorCDR_20' ) end [2024-12-18 08:50:18] Production.INFO: ProcessCDR(1,14047040,1,1,2) [2024-12-18 08:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047040', 'tblTempUsageDetail_20' ) start [2024-12-18 08:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047040', 'tblTempUsageDetail_20' ) end [2024-12-18 08:50:23] Production.ERROR: pbx prc_insertCDR start [2024-12-18 08:50:23] Production.ERROR: pbx prc_insertCDR end [2024-12-18 08:50:23] Production.INFO: ==32553== Releasing lock... [2024-12-18 08:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 08:50:23] Production.INFO: 34.25 MB #Memory Used# [2024-12-18 08:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 05:51:04 [end_date_ymd] => 2024-12-18 08:51:04 [RateCDR] => 1 ) [2024-12-18 08:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 05:51:04' and `end` < '2024-12-18 08:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 08:51:17] Production.INFO: count ==793 [2024-12-18 08:51:17] Production.ERROR: pbx CDR StartTime 2024-12-18 05:51:04 - End Time 2024-12-18 08:51:04 [2024-12-18 08:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047045', 'tblTempUsageDetail_20' ) start [2024-12-18 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047045', 'tblTempUsageDetail_20' ) end [2024-12-18 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047045', 'tblTempVendorCDR_20' ) start [2024-12-18 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047045', 'tblTempVendorCDR_20' ) end [2024-12-18 08:51:17] Production.INFO: ProcessCDR(1,14047045,1,1,2) [2024-12-18 08:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047045', 'tblTempUsageDetail_20' ) start [2024-12-18 08:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047045', 'tblTempUsageDetail_20' ) end [2024-12-18 08:51:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 08:51:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 08:51:20] Production.INFO: ==32634== Releasing lock... [2024-12-18 08:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 08:51:20] Production.INFO: 34.5 MB #Memory Used# [2024-12-18 08:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 05:52:05 [end_date_ymd] => 2024-12-18 08:52:05 [RateCDR] => 1 ) [2024-12-18 08:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 05:52:05' and `end` < '2024-12-18 08:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 08:52:17] Production.INFO: count ==794 [2024-12-18 08:52:18] Production.ERROR: pbx CDR StartTime 2024-12-18 05:52:05 - End Time 2024-12-18 08:52:05 [2024-12-18 08:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047050', 'tblTempUsageDetail_20' ) start [2024-12-18 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047050', 'tblTempUsageDetail_20' ) end [2024-12-18 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047050', 'tblTempVendorCDR_20' ) start [2024-12-18 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047050', 'tblTempVendorCDR_20' ) end [2024-12-18 08:52:18] Production.INFO: ProcessCDR(1,14047050,1,1,2) [2024-12-18 08:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047050', 'tblTempUsageDetail_20' ) start [2024-12-18 08:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047050', 'tblTempUsageDetail_20' ) end [2024-12-18 08:52:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 08:52:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 08:52:21] Production.INFO: ==32708== Releasing lock... [2024-12-18 08:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 08:52:21] Production.INFO: 34.75 MB #Memory Used# [2024-12-18 08:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 05:53:05 [end_date_ymd] => 2024-12-18 08:53:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 05:53:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 08:53:17] Production.INFO: count ==804 [2024-12-18 08:53:18] Production.ERROR: pbx CDR StartTime 2024-12-18 05:53:05 - End Time 2024-12-18 08:53:05 [2024-12-18 08:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047055', 'tblTempUsageDetail_20' ) start [2024-12-18 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047055', 'tblTempUsageDetail_20' ) end [2024-12-18 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047055', 'tblTempVendorCDR_20' ) start [2024-12-18 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047055', 'tblTempVendorCDR_20' ) end [2024-12-18 08:53:18] Production.INFO: ProcessCDR(1,14047055,1,1,2) [2024-12-18 08:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047055', 'tblTempUsageDetail_20' ) start [2024-12-18 08:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047055', 'tblTempUsageDetail_20' ) end [2024-12-18 08:53:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 08:53:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 08:53:22] Production.INFO: ==374== Releasing lock... [2024-12-18 08:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 08:53:22] Production.INFO: 34.25 MB #Memory Used# [2024-12-18 08:54:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 05:54:04 [end_date_ymd] => 2024-12-18 08:54:04 [RateCDR] => 1 ) [2024-12-18 08: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` >= '2024-12-18 05:54:04' and `end` < '2024-12-18 08: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 ,'') [2024-12-18 08:54:16] Production.INFO: count ==813 [2024-12-18 08:54:17] Production.ERROR: pbx CDR StartTime 2024-12-18 05:54:04 - End Time 2024-12-18 08:54:04 [2024-12-18 08:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047060', 'tblTempUsageDetail_20' ) start [2024-12-18 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047060', 'tblTempUsageDetail_20' ) end [2024-12-18 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047060', 'tblTempVendorCDR_20' ) start [2024-12-18 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047060', 'tblTempVendorCDR_20' ) end [2024-12-18 08:54:17] Production.INFO: ProcessCDR(1,14047060,1,1,2) [2024-12-18 08:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047060', 'tblTempUsageDetail_20' ) start [2024-12-18 08:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047060', 'tblTempUsageDetail_20' ) end [2024-12-18 08:54:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 08:54:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 08:54:21] Production.INFO: ==451== Releasing lock... [2024-12-18 08:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 08:54:21] Production.INFO: 34.75 MB #Memory Used# [2024-12-18 08:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 05:55:05 [end_date_ymd] => 2024-12-18 08:55:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 05:55:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 08:55:17] Production.INFO: count ==817 [2024-12-18 08:55:17] Production.ERROR: pbx CDR StartTime 2024-12-18 05:55:05 - End Time 2024-12-18 08:55:05 [2024-12-18 08:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047065', 'tblTempUsageDetail_20' ) start [2024-12-18 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047065', 'tblTempUsageDetail_20' ) end [2024-12-18 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047065', 'tblTempVendorCDR_20' ) start [2024-12-18 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047065', 'tblTempVendorCDR_20' ) end [2024-12-18 08:55:17] Production.INFO: ProcessCDR(1,14047065,1,1,2) [2024-12-18 08:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047065', 'tblTempUsageDetail_20' ) start [2024-12-18 08:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047065', 'tblTempUsageDetail_20' ) end [2024-12-18 08:55:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 08:55:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 08:55:22] Production.INFO: ==525== Releasing lock... [2024-12-18 08:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 08:55:22] Production.INFO: 34.25 MB #Memory Used# [2024-12-18 08:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 05:56:05 [end_date_ymd] => 2024-12-18 08:56:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 05:56:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 08:56:17] Production.INFO: count ==843 [2024-12-18 08:56:17] Production.ERROR: pbx CDR StartTime 2024-12-18 05:56:05 - End Time 2024-12-18 08:56:05 [2024-12-18 08:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 08:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047070', 'tblTempUsageDetail_20' ) start [2024-12-18 08:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047070', 'tblTempUsageDetail_20' ) end [2024-12-18 08:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047070', 'tblTempVendorCDR_20' ) start [2024-12-18 08:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047070', 'tblTempVendorCDR_20' ) end [2024-12-18 08:56:17] Production.INFO: ProcessCDR(1,14047070,1,1,2) [2024-12-18 08:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047070', 'tblTempUsageDetail_20' ) start [2024-12-18 08:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047070', 'tblTempUsageDetail_20' ) end [2024-12-18 08:56:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 08:56:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 08:56:20] Production.INFO: ==608== Releasing lock... [2024-12-18 08:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 08:56:20] Production.INFO: 34.75 MB #Memory Used# [2024-12-18 08:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 05:57:05 [end_date_ymd] => 2024-12-18 08:57:05 [RateCDR] => 1 ) [2024-12-18 08:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 05:57:05' and `end` < '2024-12-18 08:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 08:57:17] Production.INFO: count ==852 [2024-12-18 08:57:17] Production.ERROR: pbx CDR StartTime 2024-12-18 05:57:05 - End Time 2024-12-18 08:57:05 [2024-12-18 08:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047075', 'tblTempUsageDetail_20' ) start [2024-12-18 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047075', 'tblTempUsageDetail_20' ) end [2024-12-18 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047075', 'tblTempVendorCDR_20' ) start [2024-12-18 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047075', 'tblTempVendorCDR_20' ) end [2024-12-18 08:57:17] Production.INFO: ProcessCDR(1,14047075,1,1,2) [2024-12-18 08:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047075', 'tblTempUsageDetail_20' ) start [2024-12-18 08:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047075', 'tblTempUsageDetail_20' ) end [2024-12-18 08:57:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 08:57:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 08:57:22] Production.INFO: ==709== Releasing lock... [2024-12-18 08:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 08:57:22] Production.INFO: 34.5 MB #Memory Used# [2024-12-18 08:58:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 05:58:04 [end_date_ymd] => 2024-12-18 08:58:04 [RateCDR] => 1 ) [2024-12-18 08: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` >= '2024-12-18 05:58:04' and `end` < '2024-12-18 08: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 ,'') [2024-12-18 08:58:16] Production.INFO: count ==865 [2024-12-18 08:58:16] Production.ERROR: pbx CDR StartTime 2024-12-18 05:58:04 - End Time 2024-12-18 08:58:04 [2024-12-18 08:58:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 08:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047079', 'tblTempUsageDetail_20' ) start [2024-12-18 08:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047079', 'tblTempUsageDetail_20' ) end [2024-12-18 08:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047079', 'tblTempVendorCDR_20' ) start [2024-12-18 08:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047079', 'tblTempVendorCDR_20' ) end [2024-12-18 08:58:16] Production.INFO: ProcessCDR(1,14047079,1,1,2) [2024-12-18 08:58:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047079', 'tblTempUsageDetail_20' ) start [2024-12-18 08:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047079', 'tblTempUsageDetail_20' ) end [2024-12-18 08:58:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 08:58:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 08:58:20] Production.INFO: ==785== Releasing lock... [2024-12-18 08:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 08:58:20] Production.INFO: 35.25 MB #Memory Used# [2024-12-18 08:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 05:59:05 [end_date_ymd] => 2024-12-18 08:59:05 [RateCDR] => 1 ) [2024-12-18 08:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 05:59:05' and `end` < '2024-12-18 08:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 08:59:17] Production.INFO: count ==870 [2024-12-18 08:59:17] Production.ERROR: pbx CDR StartTime 2024-12-18 05:59:05 - End Time 2024-12-18 08:59:05 [2024-12-18 08:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047085', 'tblTempUsageDetail_20' ) start [2024-12-18 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047085', 'tblTempUsageDetail_20' ) end [2024-12-18 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047085', 'tblTempVendorCDR_20' ) start [2024-12-18 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047085', 'tblTempVendorCDR_20' ) end [2024-12-18 08:59:17] Production.INFO: ProcessCDR(1,14047085,1,1,2) [2024-12-18 08:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 08:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 08:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047085', 'tblTempUsageDetail_20' ) start [2024-12-18 08:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047085', 'tblTempUsageDetail_20' ) end [2024-12-18 08:59:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 08:59:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 08:59:20] Production.INFO: ==857== Releasing lock... [2024-12-18 08:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 08:59:20] Production.INFO: 34.75 MB #Memory Used# [2024-12-18 09:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 06:00:05 [end_date_ymd] => 2024-12-18 09:00:05 [RateCDR] => 1 ) [2024-12-18 09:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 06:00:05' and `end` < '2024-12-18 09:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 09:00:17] Production.INFO: count ==875 [2024-12-18 09:00:18] Production.ERROR: pbx CDR StartTime 2024-12-18 06:00:05 - End Time 2024-12-18 09:00:05 [2024-12-18 09:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047091', 'tblTempUsageDetail_20' ) start [2024-12-18 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047091', 'tblTempUsageDetail_20' ) end [2024-12-18 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047091', 'tblTempVendorCDR_20' ) start [2024-12-18 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047091', 'tblTempVendorCDR_20' ) end [2024-12-18 09:00:18] Production.INFO: ProcessCDR(1,14047091,1,1,2) [2024-12-18 09:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047091', 'tblTempUsageDetail_20' ) start [2024-12-18 09:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047091', 'tblTempUsageDetail_20' ) end [2024-12-18 09:00:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 09:00:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 09:00:21] Production.INFO: ==931== Releasing lock... [2024-12-18 09:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 09:00:21] Production.INFO: 35 MB #Memory Used# [2024-12-18 09:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 06:01:05 [end_date_ymd] => 2024-12-18 09:01:05 [RateCDR] => 1 ) [2024-12-18 09:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 06:01:05' and `end` < '2024-12-18 09:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 09:01:17] Production.INFO: count ==899 [2024-12-18 09:01:17] Production.ERROR: pbx CDR StartTime 2024-12-18 06:01:05 - End Time 2024-12-18 09:01:05 [2024-12-18 09:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 09:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047096', 'tblTempUsageDetail_20' ) start [2024-12-18 09:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047096', 'tblTempUsageDetail_20' ) end [2024-12-18 09:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047096', 'tblTempVendorCDR_20' ) start [2024-12-18 09:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047096', 'tblTempVendorCDR_20' ) end [2024-12-18 09:01:17] Production.INFO: ProcessCDR(1,14047096,1,1,2) [2024-12-18 09:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047096', 'tblTempUsageDetail_20' ) start [2024-12-18 09:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047096', 'tblTempUsageDetail_20' ) end [2024-12-18 09:01:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 09:01:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 09:01:22] Production.INFO: ==1023== Releasing lock... [2024-12-18 09:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 09:01:22] Production.INFO: 35 MB #Memory Used# [2024-12-18 09:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 06:02:05 [end_date_ymd] => 2024-12-18 09:02:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 06:02:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 09:02:18] Production.INFO: count ==907 [2024-12-18 09:02:18] Production.ERROR: pbx CDR StartTime 2024-12-18 06:02:05 - End Time 2024-12-18 09:02:05 [2024-12-18 09:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047101', 'tblTempUsageDetail_20' ) start [2024-12-18 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047101', 'tblTempUsageDetail_20' ) end [2024-12-18 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047101', 'tblTempVendorCDR_20' ) start [2024-12-18 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047101', 'tblTempVendorCDR_20' ) end [2024-12-18 09:02:18] Production.INFO: ProcessCDR(1,14047101,1,1,2) [2024-12-18 09:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047101', 'tblTempUsageDetail_20' ) start [2024-12-18 09:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047101', 'tblTempUsageDetail_20' ) end [2024-12-18 09:02:23] Production.ERROR: pbx prc_insertCDR start [2024-12-18 09:02:23] Production.ERROR: pbx prc_insertCDR end [2024-12-18 09:02:23] Production.INFO: ==1098== Releasing lock... [2024-12-18 09:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 09:02:23] Production.INFO: 35 MB #Memory Used# [2024-12-18 09:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 06:03:05 [end_date_ymd] => 2024-12-18 09:03:05 [RateCDR] => 1 ) [2024-12-18 09:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 06:03:05' and `end` < '2024-12-18 09:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 09:03:17] Production.INFO: count ==930 [2024-12-18 09:03:17] Production.ERROR: pbx CDR StartTime 2024-12-18 06:03:05 - End Time 2024-12-18 09:03:05 [2024-12-18 09:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047106', 'tblTempUsageDetail_20' ) start [2024-12-18 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047106', 'tblTempUsageDetail_20' ) end [2024-12-18 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047106', 'tblTempVendorCDR_20' ) start [2024-12-18 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047106', 'tblTempVendorCDR_20' ) end [2024-12-18 09:03:17] Production.INFO: ProcessCDR(1,14047106,1,1,2) [2024-12-18 09:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047106', 'tblTempUsageDetail_20' ) start [2024-12-18 09:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047106', 'tblTempUsageDetail_20' ) end [2024-12-18 09:03:23] Production.ERROR: pbx prc_insertCDR start [2024-12-18 09:03:23] Production.ERROR: pbx prc_insertCDR end [2024-12-18 09:03:23] Production.INFO: ==1179== Releasing lock... [2024-12-18 09:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 09:03:23] Production.INFO: 35.5 MB #Memory Used# [2024-12-18 09:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 06:04:05 [end_date_ymd] => 2024-12-18 09:04:05 [RateCDR] => 1 ) [2024-12-18 09:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 06:04:05' and `end` < '2024-12-18 09:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 09:04:17] Production.INFO: count ==948 [2024-12-18 09:04:17] Production.ERROR: pbx CDR StartTime 2024-12-18 06:04:05 - End Time 2024-12-18 09:04:05 [2024-12-18 09:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 09:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047111', 'tblTempUsageDetail_20' ) start [2024-12-18 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047111', 'tblTempUsageDetail_20' ) end [2024-12-18 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047111', 'tblTempVendorCDR_20' ) start [2024-12-18 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047111', 'tblTempVendorCDR_20' ) end [2024-12-18 09:04:18] Production.INFO: ProcessCDR(1,14047111,1,1,2) [2024-12-18 09:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047111', 'tblTempUsageDetail_20' ) start [2024-12-18 09:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047111', 'tblTempUsageDetail_20' ) end [2024-12-18 09:04:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 09:04:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 09:04:21] Production.INFO: ==1263== Releasing lock... [2024-12-18 09:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 09:04:21] Production.INFO: 36 MB #Memory Used# [2024-12-18 09:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 06:05:05 [end_date_ymd] => 2024-12-18 09:05:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 06:05:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 09:05:17] Production.INFO: count ==966 [2024-12-18 09:05:17] Production.ERROR: pbx CDR StartTime 2024-12-18 06:05:05 - End Time 2024-12-18 09:05:05 [2024-12-18 09:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 09:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047116', 'tblTempUsageDetail_20' ) start [2024-12-18 09:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047116', 'tblTempUsageDetail_20' ) end [2024-12-18 09:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047116', 'tblTempVendorCDR_20' ) start [2024-12-18 09:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047116', 'tblTempVendorCDR_20' ) end [2024-12-18 09:05:17] Production.INFO: ProcessCDR(1,14047116,1,1,2) [2024-12-18 09:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047116', 'tblTempUsageDetail_20' ) start [2024-12-18 09:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047116', 'tblTempUsageDetail_20' ) end [2024-12-18 09:05:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 09:05:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 09:05:22] Production.INFO: ==1337== Releasing lock... [2024-12-18 09:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 09:05:22] Production.INFO: 36 MB #Memory Used# [2024-12-18 09:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 06:06:05 [end_date_ymd] => 2024-12-18 09:06:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 06:06:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 09:06:18] Production.INFO: count ==997 [2024-12-18 09:06:18] Production.ERROR: pbx CDR StartTime 2024-12-18 06:06:05 - End Time 2024-12-18 09:06:05 [2024-12-18 09:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047121', 'tblTempUsageDetail_20' ) start [2024-12-18 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047121', 'tblTempUsageDetail_20' ) end [2024-12-18 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047121', 'tblTempVendorCDR_20' ) start [2024-12-18 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047121', 'tblTempVendorCDR_20' ) end [2024-12-18 09:06:18] Production.INFO: ProcessCDR(1,14047121,1,1,2) [2024-12-18 09:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047121', 'tblTempUsageDetail_20' ) start [2024-12-18 09:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047121', 'tblTempUsageDetail_20' ) end [2024-12-18 09:06:23] Production.ERROR: pbx prc_insertCDR start [2024-12-18 09:06:23] Production.ERROR: pbx prc_insertCDR end [2024-12-18 09:06:23] Production.INFO: ==1406== Releasing lock... [2024-12-18 09:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 09:06:23] Production.INFO: 36 MB #Memory Used# [2024-12-18 09:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 06:07:04 [end_date_ymd] => 2024-12-18 09:07:04 [RateCDR] => 1 ) [2024-12-18 09:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 06:07:04' and `end` < '2024-12-18 09: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 ,'') [2024-12-18 09:07:17] Production.INFO: count ==1006 [2024-12-18 09:07:17] Production.ERROR: pbx CDR StartTime 2024-12-18 06:07:04 - End Time 2024-12-18 09:07:04 [2024-12-18 09:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 09:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047126', 'tblTempUsageDetail_20' ) start [2024-12-18 09:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047126', 'tblTempUsageDetail_20' ) end [2024-12-18 09:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047126', 'tblTempVendorCDR_20' ) start [2024-12-18 09:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047126', 'tblTempVendorCDR_20' ) end [2024-12-18 09:07:17] Production.INFO: ProcessCDR(1,14047126,1,1,2) [2024-12-18 09:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047126', 'tblTempUsageDetail_20' ) start [2024-12-18 09:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047126', 'tblTempUsageDetail_20' ) end [2024-12-18 09:07:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 09:07:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 09:07:22] Production.INFO: ==1476== Releasing lock... [2024-12-18 09:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 09:07:22] Production.INFO: 36 MB #Memory Used# [2024-12-18 09:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 06:08:05 [end_date_ymd] => 2024-12-18 09:08:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 06:08:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 09:08:19] Production.INFO: count ==1042 [2024-12-18 09:08:19] Production.ERROR: pbx CDR StartTime 2024-12-18 06:08:05 - End Time 2024-12-18 09:08:05 [2024-12-18 09:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047131', 'tblTempUsageDetail_20' ) start [2024-12-18 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047131', 'tblTempUsageDetail_20' ) end [2024-12-18 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047131', 'tblTempVendorCDR_20' ) start [2024-12-18 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047131', 'tblTempVendorCDR_20' ) end [2024-12-18 09:08:19] Production.INFO: ProcessCDR(1,14047131,1,1,2) [2024-12-18 09:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047131', 'tblTempUsageDetail_20' ) start [2024-12-18 09:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047131', 'tblTempUsageDetail_20' ) end [2024-12-18 09:08:24] Production.ERROR: pbx prc_insertCDR start [2024-12-18 09:08:24] Production.ERROR: pbx prc_insertCDR end [2024-12-18 09:08:24] Production.INFO: ==1583== Releasing lock... [2024-12-18 09:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 09:08:24] Production.INFO: 36.5 MB #Memory Used# [2024-12-18 09:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 06:09:04 [end_date_ymd] => 2024-12-18 09:09:04 [RateCDR] => 1 ) [2024-12-18 09:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 06:09:04' and `end` < '2024-12-18 09:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 09:09:17] Production.INFO: count ==1070 [2024-12-18 09:09:17] Production.ERROR: pbx CDR StartTime 2024-12-18 06:09:04 - End Time 2024-12-18 09:09:04 [2024-12-18 09:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 09:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047136', 'tblTempUsageDetail_20' ) start [2024-12-18 09:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047136', 'tblTempUsageDetail_20' ) end [2024-12-18 09:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047136', 'tblTempVendorCDR_20' ) start [2024-12-18 09:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047136', 'tblTempVendorCDR_20' ) end [2024-12-18 09:09:17] Production.INFO: ProcessCDR(1,14047136,1,1,2) [2024-12-18 09:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047136', 'tblTempUsageDetail_20' ) start [2024-12-18 09:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047136', 'tblTempUsageDetail_20' ) end [2024-12-18 09:09:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 09:09:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 09:09:21] Production.INFO: ==1699== Releasing lock... [2024-12-18 09:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 09:09:21] Production.INFO: 36.5 MB #Memory Used# [2024-12-18 09:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 06:10:05 [end_date_ymd] => 2024-12-18 09:10:05 [RateCDR] => 1 ) [2024-12-18 09:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 06:10:05' and `end` < '2024-12-18 09:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 09:10:18] Production.INFO: count ==1090 [2024-12-18 09:10:18] Production.ERROR: pbx CDR StartTime 2024-12-18 06:10:05 - End Time 2024-12-18 09:10:05 [2024-12-18 09:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047142', 'tblTempUsageDetail_20' ) start [2024-12-18 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047142', 'tblTempUsageDetail_20' ) end [2024-12-18 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047142', 'tblTempVendorCDR_20' ) start [2024-12-18 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047142', 'tblTempVendorCDR_20' ) end [2024-12-18 09:10:18] Production.INFO: ProcessCDR(1,14047142,1,1,2) [2024-12-18 09:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047142', 'tblTempUsageDetail_20' ) start [2024-12-18 09:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047142', 'tblTempUsageDetail_20' ) end [2024-12-18 09:10:23] Production.ERROR: pbx prc_insertCDR start [2024-12-18 09:10:23] Production.ERROR: pbx prc_insertCDR end [2024-12-18 09:10:23] Production.INFO: ==1773== Releasing lock... [2024-12-18 09:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 09:10:23] Production.INFO: 36.75 MB #Memory Used# [2024-12-18 09:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 06:11:04 [end_date_ymd] => 2024-12-18 09:11:04 [RateCDR] => 1 ) [2024-12-18 09:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 06:11:04' and `end` < '2024-12-18 09:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 09:11:16] Production.INFO: count ==1161 [2024-12-18 09:11:17] Production.ERROR: pbx CDR StartTime 2024-12-18 06:11:04 - End Time 2024-12-18 09:11:04 [2024-12-18 09:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 09:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047147', 'tblTempUsageDetail_20' ) start [2024-12-18 09:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047147', 'tblTempUsageDetail_20' ) end [2024-12-18 09:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047147', 'tblTempVendorCDR_20' ) start [2024-12-18 09:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047147', 'tblTempVendorCDR_20' ) end [2024-12-18 09:11:17] Production.INFO: ProcessCDR(1,14047147,1,1,2) [2024-12-18 09:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047147', 'tblTempUsageDetail_20' ) start [2024-12-18 09:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047147', 'tblTempUsageDetail_20' ) end [2024-12-18 09:11:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 09:11:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 09:11:21] Production.INFO: ==1854== Releasing lock... [2024-12-18 09:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 09:11:21] Production.INFO: 37.5 MB #Memory Used# [2024-12-18 09:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 06:12:05 [end_date_ymd] => 2024-12-18 09:12:05 [RateCDR] => 1 ) [2024-12-18 09:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 06:12:05' and `end` < '2024-12-18 09:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 09:12:17] Production.INFO: count ==1187 [2024-12-18 09:12:17] Production.ERROR: pbx CDR StartTime 2024-12-18 06:12:05 - End Time 2024-12-18 09:12:05 [2024-12-18 09:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 09:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047152', 'tblTempUsageDetail_20' ) start [2024-12-18 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047152', 'tblTempUsageDetail_20' ) end [2024-12-18 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047152', 'tblTempVendorCDR_20' ) start [2024-12-18 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047152', 'tblTempVendorCDR_20' ) end [2024-12-18 09:12:18] Production.INFO: ProcessCDR(1,14047152,1,1,2) [2024-12-18 09:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047152', 'tblTempUsageDetail_20' ) start [2024-12-18 09:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047152', 'tblTempUsageDetail_20' ) end [2024-12-18 09:12:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 09:12:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 09:12:22] Production.INFO: ==1927== Releasing lock... [2024-12-18 09:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 09:12:22] Production.INFO: 37.75 MB #Memory Used# [2024-12-18 09:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 06:13:05 [end_date_ymd] => 2024-12-18 09:13:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 06:13:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 09:13:17] Production.INFO: count ==1200 [2024-12-18 09:13:18] Production.ERROR: pbx CDR StartTime 2024-12-18 06:13:05 - End Time 2024-12-18 09:13:05 [2024-12-18 09:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047157', 'tblTempUsageDetail_20' ) start [2024-12-18 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047157', 'tblTempUsageDetail_20' ) end [2024-12-18 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047157', 'tblTempVendorCDR_20' ) start [2024-12-18 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047157', 'tblTempVendorCDR_20' ) end [2024-12-18 09:13:18] Production.INFO: ProcessCDR(1,14047157,1,1,2) [2024-12-18 09:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047157', 'tblTempUsageDetail_20' ) start [2024-12-18 09:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047157', 'tblTempUsageDetail_20' ) end [2024-12-18 09:13:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 09:13:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 09:13:21] Production.INFO: ==1999== Releasing lock... [2024-12-18 09:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 09:13:21] Production.INFO: 37.25 MB #Memory Used# [2024-12-18 09:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 06:14:05 [end_date_ymd] => 2024-12-18 09:14:05 [RateCDR] => 1 ) [2024-12-18 09: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` >= '2024-12-18 06:14:05' and `end` < '2024-12-18 09: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 ,'') [2024-12-18 09:14:17] Production.INFO: count ==1205 [2024-12-18 09:14:18] Production.ERROR: pbx CDR StartTime 2024-12-18 06:14:05 - End Time 2024-12-18 09:14:05 [2024-12-18 09:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047161', 'tblTempUsageDetail_20' ) start [2024-12-18 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047161', 'tblTempUsageDetail_20' ) end [2024-12-18 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047161', 'tblTempVendorCDR_20' ) start [2024-12-18 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047161', 'tblTempVendorCDR_20' ) end [2024-12-18 09:14:18] Production.INFO: ProcessCDR(1,14047161,1,1,2) [2024-12-18 09:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047161', 'tblTempUsageDetail_20' ) start [2024-12-18 09:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047161', 'tblTempUsageDetail_20' ) end [2024-12-18 09:14:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 09:14:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 09:14:21] Production.INFO: ==2072== Releasing lock... [2024-12-18 09:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 09:14:21] Production.INFO: 37.5 MB #Memory Used# [2024-12-18 09:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 06:15:05 [end_date_ymd] => 2024-12-18 09:15:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 06:15:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 09:15:17] Production.INFO: count ==1224 [2024-12-18 09:15:18] Production.ERROR: pbx CDR StartTime 2024-12-18 06:15:05 - End Time 2024-12-18 09:15:05 [2024-12-18 09:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047165', 'tblTempUsageDetail_20' ) start [2024-12-18 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047165', 'tblTempUsageDetail_20' ) end [2024-12-18 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047165', 'tblTempVendorCDR_20' ) start [2024-12-18 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047165', 'tblTempVendorCDR_20' ) end [2024-12-18 09:15:18] Production.INFO: ProcessCDR(1,14047165,1,1,2) [2024-12-18 09:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047165', 'tblTempUsageDetail_20' ) start [2024-12-18 09:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047165', 'tblTempUsageDetail_20' ) end [2024-12-18 09:15:23] Production.ERROR: pbx prc_insertCDR start [2024-12-18 09:15:23] Production.ERROR: pbx prc_insertCDR end [2024-12-18 09:15:23] Production.INFO: ==2149== Releasing lock... [2024-12-18 09:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 09:15:23] Production.INFO: 37.75 MB #Memory Used# [2024-12-18 09:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 06:16:05 [end_date_ymd] => 2024-12-18 09:16:05 [RateCDR] => 1 ) [2024-12-18 09:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 06:16:05' and `end` < '2024-12-18 09:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 09:16:17] Production.INFO: count ==1239 [2024-12-18 09:16:18] Production.ERROR: pbx CDR StartTime 2024-12-18 06:16:05 - End Time 2024-12-18 09:16:05 [2024-12-18 09:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047172', 'tblTempUsageDetail_20' ) start [2024-12-18 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047172', 'tblTempUsageDetail_20' ) end [2024-12-18 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047172', 'tblTempVendorCDR_20' ) start [2024-12-18 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047172', 'tblTempVendorCDR_20' ) end [2024-12-18 09:16:18] Production.INFO: ProcessCDR(1,14047172,1,1,2) [2024-12-18 09:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047172', 'tblTempUsageDetail_20' ) start [2024-12-18 09:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047172', 'tblTempUsageDetail_20' ) end [2024-12-18 09:16:23] Production.ERROR: pbx prc_insertCDR start [2024-12-18 09:16:23] Production.ERROR: pbx prc_insertCDR end [2024-12-18 09:16:23] Production.INFO: ==2226== Releasing lock... [2024-12-18 09:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 09:16:23] Production.INFO: 38 MB #Memory Used# [2024-12-18 09:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 06:17:05 [end_date_ymd] => 2024-12-18 09:17:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 06:17:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 09:17:17] Production.INFO: count ==1245 [2024-12-18 09:17:18] Production.ERROR: pbx CDR StartTime 2024-12-18 06:17:05 - End Time 2024-12-18 09:17:05 [2024-12-18 09:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047176', 'tblTempUsageDetail_20' ) start [2024-12-18 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047176', 'tblTempUsageDetail_20' ) end [2024-12-18 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047176', 'tblTempVendorCDR_20' ) start [2024-12-18 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047176', 'tblTempVendorCDR_20' ) end [2024-12-18 09:17:18] Production.INFO: ProcessCDR(1,14047176,1,1,2) [2024-12-18 09:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047176', 'tblTempUsageDetail_20' ) start [2024-12-18 09:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047176', 'tblTempUsageDetail_20' ) end [2024-12-18 09:17:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 09:17:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 09:17:22] Production.INFO: ==2301== Releasing lock... [2024-12-18 09:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 09:17:22] Production.INFO: 37.75 MB #Memory Used# [2024-12-18 09:18:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 06:18:04 [end_date_ymd] => 2024-12-18 09:18:04 [RateCDR] => 1 ) [2024-12-18 09:18: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` >= '2024-12-18 06:18:04' and `end` < '2024-12-18 09:18: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 ,'') [2024-12-18 09:18:18] Production.INFO: count ==1296 [2024-12-18 09:18:19] Production.ERROR: pbx CDR StartTime 2024-12-18 06:18:04 - End Time 2024-12-18 09:18:04 [2024-12-18 09:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047182', 'tblTempUsageDetail_20' ) start [2024-12-18 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047182', 'tblTempUsageDetail_20' ) end [2024-12-18 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047182', 'tblTempVendorCDR_20' ) start [2024-12-18 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047182', 'tblTempVendorCDR_20' ) end [2024-12-18 09:18:19] Production.INFO: ProcessCDR(1,14047182,1,1,2) [2024-12-18 09:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047182', 'tblTempUsageDetail_20' ) start [2024-12-18 09:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047182', 'tblTempUsageDetail_20' ) end [2024-12-18 09:18:24] Production.ERROR: pbx prc_insertCDR start [2024-12-18 09:18:24] Production.ERROR: pbx prc_insertCDR end [2024-12-18 09:18:24] Production.INFO: ==2382== Releasing lock... [2024-12-18 09:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 09:18:24] Production.INFO: 38 MB #Memory Used# [2024-12-18 09:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 06:19:05 [end_date_ymd] => 2024-12-18 09:19:05 [RateCDR] => 1 ) [2024-12-18 09:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 06:19:05' and `end` < '2024-12-18 09:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 09:19:18] Production.INFO: count ==1325 [2024-12-18 09:19:18] Production.ERROR: pbx CDR StartTime 2024-12-18 06:19:05 - End Time 2024-12-18 09:19:05 [2024-12-18 09:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 09:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047187', 'tblTempUsageDetail_20' ) start [2024-12-18 09:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047187', 'tblTempUsageDetail_20' ) end [2024-12-18 09:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047187', 'tblTempVendorCDR_20' ) start [2024-12-18 09:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047187', 'tblTempVendorCDR_20' ) end [2024-12-18 09:19:19] Production.INFO: ProcessCDR(1,14047187,1,1,2) [2024-12-18 09:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047187', 'tblTempUsageDetail_20' ) start [2024-12-18 09:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047187', 'tblTempUsageDetail_20' ) end [2024-12-18 09:19:24] Production.ERROR: pbx prc_insertCDR start [2024-12-18 09:19:24] Production.ERROR: pbx prc_insertCDR end [2024-12-18 09:19:24] Production.INFO: ==2457== Releasing lock... [2024-12-18 09:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 09:19:24] Production.INFO: 38 MB #Memory Used# [2024-12-18 09:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 06:20:05 [end_date_ymd] => 2024-12-18 09:20:05 [RateCDR] => 1 ) [2024-12-18 09: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` >= '2024-12-18 06:20:05' and `end` < '2024-12-18 09: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 ,'') [2024-12-18 09:20:19] Production.INFO: count ==1351 [2024-12-18 09:20:19] Production.ERROR: pbx CDR StartTime 2024-12-18 06:20:05 - End Time 2024-12-18 09:20:05 [2024-12-18 09:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047192', 'tblTempUsageDetail_20' ) start [2024-12-18 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047192', 'tblTempUsageDetail_20' ) end [2024-12-18 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047192', 'tblTempVendorCDR_20' ) start [2024-12-18 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047192', 'tblTempVendorCDR_20' ) end [2024-12-18 09:20:19] Production.INFO: ProcessCDR(1,14047192,1,1,2) [2024-12-18 09:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047192', 'tblTempUsageDetail_20' ) start [2024-12-18 09:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047192', 'tblTempUsageDetail_20' ) end [2024-12-18 09:20:24] Production.ERROR: pbx prc_insertCDR start [2024-12-18 09:20:24] Production.ERROR: pbx prc_insertCDR end [2024-12-18 09:20:24] Production.INFO: ==2533== Releasing lock... [2024-12-18 09:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 09:20:24] Production.INFO: 38.25 MB #Memory Used# [2024-12-18 09:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 06:21:04 [end_date_ymd] => 2024-12-18 09:21:04 [RateCDR] => 1 ) [2024-12-18 09:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 06:21:04' and `end` < '2024-12-18 09:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 09:21:18] Production.INFO: count ==1435 [2024-12-18 09:21:18] Production.ERROR: pbx CDR StartTime 2024-12-18 06:21:04 - End Time 2024-12-18 09:21:04 [2024-12-18 09:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047198', 'tblTempUsageDetail_20' ) start [2024-12-18 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047198', 'tblTempUsageDetail_20' ) end [2024-12-18 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047198', 'tblTempVendorCDR_20' ) start [2024-12-18 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047198', 'tblTempVendorCDR_20' ) end [2024-12-18 09:21:18] Production.INFO: ProcessCDR(1,14047198,1,1,2) [2024-12-18 09:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047198', 'tblTempUsageDetail_20' ) start [2024-12-18 09:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047198', 'tblTempUsageDetail_20' ) end [2024-12-18 09:21:23] Production.ERROR: pbx prc_insertCDR start [2024-12-18 09:21:23] Production.ERROR: pbx prc_insertCDR end [2024-12-18 09:21:23] Production.INFO: ==2613== Releasing lock... [2024-12-18 09:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 09:21:23] Production.INFO: 38.75 MB #Memory Used# [2024-12-18 09:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 06:22:05 [end_date_ymd] => 2024-12-18 09:22:05 [RateCDR] => 1 ) [2024-12-18 09:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 06:22:05' and `end` < '2024-12-18 09:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 09:22:18] Production.INFO: count ==1443 [2024-12-18 09:22:18] Production.ERROR: pbx CDR StartTime 2024-12-18 06:22:05 - End Time 2024-12-18 09:22:05 [2024-12-18 09:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047203', 'tblTempUsageDetail_20' ) start [2024-12-18 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047203', 'tblTempUsageDetail_20' ) end [2024-12-18 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047203', 'tblTempVendorCDR_20' ) start [2024-12-18 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047203', 'tblTempVendorCDR_20' ) end [2024-12-18 09:22:18] Production.INFO: ProcessCDR(1,14047203,1,1,2) [2024-12-18 09:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047203', 'tblTempUsageDetail_20' ) start [2024-12-18 09:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047203', 'tblTempUsageDetail_20' ) end [2024-12-18 09:22:23] Production.ERROR: pbx prc_insertCDR start [2024-12-18 09:22:23] Production.ERROR: pbx prc_insertCDR end [2024-12-18 09:22:23] Production.INFO: ==2687== Releasing lock... [2024-12-18 09:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 09:22:23] Production.INFO: 38.5 MB #Memory Used# [2024-12-18 09:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 06:23:05 [end_date_ymd] => 2024-12-18 09:23:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 06:23:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 09:23:17] Production.INFO: count ==1457 [2024-12-18 09:23:18] Production.ERROR: pbx CDR StartTime 2024-12-18 06:23:05 - End Time 2024-12-18 09:23:05 [2024-12-18 09:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047208', 'tblTempUsageDetail_20' ) start [2024-12-18 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047208', 'tblTempUsageDetail_20' ) end [2024-12-18 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047208', 'tblTempVendorCDR_20' ) start [2024-12-18 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047208', 'tblTempVendorCDR_20' ) end [2024-12-18 09:23:18] Production.INFO: ProcessCDR(1,14047208,1,1,2) [2024-12-18 09:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047208', 'tblTempUsageDetail_20' ) start [2024-12-18 09:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047208', 'tblTempUsageDetail_20' ) end [2024-12-18 09:23:23] Production.ERROR: pbx prc_insertCDR start [2024-12-18 09:23:23] Production.ERROR: pbx prc_insertCDR end [2024-12-18 09:23:23] Production.INFO: ==2763== Releasing lock... [2024-12-18 09:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 09:23:23] Production.INFO: 39 MB #Memory Used# [2024-12-18 09:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 06:24:05 [end_date_ymd] => 2024-12-18 09:24:05 [RateCDR] => 1 ) [2024-12-18 09:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 06:24:05' and `end` < '2024-12-18 09:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 09:24:23] Production.INFO: count ==1476 [2024-12-18 09:24:23] Production.ERROR: pbx CDR StartTime 2024-12-18 06:24:05 - End Time 2024-12-18 09:24:05 [2024-12-18 09:24:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 09:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047213', 'tblTempUsageDetail_20' ) start [2024-12-18 09:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047213', 'tblTempUsageDetail_20' ) end [2024-12-18 09:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047213', 'tblTempVendorCDR_20' ) start [2024-12-18 09:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047213', 'tblTempVendorCDR_20' ) end [2024-12-18 09:24:23] Production.INFO: ProcessCDR(1,14047213,1,1,2) [2024-12-18 09:24:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:24:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:24:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:24:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047213', 'tblTempUsageDetail_20' ) start [2024-12-18 09:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047213', 'tblTempUsageDetail_20' ) end [2024-12-18 09:24:28] Production.ERROR: pbx prc_insertCDR start [2024-12-18 09:24:28] Production.ERROR: pbx prc_insertCDR end [2024-12-18 09:24:28] Production.INFO: ==2840== Releasing lock... [2024-12-18 09:24:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 09:24:28] Production.INFO: 39.25 MB #Memory Used# [2024-12-18 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 06:25:05 [end_date_ymd] => 2024-12-18 09:25:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 06:25:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 09:25:23] Production.INFO: count ==1484 [2024-12-18 09:25:24] Production.ERROR: pbx CDR StartTime 2024-12-18 06:25:05 - End Time 2024-12-18 09:25:05 [2024-12-18 09:25:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 09:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047218', 'tblTempUsageDetail_20' ) start [2024-12-18 09:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047218', 'tblTempUsageDetail_20' ) end [2024-12-18 09:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047218', 'tblTempVendorCDR_20' ) start [2024-12-18 09:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047218', 'tblTempVendorCDR_20' ) end [2024-12-18 09:25:24] Production.INFO: ProcessCDR(1,14047218,1,1,2) [2024-12-18 09:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047218', 'tblTempUsageDetail_20' ) start [2024-12-18 09:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047218', 'tblTempUsageDetail_20' ) end [2024-12-18 09:25:28] Production.ERROR: pbx prc_insertCDR start [2024-12-18 09:25:28] Production.ERROR: pbx prc_insertCDR end [2024-12-18 09:25:28] Production.INFO: ==2952== Releasing lock... [2024-12-18 09:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 09:25:28] Production.INFO: 39.25 MB #Memory Used# [2024-12-18 09:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 06:26:05 [end_date_ymd] => 2024-12-18 09:26:05 [RateCDR] => 1 ) [2024-12-18 09:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 06:26:05' and `end` < '2024-12-18 09:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 09:26:22] Production.INFO: count ==1499 [2024-12-18 09:26:22] Production.ERROR: pbx CDR StartTime 2024-12-18 06:26:05 - End Time 2024-12-18 09:26:05 [2024-12-18 09:26:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 09:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047223', 'tblTempUsageDetail_20' ) start [2024-12-18 09:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047223', 'tblTempUsageDetail_20' ) end [2024-12-18 09:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047223', 'tblTempVendorCDR_20' ) start [2024-12-18 09:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047223', 'tblTempVendorCDR_20' ) end [2024-12-18 09:26:22] Production.INFO: ProcessCDR(1,14047223,1,1,2) [2024-12-18 09:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047223', 'tblTempUsageDetail_20' ) start [2024-12-18 09:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047223', 'tblTempUsageDetail_20' ) end [2024-12-18 09:26:27] Production.ERROR: pbx prc_insertCDR start [2024-12-18 09:26:27] Production.ERROR: pbx prc_insertCDR end [2024-12-18 09:26:27] Production.INFO: ==3029== Releasing lock... [2024-12-18 09:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 09:26:27] Production.INFO: 39.25 MB #Memory Used# [2024-12-18 09:27:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 06:27:04 [end_date_ymd] => 2024-12-18 09:27:04 [RateCDR] => 1 ) [2024-12-18 09:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 06:27:04' and `end` < '2024-12-18 09:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 09:27:16] Production.INFO: count ==1519 [2024-12-18 09:27:17] Production.ERROR: pbx CDR StartTime 2024-12-18 06:27:04 - End Time 2024-12-18 09:27:04 [2024-12-18 09:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 09:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047228', 'tblTempUsageDetail_20' ) start [2024-12-18 09:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047228', 'tblTempUsageDetail_20' ) end [2024-12-18 09:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047228', 'tblTempVendorCDR_20' ) start [2024-12-18 09:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047228', 'tblTempVendorCDR_20' ) end [2024-12-18 09:27:17] Production.INFO: ProcessCDR(1,14047228,1,1,2) [2024-12-18 09:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047228', 'tblTempUsageDetail_20' ) start [2024-12-18 09:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047228', 'tblTempUsageDetail_20' ) end [2024-12-18 09:27:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 09:27:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 09:27:22] Production.INFO: ==3103== Releasing lock... [2024-12-18 09:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 09:27:22] Production.INFO: 39.5 MB #Memory Used# [2024-12-18 09:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 06:28:05 [end_date_ymd] => 2024-12-18 09:28:05 [RateCDR] => 1 ) [2024-12-18 09:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 06:28:05' and `end` < '2024-12-18 09:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 09:28:17] Production.INFO: count ==1542 [2024-12-18 09:28:18] Production.ERROR: pbx CDR StartTime 2024-12-18 06:28:05 - End Time 2024-12-18 09:28:05 [2024-12-18 09:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047233', 'tblTempUsageDetail_20' ) start [2024-12-18 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047233', 'tblTempUsageDetail_20' ) end [2024-12-18 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047233', 'tblTempVendorCDR_20' ) start [2024-12-18 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047233', 'tblTempVendorCDR_20' ) end [2024-12-18 09:28:18] Production.INFO: ProcessCDR(1,14047233,1,1,2) [2024-12-18 09:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047233', 'tblTempUsageDetail_20' ) start [2024-12-18 09:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047233', 'tblTempUsageDetail_20' ) end [2024-12-18 09:28:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 09:28:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 09:28:22] Production.INFO: ==3177== Releasing lock... [2024-12-18 09:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 09:28:22] Production.INFO: 39.5 MB #Memory Used# [2024-12-18 09:29:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 06:29:04 [end_date_ymd] => 2024-12-18 09:29:04 [RateCDR] => 1 ) [2024-12-18 09:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 06:29:04' and `end` < '2024-12-18 09:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 09:29:18] Production.INFO: count ==1550 [2024-12-18 09:29:18] Production.ERROR: pbx CDR StartTime 2024-12-18 06:29:04 - End Time 2024-12-18 09:29:04 [2024-12-18 09:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047238', 'tblTempUsageDetail_20' ) start [2024-12-18 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047238', 'tblTempUsageDetail_20' ) end [2024-12-18 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047238', 'tblTempVendorCDR_20' ) start [2024-12-18 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047238', 'tblTempVendorCDR_20' ) end [2024-12-18 09:29:18] Production.INFO: ProcessCDR(1,14047238,1,1,2) [2024-12-18 09:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047238', 'tblTempUsageDetail_20' ) start [2024-12-18 09:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047238', 'tblTempUsageDetail_20' ) end [2024-12-18 09:29:23] Production.ERROR: pbx prc_insertCDR start [2024-12-18 09:29:23] Production.ERROR: pbx prc_insertCDR end [2024-12-18 09:29:23] Production.INFO: ==3255== Releasing lock... [2024-12-18 09:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 09:29:23] Production.INFO: 40 MB #Memory Used# [2024-12-18 09:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 06:30:06 [end_date_ymd] => 2024-12-18 09:30:06 [RateCDR] => 1 ) [2024-12-18 09:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 06:30:06' and `end` < '2024-12-18 09:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 09:30:20] Production.INFO: count ==1587 [2024-12-18 09:30:21] Production.ERROR: pbx CDR StartTime 2024-12-18 06:30:06 - End Time 2024-12-18 09:30:06 [2024-12-18 09:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 09:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047244', 'tblTempUsageDetail_20' ) start [2024-12-18 09:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047244', 'tblTempUsageDetail_20' ) end [2024-12-18 09:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047244', 'tblTempVendorCDR_20' ) start [2024-12-18 09:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047244', 'tblTempVendorCDR_20' ) end [2024-12-18 09:30:21] Production.INFO: ProcessCDR(1,14047244,1,1,2) [2024-12-18 09:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047244', 'tblTempUsageDetail_20' ) start [2024-12-18 09:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047244', 'tblTempUsageDetail_20' ) end [2024-12-18 09:30:26] Production.ERROR: pbx prc_insertCDR start [2024-12-18 09:30:26] Production.ERROR: pbx prc_insertCDR end [2024-12-18 09:30:26] Production.INFO: ==3334== Releasing lock... [2024-12-18 09:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 09:30:26] Production.INFO: 40.25 MB #Memory Used# [2024-12-18 09:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 06:31:05 [end_date_ymd] => 2024-12-18 09:31:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 06:31:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 09:31:21] Production.INFO: count ==1670 [2024-12-18 09:31:22] Production.ERROR: pbx CDR StartTime 2024-12-18 06:31:05 - End Time 2024-12-18 09:31:05 [2024-12-18 09:31:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 09:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047249', 'tblTempUsageDetail_20' ) start [2024-12-18 09:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047249', 'tblTempUsageDetail_20' ) end [2024-12-18 09:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047249', 'tblTempVendorCDR_20' ) start [2024-12-18 09:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047249', 'tblTempVendorCDR_20' ) end [2024-12-18 09:31:22] Production.INFO: ProcessCDR(1,14047249,1,1,2) [2024-12-18 09:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047249', 'tblTempUsageDetail_20' ) start [2024-12-18 09:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047249', 'tblTempUsageDetail_20' ) end [2024-12-18 09:31:26] Production.ERROR: pbx prc_insertCDR start [2024-12-18 09:31:26] Production.ERROR: pbx prc_insertCDR end [2024-12-18 09:31:26] Production.INFO: ==3412== Releasing lock... [2024-12-18 09:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 09:31:26] Production.INFO: 40.5 MB #Memory Used# [2024-12-18 09:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 06:32:05 [end_date_ymd] => 2024-12-18 09:32:05 [RateCDR] => 1 ) [2024-12-18 09:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 06:32:05' and `end` < '2024-12-18 09:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 09:32:21] Production.INFO: count ==1673 [2024-12-18 09:32:22] Production.ERROR: pbx CDR StartTime 2024-12-18 06:32:05 - End Time 2024-12-18 09:32:05 [2024-12-18 09:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 09:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047254', 'tblTempUsageDetail_20' ) start [2024-12-18 09:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047254', 'tblTempUsageDetail_20' ) end [2024-12-18 09:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047254', 'tblTempVendorCDR_20' ) start [2024-12-18 09:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047254', 'tblTempVendorCDR_20' ) end [2024-12-18 09:32:22] Production.INFO: ProcessCDR(1,14047254,1,1,2) [2024-12-18 09:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047254', 'tblTempUsageDetail_20' ) start [2024-12-18 09:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047254', 'tblTempUsageDetail_20' ) end [2024-12-18 09:32:26] Production.ERROR: pbx prc_insertCDR start [2024-12-18 09:32:26] Production.ERROR: pbx prc_insertCDR end [2024-12-18 09:32:26] Production.INFO: ==3492== Releasing lock... [2024-12-18 09:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 09:32:26] Production.INFO: 40.5 MB #Memory Used# [2024-12-18 09:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 06:33:05 [end_date_ymd] => 2024-12-18 09:33:05 [RateCDR] => 1 ) [2024-12-18 09:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 06:33:05' and `end` < '2024-12-18 09:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 09:33:23] Production.INFO: count ==1689 [2024-12-18 09:33:23] Production.ERROR: pbx CDR StartTime 2024-12-18 06:33:05 - End Time 2024-12-18 09:33:05 [2024-12-18 09:33:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 09:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047259', 'tblTempUsageDetail_20' ) start [2024-12-18 09:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047259', 'tblTempUsageDetail_20' ) end [2024-12-18 09:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047259', 'tblTempVendorCDR_20' ) start [2024-12-18 09:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047259', 'tblTempVendorCDR_20' ) end [2024-12-18 09:33:23] Production.INFO: ProcessCDR(1,14047259,1,1,2) [2024-12-18 09:33:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:33:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:33:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:33:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047259', 'tblTempUsageDetail_20' ) start [2024-12-18 09:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047259', 'tblTempUsageDetail_20' ) end [2024-12-18 09:33:28] Production.ERROR: pbx prc_insertCDR start [2024-12-18 09:33:28] Production.ERROR: pbx prc_insertCDR end [2024-12-18 09:33:28] Production.INFO: ==3570== Releasing lock... [2024-12-18 09:33:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 09:33:28] Production.INFO: 40.75 MB #Memory Used# [2024-12-18 09:34:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 06:34:04 [end_date_ymd] => 2024-12-18 09:34:04 [RateCDR] => 1 ) [2024-12-18 09:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 06:34:04' and `end` < '2024-12-18 09:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 09:34:19] Production.INFO: count ==1709 [2024-12-18 09:34:20] Production.ERROR: pbx CDR StartTime 2024-12-18 06:34:04 - End Time 2024-12-18 09:34:04 [2024-12-18 09:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 09:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047264', 'tblTempUsageDetail_20' ) start [2024-12-18 09:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047264', 'tblTempUsageDetail_20' ) end [2024-12-18 09:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047264', 'tblTempVendorCDR_20' ) start [2024-12-18 09:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047264', 'tblTempVendorCDR_20' ) end [2024-12-18 09:34:20] Production.INFO: ProcessCDR(1,14047264,1,1,2) [2024-12-18 09:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047264', 'tblTempUsageDetail_20' ) start [2024-12-18 09:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047264', 'tblTempUsageDetail_20' ) end [2024-12-18 09:34:24] Production.ERROR: pbx prc_insertCDR start [2024-12-18 09:34:25] Production.ERROR: pbx prc_insertCDR end [2024-12-18 09:34:25] Production.INFO: ==3643== Releasing lock... [2024-12-18 09:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 09:34:25] Production.INFO: 41.25 MB #Memory Used# [2024-12-18 09:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 06:35:05 [end_date_ymd] => 2024-12-18 09:35:05 [RateCDR] => 1 ) [2024-12-18 09:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 06:35:05' and `end` < '2024-12-18 09:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 09:35:23] Production.INFO: count ==1731 [2024-12-18 09:35:24] Production.ERROR: pbx CDR StartTime 2024-12-18 06:35:05 - End Time 2024-12-18 09:35:05 [2024-12-18 09:35:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 09:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047269', 'tblTempUsageDetail_20' ) start [2024-12-18 09:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047269', 'tblTempUsageDetail_20' ) end [2024-12-18 09:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047269', 'tblTempVendorCDR_20' ) start [2024-12-18 09:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047269', 'tblTempVendorCDR_20' ) end [2024-12-18 09:35:24] Production.INFO: ProcessCDR(1,14047269,1,1,2) [2024-12-18 09:35:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:35:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:35:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:35:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047269', 'tblTempUsageDetail_20' ) start [2024-12-18 09:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047269', 'tblTempUsageDetail_20' ) end [2024-12-18 09:35:28] Production.ERROR: pbx prc_insertCDR start [2024-12-18 09:35:28] Production.ERROR: pbx prc_insertCDR end [2024-12-18 09:35:29] Production.INFO: ==3722== Releasing lock... [2024-12-18 09:35:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 09:35:29] Production.INFO: 41 MB #Memory Used# [2024-12-18 09:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 06:36:04 [end_date_ymd] => 2024-12-18 09:36:04 [RateCDR] => 1 ) [2024-12-18 09:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 06:36:04' and `end` < '2024-12-18 09:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 09:36:18] Production.INFO: count ==1753 [2024-12-18 09:36:19] Production.ERROR: pbx CDR StartTime 2024-12-18 06:36:04 - End Time 2024-12-18 09:36:04 [2024-12-18 09:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047274', 'tblTempUsageDetail_20' ) start [2024-12-18 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047274', 'tblTempUsageDetail_20' ) end [2024-12-18 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047274', 'tblTempVendorCDR_20' ) start [2024-12-18 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047274', 'tblTempVendorCDR_20' ) end [2024-12-18 09:36:19] Production.INFO: ProcessCDR(1,14047274,1,1,2) [2024-12-18 09:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047274', 'tblTempUsageDetail_20' ) start [2024-12-18 09:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047274', 'tblTempUsageDetail_20' ) end [2024-12-18 09:36:24] Production.ERROR: pbx prc_insertCDR start [2024-12-18 09:36:24] Production.ERROR: pbx prc_insertCDR end [2024-12-18 09:36:24] Production.INFO: ==3800== Releasing lock... [2024-12-18 09:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 09:36:24] Production.INFO: 41.25 MB #Memory Used# [2024-12-18 09:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 06:37:05 [end_date_ymd] => 2024-12-18 09:37:05 [RateCDR] => 1 ) [2024-12-18 09:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 06:37:05' and `end` < '2024-12-18 09:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 09:37:20] Production.INFO: count ==1763 [2024-12-18 09:37:20] Production.ERROR: pbx CDR StartTime 2024-12-18 06:37:05 - End Time 2024-12-18 09:37:05 [2024-12-18 09:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 09:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047279', 'tblTempUsageDetail_20' ) start [2024-12-18 09:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047279', 'tblTempUsageDetail_20' ) end [2024-12-18 09:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047279', 'tblTempVendorCDR_20' ) start [2024-12-18 09:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047279', 'tblTempVendorCDR_20' ) end [2024-12-18 09:37:21] Production.INFO: ProcessCDR(1,14047279,1,1,2) [2024-12-18 09:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047279', 'tblTempUsageDetail_20' ) start [2024-12-18 09:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047279', 'tblTempUsageDetail_20' ) end [2024-12-18 09:37:25] Production.ERROR: pbx prc_insertCDR start [2024-12-18 09:37:26] Production.ERROR: pbx prc_insertCDR end [2024-12-18 09:37:26] Production.INFO: ==3879== Releasing lock... [2024-12-18 09:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 09:37:26] Production.INFO: 41.25 MB #Memory Used# [2024-12-18 09:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 06:38:05 [end_date_ymd] => 2024-12-18 09:38:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 06:38:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 09:38:21] Production.INFO: count ==1786 [2024-12-18 09:38:21] Production.ERROR: pbx CDR StartTime 2024-12-18 06:38:05 - End Time 2024-12-18 09:38:05 [2024-12-18 09:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 09:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047284', 'tblTempUsageDetail_20' ) start [2024-12-18 09:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047284', 'tblTempUsageDetail_20' ) end [2024-12-18 09:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047284', 'tblTempVendorCDR_20' ) start [2024-12-18 09:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047284', 'tblTempVendorCDR_20' ) end [2024-12-18 09:38:21] Production.INFO: ProcessCDR(1,14047284,1,1,2) [2024-12-18 09:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047284', 'tblTempUsageDetail_20' ) start [2024-12-18 09:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047284', 'tblTempUsageDetail_20' ) end [2024-12-18 09:38:26] Production.ERROR: pbx prc_insertCDR start [2024-12-18 09:38:26] Production.ERROR: pbx prc_insertCDR end [2024-12-18 09:38:26] Production.INFO: ==3954== Releasing lock... [2024-12-18 09:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 09:38:26] Production.INFO: 41.5 MB #Memory Used# [2024-12-18 09:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 06:39:05 [end_date_ymd] => 2024-12-18 09:39:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 06:39:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 09:39:18] Production.INFO: count ==1798 [2024-12-18 09:39:19] Production.ERROR: pbx CDR StartTime 2024-12-18 06:39:05 - End Time 2024-12-18 09:39:05 [2024-12-18 09:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047289', 'tblTempUsageDetail_20' ) start [2024-12-18 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047289', 'tblTempUsageDetail_20' ) end [2024-12-18 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047289', 'tblTempVendorCDR_20' ) start [2024-12-18 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047289', 'tblTempVendorCDR_20' ) end [2024-12-18 09:39:19] Production.INFO: ProcessCDR(1,14047289,1,1,2) [2024-12-18 09:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047289', 'tblTempUsageDetail_20' ) start [2024-12-18 09:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047289', 'tblTempUsageDetail_20' ) end [2024-12-18 09:39:24] Production.ERROR: pbx prc_insertCDR start [2024-12-18 09:39:24] Production.ERROR: pbx prc_insertCDR end [2024-12-18 09:39:24] Production.INFO: ==4031== Releasing lock... [2024-12-18 09:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 09:39:24] Production.INFO: 41.5 MB #Memory Used# [2024-12-18 09:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 06:40:05 [end_date_ymd] => 2024-12-18 09:40:05 [RateCDR] => 1 ) [2024-12-18 09: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` >= '2024-12-18 06:40:05' and `end` < '2024-12-18 09: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 ,'') [2024-12-18 09:40:20] Production.INFO: count ==1818 [2024-12-18 09:40:20] Production.ERROR: pbx CDR StartTime 2024-12-18 06:40:05 - End Time 2024-12-18 09:40:05 [2024-12-18 09:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047294', 'tblTempUsageDetail_20' ) start [2024-12-18 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047294', 'tblTempUsageDetail_20' ) end [2024-12-18 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047294', 'tblTempVendorCDR_20' ) start [2024-12-18 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047294', 'tblTempVendorCDR_20' ) end [2024-12-18 09:40:20] Production.INFO: ProcessCDR(1,14047294,1,1,2) [2024-12-18 09:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047294', 'tblTempUsageDetail_20' ) start [2024-12-18 09:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047294', 'tblTempUsageDetail_20' ) end [2024-12-18 09:40:25] Production.ERROR: pbx prc_insertCDR start [2024-12-18 09:40:25] Production.ERROR: pbx prc_insertCDR end [2024-12-18 09:40:25] Production.INFO: ==4147== Releasing lock... [2024-12-18 09:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 09:40:25] Production.INFO: 41.75 MB #Memory Used# [2024-12-18 09:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 06:41:05 [end_date_ymd] => 2024-12-18 09:41:05 [RateCDR] => 1 ) [2024-12-18 09:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 06:41:05' and `end` < '2024-12-18 09:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 09:41:17] Production.INFO: count ==1875 [2024-12-18 09:41:18] Production.ERROR: pbx CDR StartTime 2024-12-18 06:41:05 - End Time 2024-12-18 09:41:05 [2024-12-18 09:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047300', 'tblTempUsageDetail_20' ) start [2024-12-18 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047300', 'tblTempUsageDetail_20' ) end [2024-12-18 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047300', 'tblTempVendorCDR_20' ) start [2024-12-18 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047300', 'tblTempVendorCDR_20' ) end [2024-12-18 09:41:18] Production.INFO: ProcessCDR(1,14047300,1,1,2) [2024-12-18 09:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047300', 'tblTempUsageDetail_20' ) start [2024-12-18 09:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047300', 'tblTempUsageDetail_20' ) end [2024-12-18 09:41:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 09:41:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 09:41:22] Production.INFO: ==4225== Releasing lock... [2024-12-18 09:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 09:41:22] Production.INFO: 42.25 MB #Memory Used# [2024-12-18 09:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 06:42:05 [end_date_ymd] => 2024-12-18 09:42:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 06:42:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 09:42:18] Production.INFO: count ==1884 [2024-12-18 09:42:18] Production.ERROR: pbx CDR StartTime 2024-12-18 06:42:05 - End Time 2024-12-18 09:42:05 [2024-12-18 09:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047305', 'tblTempUsageDetail_20' ) start [2024-12-18 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047305', 'tblTempUsageDetail_20' ) end [2024-12-18 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047305', 'tblTempVendorCDR_20' ) start [2024-12-18 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047305', 'tblTempVendorCDR_20' ) end [2024-12-18 09:42:18] Production.INFO: ProcessCDR(1,14047305,1,1,2) [2024-12-18 09:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047305', 'tblTempUsageDetail_20' ) start [2024-12-18 09:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047305', 'tblTempUsageDetail_20' ) end [2024-12-18 09:42:23] Production.ERROR: pbx prc_insertCDR start [2024-12-18 09:42:23] Production.ERROR: pbx prc_insertCDR end [2024-12-18 09:42:23] Production.INFO: ==4300== Releasing lock... [2024-12-18 09:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 09:42:23] Production.INFO: 42.25 MB #Memory Used# [2024-12-18 09:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 06:43:04 [end_date_ymd] => 2024-12-18 09:43:04 [RateCDR] => 1 ) [2024-12-18 09:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 06:43:04' and `end` < '2024-12-18 09:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 09:43:19] Production.INFO: count ==1909 [2024-12-18 09:43:20] Production.ERROR: pbx CDR StartTime 2024-12-18 06:43:04 - End Time 2024-12-18 09:43:04 [2024-12-18 09:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 09:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047310', 'tblTempUsageDetail_20' ) start [2024-12-18 09:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047310', 'tblTempUsageDetail_20' ) end [2024-12-18 09:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047310', 'tblTempVendorCDR_20' ) start [2024-12-18 09:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047310', 'tblTempVendorCDR_20' ) end [2024-12-18 09:43:20] Production.INFO: ProcessCDR(1,14047310,1,1,2) [2024-12-18 09:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047310', 'tblTempUsageDetail_20' ) start [2024-12-18 09:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047310', 'tblTempUsageDetail_20' ) end [2024-12-18 09:43:25] Production.ERROR: pbx prc_insertCDR start [2024-12-18 09:43:25] Production.ERROR: pbx prc_insertCDR end [2024-12-18 09:43:25] Production.INFO: ==4373== Releasing lock... [2024-12-18 09:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 09:43:25] Production.INFO: 42.25 MB #Memory Used# [2024-12-18 09:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 06:44:05 [end_date_ymd] => 2024-12-18 09:44:05 [RateCDR] => 1 ) [2024-12-18 09:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 06:44:05' and `end` < '2024-12-18 09:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 09:44:21] Production.INFO: count ==1921 [2024-12-18 09:44:21] Production.ERROR: pbx CDR StartTime 2024-12-18 06:44:05 - End Time 2024-12-18 09:44:05 [2024-12-18 09:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 09:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047315', 'tblTempUsageDetail_20' ) start [2024-12-18 09:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047315', 'tblTempUsageDetail_20' ) end [2024-12-18 09:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047315', 'tblTempVendorCDR_20' ) start [2024-12-18 09:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047315', 'tblTempVendorCDR_20' ) end [2024-12-18 09:44:21] Production.INFO: ProcessCDR(1,14047315,1,1,2) [2024-12-18 09:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047315', 'tblTempUsageDetail_20' ) start [2024-12-18 09:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047315', 'tblTempUsageDetail_20' ) end [2024-12-18 09:44:26] Production.ERROR: pbx prc_insertCDR start [2024-12-18 09:44:26] Production.ERROR: pbx prc_insertCDR end [2024-12-18 09:44:26] Production.INFO: ==4452== Releasing lock... [2024-12-18 09:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 09:44:26] Production.INFO: 42.5 MB #Memory Used# [2024-12-18 09:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 06:45:05 [end_date_ymd] => 2024-12-18 09:45:05 [RateCDR] => 1 ) [2024-12-18 09:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 06:45:05' and `end` < '2024-12-18 09:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 09:45:17] Production.INFO: count ==1926 [2024-12-18 09:45:18] Production.ERROR: pbx CDR StartTime 2024-12-18 06:45:05 - End Time 2024-12-18 09:45:05 [2024-12-18 09:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047320', 'tblTempUsageDetail_20' ) start [2024-12-18 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047320', 'tblTempUsageDetail_20' ) end [2024-12-18 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047320', 'tblTempVendorCDR_20' ) start [2024-12-18 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047320', 'tblTempVendorCDR_20' ) end [2024-12-18 09:45:18] Production.INFO: ProcessCDR(1,14047320,1,1,2) [2024-12-18 09:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047320', 'tblTempUsageDetail_20' ) start [2024-12-18 09:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047320', 'tblTempUsageDetail_20' ) end [2024-12-18 09:45:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 09:45:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 09:45:21] Production.INFO: ==4525== Releasing lock... [2024-12-18 09:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 09:45:21] Production.INFO: 42.5 MB #Memory Used# [2024-12-18 09:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 06:46:05 [end_date_ymd] => 2024-12-18 09:46:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 06:46:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 09:46:20] Production.INFO: count ==1953 [2024-12-18 09:46:21] Production.ERROR: pbx CDR StartTime 2024-12-18 06:46:05 - End Time 2024-12-18 09:46:05 [2024-12-18 09:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 09:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047325', 'tblTempUsageDetail_20' ) start [2024-12-18 09:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047325', 'tblTempUsageDetail_20' ) end [2024-12-18 09:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047325', 'tblTempVendorCDR_20' ) start [2024-12-18 09:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047325', 'tblTempVendorCDR_20' ) end [2024-12-18 09:46:21] Production.INFO: ProcessCDR(1,14047325,1,1,2) [2024-12-18 09:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047325', 'tblTempUsageDetail_20' ) start [2024-12-18 09:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047325', 'tblTempUsageDetail_20' ) end [2024-12-18 09:46:26] Production.ERROR: pbx prc_insertCDR start [2024-12-18 09:46:26] Production.ERROR: pbx prc_insertCDR end [2024-12-18 09:46:26] Production.INFO: ==4610== Releasing lock... [2024-12-18 09:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 09:46:26] Production.INFO: 43 MB #Memory Used# [2024-12-18 09:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 06:47:05 [end_date_ymd] => 2024-12-18 09:47:05 [RateCDR] => 1 ) [2024-12-18 09:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 06:47:05' and `end` < '2024-12-18 09:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 09:47:20] Production.INFO: count ==1958 [2024-12-18 09:47:21] Production.ERROR: pbx CDR StartTime 2024-12-18 06:47:05 - End Time 2024-12-18 09:47:05 [2024-12-18 09:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 09:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047330', 'tblTempUsageDetail_20' ) start [2024-12-18 09:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047330', 'tblTempUsageDetail_20' ) end [2024-12-18 09:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047330', 'tblTempVendorCDR_20' ) start [2024-12-18 09:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047330', 'tblTempVendorCDR_20' ) end [2024-12-18 09:47:21] Production.INFO: ProcessCDR(1,14047330,1,1,2) [2024-12-18 09:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047330', 'tblTempUsageDetail_20' ) start [2024-12-18 09:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047330', 'tblTempUsageDetail_20' ) end [2024-12-18 09:47:25] Production.ERROR: pbx prc_insertCDR start [2024-12-18 09:47:25] Production.ERROR: pbx prc_insertCDR end [2024-12-18 09:47:26] Production.INFO: ==4685== Releasing lock... [2024-12-18 09:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 09:47:26] Production.INFO: 42.75 MB #Memory Used# [2024-12-18 09:48:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 06:48:04 [end_date_ymd] => 2024-12-18 09:48:04 [RateCDR] => 1 ) [2024-12-18 09: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` >= '2024-12-18 06:48:04' and `end` < '2024-12-18 09:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 09:48:18] Production.INFO: count ==1975 [2024-12-18 09:48:19] Production.ERROR: pbx CDR StartTime 2024-12-18 06:48:04 - End Time 2024-12-18 09:48:04 [2024-12-18 09:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047335', 'tblTempUsageDetail_20' ) start [2024-12-18 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047335', 'tblTempUsageDetail_20' ) end [2024-12-18 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047335', 'tblTempVendorCDR_20' ) start [2024-12-18 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047335', 'tblTempVendorCDR_20' ) end [2024-12-18 09:48:19] Production.INFO: ProcessCDR(1,14047335,1,1,2) [2024-12-18 09:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047335', 'tblTempUsageDetail_20' ) start [2024-12-18 09:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047335', 'tblTempUsageDetail_20' ) end [2024-12-18 09:48:24] Production.ERROR: pbx prc_insertCDR start [2024-12-18 09:48:24] Production.ERROR: pbx prc_insertCDR end [2024-12-18 09:48:24] Production.INFO: ==4757== Releasing lock... [2024-12-18 09:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 09:48:24] Production.INFO: 43 MB #Memory Used# [2024-12-18 09:49:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 06:49:06 [end_date_ymd] => 2024-12-18 09:49:06 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 06:49:06' and `end` < '2024-12-18 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 ,'') [2024-12-18 09:49:18] Production.INFO: count ==1983 [2024-12-18 09:49:19] Production.ERROR: pbx CDR StartTime 2024-12-18 06:49:06 - End Time 2024-12-18 09:49:06 [2024-12-18 09:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047340', 'tblTempUsageDetail_20' ) start [2024-12-18 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047340', 'tblTempUsageDetail_20' ) end [2024-12-18 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047340', 'tblTempVendorCDR_20' ) start [2024-12-18 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047340', 'tblTempVendorCDR_20' ) end [2024-12-18 09:49:19] Production.INFO: ProcessCDR(1,14047340,1,1,2) [2024-12-18 09:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047340', 'tblTempUsageDetail_20' ) start [2024-12-18 09:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047340', 'tblTempUsageDetail_20' ) end [2024-12-18 09:49:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 09:49:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 09:49:22] Production.INFO: ==4837== Releasing lock... [2024-12-18 09:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 09:49:22] Production.INFO: 43.25 MB #Memory Used# [2024-12-18 09:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 06:50:05 [end_date_ymd] => 2024-12-18 09:50:05 [RateCDR] => 1 ) [2024-12-18 09: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` >= '2024-12-18 06:50:05' and `end` < '2024-12-18 09: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 ,'') [2024-12-18 09:50:18] Production.INFO: count ==1994 [2024-12-18 09:50:19] Production.ERROR: pbx CDR StartTime 2024-12-18 06:50:05 - End Time 2024-12-18 09:50:05 [2024-12-18 09:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047346', 'tblTempUsageDetail_20' ) start [2024-12-18 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047346', 'tblTempUsageDetail_20' ) end [2024-12-18 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047346', 'tblTempVendorCDR_20' ) start [2024-12-18 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047346', 'tblTempVendorCDR_20' ) end [2024-12-18 09:50:19] Production.INFO: ProcessCDR(1,14047346,1,1,2) [2024-12-18 09:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047346', 'tblTempUsageDetail_20' ) start [2024-12-18 09:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047346', 'tblTempUsageDetail_20' ) end [2024-12-18 09:50:23] Production.ERROR: pbx prc_insertCDR start [2024-12-18 09:50:23] Production.ERROR: pbx prc_insertCDR end [2024-12-18 09:50:23] Production.INFO: ==4913== Releasing lock... [2024-12-18 09:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 09:50:23] Production.INFO: 43 MB #Memory Used# [2024-12-18 09:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 06:51:05 [end_date_ymd] => 2024-12-18 09:51:05 [RateCDR] => 1 ) [2024-12-18 09:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 06:51:05' and `end` < '2024-12-18 09:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 09:51:26] Production.INFO: count ==2065 [2024-12-18 09:51:27] Production.ERROR: pbx CDR StartTime 2024-12-18 06:51:05 - End Time 2024-12-18 09:51:05 [2024-12-18 09:51:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 09:51:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047351', 'tblTempUsageDetail_20' ) start [2024-12-18 09:51:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047351', 'tblTempUsageDetail_20' ) end [2024-12-18 09:51:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047351', 'tblTempVendorCDR_20' ) start [2024-12-18 09:51:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047351', 'tblTempVendorCDR_20' ) end [2024-12-18 09:51:27] Production.INFO: ProcessCDR(1,14047351,1,1,2) [2024-12-18 09:51:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:51:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:51:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:51:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:51:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047351', 'tblTempUsageDetail_20' ) start [2024-12-18 09:51:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047351', 'tblTempUsageDetail_20' ) end [2024-12-18 09:51:31] Production.ERROR: pbx prc_insertCDR start [2024-12-18 09:51:31] Production.ERROR: pbx prc_insertCDR end [2024-12-18 09:51:31] Production.INFO: ==4986== Releasing lock... [2024-12-18 09:51:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 09:51:31] Production.INFO: 43.5 MB #Memory Used# [2024-12-18 09:52:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 06:52:04 [end_date_ymd] => 2024-12-18 09:52:04 [RateCDR] => 1 ) [2024-12-18 09:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 06:52:04' and `end` < '2024-12-18 09:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 09:52:20] Production.INFO: count ==2085 [2024-12-18 09:52:21] Production.ERROR: pbx CDR StartTime 2024-12-18 06:52:04 - End Time 2024-12-18 09:52:04 [2024-12-18 09:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 09:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047356', 'tblTempUsageDetail_20' ) start [2024-12-18 09:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047356', 'tblTempUsageDetail_20' ) end [2024-12-18 09:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047356', 'tblTempVendorCDR_20' ) start [2024-12-18 09:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047356', 'tblTempVendorCDR_20' ) end [2024-12-18 09:52:21] Production.INFO: ProcessCDR(1,14047356,1,1,2) [2024-12-18 09:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047356', 'tblTempUsageDetail_20' ) start [2024-12-18 09:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047356', 'tblTempUsageDetail_20' ) end [2024-12-18 09:52:25] Production.ERROR: pbx prc_insertCDR start [2024-12-18 09:52:25] Production.ERROR: pbx prc_insertCDR end [2024-12-18 09:52:25] Production.INFO: ==5059== Releasing lock... [2024-12-18 09:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 09:52:25] Production.INFO: 43.75 MB #Memory Used# [2024-12-18 09:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 06:53:05 [end_date_ymd] => 2024-12-18 09:53:05 [RateCDR] => 1 ) [2024-12-18 09:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 06:53:05' and `end` < '2024-12-18 09:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 09:53:18] Production.INFO: count ==2111 [2024-12-18 09:53:19] Production.ERROR: pbx CDR StartTime 2024-12-18 06:53:05 - End Time 2024-12-18 09:53:05 [2024-12-18 09:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047361', 'tblTempUsageDetail_20' ) start [2024-12-18 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047361', 'tblTempUsageDetail_20' ) end [2024-12-18 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047361', 'tblTempVendorCDR_20' ) start [2024-12-18 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047361', 'tblTempVendorCDR_20' ) end [2024-12-18 09:53:19] Production.INFO: ProcessCDR(1,14047361,1,1,2) [2024-12-18 09:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047361', 'tblTempUsageDetail_20' ) start [2024-12-18 09:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047361', 'tblTempUsageDetail_20' ) end [2024-12-18 09:53:24] Production.ERROR: pbx prc_insertCDR start [2024-12-18 09:53:24] Production.ERROR: pbx prc_insertCDR end [2024-12-18 09:53:24] Production.INFO: ==5137== Releasing lock... [2024-12-18 09:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 09:53:24] Production.INFO: 44 MB #Memory Used# [2024-12-18 09:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 06:54:05 [end_date_ymd] => 2024-12-18 09:54:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 06:54:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 09:54:18] Production.INFO: count ==2129 [2024-12-18 09:54:19] Production.ERROR: pbx CDR StartTime 2024-12-18 06:54:05 - End Time 2024-12-18 09:54:05 [2024-12-18 09:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047366', 'tblTempUsageDetail_20' ) start [2024-12-18 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047366', 'tblTempUsageDetail_20' ) end [2024-12-18 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047366', 'tblTempVendorCDR_20' ) start [2024-12-18 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047366', 'tblTempVendorCDR_20' ) end [2024-12-18 09:54:19] Production.INFO: ProcessCDR(1,14047366,1,1,2) [2024-12-18 09:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047366', 'tblTempUsageDetail_20' ) start [2024-12-18 09:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047366', 'tblTempUsageDetail_20' ) end [2024-12-18 09:54:23] Production.ERROR: pbx prc_insertCDR start [2024-12-18 09:54:23] Production.ERROR: pbx prc_insertCDR end [2024-12-18 09:54:23] Production.INFO: ==5215== Releasing lock... [2024-12-18 09:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 09:54:23] Production.INFO: 44 MB #Memory Used# [2024-12-18 09:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 06:55:05 [end_date_ymd] => 2024-12-18 09:55:05 [RateCDR] => 1 ) [2024-12-18 09:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 06:55:05' and `end` < '2024-12-18 09:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 09:55:17] Production.INFO: count ==2136 [2024-12-18 09:55:18] Production.ERROR: pbx CDR StartTime 2024-12-18 06:55:05 - End Time 2024-12-18 09:55:05 [2024-12-18 09:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 09:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047371', 'tblTempUsageDetail_20' ) start [2024-12-18 09:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047371', 'tblTempUsageDetail_20' ) end [2024-12-18 09:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047371', 'tblTempVendorCDR_20' ) start [2024-12-18 09:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047371', 'tblTempVendorCDR_20' ) end [2024-12-18 09:55:18] Production.INFO: ProcessCDR(1,14047371,1,1,2) [2024-12-18 09:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047371', 'tblTempUsageDetail_20' ) start [2024-12-18 09:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047371', 'tblTempUsageDetail_20' ) end [2024-12-18 09:55:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 09:55:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 09:55:22] Production.INFO: ==5293== Releasing lock... [2024-12-18 09:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 09:55:22] Production.INFO: 44.25 MB #Memory Used# [2024-12-18 09:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 06:56:05 [end_date_ymd] => 2024-12-18 09:56:05 [RateCDR] => 1 ) [2024-12-18 09:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 06:56:05' and `end` < '2024-12-18 09:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 09:56:21] Production.INFO: count ==2144 [2024-12-18 09:56:21] Production.ERROR: pbx CDR StartTime 2024-12-18 06:56:05 - End Time 2024-12-18 09:56:05 [2024-12-18 09:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 09:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047376', 'tblTempUsageDetail_20' ) start [2024-12-18 09:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047376', 'tblTempUsageDetail_20' ) end [2024-12-18 09:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047376', 'tblTempVendorCDR_20' ) start [2024-12-18 09:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047376', 'tblTempVendorCDR_20' ) end [2024-12-18 09:56:21] Production.INFO: ProcessCDR(1,14047376,1,1,2) [2024-12-18 09:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047376', 'tblTempUsageDetail_20' ) start [2024-12-18 09:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047376', 'tblTempUsageDetail_20' ) end [2024-12-18 09:56:26] Production.ERROR: pbx prc_insertCDR start [2024-12-18 09:56:26] Production.ERROR: pbx prc_insertCDR end [2024-12-18 09:56:26] Production.INFO: ==5411== Releasing lock... [2024-12-18 09:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 09:56:26] Production.INFO: 44.25 MB #Memory Used# [2024-12-18 09:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 06:57:05 [end_date_ymd] => 2024-12-18 09:57:05 [RateCDR] => 1 ) [2024-12-18 09:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 06:57:05' and `end` < '2024-12-18 09:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 09:57:30] Production.INFO: count ==2156 [2024-12-18 09:57:31] Production.ERROR: pbx CDR StartTime 2024-12-18 06:57:05 - End Time 2024-12-18 09:57:05 [2024-12-18 09:57:31] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 09:57:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047381', 'tblTempUsageDetail_20' ) start [2024-12-18 09:57:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047381', 'tblTempUsageDetail_20' ) end [2024-12-18 09:57:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047381', 'tblTempVendorCDR_20' ) start [2024-12-18 09:57:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047381', 'tblTempVendorCDR_20' ) end [2024-12-18 09:57:31] Production.INFO: ProcessCDR(1,14047381,1,1,2) [2024-12-18 09:57:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:57:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:57:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:57:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:57:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047381', 'tblTempUsageDetail_20' ) start [2024-12-18 09:57:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047381', 'tblTempUsageDetail_20' ) end [2024-12-18 09:57:36] Production.ERROR: pbx prc_insertCDR start [2024-12-18 09:57:36] Production.ERROR: pbx prc_insertCDR end [2024-12-18 09:57:36] Production.INFO: ==5488== Releasing lock... [2024-12-18 09:57:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 09:57:36] Production.INFO: 44.25 MB #Memory Used# [2024-12-18 09:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 06:58:05 [end_date_ymd] => 2024-12-18 09:58:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 06:58:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 09:58:23] Production.INFO: count ==2171 [2024-12-18 09:58:24] Production.ERROR: pbx CDR StartTime 2024-12-18 06:58:05 - End Time 2024-12-18 09:58:05 [2024-12-18 09:58:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 09:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047386', 'tblTempUsageDetail_20' ) start [2024-12-18 09:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047386', 'tblTempUsageDetail_20' ) end [2024-12-18 09:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047386', 'tblTempVendorCDR_20' ) start [2024-12-18 09:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047386', 'tblTempVendorCDR_20' ) end [2024-12-18 09:58:24] Production.INFO: ProcessCDR(1,14047386,1,1,2) [2024-12-18 09:58:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:58:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:58:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:58:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:58:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047386', 'tblTempUsageDetail_20' ) start [2024-12-18 09:58:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047386', 'tblTempUsageDetail_20' ) end [2024-12-18 09:58:29] Production.ERROR: pbx prc_insertCDR start [2024-12-18 09:58:29] Production.ERROR: pbx prc_insertCDR end [2024-12-18 09:58:29] Production.INFO: ==5568== Releasing lock... [2024-12-18 09:58:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 09:58:29] Production.INFO: 44.5 MB #Memory Used# [2024-12-18 09:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 06:59:04 [end_date_ymd] => 2024-12-18 09:59:04 [RateCDR] => 1 ) [2024-12-18 09:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 06:59:04' and `end` < '2024-12-18 09:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 09:59:17] Production.INFO: count ==2207 [2024-12-18 09:59:18] Production.ERROR: pbx CDR StartTime 2024-12-18 06:59:04 - End Time 2024-12-18 09:59:04 [2024-12-18 09:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 09:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047391', 'tblTempUsageDetail_20' ) start [2024-12-18 09:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047391', 'tblTempUsageDetail_20' ) end [2024-12-18 09:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047391', 'tblTempVendorCDR_20' ) start [2024-12-18 09:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047391', 'tblTempVendorCDR_20' ) end [2024-12-18 09:59:18] Production.INFO: ProcessCDR(1,14047391,1,1,2) [2024-12-18 09:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 09:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 09:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047391', 'tblTempUsageDetail_20' ) start [2024-12-18 09:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047391', 'tblTempUsageDetail_20' ) end [2024-12-18 09:59:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 09:59:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 09:59:22] Production.INFO: ==5643== Releasing lock... [2024-12-18 09:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 09:59:22] Production.INFO: 44.5 MB #Memory Used# [2024-12-18 10:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 07:00:06 [end_date_ymd] => 2024-12-18 10:00:06 [RateCDR] => 1 ) [2024-12-18 10:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 07:00:06' and `end` < '2024-12-18 10:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 10:00:19] Production.INFO: count ==2227 [2024-12-18 10:00:19] Production.ERROR: pbx CDR StartTime 2024-12-18 07:00:06 - End Time 2024-12-18 10:00:06 [2024-12-18 10:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047397', 'tblTempUsageDetail_20' ) start [2024-12-18 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047397', 'tblTempUsageDetail_20' ) end [2024-12-18 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047397', 'tblTempVendorCDR_20' ) start [2024-12-18 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047397', 'tblTempVendorCDR_20' ) end [2024-12-18 10:00:19] Production.INFO: ProcessCDR(1,14047397,1,1,2) [2024-12-18 10:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047397', 'tblTempUsageDetail_20' ) start [2024-12-18 10:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047397', 'tblTempUsageDetail_20' ) end [2024-12-18 10:00:24] Production.ERROR: pbx prc_insertCDR start [2024-12-18 10:00:24] Production.ERROR: pbx prc_insertCDR end [2024-12-18 10:00:24] Production.INFO: ==5723== Releasing lock... [2024-12-18 10:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 10:00:24] Production.INFO: 44.75 MB #Memory Used# [2024-12-18 10:01:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 07:01:04 [end_date_ymd] => 2024-12-18 10:01:04 [RateCDR] => 1 ) [2024-12-18 10: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` >= '2024-12-18 07:01:04' and `end` < '2024-12-18 10: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 ,'') [2024-12-18 10:01:18] Production.INFO: count ==2309 [2024-12-18 10:01:19] Production.ERROR: pbx CDR StartTime 2024-12-18 07:01:04 - End Time 2024-12-18 10:01:04 [2024-12-18 10:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047402', 'tblTempUsageDetail_20' ) start [2024-12-18 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047402', 'tblTempUsageDetail_20' ) end [2024-12-18 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047402', 'tblTempVendorCDR_20' ) start [2024-12-18 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047402', 'tblTempVendorCDR_20' ) end [2024-12-18 10:01:19] Production.INFO: ProcessCDR(1,14047402,1,1,2) [2024-12-18 10:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047402', 'tblTempUsageDetail_20' ) start [2024-12-18 10:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047402', 'tblTempUsageDetail_20' ) end [2024-12-18 10:01:24] Production.ERROR: pbx prc_insertCDR start [2024-12-18 10:01:24] Production.ERROR: pbx prc_insertCDR end [2024-12-18 10:01:24] Production.INFO: ==5817== Releasing lock... [2024-12-18 10:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 10:01:24] Production.INFO: 45.5 MB #Memory Used# [2024-12-18 10:02:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 07:02:04 [end_date_ymd] => 2024-12-18 10:02:04 [RateCDR] => 1 ) [2024-12-18 10:02:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 07:02:04' and `end` < '2024-12-18 10:02:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 10:02:23] Production.INFO: count ==2324 [2024-12-18 10:02:24] Production.ERROR: pbx CDR StartTime 2024-12-18 07:02:04 - End Time 2024-12-18 10:02:04 [2024-12-18 10:02:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 10:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047407', 'tblTempUsageDetail_20' ) start [2024-12-18 10:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047407', 'tblTempUsageDetail_20' ) end [2024-12-18 10:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047407', 'tblTempVendorCDR_20' ) start [2024-12-18 10:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047407', 'tblTempVendorCDR_20' ) end [2024-12-18 10:02:24] Production.INFO: ProcessCDR(1,14047407,1,1,2) [2024-12-18 10:02:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:02:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:02:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:02:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047407', 'tblTempUsageDetail_20' ) start [2024-12-18 10:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047407', 'tblTempUsageDetail_20' ) end [2024-12-18 10:02:28] Production.ERROR: pbx prc_insertCDR start [2024-12-18 10:02:28] Production.ERROR: pbx prc_insertCDR end [2024-12-18 10:02:28] Production.INFO: ==5899== Releasing lock... [2024-12-18 10:02:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 10:02:28] Production.INFO: 45.5 MB #Memory Used# [2024-12-18 10:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 07:03:04 [end_date_ymd] => 2024-12-18 10:03:04 [RateCDR] => 1 ) [2024-12-18 10:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 07:03:04' and `end` < '2024-12-18 10:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 10:03:17] Production.INFO: count ==2330 [2024-12-18 10:03:18] Production.ERROR: pbx CDR StartTime 2024-12-18 07:03:04 - End Time 2024-12-18 10:03:04 [2024-12-18 10:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 10:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047412', 'tblTempUsageDetail_20' ) start [2024-12-18 10:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047412', 'tblTempUsageDetail_20' ) end [2024-12-18 10:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047412', 'tblTempVendorCDR_20' ) start [2024-12-18 10:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047412', 'tblTempVendorCDR_20' ) end [2024-12-18 10:03:18] Production.INFO: ProcessCDR(1,14047412,1,1,2) [2024-12-18 10:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047412', 'tblTempUsageDetail_20' ) start [2024-12-18 10:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047412', 'tblTempUsageDetail_20' ) end [2024-12-18 10:03:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 10:03:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 10:03:22] Production.INFO: ==5972== Releasing lock... [2024-12-18 10:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 10:03:22] Production.INFO: 45.5 MB #Memory Used# [2024-12-18 10:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 07:04:05 [end_date_ymd] => 2024-12-18 10:04:05 [RateCDR] => 1 ) [2024-12-18 10:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 07:04:05' and `end` < '2024-12-18 10:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 10:04:18] Production.INFO: count ==2340 [2024-12-18 10:04:19] Production.ERROR: pbx CDR StartTime 2024-12-18 07:04:05 - End Time 2024-12-18 10:04:05 [2024-12-18 10:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 10:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047417', 'tblTempUsageDetail_20' ) start [2024-12-18 10:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047417', 'tblTempUsageDetail_20' ) end [2024-12-18 10:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047417', 'tblTempVendorCDR_20' ) start [2024-12-18 10:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047417', 'tblTempVendorCDR_20' ) end [2024-12-18 10:04:19] Production.INFO: ProcessCDR(1,14047417,1,1,2) [2024-12-18 10:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047417', 'tblTempUsageDetail_20' ) start [2024-12-18 10:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047417', 'tblTempUsageDetail_20' ) end [2024-12-18 10:04:23] Production.ERROR: pbx prc_insertCDR start [2024-12-18 10:04:23] Production.ERROR: pbx prc_insertCDR end [2024-12-18 10:04:23] Production.INFO: ==6047== Releasing lock... [2024-12-18 10:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 10:04:23] Production.INFO: 45.5 MB #Memory Used# [2024-12-18 10:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 07:05:04 [end_date_ymd] => 2024-12-18 10:05:04 [RateCDR] => 1 ) [2024-12-18 10: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` >= '2024-12-18 07:05:04' and `end` < '2024-12-18 10: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 ,'') [2024-12-18 10:05:18] Production.INFO: count ==2366 [2024-12-18 10:05:19] Production.ERROR: pbx CDR StartTime 2024-12-18 07:05:04 - End Time 2024-12-18 10:05:04 [2024-12-18 10:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 10:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047422', 'tblTempUsageDetail_20' ) start [2024-12-18 10:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047422', 'tblTempUsageDetail_20' ) end [2024-12-18 10:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047422', 'tblTempVendorCDR_20' ) start [2024-12-18 10:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047422', 'tblTempVendorCDR_20' ) end [2024-12-18 10:05:19] Production.INFO: ProcessCDR(1,14047422,1,1,2) [2024-12-18 10:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047422', 'tblTempUsageDetail_20' ) start [2024-12-18 10:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047422', 'tblTempUsageDetail_20' ) end [2024-12-18 10:05:24] Production.ERROR: pbx prc_insertCDR start [2024-12-18 10:05:24] Production.ERROR: pbx prc_insertCDR end [2024-12-18 10:05:24] Production.INFO: ==6127== Releasing lock... [2024-12-18 10:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 10:05:24] Production.INFO: 45.75 MB #Memory Used# [2024-12-18 10:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 07:06:05 [end_date_ymd] => 2024-12-18 10:06:05 [RateCDR] => 1 ) [2024-12-18 10:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 07:06:05' and `end` < '2024-12-18 10:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 10:06:20] Production.INFO: count ==2380 [2024-12-18 10:06:21] Production.ERROR: pbx CDR StartTime 2024-12-18 07:06:05 - End Time 2024-12-18 10:06:05 [2024-12-18 10:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 10:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047427', 'tblTempUsageDetail_20' ) start [2024-12-18 10:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047427', 'tblTempUsageDetail_20' ) end [2024-12-18 10:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047427', 'tblTempVendorCDR_20' ) start [2024-12-18 10:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047427', 'tblTempVendorCDR_20' ) end [2024-12-18 10:06:21] Production.INFO: ProcessCDR(1,14047427,1,1,2) [2024-12-18 10:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047427', 'tblTempUsageDetail_20' ) start [2024-12-18 10:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047427', 'tblTempUsageDetail_20' ) end [2024-12-18 10:06:26] Production.ERROR: pbx prc_insertCDR start [2024-12-18 10:06:26] Production.ERROR: pbx prc_insertCDR end [2024-12-18 10:06:26] Production.INFO: ==6200== Releasing lock... [2024-12-18 10:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 10:06:26] Production.INFO: 46 MB #Memory Used# [2024-12-18 10:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 07:07:05 [end_date_ymd] => 2024-12-18 10:07:05 [RateCDR] => 1 ) [2024-12-18 10:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 07:07:05' and `end` < '2024-12-18 10:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 10:07:18] Production.INFO: count ==2386 [2024-12-18 10:07:19] Production.ERROR: pbx CDR StartTime 2024-12-18 07:07:05 - End Time 2024-12-18 10:07:05 [2024-12-18 10:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 10:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047432', 'tblTempUsageDetail_20' ) start [2024-12-18 10:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047432', 'tblTempUsageDetail_20' ) end [2024-12-18 10:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047432', 'tblTempVendorCDR_20' ) start [2024-12-18 10:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047432', 'tblTempVendorCDR_20' ) end [2024-12-18 10:07:19] Production.INFO: ProcessCDR(1,14047432,1,1,2) [2024-12-18 10:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047432', 'tblTempUsageDetail_20' ) start [2024-12-18 10:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047432', 'tblTempUsageDetail_20' ) end [2024-12-18 10:07:23] Production.ERROR: pbx prc_insertCDR start [2024-12-18 10:07:23] Production.ERROR: pbx prc_insertCDR end [2024-12-18 10:07:23] Production.INFO: ==6278== Releasing lock... [2024-12-18 10:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 10:07:23] Production.INFO: 46 MB #Memory Used# [2024-12-18 10:08:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 07:08:04 [end_date_ymd] => 2024-12-18 10:08:04 [RateCDR] => 1 ) [2024-12-18 10:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 07:08:04' and `end` < '2024-12-18 10:08:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 10:08:17] Production.INFO: count ==2414 [2024-12-18 10:08:18] Production.ERROR: pbx CDR StartTime 2024-12-18 07:08:04 - End Time 2024-12-18 10:08:04 [2024-12-18 10:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 10:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047437', 'tblTempUsageDetail_20' ) start [2024-12-18 10:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047437', 'tblTempUsageDetail_20' ) end [2024-12-18 10:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047437', 'tblTempVendorCDR_20' ) start [2024-12-18 10:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047437', 'tblTempVendorCDR_20' ) end [2024-12-18 10:08:18] Production.INFO: ProcessCDR(1,14047437,1,1,2) [2024-12-18 10:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047437', 'tblTempUsageDetail_20' ) start [2024-12-18 10:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047437', 'tblTempUsageDetail_20' ) end [2024-12-18 10:08:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 10:08:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 10:08:22] Production.INFO: ==6348== Releasing lock... [2024-12-18 10:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 10:08:22] Production.INFO: 46.5 MB #Memory Used# [2024-12-18 10:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 07:09:05 [end_date_ymd] => 2024-12-18 10:09:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 07:09:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 10:09:18] Production.INFO: count ==2419 [2024-12-18 10:09:19] Production.ERROR: pbx CDR StartTime 2024-12-18 07:09:05 - End Time 2024-12-18 10:09:05 [2024-12-18 10:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047442', 'tblTempUsageDetail_20' ) start [2024-12-18 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047442', 'tblTempUsageDetail_20' ) end [2024-12-18 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047442', 'tblTempVendorCDR_20' ) start [2024-12-18 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047442', 'tblTempVendorCDR_20' ) end [2024-12-18 10:09:19] Production.INFO: ProcessCDR(1,14047442,1,1,2) [2024-12-18 10:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047442', 'tblTempUsageDetail_20' ) start [2024-12-18 10:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047442', 'tblTempUsageDetail_20' ) end [2024-12-18 10:09:23] Production.ERROR: pbx prc_insertCDR start [2024-12-18 10:09:23] Production.ERROR: pbx prc_insertCDR end [2024-12-18 10:09:23] Production.INFO: ==6418== Releasing lock... [2024-12-18 10:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 10:09:23] Production.INFO: 46.25 MB #Memory Used# [2024-12-18 10:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 07:10:05 [end_date_ymd] => 2024-12-18 10:10:05 [RateCDR] => 1 ) [2024-12-18 10: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` >= '2024-12-18 07:10:05' and `end` < '2024-12-18 10: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 ,'') [2024-12-18 10:10:17] Production.INFO: count ==2432 [2024-12-18 10:10:18] Production.ERROR: pbx CDR StartTime 2024-12-18 07:10:05 - End Time 2024-12-18 10:10:05 [2024-12-18 10:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 10:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047448', 'tblTempUsageDetail_20' ) start [2024-12-18 10:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047448', 'tblTempUsageDetail_20' ) end [2024-12-18 10:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047448', 'tblTempVendorCDR_20' ) start [2024-12-18 10:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047448', 'tblTempVendorCDR_20' ) end [2024-12-18 10:10:18] Production.INFO: ProcessCDR(1,14047448,1,1,2) [2024-12-18 10:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047448', 'tblTempUsageDetail_20' ) start [2024-12-18 10:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047448', 'tblTempUsageDetail_20' ) end [2024-12-18 10:10:23] Production.ERROR: pbx prc_insertCDR start [2024-12-18 10:10:23] Production.ERROR: pbx prc_insertCDR end [2024-12-18 10:10:23] Production.INFO: ==6493== Releasing lock... [2024-12-18 10:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 10:10:23] Production.INFO: 46.25 MB #Memory Used# [2024-12-18 10:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 07:11:05 [end_date_ymd] => 2024-12-18 10:11:05 [RateCDR] => 1 ) [2024-12-18 10:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 07:11:05' and `end` < '2024-12-18 10:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 10:11:17] Production.INFO: count ==2528 [2024-12-18 10:11:18] Production.ERROR: pbx CDR StartTime 2024-12-18 07:11:05 - End Time 2024-12-18 10:11:05 [2024-12-18 10:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 10:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047453', 'tblTempUsageDetail_20' ) start [2024-12-18 10:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047453', 'tblTempUsageDetail_20' ) end [2024-12-18 10:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047453', 'tblTempVendorCDR_20' ) start [2024-12-18 10:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047453', 'tblTempVendorCDR_20' ) end [2024-12-18 10:11:18] Production.INFO: ProcessCDR(1,14047453,1,1,2) [2024-12-18 10:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047453', 'tblTempUsageDetail_20' ) start [2024-12-18 10:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047453', 'tblTempUsageDetail_20' ) end [2024-12-18 10:11:23] Production.ERROR: pbx prc_insertCDR start [2024-12-18 10:11:23] Production.ERROR: pbx prc_insertCDR end [2024-12-18 10:11:23] Production.INFO: ==6567== Releasing lock... [2024-12-18 10:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 10:11:23] Production.INFO: 47 MB #Memory Used# [2024-12-18 10:12:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 07:12:04 [end_date_ymd] => 2024-12-18 10:12:04 [RateCDR] => 1 ) [2024-12-18 10:12:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 07:12:04' and `end` < '2024-12-18 10:12:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 10:12:17] Production.INFO: count ==2536 [2024-12-18 10:12:18] Production.ERROR: pbx CDR StartTime 2024-12-18 07:12:04 - End Time 2024-12-18 10:12:04 [2024-12-18 10:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 10:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047458', 'tblTempUsageDetail_20' ) start [2024-12-18 10:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047458', 'tblTempUsageDetail_20' ) end [2024-12-18 10:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047458', 'tblTempVendorCDR_20' ) start [2024-12-18 10:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047458', 'tblTempVendorCDR_20' ) end [2024-12-18 10:12:18] Production.INFO: ProcessCDR(1,14047458,1,1,2) [2024-12-18 10:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047458', 'tblTempUsageDetail_20' ) start [2024-12-18 10:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047458', 'tblTempUsageDetail_20' ) end [2024-12-18 10:12:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 10:12:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 10:12:22] Production.INFO: ==6676== Releasing lock... [2024-12-18 10:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 10:12:22] Production.INFO: 47 MB #Memory Used# [2024-12-18 10:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 07:13:05 [end_date_ymd] => 2024-12-18 10:13:05 [RateCDR] => 1 ) [2024-12-18 10:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 07:13:05' and `end` < '2024-12-18 10:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 10:13:23] Production.INFO: count ==2564 [2024-12-18 10:13:24] Production.ERROR: pbx CDR StartTime 2024-12-18 07:13:05 - End Time 2024-12-18 10:13:05 [2024-12-18 10:13:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 10:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047463', 'tblTempUsageDetail_20' ) start [2024-12-18 10:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047463', 'tblTempUsageDetail_20' ) end [2024-12-18 10:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047463', 'tblTempVendorCDR_20' ) start [2024-12-18 10:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047463', 'tblTempVendorCDR_20' ) end [2024-12-18 10:13:24] Production.INFO: ProcessCDR(1,14047463,1,1,2) [2024-12-18 10:13:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:13:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:13:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:13:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047463', 'tblTempUsageDetail_20' ) start [2024-12-18 10:13:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047463', 'tblTempUsageDetail_20' ) end [2024-12-18 10:13:29] Production.ERROR: pbx prc_insertCDR start [2024-12-18 10:13:29] Production.ERROR: pbx prc_insertCDR end [2024-12-18 10:13:29] Production.INFO: ==6750== Releasing lock... [2024-12-18 10:13:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 10:13:29] Production.INFO: 47.25 MB #Memory Used# [2024-12-18 10:14:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 07:14:04 [end_date_ymd] => 2024-12-18 10:14:04 [RateCDR] => 1 ) [2024-12-18 10:14:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 07:14:04' and `end` < '2024-12-18 10:14:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 10:14:19] Production.INFO: count ==2571 [2024-12-18 10:14:20] Production.ERROR: pbx CDR StartTime 2024-12-18 07:14:04 - End Time 2024-12-18 10:14:04 [2024-12-18 10:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 10:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047468', 'tblTempUsageDetail_20' ) start [2024-12-18 10:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047468', 'tblTempUsageDetail_20' ) end [2024-12-18 10:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047468', 'tblTempVendorCDR_20' ) start [2024-12-18 10:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047468', 'tblTempVendorCDR_20' ) end [2024-12-18 10:14:20] Production.INFO: ProcessCDR(1,14047468,1,1,2) [2024-12-18 10:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047468', 'tblTempUsageDetail_20' ) start [2024-12-18 10:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047468', 'tblTempUsageDetail_20' ) end [2024-12-18 10:14:25] Production.ERROR: pbx prc_insertCDR start [2024-12-18 10:14:25] Production.ERROR: pbx prc_insertCDR end [2024-12-18 10:14:25] Production.INFO: ==6820== Releasing lock... [2024-12-18 10:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 10:14:25] Production.INFO: 47.25 MB #Memory Used# [2024-12-18 10:15:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 07:15:04 [end_date_ymd] => 2024-12-18 10:15:04 [RateCDR] => 1 ) [2024-12-18 10: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` >= '2024-12-18 07:15:04' and `end` < '2024-12-18 10: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 ,'') [2024-12-18 10:15:27] Production.INFO: count ==2600 [2024-12-18 10:15:28] Production.ERROR: pbx CDR StartTime 2024-12-18 07:15:04 - End Time 2024-12-18 10:15:04 [2024-12-18 10:15:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 10:15:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047473', 'tblTempUsageDetail_20' ) start [2024-12-18 10:15:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047473', 'tblTempUsageDetail_20' ) end [2024-12-18 10:15:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047473', 'tblTempVendorCDR_20' ) start [2024-12-18 10:15:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047473', 'tblTempVendorCDR_20' ) end [2024-12-18 10:15:29] Production.INFO: ProcessCDR(1,14047473,1,1,2) [2024-12-18 10:15:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:15:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:15:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:15:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:15:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047473', 'tblTempUsageDetail_20' ) start [2024-12-18 10:15:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047473', 'tblTempUsageDetail_20' ) end [2024-12-18 10:15:33] Production.ERROR: pbx prc_insertCDR start [2024-12-18 10:15:33] Production.ERROR: pbx prc_insertCDR end [2024-12-18 10:15:33] Production.INFO: ==6894== Releasing lock... [2024-12-18 10:15:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 10:15:33] Production.INFO: 47.5 MB #Memory Used# [2024-12-18 10:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 07:16:05 [end_date_ymd] => 2024-12-18 10:16:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 07:16:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 10:16:20] Production.INFO: count ==2622 [2024-12-18 10:16:21] Production.ERROR: pbx CDR StartTime 2024-12-18 07:16:05 - End Time 2024-12-18 10:16:05 [2024-12-18 10:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 10:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047478', 'tblTempUsageDetail_20' ) start [2024-12-18 10:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047478', 'tblTempUsageDetail_20' ) end [2024-12-18 10:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047478', 'tblTempVendorCDR_20' ) start [2024-12-18 10:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047478', 'tblTempVendorCDR_20' ) end [2024-12-18 10:16:21] Production.INFO: ProcessCDR(1,14047478,1,1,2) [2024-12-18 10:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047478', 'tblTempUsageDetail_20' ) start [2024-12-18 10:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047478', 'tblTempUsageDetail_20' ) end [2024-12-18 10:16:24] Production.ERROR: pbx prc_insertCDR start [2024-12-18 10:16:24] Production.ERROR: pbx prc_insertCDR end [2024-12-18 10:16:24] Production.INFO: ==6967== Releasing lock... [2024-12-18 10:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 10:16:24] Production.INFO: 47.75 MB #Memory Used# [2024-12-18 10:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 07:17:04 [end_date_ymd] => 2024-12-18 10:17:04 [RateCDR] => 1 ) [2024-12-18 10: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` >= '2024-12-18 07:17:04' and `end` < '2024-12-18 10: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 ,'') [2024-12-18 10:17:17] Production.INFO: count ==2627 [2024-12-18 10:17:18] Production.ERROR: pbx CDR StartTime 2024-12-18 07:17:04 - End Time 2024-12-18 10:17:04 [2024-12-18 10:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 10:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047483', 'tblTempUsageDetail_20' ) start [2024-12-18 10:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047483', 'tblTempUsageDetail_20' ) end [2024-12-18 10:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047483', 'tblTempVendorCDR_20' ) start [2024-12-18 10:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047483', 'tblTempVendorCDR_20' ) end [2024-12-18 10:17:18] Production.INFO: ProcessCDR(1,14047483,1,1,2) [2024-12-18 10:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047483', 'tblTempUsageDetail_20' ) start [2024-12-18 10:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047483', 'tblTempUsageDetail_20' ) end [2024-12-18 10:17:23] Production.ERROR: pbx prc_insertCDR start [2024-12-18 10:17:23] Production.ERROR: pbx prc_insertCDR end [2024-12-18 10:17:23] Production.INFO: ==7039== Releasing lock... [2024-12-18 10:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 10:17:23] Production.INFO: 47.75 MB #Memory Used# [2024-12-18 10:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 07:18:05 [end_date_ymd] => 2024-12-18 10:18:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 07:18:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 10:18:18] Production.INFO: count ==2635 [2024-12-18 10:18:19] Production.ERROR: pbx CDR StartTime 2024-12-18 07:18:05 - End Time 2024-12-18 10:18:05 [2024-12-18 10:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 10:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047488', 'tblTempUsageDetail_20' ) start [2024-12-18 10:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047488', 'tblTempUsageDetail_20' ) end [2024-12-18 10:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047488', 'tblTempVendorCDR_20' ) start [2024-12-18 10:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047488', 'tblTempVendorCDR_20' ) end [2024-12-18 10:18:19] Production.INFO: ProcessCDR(1,14047488,1,1,2) [2024-12-18 10:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047488', 'tblTempUsageDetail_20' ) start [2024-12-18 10:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047488', 'tblTempUsageDetail_20' ) end [2024-12-18 10:18:24] Production.ERROR: pbx prc_insertCDR start [2024-12-18 10:18:24] Production.ERROR: pbx prc_insertCDR end [2024-12-18 10:18:24] Production.INFO: ==7112== Releasing lock... [2024-12-18 10:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 10:18:24] Production.INFO: 47.75 MB #Memory Used# [2024-12-18 10:19:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 07:19:04 [end_date_ymd] => 2024-12-18 10:19:04 [RateCDR] => 1 ) [2024-12-18 10: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` >= '2024-12-18 07:19:04' and `end` < '2024-12-18 10: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 ,'') [2024-12-18 10:19:18] Production.INFO: count ==2656 [2024-12-18 10:19:19] Production.ERROR: pbx CDR StartTime 2024-12-18 07:19:04 - End Time 2024-12-18 10:19:04 [2024-12-18 10:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047493', 'tblTempUsageDetail_20' ) start [2024-12-18 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047493', 'tblTempUsageDetail_20' ) end [2024-12-18 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047493', 'tblTempVendorCDR_20' ) start [2024-12-18 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047493', 'tblTempVendorCDR_20' ) end [2024-12-18 10:19:19] Production.INFO: ProcessCDR(1,14047493,1,1,2) [2024-12-18 10:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047493', 'tblTempUsageDetail_20' ) start [2024-12-18 10:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047493', 'tblTempUsageDetail_20' ) end [2024-12-18 10:19:23] Production.ERROR: pbx prc_insertCDR start [2024-12-18 10:19:24] Production.ERROR: pbx prc_insertCDR end [2024-12-18 10:19:24] Production.INFO: ==7184== Releasing lock... [2024-12-18 10:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 10:19:24] Production.INFO: 48 MB #Memory Used# [2024-12-18 10:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 07:20:06 [end_date_ymd] => 2024-12-18 10:20:06 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 07:20:06' and `end` < '2024-12-18 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 ,'') [2024-12-18 10:20:18] Production.INFO: count ==2664 [2024-12-18 10:20:19] Production.ERROR: pbx CDR StartTime 2024-12-18 07:20:06 - End Time 2024-12-18 10:20:06 [2024-12-18 10:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 10:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047499', 'tblTempUsageDetail_20' ) start [2024-12-18 10:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047499', 'tblTempUsageDetail_20' ) end [2024-12-18 10:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047499', 'tblTempVendorCDR_20' ) start [2024-12-18 10:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047499', 'tblTempVendorCDR_20' ) end [2024-12-18 10:20:19] Production.INFO: ProcessCDR(1,14047499,1,1,2) [2024-12-18 10:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047499', 'tblTempUsageDetail_20' ) start [2024-12-18 10:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047499', 'tblTempUsageDetail_20' ) end [2024-12-18 10:20:24] Production.ERROR: pbx prc_insertCDR start [2024-12-18 10:20:24] Production.ERROR: pbx prc_insertCDR end [2024-12-18 10:20:24] Production.INFO: ==7256== Releasing lock... [2024-12-18 10:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 10:20:24] Production.INFO: 48 MB #Memory Used# [2024-12-18 10:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 07:21:04 [end_date_ymd] => 2024-12-18 10:21:04 [RateCDR] => 1 ) [2024-12-18 10:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 07:21:04' and `end` < '2024-12-18 10:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 10:21:20] Production.INFO: count ==2740 [2024-12-18 10:21:21] Production.ERROR: pbx CDR StartTime 2024-12-18 07:21:04 - End Time 2024-12-18 10:21:04 [2024-12-18 10:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 10:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047504', 'tblTempUsageDetail_20' ) start [2024-12-18 10:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047504', 'tblTempUsageDetail_20' ) end [2024-12-18 10:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047504', 'tblTempVendorCDR_20' ) start [2024-12-18 10:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047504', 'tblTempVendorCDR_20' ) end [2024-12-18 10:21:21] Production.INFO: ProcessCDR(1,14047504,1,1,2) [2024-12-18 10:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047504', 'tblTempUsageDetail_20' ) start [2024-12-18 10:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047504', 'tblTempUsageDetail_20' ) end [2024-12-18 10:21:25] Production.ERROR: pbx prc_insertCDR start [2024-12-18 10:21:25] Production.ERROR: pbx prc_insertCDR end [2024-12-18 10:21:25] Production.INFO: ==7330== Releasing lock... [2024-12-18 10:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 10:21:25] Production.INFO: 48.75 MB #Memory Used# [2024-12-18 10:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 07:22:05 [end_date_ymd] => 2024-12-18 10:22:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 07:22:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 10:22:23] Production.INFO: count ==2770 [2024-12-18 10:22:24] Production.ERROR: pbx CDR StartTime 2024-12-18 07:22:05 - End Time 2024-12-18 10:22:05 [2024-12-18 10:22:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 10:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047509', 'tblTempUsageDetail_20' ) start [2024-12-18 10:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047509', 'tblTempUsageDetail_20' ) end [2024-12-18 10:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047509', 'tblTempVendorCDR_20' ) start [2024-12-18 10:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047509', 'tblTempVendorCDR_20' ) end [2024-12-18 10:22:24] Production.INFO: ProcessCDR(1,14047509,1,1,2) [2024-12-18 10:22:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:22:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:22:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:22:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047509', 'tblTempUsageDetail_20' ) start [2024-12-18 10:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047509', 'tblTempUsageDetail_20' ) end [2024-12-18 10:22:28] Production.ERROR: pbx prc_insertCDR start [2024-12-18 10:22:28] Production.ERROR: pbx prc_insertCDR end [2024-12-18 10:22:28] Production.INFO: ==7401== Releasing lock... [2024-12-18 10:22:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 10:22:28] Production.INFO: 48.75 MB #Memory Used# [2024-12-18 10:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 07:23:05 [end_date_ymd] => 2024-12-18 10:23:05 [RateCDR] => 1 ) [2024-12-18 10:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 07:23:05' and `end` < '2024-12-18 10:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 10:23:23] Production.INFO: count ==2789 [2024-12-18 10:23:24] Production.ERROR: pbx CDR StartTime 2024-12-18 07:23:05 - End Time 2024-12-18 10:23:05 [2024-12-18 10:23:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 10:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047514', 'tblTempUsageDetail_20' ) start [2024-12-18 10:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047514', 'tblTempUsageDetail_20' ) end [2024-12-18 10:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047514', 'tblTempVendorCDR_20' ) start [2024-12-18 10:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047514', 'tblTempVendorCDR_20' ) end [2024-12-18 10:23:24] Production.INFO: ProcessCDR(1,14047514,1,1,2) [2024-12-18 10:23:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:23:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:23:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:23:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047514', 'tblTempUsageDetail_20' ) start [2024-12-18 10:23:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047514', 'tblTempUsageDetail_20' ) end [2024-12-18 10:23:29] Production.ERROR: pbx prc_insertCDR start [2024-12-18 10:23:29] Production.ERROR: pbx prc_insertCDR end [2024-12-18 10:23:29] Production.INFO: ==7472== Releasing lock... [2024-12-18 10:23:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 10:23:29] Production.INFO: 49 MB #Memory Used# [2024-12-18 10:24:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 07:24:04 [end_date_ymd] => 2024-12-18 10:24:04 [RateCDR] => 1 ) [2024-12-18 10:24:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 07:24:04' and `end` < '2024-12-18 10:24:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 10:24:20] Production.INFO: count ==2801 [2024-12-18 10:24:21] Production.ERROR: pbx CDR StartTime 2024-12-18 07:24:04 - End Time 2024-12-18 10:24:04 [2024-12-18 10:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 10:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047519', 'tblTempUsageDetail_20' ) start [2024-12-18 10:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047519', 'tblTempUsageDetail_20' ) end [2024-12-18 10:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047519', 'tblTempVendorCDR_20' ) start [2024-12-18 10:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047519', 'tblTempVendorCDR_20' ) end [2024-12-18 10:24:21] Production.INFO: ProcessCDR(1,14047519,1,1,2) [2024-12-18 10:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047519', 'tblTempUsageDetail_20' ) start [2024-12-18 10:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047519', 'tblTempUsageDetail_20' ) end [2024-12-18 10:24:25] Production.ERROR: pbx prc_insertCDR start [2024-12-18 10:24:25] Production.ERROR: pbx prc_insertCDR end [2024-12-18 10:24:25] Production.INFO: ==7546== Releasing lock... [2024-12-18 10:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 10:24:25] Production.INFO: 49 MB #Memory Used# [2024-12-18 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 07:25:05 [end_date_ymd] => 2024-12-18 10:25:05 [RateCDR] => 1 ) [2024-12-18 10:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 07:25:05' and `end` < '2024-12-18 10:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 10:25:18] Production.INFO: count ==2823 [2024-12-18 10:25:19] Production.ERROR: pbx CDR StartTime 2024-12-18 07:25:05 - End Time 2024-12-18 10:25:05 [2024-12-18 10:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047524', 'tblTempUsageDetail_20' ) start [2024-12-18 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047524', 'tblTempUsageDetail_20' ) end [2024-12-18 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047524', 'tblTempVendorCDR_20' ) start [2024-12-18 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047524', 'tblTempVendorCDR_20' ) end [2024-12-18 10:25:19] Production.INFO: ProcessCDR(1,14047524,1,1,2) [2024-12-18 10:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047524', 'tblTempUsageDetail_20' ) start [2024-12-18 10:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047524', 'tblTempUsageDetail_20' ) end [2024-12-18 10:25:23] Production.ERROR: pbx prc_insertCDR start [2024-12-18 10:25:23] Production.ERROR: pbx prc_insertCDR end [2024-12-18 10:25:23] Production.INFO: ==7617== Releasing lock... [2024-12-18 10:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 10:25:23] Production.INFO: 49 MB #Memory Used# [2024-12-18 10:26:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 07:26:04 [end_date_ymd] => 2024-12-18 10:26:04 [RateCDR] => 1 ) [2024-12-18 10:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 07:26:04' and `end` < '2024-12-18 10:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 10:26:17] Production.INFO: count ==2835 [2024-12-18 10:26:18] Production.ERROR: pbx CDR StartTime 2024-12-18 07:26:04 - End Time 2024-12-18 10:26:04 [2024-12-18 10:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 10:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047529', 'tblTempUsageDetail_20' ) start [2024-12-18 10:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047529', 'tblTempUsageDetail_20' ) end [2024-12-18 10:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047529', 'tblTempVendorCDR_20' ) start [2024-12-18 10:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047529', 'tblTempVendorCDR_20' ) end [2024-12-18 10:26:18] Production.INFO: ProcessCDR(1,14047529,1,1,2) [2024-12-18 10:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047529', 'tblTempUsageDetail_20' ) start [2024-12-18 10:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047529', 'tblTempUsageDetail_20' ) end [2024-12-18 10:26:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 10:26:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 10:26:22] Production.INFO: ==7687== Releasing lock... [2024-12-18 10:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 10:26:22] Production.INFO: 49.25 MB #Memory Used# [2024-12-18 10:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 07:27:05 [end_date_ymd] => 2024-12-18 10:27:05 [RateCDR] => 1 ) [2024-12-18 10:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 07:27:05' and `end` < '2024-12-18 10:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 10:27:22] Production.INFO: count ==2847 [2024-12-18 10:27:23] Production.ERROR: pbx CDR StartTime 2024-12-18 07:27:05 - End Time 2024-12-18 10:27:05 [2024-12-18 10:27:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 10:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047534', 'tblTempUsageDetail_20' ) start [2024-12-18 10:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047534', 'tblTempUsageDetail_20' ) end [2024-12-18 10:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047534', 'tblTempVendorCDR_20' ) start [2024-12-18 10:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047534', 'tblTempVendorCDR_20' ) end [2024-12-18 10:27:23] Production.INFO: ProcessCDR(1,14047534,1,1,2) [2024-12-18 10:27:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:27:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:27:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:27:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047534', 'tblTempUsageDetail_20' ) start [2024-12-18 10:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047534', 'tblTempUsageDetail_20' ) end [2024-12-18 10:27:28] Production.ERROR: pbx prc_insertCDR start [2024-12-18 10:27:28] Production.ERROR: pbx prc_insertCDR end [2024-12-18 10:27:28] Production.INFO: ==7797== Releasing lock... [2024-12-18 10:27:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 10:27:28] Production.INFO: 49 MB #Memory Used# [2024-12-18 10:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 07:28:05 [end_date_ymd] => 2024-12-18 10:28:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 07:28:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 10:28:25] Production.INFO: count ==2876 [2024-12-18 10:28:26] Production.ERROR: pbx CDR StartTime 2024-12-18 07:28:05 - End Time 2024-12-18 10:28:05 [2024-12-18 10:28:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 10:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047539', 'tblTempUsageDetail_20' ) start [2024-12-18 10:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047539', 'tblTempUsageDetail_20' ) end [2024-12-18 10:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047539', 'tblTempVendorCDR_20' ) start [2024-12-18 10:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047539', 'tblTempVendorCDR_20' ) end [2024-12-18 10:28:26] Production.INFO: ProcessCDR(1,14047539,1,1,2) [2024-12-18 10:28:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:28:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:28:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:28:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:28:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047539', 'tblTempUsageDetail_20' ) start [2024-12-18 10:28:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047539', 'tblTempUsageDetail_20' ) end [2024-12-18 10:28:30] Production.ERROR: pbx prc_insertCDR start [2024-12-18 10:28:30] Production.ERROR: pbx prc_insertCDR end [2024-12-18 10:28:30] Production.INFO: ==7868== Releasing lock... [2024-12-18 10:28:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 10:28:30] Production.INFO: 50 MB #Memory Used# [2024-12-18 10:29:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 07:29:04 [end_date_ymd] => 2024-12-18 10:29:04 [RateCDR] => 1 ) [2024-12-18 10:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 07:29:04' and `end` < '2024-12-18 10:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 10:29:24] Production.INFO: count ==2892 [2024-12-18 10:29:25] Production.ERROR: pbx CDR StartTime 2024-12-18 07:29:04 - End Time 2024-12-18 10:29:04 [2024-12-18 10:29:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 10:29:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047544', 'tblTempUsageDetail_20' ) start [2024-12-18 10:29:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047544', 'tblTempUsageDetail_20' ) end [2024-12-18 10:29:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047544', 'tblTempVendorCDR_20' ) start [2024-12-18 10:29:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047544', 'tblTempVendorCDR_20' ) end [2024-12-18 10:29:25] Production.INFO: ProcessCDR(1,14047544,1,1,2) [2024-12-18 10:29:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:29:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:29:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:29:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:29:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047544', 'tblTempUsageDetail_20' ) start [2024-12-18 10:29:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047544', 'tblTempUsageDetail_20' ) end [2024-12-18 10:29:29] Production.ERROR: pbx prc_insertCDR start [2024-12-18 10:29:29] Production.ERROR: pbx prc_insertCDR end [2024-12-18 10:29:29] Production.INFO: ==7940== Releasing lock... [2024-12-18 10:29:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 10:29:29] Production.INFO: 49.5 MB #Memory Used# [2024-12-18 10:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 07:30:05 [end_date_ymd] => 2024-12-18 10:30:05 [RateCDR] => 1 ) [2024-12-18 10:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 07:30:05' and `end` < '2024-12-18 10:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 10:30:19] Production.INFO: count ==2912 [2024-12-18 10:30:20] Production.ERROR: pbx CDR StartTime 2024-12-18 07:30:05 - End Time 2024-12-18 10:30:05 [2024-12-18 10:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 10:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047550', 'tblTempUsageDetail_20' ) start [2024-12-18 10:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047550', 'tblTempUsageDetail_20' ) end [2024-12-18 10:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047550', 'tblTempVendorCDR_20' ) start [2024-12-18 10:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047550', 'tblTempVendorCDR_20' ) end [2024-12-18 10:30:21] Production.INFO: ProcessCDR(1,14047550,1,1,2) [2024-12-18 10:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047550', 'tblTempUsageDetail_20' ) start [2024-12-18 10:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047550', 'tblTempUsageDetail_20' ) end [2024-12-18 10:30:25] Production.ERROR: pbx prc_insertCDR start [2024-12-18 10:30:25] Production.ERROR: pbx prc_insertCDR end [2024-12-18 10:30:25] Production.INFO: ==8015== Releasing lock... [2024-12-18 10:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 10:30:25] Production.INFO: 49.5 MB #Memory Used# [2024-12-18 10:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 07:31:05 [end_date_ymd] => 2024-12-18 10:31:05 [RateCDR] => 1 ) [2024-12-18 10:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 07:31:05' and `end` < '2024-12-18 10:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 10:31:25] Production.INFO: count ==3036 [2024-12-18 10:31:26] Production.ERROR: pbx CDR StartTime 2024-12-18 07:31:05 - End Time 2024-12-18 10:31:05 [2024-12-18 10:31:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 10:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047555', 'tblTempUsageDetail_20' ) start [2024-12-18 10:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047555', 'tblTempUsageDetail_20' ) end [2024-12-18 10:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047555', 'tblTempVendorCDR_20' ) start [2024-12-18 10:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047555', 'tblTempVendorCDR_20' ) end [2024-12-18 10:31:26] Production.INFO: ProcessCDR(1,14047555,1,1,2) [2024-12-18 10:31:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:31:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:31:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:31:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:31:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047555', 'tblTempUsageDetail_20' ) start [2024-12-18 10:31:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047555', 'tblTempUsageDetail_20' ) end [2024-12-18 10:31:30] Production.ERROR: pbx prc_insertCDR start [2024-12-18 10:31:30] Production.ERROR: pbx prc_insertCDR end [2024-12-18 10:31:30] Production.INFO: ==8088== Releasing lock... [2024-12-18 10:31:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 10:31:30] Production.INFO: 51 MB #Memory Used# [2024-12-18 10:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 07:32:05 [end_date_ymd] => 2024-12-18 10:32:05 [RateCDR] => 1 ) [2024-12-18 10:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 07:32:05' and `end` < '2024-12-18 10:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 10:32:23] Production.INFO: count ==3045 [2024-12-18 10:32:24] Production.ERROR: pbx CDR StartTime 2024-12-18 07:32:05 - End Time 2024-12-18 10:32:05 [2024-12-18 10:32:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 10:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047560', 'tblTempUsageDetail_20' ) start [2024-12-18 10:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047560', 'tblTempUsageDetail_20' ) end [2024-12-18 10:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047560', 'tblTempVendorCDR_20' ) start [2024-12-18 10:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047560', 'tblTempVendorCDR_20' ) end [2024-12-18 10:32:24] Production.INFO: ProcessCDR(1,14047560,1,1,2) [2024-12-18 10:32:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:32:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:32:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:32:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047560', 'tblTempUsageDetail_20' ) start [2024-12-18 10:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047560', 'tblTempUsageDetail_20' ) end [2024-12-18 10:32:28] Production.ERROR: pbx prc_insertCDR start [2024-12-18 10:32:28] Production.ERROR: pbx prc_insertCDR end [2024-12-18 10:32:28] Production.INFO: ==8158== Releasing lock... [2024-12-18 10:32:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 10:32:28] Production.INFO: 51.25 MB #Memory Used# [2024-12-18 10:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 07:33:05 [end_date_ymd] => 2024-12-18 10:33:05 [RateCDR] => 1 ) [2024-12-18 10:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 07:33:05' and `end` < '2024-12-18 10:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 10:33:20] Production.INFO: count ==3053 [2024-12-18 10:33:22] Production.ERROR: pbx CDR StartTime 2024-12-18 07:33:05 - End Time 2024-12-18 10:33:05 [2024-12-18 10:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 10:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047565', 'tblTempUsageDetail_20' ) start [2024-12-18 10:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047565', 'tblTempUsageDetail_20' ) end [2024-12-18 10:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047565', 'tblTempVendorCDR_20' ) start [2024-12-18 10:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047565', 'tblTempVendorCDR_20' ) end [2024-12-18 10:33:22] Production.INFO: ProcessCDR(1,14047565,1,1,2) [2024-12-18 10:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047565', 'tblTempUsageDetail_20' ) start [2024-12-18 10:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047565', 'tblTempUsageDetail_20' ) end [2024-12-18 10:33:26] Production.ERROR: pbx prc_insertCDR start [2024-12-18 10:33:26] Production.ERROR: pbx prc_insertCDR end [2024-12-18 10:33:27] Production.INFO: ==8233== Releasing lock... [2024-12-18 10:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 10:33:27] Production.INFO: 51 MB #Memory Used# [2024-12-18 10:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 07:34:05 [end_date_ymd] => 2024-12-18 10:34:05 [RateCDR] => 1 ) [2024-12-18 10:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 07:34:05' and `end` < '2024-12-18 10:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 10:34:26] Production.INFO: count ==3081 [2024-12-18 10:34:27] Production.ERROR: pbx CDR StartTime 2024-12-18 07:34:05 - End Time 2024-12-18 10:34:05 [2024-12-18 10:34:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 10:34:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047570', 'tblTempUsageDetail_20' ) start [2024-12-18 10:34:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047570', 'tblTempUsageDetail_20' ) end [2024-12-18 10:34:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047570', 'tblTempVendorCDR_20' ) start [2024-12-18 10:34:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047570', 'tblTempVendorCDR_20' ) end [2024-12-18 10:34:28] Production.INFO: ProcessCDR(1,14047570,1,1,2) [2024-12-18 10:34:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:34:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:34:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:34:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:34:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047570', 'tblTempUsageDetail_20' ) start [2024-12-18 10:34:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047570', 'tblTempUsageDetail_20' ) end [2024-12-18 10:34:32] Production.ERROR: pbx prc_insertCDR start [2024-12-18 10:34:32] Production.ERROR: pbx prc_insertCDR end [2024-12-18 10:34:32] Production.INFO: ==8306== Releasing lock... [2024-12-18 10:34:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 10:34:32] Production.INFO: 51 MB #Memory Used# [2024-12-18 10:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 07:35:04 [end_date_ymd] => 2024-12-18 10:35:04 [RateCDR] => 1 ) [2024-12-18 10:35: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` >= '2024-12-18 07:35:04' and `end` < '2024-12-18 10:35: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 ,'') [2024-12-18 10:35:23] Production.INFO: count ==3103 [2024-12-18 10:35:24] Production.ERROR: pbx CDR StartTime 2024-12-18 07:35:04 - End Time 2024-12-18 10:35:04 [2024-12-18 10:35:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 10:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047575', 'tblTempUsageDetail_20' ) start [2024-12-18 10:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047575', 'tblTempUsageDetail_20' ) end [2024-12-18 10:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047575', 'tblTempVendorCDR_20' ) start [2024-12-18 10:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047575', 'tblTempVendorCDR_20' ) end [2024-12-18 10:35:24] Production.INFO: ProcessCDR(1,14047575,1,1,2) [2024-12-18 10:35:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:35:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:35:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:35:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:35:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047575', 'tblTempUsageDetail_20' ) start [2024-12-18 10:35:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047575', 'tblTempUsageDetail_20' ) end [2024-12-18 10:35:29] Production.ERROR: pbx prc_insertCDR start [2024-12-18 10:35:29] Production.ERROR: pbx prc_insertCDR end [2024-12-18 10:35:29] Production.INFO: ==8378== Releasing lock... [2024-12-18 10:35:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 10:35:29] Production.INFO: 51.25 MB #Memory Used# [2024-12-18 10:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 07:36:05 [end_date_ymd] => 2024-12-18 10:36:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 07:36:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 10:36:24] Production.INFO: count ==3122 [2024-12-18 10:36:25] Production.ERROR: pbx CDR StartTime 2024-12-18 07:36:05 - End Time 2024-12-18 10:36:05 [2024-12-18 10:36:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 10:36:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047580', 'tblTempUsageDetail_20' ) start [2024-12-18 10:36:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047580', 'tblTempUsageDetail_20' ) end [2024-12-18 10:36:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047580', 'tblTempVendorCDR_20' ) start [2024-12-18 10:36:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047580', 'tblTempVendorCDR_20' ) end [2024-12-18 10:36:25] Production.INFO: ProcessCDR(1,14047580,1,1,2) [2024-12-18 10:36:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:36:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:36:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:36:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:36:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047580', 'tblTempUsageDetail_20' ) start [2024-12-18 10:36:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047580', 'tblTempUsageDetail_20' ) end [2024-12-18 10:36:29] Production.ERROR: pbx prc_insertCDR start [2024-12-18 10:36:29] Production.ERROR: pbx prc_insertCDR end [2024-12-18 10:36:29] Production.INFO: ==8449== Releasing lock... [2024-12-18 10:36:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 10:36:29] Production.INFO: 51.5 MB #Memory Used# [2024-12-18 10:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 07:37:04 [end_date_ymd] => 2024-12-18 10:37:04 [RateCDR] => 1 ) [2024-12-18 10: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` >= '2024-12-18 07:37:04' and `end` < '2024-12-18 10: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 ,'') [2024-12-18 10:37:17] Production.INFO: count ==3160 [2024-12-18 10:37:18] Production.ERROR: pbx CDR StartTime 2024-12-18 07:37:04 - End Time 2024-12-18 10:37:04 [2024-12-18 10:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 10:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047585', 'tblTempUsageDetail_20' ) start [2024-12-18 10:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047585', 'tblTempUsageDetail_20' ) end [2024-12-18 10:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047585', 'tblTempVendorCDR_20' ) start [2024-12-18 10:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047585', 'tblTempVendorCDR_20' ) end [2024-12-18 10:37:18] Production.INFO: ProcessCDR(1,14047585,1,1,2) [2024-12-18 10:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047585', 'tblTempUsageDetail_20' ) start [2024-12-18 10:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047585', 'tblTempUsageDetail_20' ) end [2024-12-18 10:37:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 10:37:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 10:37:22] Production.INFO: ==8518== Releasing lock... [2024-12-18 10:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 10:37:22] Production.INFO: 53 MB #Memory Used# [2024-12-18 10:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 07:38:05 [end_date_ymd] => 2024-12-18 10:38:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 07:38:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 10:38:19] Production.INFO: count ==3158 [2024-12-18 10:38:20] Production.ERROR: pbx CDR StartTime 2024-12-18 07:38:05 - End Time 2024-12-18 10:38:05 [2024-12-18 10:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047590', 'tblTempUsageDetail_20' ) start [2024-12-18 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047590', 'tblTempUsageDetail_20' ) end [2024-12-18 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047590', 'tblTempVendorCDR_20' ) start [2024-12-18 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047590', 'tblTempVendorCDR_20' ) end [2024-12-18 10:38:20] Production.INFO: ProcessCDR(1,14047590,1,1,2) [2024-12-18 10:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047590', 'tblTempUsageDetail_20' ) start [2024-12-18 10:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047590', 'tblTempUsageDetail_20' ) end [2024-12-18 10:38:25] Production.ERROR: pbx prc_insertCDR start [2024-12-18 10:38:25] Production.ERROR: pbx prc_insertCDR end [2024-12-18 10:38:25] Production.INFO: ==8591== Releasing lock... [2024-12-18 10:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 10:38:25] Production.INFO: 52 MB #Memory Used# [2024-12-18 10:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 07:39:05 [end_date_ymd] => 2024-12-18 10:39:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 07:39:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 10:39:18] Production.INFO: count ==3161 [2024-12-18 10:39:19] Production.ERROR: pbx CDR StartTime 2024-12-18 07:39:05 - End Time 2024-12-18 10:39:05 [2024-12-18 10:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 10:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047595', 'tblTempUsageDetail_20' ) start [2024-12-18 10:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047595', 'tblTempUsageDetail_20' ) end [2024-12-18 10:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047595', 'tblTempVendorCDR_20' ) start [2024-12-18 10:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047595', 'tblTempVendorCDR_20' ) end [2024-12-18 10:39:19] Production.INFO: ProcessCDR(1,14047595,1,1,2) [2024-12-18 10:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047595', 'tblTempUsageDetail_20' ) start [2024-12-18 10:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047595', 'tblTempUsageDetail_20' ) end [2024-12-18 10:39:23] Production.ERROR: pbx prc_insertCDR start [2024-12-18 10:39:23] Production.ERROR: pbx prc_insertCDR end [2024-12-18 10:39:23] Production.INFO: ==8660== Releasing lock... [2024-12-18 10:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 10:39:23] Production.INFO: 51.75 MB #Memory Used# [2024-12-18 10:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 07:40:05 [end_date_ymd] => 2024-12-18 10:40:05 [RateCDR] => 1 ) [2024-12-18 10: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` >= '2024-12-18 07:40:05' and `end` < '2024-12-18 10: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 ,'') [2024-12-18 10:40:20] Production.INFO: count ==3177 [2024-12-18 10:40:21] Production.ERROR: pbx CDR StartTime 2024-12-18 07:40:05 - End Time 2024-12-18 10:40:05 [2024-12-18 10:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 10:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047601', 'tblTempUsageDetail_20' ) start [2024-12-18 10:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047601', 'tblTempUsageDetail_20' ) end [2024-12-18 10:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047601', 'tblTempVendorCDR_20' ) start [2024-12-18 10:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047601', 'tblTempVendorCDR_20' ) end [2024-12-18 10:40:21] Production.INFO: ProcessCDR(1,14047601,1,1,2) [2024-12-18 10:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047601', 'tblTempUsageDetail_20' ) start [2024-12-18 10:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047601', 'tblTempUsageDetail_20' ) end [2024-12-18 10:40:26] Production.ERROR: pbx prc_insertCDR start [2024-12-18 10:40:26] Production.ERROR: pbx prc_insertCDR end [2024-12-18 10:40:26] Production.INFO: ==8734== Releasing lock... [2024-12-18 10:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 10:40:26] Production.INFO: 52 MB #Memory Used# [2024-12-18 10:41:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 07:41:04 [end_date_ymd] => 2024-12-18 10:41:04 [RateCDR] => 1 ) [2024-12-18 10:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 07:41:04' and `end` < '2024-12-18 10:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 10:41:26] Production.INFO: count ==3284 [2024-12-18 10:41:27] Production.ERROR: pbx CDR StartTime 2024-12-18 07:41:04 - End Time 2024-12-18 10:41:04 [2024-12-18 10:41:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 10:41:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047606', 'tblTempUsageDetail_20' ) start [2024-12-18 10:41:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047606', 'tblTempUsageDetail_20' ) end [2024-12-18 10:41:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047606', 'tblTempVendorCDR_20' ) start [2024-12-18 10:41:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047606', 'tblTempVendorCDR_20' ) end [2024-12-18 10:41:27] Production.INFO: ProcessCDR(1,14047606,1,1,2) [2024-12-18 10:41:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:41:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:41:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:41:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:41:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047606', 'tblTempUsageDetail_20' ) start [2024-12-18 10:41:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047606', 'tblTempUsageDetail_20' ) end [2024-12-18 10:41:32] Production.ERROR: pbx prc_insertCDR start [2024-12-18 10:41:32] Production.ERROR: pbx prc_insertCDR end [2024-12-18 10:41:32] Production.INFO: ==8808== Releasing lock... [2024-12-18 10:41:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 10:41:32] Production.INFO: 52.5 MB #Memory Used# [2024-12-18 10:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 07:42:05 [end_date_ymd] => 2024-12-18 10:42:05 [RateCDR] => 1 ) [2024-12-18 10:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 07:42:05' and `end` < '2024-12-18 10:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 10:42:27] Production.INFO: count ==3295 [2024-12-18 10:42:28] Production.ERROR: pbx CDR StartTime 2024-12-18 07:42:05 - End Time 2024-12-18 10:42:05 [2024-12-18 10:42:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 10:42:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047611', 'tblTempUsageDetail_20' ) start [2024-12-18 10:42:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047611', 'tblTempUsageDetail_20' ) end [2024-12-18 10:42:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047611', 'tblTempVendorCDR_20' ) start [2024-12-18 10:42:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047611', 'tblTempVendorCDR_20' ) end [2024-12-18 10:42:28] Production.INFO: ProcessCDR(1,14047611,1,1,2) [2024-12-18 10:42:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:42:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:42:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:42:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:42:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047611', 'tblTempUsageDetail_20' ) start [2024-12-18 10:42:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047611', 'tblTempUsageDetail_20' ) end [2024-12-18 10:42:33] Production.ERROR: pbx prc_insertCDR start [2024-12-18 10:42:33] Production.ERROR: pbx prc_insertCDR end [2024-12-18 10:42:33] Production.INFO: ==8879== Releasing lock... [2024-12-18 10:42:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 10:42:33] Production.INFO: 53.5 MB #Memory Used# [2024-12-18 10:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 07:43:04 [end_date_ymd] => 2024-12-18 10:43:04 [RateCDR] => 1 ) [2024-12-18 10:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 07:43:04' and `end` < '2024-12-18 10:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 10:43:20] Production.INFO: count ==3308 [2024-12-18 10:43:21] Production.ERROR: pbx CDR StartTime 2024-12-18 07:43:04 - End Time 2024-12-18 10:43:04 [2024-12-18 10:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 10:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047616', 'tblTempUsageDetail_20' ) start [2024-12-18 10:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047616', 'tblTempUsageDetail_20' ) end [2024-12-18 10:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047616', 'tblTempVendorCDR_20' ) start [2024-12-18 10:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047616', 'tblTempVendorCDR_20' ) end [2024-12-18 10:43:21] Production.INFO: ProcessCDR(1,14047616,1,1,2) [2024-12-18 10:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047616', 'tblTempUsageDetail_20' ) start [2024-12-18 10:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047616', 'tblTempUsageDetail_20' ) end [2024-12-18 10:43:26] Production.ERROR: pbx prc_insertCDR start [2024-12-18 10:43:26] Production.ERROR: pbx prc_insertCDR end [2024-12-18 10:43:26] Production.INFO: ==8992== Releasing lock... [2024-12-18 10:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 10:43:26] Production.INFO: 53.75 MB #Memory Used# [2024-12-18 10:44:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 07:44:04 [end_date_ymd] => 2024-12-18 10:44:04 [RateCDR] => 1 ) [2024-12-18 10:44:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 07:44:04' and `end` < '2024-12-18 10:44:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 10:44:23] Production.INFO: count ==3324 [2024-12-18 10:44:24] Production.ERROR: pbx CDR StartTime 2024-12-18 07:44:04 - End Time 2024-12-18 10:44:04 [2024-12-18 10:44:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 10:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047621', 'tblTempUsageDetail_20' ) start [2024-12-18 10:44:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047621', 'tblTempUsageDetail_20' ) end [2024-12-18 10:44:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047621', 'tblTempVendorCDR_20' ) start [2024-12-18 10:44:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047621', 'tblTempVendorCDR_20' ) end [2024-12-18 10:44:25] Production.INFO: ProcessCDR(1,14047621,1,1,2) [2024-12-18 10:44:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:44:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:44:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:44:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:44:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047621', 'tblTempUsageDetail_20' ) start [2024-12-18 10:44:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047621', 'tblTempUsageDetail_20' ) end [2024-12-18 10:44:29] Production.ERROR: pbx prc_insertCDR start [2024-12-18 10:44:29] Production.ERROR: pbx prc_insertCDR end [2024-12-18 10:44:29] Production.INFO: ==9063== Releasing lock... [2024-12-18 10:44:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 10:44:29] Production.INFO: 53 MB #Memory Used# [2024-12-18 10:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 07:45:05 [end_date_ymd] => 2024-12-18 10:45:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 07:45:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 10:45:20] Production.INFO: count ==3336 [2024-12-18 10:45:21] Production.ERROR: pbx CDR StartTime 2024-12-18 07:45:05 - End Time 2024-12-18 10:45:05 [2024-12-18 10:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 10:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047626', 'tblTempUsageDetail_20' ) start [2024-12-18 10:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047626', 'tblTempUsageDetail_20' ) end [2024-12-18 10:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047626', 'tblTempVendorCDR_20' ) start [2024-12-18 10:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047626', 'tblTempVendorCDR_20' ) end [2024-12-18 10:45:21] Production.INFO: ProcessCDR(1,14047626,1,1,2) [2024-12-18 10:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047626', 'tblTempUsageDetail_20' ) start [2024-12-18 10:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047626', 'tblTempUsageDetail_20' ) end [2024-12-18 10:45:26] Production.ERROR: pbx prc_insertCDR start [2024-12-18 10:45:26] Production.ERROR: pbx prc_insertCDR end [2024-12-18 10:45:26] Production.INFO: ==9138== Releasing lock... [2024-12-18 10:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 10:45:26] Production.INFO: 53.25 MB #Memory Used# [2024-12-18 10:46:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 07:46:04 [end_date_ymd] => 2024-12-18 10:46:04 [RateCDR] => 1 ) [2024-12-18 10:46: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` >= '2024-12-18 07:46:04' and `end` < '2024-12-18 10: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 ,'') [2024-12-18 10:46:25] Production.INFO: count ==3342 [2024-12-18 10:46:26] Production.ERROR: pbx CDR StartTime 2024-12-18 07:46:04 - End Time 2024-12-18 10:46:04 [2024-12-18 10:46:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 10:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047631', 'tblTempUsageDetail_20' ) start [2024-12-18 10:46:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047631', 'tblTempUsageDetail_20' ) end [2024-12-18 10:46:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047631', 'tblTempVendorCDR_20' ) start [2024-12-18 10:46:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047631', 'tblTempVendorCDR_20' ) end [2024-12-18 10:46:27] Production.INFO: ProcessCDR(1,14047631,1,1,2) [2024-12-18 10:46:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:46:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:46:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:46:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:46:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047631', 'tblTempUsageDetail_20' ) start [2024-12-18 10:46:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047631', 'tblTempUsageDetail_20' ) end [2024-12-18 10:46:31] Production.ERROR: pbx prc_insertCDR start [2024-12-18 10:46:31] Production.ERROR: pbx prc_insertCDR end [2024-12-18 10:46:31] Production.INFO: ==9213== Releasing lock... [2024-12-18 10:46:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 10:46:31] Production.INFO: 53.5 MB #Memory Used# [2024-12-18 10:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 07:47:05 [end_date_ymd] => 2024-12-18 10:47:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 07:47:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 10:47:19] Production.INFO: count ==3351 [2024-12-18 10:47:20] Production.ERROR: pbx CDR StartTime 2024-12-18 07:47:05 - End Time 2024-12-18 10:47:05 [2024-12-18 10:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047636', 'tblTempUsageDetail_20' ) start [2024-12-18 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047636', 'tblTempUsageDetail_20' ) end [2024-12-18 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047636', 'tblTempVendorCDR_20' ) start [2024-12-18 10:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047636', 'tblTempVendorCDR_20' ) end [2024-12-18 10:47:21] Production.INFO: ProcessCDR(1,14047636,1,1,2) [2024-12-18 10:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047636', 'tblTempUsageDetail_20' ) start [2024-12-18 10:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047636', 'tblTempUsageDetail_20' ) end [2024-12-18 10:47:25] Production.ERROR: pbx prc_insertCDR start [2024-12-18 10:47:25] Production.ERROR: pbx prc_insertCDR end [2024-12-18 10:47:25] Production.INFO: ==9287== Releasing lock... [2024-12-18 10:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 10:47:25] Production.INFO: 53 MB #Memory Used# [2024-12-18 10:48:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 07:48:04 [end_date_ymd] => 2024-12-18 10:48:04 [RateCDR] => 1 ) [2024-12-18 10: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` >= '2024-12-18 07:48:04' and `end` < '2024-12-18 10: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 ,'') [2024-12-18 10:48:18] Production.INFO: count ==3372 [2024-12-18 10:48:19] Production.ERROR: pbx CDR StartTime 2024-12-18 07:48:04 - End Time 2024-12-18 10:48:04 [2024-12-18 10:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 10:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047641', 'tblTempUsageDetail_20' ) start [2024-12-18 10:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047641', 'tblTempUsageDetail_20' ) end [2024-12-18 10:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047641', 'tblTempVendorCDR_20' ) start [2024-12-18 10:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047641', 'tblTempVendorCDR_20' ) end [2024-12-18 10:48:19] Production.INFO: ProcessCDR(1,14047641,1,1,2) [2024-12-18 10:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047641', 'tblTempUsageDetail_20' ) start [2024-12-18 10:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047641', 'tblTempUsageDetail_20' ) end [2024-12-18 10:48:24] Production.ERROR: pbx prc_insertCDR start [2024-12-18 10:48:24] Production.ERROR: pbx prc_insertCDR end [2024-12-18 10:48:24] Production.INFO: ==9358== Releasing lock... [2024-12-18 10:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 10:48:24] Production.INFO: 53.5 MB #Memory Used# [2024-12-18 10:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 07:49:05 [end_date_ymd] => 2024-12-18 10:49:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 07:49:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 10:49:22] Production.INFO: count ==3392 [2024-12-18 10:49:24] Production.ERROR: pbx CDR StartTime 2024-12-18 07:49:05 - End Time 2024-12-18 10:49:05 [2024-12-18 10:49:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 10:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047645', 'tblTempUsageDetail_20' ) start [2024-12-18 10:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047645', 'tblTempUsageDetail_20' ) end [2024-12-18 10:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047645', 'tblTempVendorCDR_20' ) start [2024-12-18 10:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047645', 'tblTempVendorCDR_20' ) end [2024-12-18 10:49:24] Production.INFO: ProcessCDR(1,14047645,1,1,2) [2024-12-18 10:49:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:49:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:49:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:49:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047645', 'tblTempUsageDetail_20' ) start [2024-12-18 10:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047645', 'tblTempUsageDetail_20' ) end [2024-12-18 10:49:28] Production.ERROR: pbx prc_insertCDR start [2024-12-18 10:49:28] Production.ERROR: pbx prc_insertCDR end [2024-12-18 10:49:28] Production.INFO: ==9431== Releasing lock... [2024-12-18 10:49:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 10:49:28] Production.INFO: 53.75 MB #Memory Used# [2024-12-18 10:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 07:50:05 [end_date_ymd] => 2024-12-18 10:50:05 [RateCDR] => 1 ) [2024-12-18 10:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 07:50:05' and `end` < '2024-12-18 10:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 10:50:23] Production.INFO: count ==3404 [2024-12-18 10:50:24] Production.ERROR: pbx CDR StartTime 2024-12-18 07:50:05 - End Time 2024-12-18 10:50:05 [2024-12-18 10:50:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 10:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047652', 'tblTempUsageDetail_20' ) start [2024-12-18 10:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047652', 'tblTempUsageDetail_20' ) end [2024-12-18 10:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047652', 'tblTempVendorCDR_20' ) start [2024-12-18 10:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047652', 'tblTempVendorCDR_20' ) end [2024-12-18 10:50:24] Production.INFO: ProcessCDR(1,14047652,1,1,2) [2024-12-18 10:50:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:50:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:50:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:50:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:50:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047652', 'tblTempUsageDetail_20' ) start [2024-12-18 10:50:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047652', 'tblTempUsageDetail_20' ) end [2024-12-18 10:50:29] Production.ERROR: pbx prc_insertCDR start [2024-12-18 10:50:29] Production.ERROR: pbx prc_insertCDR end [2024-12-18 10:50:29] Production.INFO: ==9505== Releasing lock... [2024-12-18 10:50:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 10:50:29] Production.INFO: 53.5 MB #Memory Used# [2024-12-18 10:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 07:51:05 [end_date_ymd] => 2024-12-18 10:51:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 07:51:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 10:51:22] Production.INFO: count ==3508 [2024-12-18 10:51:23] Production.ERROR: pbx CDR StartTime 2024-12-18 07:51:05 - End Time 2024-12-18 10:51:05 [2024-12-18 10:51:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 10:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047657', 'tblTempUsageDetail_20' ) start [2024-12-18 10:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047657', 'tblTempUsageDetail_20' ) end [2024-12-18 10:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047657', 'tblTempVendorCDR_20' ) start [2024-12-18 10:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047657', 'tblTempVendorCDR_20' ) end [2024-12-18 10:51:23] Production.INFO: ProcessCDR(1,14047657,1,1,2) [2024-12-18 10:51:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:51:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:51:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:51:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047657', 'tblTempUsageDetail_20' ) start [2024-12-18 10:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047657', 'tblTempUsageDetail_20' ) end [2024-12-18 10:51:28] Production.ERROR: pbx prc_insertCDR start [2024-12-18 10:51:28] Production.ERROR: pbx prc_insertCDR end [2024-12-18 10:51:28] Production.INFO: ==9579== Releasing lock... [2024-12-18 10:51:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 10:51:28] Production.INFO: 54.25 MB #Memory Used# [2024-12-18 10:52:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 07:52:04 [end_date_ymd] => 2024-12-18 10:52:04 [RateCDR] => 1 ) [2024-12-18 10:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 07:52:04' and `end` < '2024-12-18 10:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 10:52:20] Production.INFO: count ==3515 [2024-12-18 10:52:21] Production.ERROR: pbx CDR StartTime 2024-12-18 07:52:04 - End Time 2024-12-18 10:52:04 [2024-12-18 10:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 10:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047661', 'tblTempUsageDetail_20' ) start [2024-12-18 10:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047661', 'tblTempUsageDetail_20' ) end [2024-12-18 10:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047661', 'tblTempVendorCDR_20' ) start [2024-12-18 10:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047661', 'tblTempVendorCDR_20' ) end [2024-12-18 10:52:22] Production.INFO: ProcessCDR(1,14047661,1,1,2) [2024-12-18 10:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047661', 'tblTempUsageDetail_20' ) start [2024-12-18 10:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047661', 'tblTempUsageDetail_20' ) end [2024-12-18 10:52:26] Production.ERROR: pbx prc_insertCDR start [2024-12-18 10:52:26] Production.ERROR: pbx prc_insertCDR end [2024-12-18 10:52:26] Production.INFO: ==9652== Releasing lock... [2024-12-18 10:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 10:52:26] Production.INFO: 54.75 MB #Memory Used# [2024-12-18 10:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 07:53:05 [end_date_ymd] => 2024-12-18 10:53:05 [RateCDR] => 1 ) [2024-12-18 10:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 07:53:05' and `end` < '2024-12-18 10:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 10:53:23] Production.INFO: count ==3525 [2024-12-18 10:53:25] Production.ERROR: pbx CDR StartTime 2024-12-18 07:53:05 - End Time 2024-12-18 10:53:05 [2024-12-18 10:53:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 10:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047667', 'tblTempUsageDetail_20' ) start [2024-12-18 10:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047667', 'tblTempUsageDetail_20' ) end [2024-12-18 10:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047667', 'tblTempVendorCDR_20' ) start [2024-12-18 10:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047667', 'tblTempVendorCDR_20' ) end [2024-12-18 10:53:25] Production.INFO: ProcessCDR(1,14047667,1,1,2) [2024-12-18 10:53:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:53:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:53:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:53:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:53:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047667', 'tblTempUsageDetail_20' ) start [2024-12-18 10:53:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047667', 'tblTempUsageDetail_20' ) end [2024-12-18 10:53:29] Production.ERROR: pbx prc_insertCDR start [2024-12-18 10:53:29] Production.ERROR: pbx prc_insertCDR end [2024-12-18 10:53:29] Production.INFO: ==9723== Releasing lock... [2024-12-18 10:53:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 10:53:29] Production.INFO: 55.25 MB #Memory Used# [2024-12-18 10:54:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 07:54:04 [end_date_ymd] => 2024-12-18 10:54:04 [RateCDR] => 1 ) [2024-12-18 10: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` >= '2024-12-18 07:54:04' and `end` < '2024-12-18 10: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 ,'') [2024-12-18 10:54:21] Production.INFO: count ==3524 [2024-12-18 10:54:22] Production.ERROR: pbx CDR StartTime 2024-12-18 07:54:04 - End Time 2024-12-18 10:54:04 [2024-12-18 10:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 10:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047672', 'tblTempUsageDetail_20' ) start [2024-12-18 10:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047672', 'tblTempUsageDetail_20' ) end [2024-12-18 10:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047672', 'tblTempVendorCDR_20' ) start [2024-12-18 10:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047672', 'tblTempVendorCDR_20' ) end [2024-12-18 10:54:22] Production.INFO: ProcessCDR(1,14047672,1,1,2) [2024-12-18 10:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:54:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:54:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047672', 'tblTempUsageDetail_20' ) start [2024-12-18 10:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047672', 'tblTempUsageDetail_20' ) end [2024-12-18 10:54:27] Production.ERROR: pbx prc_insertCDR start [2024-12-18 10:54:27] Production.ERROR: pbx prc_insertCDR end [2024-12-18 10:54:27] Production.INFO: ==9797== Releasing lock... [2024-12-18 10:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 10:54:27] Production.INFO: 55.25 MB #Memory Used# [2024-12-18 10:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 07:55:05 [end_date_ymd] => 2024-12-18 10:55:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 07:55:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 10:55:23] Production.INFO: count ==3531 [2024-12-18 10:55:24] Production.ERROR: pbx CDR StartTime 2024-12-18 07:55:05 - End Time 2024-12-18 10:55:05 [2024-12-18 10:55:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 10:55:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047677', 'tblTempUsageDetail_20' ) start [2024-12-18 10:55:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047677', 'tblTempUsageDetail_20' ) end [2024-12-18 10:55:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047677', 'tblTempVendorCDR_20' ) start [2024-12-18 10:55:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047677', 'tblTempVendorCDR_20' ) end [2024-12-18 10:55:24] Production.INFO: ProcessCDR(1,14047677,1,1,2) [2024-12-18 10:55:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:55:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:55:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:55:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:55:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047677', 'tblTempUsageDetail_20' ) start [2024-12-18 10:55:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047677', 'tblTempUsageDetail_20' ) end [2024-12-18 10:55:29] Production.ERROR: pbx prc_insertCDR start [2024-12-18 10:55:29] Production.ERROR: pbx prc_insertCDR end [2024-12-18 10:55:29] Production.INFO: ==9872== Releasing lock... [2024-12-18 10:55:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 10:55:29] Production.INFO: 55 MB #Memory Used# [2024-12-18 10:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 07:56:05 [end_date_ymd] => 2024-12-18 10:56:05 [RateCDR] => 1 ) [2024-12-18 10:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 07:56:05' and `end` < '2024-12-18 10:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 10:56:27] Production.INFO: count ==3540 [2024-12-18 10:56:29] Production.ERROR: pbx CDR StartTime 2024-12-18 07:56:05 - End Time 2024-12-18 10:56:05 [2024-12-18 10:56:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 10:56:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047682', 'tblTempUsageDetail_20' ) start [2024-12-18 10:56:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047682', 'tblTempUsageDetail_20' ) end [2024-12-18 10:56:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047682', 'tblTempVendorCDR_20' ) start [2024-12-18 10:56:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047682', 'tblTempVendorCDR_20' ) end [2024-12-18 10:56:29] Production.INFO: ProcessCDR(1,14047682,1,1,2) [2024-12-18 10:56:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:56:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:56:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:56:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:56:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047682', 'tblTempUsageDetail_20' ) start [2024-12-18 10:56:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047682', 'tblTempUsageDetail_20' ) end [2024-12-18 10:56:34] Production.ERROR: pbx prc_insertCDR start [2024-12-18 10:56:34] Production.ERROR: pbx prc_insertCDR end [2024-12-18 10:56:34] Production.INFO: ==9944== Releasing lock... [2024-12-18 10:56:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 10:56:34] Production.INFO: 54.5 MB #Memory Used# [2024-12-18 10:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 07:57:05 [end_date_ymd] => 2024-12-18 10:57:05 [RateCDR] => 1 ) [2024-12-18 10:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 07:57:05' and `end` < '2024-12-18 10:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 10:57:23] Production.INFO: count ==3562 [2024-12-18 10:57:24] Production.ERROR: pbx CDR StartTime 2024-12-18 07:57:05 - End Time 2024-12-18 10:57:05 [2024-12-18 10:57:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 10:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047687', 'tblTempUsageDetail_20' ) start [2024-12-18 10:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047687', 'tblTempUsageDetail_20' ) end [2024-12-18 10:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047687', 'tblTempVendorCDR_20' ) start [2024-12-18 10:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047687', 'tblTempVendorCDR_20' ) end [2024-12-18 10:57:25] Production.INFO: ProcessCDR(1,14047687,1,1,2) [2024-12-18 10:57:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:57:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:57:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:57:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:57:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047687', 'tblTempUsageDetail_20' ) start [2024-12-18 10:57:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047687', 'tblTempUsageDetail_20' ) end [2024-12-18 10:57:29] Production.ERROR: pbx prc_insertCDR start [2024-12-18 10:57:29] Production.ERROR: pbx prc_insertCDR end [2024-12-18 10:57:29] Production.INFO: ==10018== Releasing lock... [2024-12-18 10:57:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 10:57:29] Production.INFO: 54.5 MB #Memory Used# [2024-12-18 10:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 07:58:05 [end_date_ymd] => 2024-12-18 10:58:05 [RateCDR] => 1 ) [2024-12-18 10:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 07:58:05' and `end` < '2024-12-18 10:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 10:58:17] Production.INFO: count ==3582 [2024-12-18 10:58:19] Production.ERROR: pbx CDR StartTime 2024-12-18 07:58:05 - End Time 2024-12-18 10:58:05 [2024-12-18 10:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 10:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047692', 'tblTempUsageDetail_20' ) start [2024-12-18 10:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047692', 'tblTempUsageDetail_20' ) end [2024-12-18 10:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047692', 'tblTempVendorCDR_20' ) start [2024-12-18 10:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047692', 'tblTempVendorCDR_20' ) end [2024-12-18 10:58:19] Production.INFO: ProcessCDR(1,14047692,1,1,2) [2024-12-18 10:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047692', 'tblTempUsageDetail_20' ) start [2024-12-18 10:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047692', 'tblTempUsageDetail_20' ) end [2024-12-18 10:58:24] Production.ERROR: pbx prc_insertCDR start [2024-12-18 10:58:24] Production.ERROR: pbx prc_insertCDR end [2024-12-18 10:58:24] Production.INFO: ==10090== Releasing lock... [2024-12-18 10:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 10:58:24] Production.INFO: 55 MB #Memory Used# [2024-12-18 10:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 07:59:05 [end_date_ymd] => 2024-12-18 10:59:05 [RateCDR] => 1 ) [2024-12-18 10:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 07:59:05' and `end` < '2024-12-18 10:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 10:59:18] Production.INFO: count ==3611 [2024-12-18 10:59:20] Production.ERROR: pbx CDR StartTime 2024-12-18 07:59:05 - End Time 2024-12-18 10:59:05 [2024-12-18 10:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 10:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047697', 'tblTempUsageDetail_20' ) start [2024-12-18 10:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047697', 'tblTempUsageDetail_20' ) end [2024-12-18 10:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047697', 'tblTempVendorCDR_20' ) start [2024-12-18 10:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047697', 'tblTempVendorCDR_20' ) end [2024-12-18 10:59:20] Production.INFO: ProcessCDR(1,14047697,1,1,2) [2024-12-18 10:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 10:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 10:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047697', 'tblTempUsageDetail_20' ) start [2024-12-18 10:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047697', 'tblTempUsageDetail_20' ) end [2024-12-18 10:59:24] Production.ERROR: pbx prc_insertCDR start [2024-12-18 10:59:25] Production.ERROR: pbx prc_insertCDR end [2024-12-18 10:59:25] Production.INFO: ==10200== Releasing lock... [2024-12-18 10:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 10:59:25] Production.INFO: 55 MB #Memory Used# [2024-12-18 11:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 08:00:05 [end_date_ymd] => 2024-12-18 11:00:05 [RateCDR] => 1 ) [2024-12-18 11:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 08:00:05' and `end` < '2024-12-18 11:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 11:00:19] Production.INFO: count ==3623 [2024-12-18 11:00:21] Production.ERROR: pbx CDR StartTime 2024-12-18 08:00:05 - End Time 2024-12-18 11:00:05 [2024-12-18 11:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 11:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047703', 'tblTempUsageDetail_20' ) start [2024-12-18 11:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047703', 'tblTempUsageDetail_20' ) end [2024-12-18 11:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047703', 'tblTempVendorCDR_20' ) start [2024-12-18 11:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047703', 'tblTempVendorCDR_20' ) end [2024-12-18 11:00:21] Production.INFO: ProcessCDR(1,14047703,1,1,2) [2024-12-18 11:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047703', 'tblTempUsageDetail_20' ) start [2024-12-18 11:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047703', 'tblTempUsageDetail_20' ) end [2024-12-18 11:00:26] Production.ERROR: pbx prc_insertCDR start [2024-12-18 11:00:26] Production.ERROR: pbx prc_insertCDR end [2024-12-18 11:00:26] Production.INFO: ==10276== Releasing lock... [2024-12-18 11:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 11:00:26] Production.INFO: 55 MB #Memory Used# [2024-12-18 11:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 08:01:05 [end_date_ymd] => 2024-12-18 11:01:05 [RateCDR] => 1 ) [2024-12-18 11:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 08:01:05' and `end` < '2024-12-18 11:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 11:01:27] Production.INFO: count ==3704 [2024-12-18 11:01:28] Production.ERROR: pbx CDR StartTime 2024-12-18 08:01:05 - End Time 2024-12-18 11:01:05 [2024-12-18 11:01:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 11:01:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047708', 'tblTempUsageDetail_20' ) start [2024-12-18 11:01:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047708', 'tblTempUsageDetail_20' ) end [2024-12-18 11:01:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047708', 'tblTempVendorCDR_20' ) start [2024-12-18 11:01:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047708', 'tblTempVendorCDR_20' ) end [2024-12-18 11:01:29] Production.INFO: ProcessCDR(1,14047708,1,1,2) [2024-12-18 11:01:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:01:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:01:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:01:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:01:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047708', 'tblTempUsageDetail_20' ) start [2024-12-18 11:01:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047708', 'tblTempUsageDetail_20' ) end [2024-12-18 11:01:33] Production.ERROR: pbx prc_insertCDR start [2024-12-18 11:01:33] Production.ERROR: pbx prc_insertCDR end [2024-12-18 11:01:33] Production.INFO: ==10440== Releasing lock... [2024-12-18 11:01:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 11:01:33] Production.INFO: 55.75 MB #Memory Used# [2024-12-18 11:02:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 08:02:04 [end_date_ymd] => 2024-12-18 11:02:04 [RateCDR] => 1 ) [2024-12-18 11:02:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 08:02:04' and `end` < '2024-12-18 11:02:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 11:02:21] Production.INFO: count ==3703 [2024-12-18 11:02:22] Production.ERROR: pbx CDR StartTime 2024-12-18 08:02:04 - End Time 2024-12-18 11:02:04 [2024-12-18 11:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 11:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047713', 'tblTempUsageDetail_20' ) start [2024-12-18 11:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047713', 'tblTempUsageDetail_20' ) end [2024-12-18 11:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047713', 'tblTempVendorCDR_20' ) start [2024-12-18 11:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047713', 'tblTempVendorCDR_20' ) end [2024-12-18 11:02:23] Production.INFO: ProcessCDR(1,14047713,1,1,2) [2024-12-18 11:02:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047713', 'tblTempUsageDetail_20' ) start [2024-12-18 11:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047713', 'tblTempUsageDetail_20' ) end [2024-12-18 11:02:27] Production.ERROR: pbx prc_insertCDR start [2024-12-18 11:02:27] Production.ERROR: pbx prc_insertCDR end [2024-12-18 11:02:27] Production.INFO: ==10511== Releasing lock... [2024-12-18 11:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 11:02:27] Production.INFO: 55.75 MB #Memory Used# [2024-12-18 11:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 08:03:04 [end_date_ymd] => 2024-12-18 11:03:04 [RateCDR] => 1 ) [2024-12-18 11:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 08:03:04' and `end` < '2024-12-18 11:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 11:03:20] Production.INFO: count ==3700 [2024-12-18 11:03:21] Production.ERROR: pbx CDR StartTime 2024-12-18 08:03:04 - End Time 2024-12-18 11:03:04 [2024-12-18 11:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 11:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047718', 'tblTempUsageDetail_20' ) start [2024-12-18 11:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047718', 'tblTempUsageDetail_20' ) end [2024-12-18 11:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047718', 'tblTempVendorCDR_20' ) start [2024-12-18 11:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047718', 'tblTempVendorCDR_20' ) end [2024-12-18 11:03:22] Production.INFO: ProcessCDR(1,14047718,1,1,2) [2024-12-18 11:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047718', 'tblTempUsageDetail_20' ) start [2024-12-18 11:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047718', 'tblTempUsageDetail_20' ) end [2024-12-18 11:03:26] Production.ERROR: pbx prc_insertCDR start [2024-12-18 11:03:26] Production.ERROR: pbx prc_insertCDR end [2024-12-18 11:03:26] Production.INFO: ==10583== Releasing lock... [2024-12-18 11:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 11:03:26] Production.INFO: 56.25 MB #Memory Used# [2024-12-18 11:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 08:04:05 [end_date_ymd] => 2024-12-18 11:04:05 [RateCDR] => 1 ) [2024-12-18 11:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 08:04:05' and `end` < '2024-12-18 11:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 11:04:24] Production.INFO: count ==3719 [2024-12-18 11:04:25] Production.ERROR: pbx CDR StartTime 2024-12-18 08:04:05 - End Time 2024-12-18 11:04:05 [2024-12-18 11:04:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 11:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047723', 'tblTempUsageDetail_20' ) start [2024-12-18 11:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047723', 'tblTempUsageDetail_20' ) end [2024-12-18 11:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047723', 'tblTempVendorCDR_20' ) start [2024-12-18 11:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047723', 'tblTempVendorCDR_20' ) end [2024-12-18 11:04:26] Production.INFO: ProcessCDR(1,14047723,1,1,2) [2024-12-18 11:04:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:04:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:04:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:04:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:04:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047723', 'tblTempUsageDetail_20' ) start [2024-12-18 11:04:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047723', 'tblTempUsageDetail_20' ) end [2024-12-18 11:04:30] Production.ERROR: pbx prc_insertCDR start [2024-12-18 11:04:30] Production.ERROR: pbx prc_insertCDR end [2024-12-18 11:04:30] Production.INFO: ==10655== Releasing lock... [2024-12-18 11:04:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 11:04:30] Production.INFO: 55.75 MB #Memory Used# [2024-12-18 11:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 08:05:05 [end_date_ymd] => 2024-12-18 11:05:05 [RateCDR] => 1 ) [2024-12-18 11:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 08:05:05' and `end` < '2024-12-18 11:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 11:05:23] Production.INFO: count ==3701 [2024-12-18 11:05:24] Production.ERROR: pbx CDR StartTime 2024-12-18 08:05:05 - End Time 2024-12-18 11:05:05 [2024-12-18 11:05:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 11:05:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047728', 'tblTempUsageDetail_20' ) start [2024-12-18 11:05:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047728', 'tblTempUsageDetail_20' ) end [2024-12-18 11:05:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047728', 'tblTempVendorCDR_20' ) start [2024-12-18 11:05:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047728', 'tblTempVendorCDR_20' ) end [2024-12-18 11:05:24] Production.INFO: ProcessCDR(1,14047728,1,1,2) [2024-12-18 11:05:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:05:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:05:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:05:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:05:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047728', 'tblTempUsageDetail_20' ) start [2024-12-18 11:05:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047728', 'tblTempUsageDetail_20' ) end [2024-12-18 11:05:29] Production.ERROR: pbx prc_insertCDR start [2024-12-18 11:05:29] Production.ERROR: pbx prc_insertCDR end [2024-12-18 11:05:29] Production.INFO: ==10805== Releasing lock... [2024-12-18 11:05:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 11:05:29] Production.INFO: 55.5 MB #Memory Used# [2024-12-18 11:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 08:06:05 [end_date_ymd] => 2024-12-18 11:06:05 [RateCDR] => 1 ) [2024-12-18 11:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 08:06:05' and `end` < '2024-12-18 11:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 11:06:30] Production.INFO: count ==3698 [2024-12-18 11:06:31] Production.ERROR: pbx CDR StartTime 2024-12-18 08:06:05 - End Time 2024-12-18 11:06:05 [2024-12-18 11:06:31] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 11:06:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047733', 'tblTempUsageDetail_20' ) start [2024-12-18 11:06:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047733', 'tblTempUsageDetail_20' ) end [2024-12-18 11:06:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047733', 'tblTempVendorCDR_20' ) start [2024-12-18 11:06:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047733', 'tblTempVendorCDR_20' ) end [2024-12-18 11:06:31] Production.INFO: ProcessCDR(1,14047733,1,1,2) [2024-12-18 11:06:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:06:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:06:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:06:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:06:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047733', 'tblTempUsageDetail_20' ) start [2024-12-18 11:06:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047733', 'tblTempUsageDetail_20' ) end [2024-12-18 11:06:36] Production.ERROR: pbx prc_insertCDR start [2024-12-18 11:06:36] Production.ERROR: pbx prc_insertCDR end [2024-12-18 11:06:36] Production.INFO: ==10878== Releasing lock... [2024-12-18 11:06:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 11:06:36] Production.INFO: 55.5 MB #Memory Used# [2024-12-18 11:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 08:07:05 [end_date_ymd] => 2024-12-18 11:07:05 [RateCDR] => 1 ) [2024-12-18 11:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 08:07:05' and `end` < '2024-12-18 11:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 11:07:22] Production.INFO: count ==3699 [2024-12-18 11:07:23] Production.ERROR: pbx CDR StartTime 2024-12-18 08:07:05 - End Time 2024-12-18 11:07:05 [2024-12-18 11:07:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 11:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047738', 'tblTempUsageDetail_20' ) start [2024-12-18 11:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047738', 'tblTempUsageDetail_20' ) end [2024-12-18 11:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047738', 'tblTempVendorCDR_20' ) start [2024-12-18 11:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047738', 'tblTempVendorCDR_20' ) end [2024-12-18 11:07:23] Production.INFO: ProcessCDR(1,14047738,1,1,2) [2024-12-18 11:07:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:07:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:07:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:07:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047738', 'tblTempUsageDetail_20' ) start [2024-12-18 11:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047738', 'tblTempUsageDetail_20' ) end [2024-12-18 11:07:28] Production.ERROR: pbx prc_insertCDR start [2024-12-18 11:07:28] Production.ERROR: pbx prc_insertCDR end [2024-12-18 11:07:28] Production.INFO: ==10948== Releasing lock... [2024-12-18 11:07:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 11:07:28] Production.INFO: 55.5 MB #Memory Used# [2024-12-18 11:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 08:08:05 [end_date_ymd] => 2024-12-18 11:08:05 [RateCDR] => 1 ) [2024-12-18 11:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 08:08:05' and `end` < '2024-12-18 11:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 11:08:18] Production.INFO: count ==3705 [2024-12-18 11:08:19] Production.ERROR: pbx CDR StartTime 2024-12-18 08:08:05 - End Time 2024-12-18 11:08:05 [2024-12-18 11:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 11:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047743', 'tblTempUsageDetail_20' ) start [2024-12-18 11:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047743', 'tblTempUsageDetail_20' ) end [2024-12-18 11:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047743', 'tblTempVendorCDR_20' ) start [2024-12-18 11:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047743', 'tblTempVendorCDR_20' ) end [2024-12-18 11:08:19] Production.INFO: ProcessCDR(1,14047743,1,1,2) [2024-12-18 11:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047743', 'tblTempUsageDetail_20' ) start [2024-12-18 11:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047743', 'tblTempUsageDetail_20' ) end [2024-12-18 11:08:24] Production.ERROR: pbx prc_insertCDR start [2024-12-18 11:08:24] Production.ERROR: pbx prc_insertCDR end [2024-12-18 11:08:24] Production.INFO: ==11099== Releasing lock... [2024-12-18 11:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 11:08:24] Production.INFO: 55.75 MB #Memory Used# [2024-12-18 11:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 08:09:04 [end_date_ymd] => 2024-12-18 11:09:04 [RateCDR] => 1 ) [2024-12-18 11:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 08:09:04' and `end` < '2024-12-18 11:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 11:09:17] Production.INFO: count ==3714 [2024-12-18 11:09:19] Production.ERROR: pbx CDR StartTime 2024-12-18 08:09:04 - End Time 2024-12-18 11:09:04 [2024-12-18 11:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 11:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047748', 'tblTempUsageDetail_20' ) start [2024-12-18 11:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047748', 'tblTempUsageDetail_20' ) end [2024-12-18 11:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047748', 'tblTempVendorCDR_20' ) start [2024-12-18 11:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047748', 'tblTempVendorCDR_20' ) end [2024-12-18 11:09:19] Production.INFO: ProcessCDR(1,14047748,1,1,2) [2024-12-18 11:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047748', 'tblTempUsageDetail_20' ) start [2024-12-18 11:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047748', 'tblTempUsageDetail_20' ) end [2024-12-18 11:09:23] Production.ERROR: pbx prc_insertCDR start [2024-12-18 11:09:23] Production.ERROR: pbx prc_insertCDR end [2024-12-18 11:09:23] Production.INFO: ==11169== Releasing lock... [2024-12-18 11:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 11:09:23] Production.INFO: 56 MB #Memory Used# [2024-12-18 11:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 08:10:05 [end_date_ymd] => 2024-12-18 11:10:05 [RateCDR] => 1 ) [2024-12-18 11:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 08:10:05' and `end` < '2024-12-18 11:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 11:10:26] Production.INFO: count ==3712 [2024-12-18 11:10:27] Production.ERROR: pbx CDR StartTime 2024-12-18 08:10:05 - End Time 2024-12-18 11:10:05 [2024-12-18 11:10:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 11:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047754', 'tblTempUsageDetail_20' ) start [2024-12-18 11:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047754', 'tblTempUsageDetail_20' ) end [2024-12-18 11:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047754', 'tblTempVendorCDR_20' ) start [2024-12-18 11:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047754', 'tblTempVendorCDR_20' ) end [2024-12-18 11:10:27] Production.INFO: ProcessCDR(1,14047754,1,1,2) [2024-12-18 11:10:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:10:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:10:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:10:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:10:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047754', 'tblTempUsageDetail_20' ) start [2024-12-18 11:10:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047754', 'tblTempUsageDetail_20' ) end [2024-12-18 11:10:32] Production.ERROR: pbx prc_insertCDR start [2024-12-18 11:10:32] Production.ERROR: pbx prc_insertCDR end [2024-12-18 11:10:32] Production.INFO: ==11246== Releasing lock... [2024-12-18 11:10:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 11:10:32] Production.INFO: 55.75 MB #Memory Used# [2024-12-18 11:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 08:11:04 [end_date_ymd] => 2024-12-18 11:11:04 [RateCDR] => 1 ) [2024-12-18 11:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 08:11:04' and `end` < '2024-12-18 11:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 11:11:23] Production.INFO: count ==3796 [2024-12-18 11:11:24] Production.ERROR: pbx CDR StartTime 2024-12-18 08:11:04 - End Time 2024-12-18 11:11:04 [2024-12-18 11:11:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 11:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047759', 'tblTempUsageDetail_20' ) start [2024-12-18 11:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047759', 'tblTempUsageDetail_20' ) end [2024-12-18 11:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047759', 'tblTempVendorCDR_20' ) start [2024-12-18 11:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047759', 'tblTempVendorCDR_20' ) end [2024-12-18 11:11:25] Production.INFO: ProcessCDR(1,14047759,1,1,2) [2024-12-18 11:11:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:11:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:11:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:11:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:11:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047759', 'tblTempUsageDetail_20' ) start [2024-12-18 11:11:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047759', 'tblTempUsageDetail_20' ) end [2024-12-18 11:11:29] Production.ERROR: pbx prc_insertCDR start [2024-12-18 11:11:29] Production.ERROR: pbx prc_insertCDR end [2024-12-18 11:11:29] Production.INFO: ==11319== Releasing lock... [2024-12-18 11:11:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 11:11:29] Production.INFO: 56.25 MB #Memory Used# [2024-12-18 11:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 08:12:05 [end_date_ymd] => 2024-12-18 11:12:05 [RateCDR] => 1 ) [2024-12-18 11:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 08:12:05' and `end` < '2024-12-18 11:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 11:12:37] Production.INFO: count ==3801 [2024-12-18 11:12:38] Production.ERROR: pbx CDR StartTime 2024-12-18 08:12:05 - End Time 2024-12-18 11:12:05 [2024-12-18 11:12:38] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 11:12:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047764', 'tblTempUsageDetail_20' ) start [2024-12-18 11:12:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047764', 'tblTempUsageDetail_20' ) end [2024-12-18 11:12:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047764', 'tblTempVendorCDR_20' ) start [2024-12-18 11:12:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047764', 'tblTempVendorCDR_20' ) end [2024-12-18 11:12:38] Production.INFO: ProcessCDR(1,14047764,1,1,2) [2024-12-18 11:12:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:12:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:12:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:12:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:12:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047764', 'tblTempUsageDetail_20' ) start [2024-12-18 11:12:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047764', 'tblTempUsageDetail_20' ) end [2024-12-18 11:12:43] Production.ERROR: pbx prc_insertCDR start [2024-12-18 11:12:43] Production.ERROR: pbx prc_insertCDR end [2024-12-18 11:12:43] Production.INFO: ==11474== Releasing lock... [2024-12-18 11:12:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 11:12:43] Production.INFO: 56.25 MB #Memory Used# [2024-12-18 11:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 08:13:05 [end_date_ymd] => 2024-12-18 11:13:05 [RateCDR] => 1 ) [2024-12-18 11:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 08:13:05' and `end` < '2024-12-18 11:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 11:13:26] Production.INFO: count ==3783 [2024-12-18 11:13:28] Production.ERROR: pbx CDR StartTime 2024-12-18 08:13:05 - End Time 2024-12-18 11:13:05 [2024-12-18 11:13:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 11:13:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047769', 'tblTempUsageDetail_20' ) start [2024-12-18 11:13:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047769', 'tblTempUsageDetail_20' ) end [2024-12-18 11:13:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047769', 'tblTempVendorCDR_20' ) start [2024-12-18 11:13:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047769', 'tblTempVendorCDR_20' ) end [2024-12-18 11:13:28] Production.INFO: ProcessCDR(1,14047769,1,1,2) [2024-12-18 11:13:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:13:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:13:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:13:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:13:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047769', 'tblTempUsageDetail_20' ) start [2024-12-18 11:13:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047769', 'tblTempUsageDetail_20' ) end [2024-12-18 11:13:33] Production.ERROR: pbx prc_insertCDR start [2024-12-18 11:13:33] Production.ERROR: pbx prc_insertCDR end [2024-12-18 11:13:33] Production.INFO: ==11548== Releasing lock... [2024-12-18 11:13:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 11:13:33] Production.INFO: 56.5 MB #Memory Used# [2024-12-18 11:14:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 08:14:04 [end_date_ymd] => 2024-12-18 11:14:04 [RateCDR] => 1 ) [2024-12-18 11:14:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 08:14:04' and `end` < '2024-12-18 11:14:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 11:14:24] Production.INFO: count ==3795 [2024-12-18 11:14:25] Production.ERROR: pbx CDR StartTime 2024-12-18 08:14:04 - End Time 2024-12-18 11:14:04 [2024-12-18 11:14:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 11:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047774', 'tblTempUsageDetail_20' ) start [2024-12-18 11:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047774', 'tblTempUsageDetail_20' ) end [2024-12-18 11:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047774', 'tblTempVendorCDR_20' ) start [2024-12-18 11:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047774', 'tblTempVendorCDR_20' ) end [2024-12-18 11:14:25] Production.INFO: ProcessCDR(1,14047774,1,1,2) [2024-12-18 11:14:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:14:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:14:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:14:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:14:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047774', 'tblTempUsageDetail_20' ) start [2024-12-18 11:14:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047774', 'tblTempUsageDetail_20' ) end [2024-12-18 11:14:30] Production.ERROR: pbx prc_insertCDR start [2024-12-18 11:14:30] Production.ERROR: pbx prc_insertCDR end [2024-12-18 11:14:30] Production.INFO: ==11661== Releasing lock... [2024-12-18 11:14:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 11:14:30] Production.INFO: 56.75 MB #Memory Used# [2024-12-18 11:15:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 08:15:06 [end_date_ymd] => 2024-12-18 11:15:06 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 08:15:06' and `end` < '2024-12-18 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 ,'') [2024-12-18 11:15:26] Production.INFO: count ==3796 [2024-12-18 11:15:27] Production.ERROR: pbx CDR StartTime 2024-12-18 08:15:06 - End Time 2024-12-18 11:15:06 [2024-12-18 11:15:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 11:15:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047779', 'tblTempUsageDetail_20' ) start [2024-12-18 11:15:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047779', 'tblTempUsageDetail_20' ) end [2024-12-18 11:15:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047779', 'tblTempVendorCDR_20' ) start [2024-12-18 11:15:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047779', 'tblTempVendorCDR_20' ) end [2024-12-18 11:15:27] Production.INFO: ProcessCDR(1,14047779,1,1,2) [2024-12-18 11:15:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:15:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:15:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:15:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:15:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047779', 'tblTempUsageDetail_20' ) start [2024-12-18 11:15:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047779', 'tblTempUsageDetail_20' ) end [2024-12-18 11:15:32] Production.ERROR: pbx prc_insertCDR start [2024-12-18 11:15:32] Production.ERROR: pbx prc_insertCDR end [2024-12-18 11:15:32] Production.INFO: ==11814== Releasing lock... [2024-12-18 11:15:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 11:15:32] Production.INFO: 56.25 MB #Memory Used# [2024-12-18 11:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 08:16:05 [end_date_ymd] => 2024-12-18 11:16:05 [RateCDR] => 1 ) [2024-12-18 11:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 08:16:05' and `end` < '2024-12-18 11:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 11:16:22] Production.INFO: count ==3808 [2024-12-18 11:16:23] Production.ERROR: pbx CDR StartTime 2024-12-18 08:16:05 - End Time 2024-12-18 11:16:05 [2024-12-18 11:16:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 11:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047784', 'tblTempUsageDetail_20' ) start [2024-12-18 11:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047784', 'tblTempUsageDetail_20' ) end [2024-12-18 11:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047784', 'tblTempVendorCDR_20' ) start [2024-12-18 11:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047784', 'tblTempVendorCDR_20' ) end [2024-12-18 11:16:23] Production.INFO: ProcessCDR(1,14047784,1,1,2) [2024-12-18 11:16:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:16:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:16:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:16:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:16:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047784', 'tblTempUsageDetail_20' ) start [2024-12-18 11:16:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047784', 'tblTempUsageDetail_20' ) end [2024-12-18 11:16:28] Production.ERROR: pbx prc_insertCDR start [2024-12-18 11:16:28] Production.ERROR: pbx prc_insertCDR end [2024-12-18 11:16:28] Production.INFO: ==11884== Releasing lock... [2024-12-18 11:16:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 11:16:28] Production.INFO: 56.5 MB #Memory Used# [2024-12-18 11:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 08:17:05 [end_date_ymd] => 2024-12-18 11:17:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 08:17:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 11:17:30] Production.INFO: count ==3817 [2024-12-18 11:17:32] Production.ERROR: pbx CDR StartTime 2024-12-18 08:17:05 - End Time 2024-12-18 11:17:05 [2024-12-18 11:17:32] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 11:17:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047789', 'tblTempUsageDetail_20' ) start [2024-12-18 11:17:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047789', 'tblTempUsageDetail_20' ) end [2024-12-18 11:17:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047789', 'tblTempVendorCDR_20' ) start [2024-12-18 11:17:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047789', 'tblTempVendorCDR_20' ) end [2024-12-18 11:17:32] Production.INFO: ProcessCDR(1,14047789,1,1,2) [2024-12-18 11:17:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:17:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:17:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:17:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:17:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047789', 'tblTempUsageDetail_20' ) start [2024-12-18 11:17:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047789', 'tblTempUsageDetail_20' ) end [2024-12-18 11:17:37] Production.ERROR: pbx prc_insertCDR start [2024-12-18 11:17:37] Production.ERROR: pbx prc_insertCDR end [2024-12-18 11:17:37] Production.INFO: ==11964== Releasing lock... [2024-12-18 11:17:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 11:17:37] Production.INFO: 56.5 MB #Memory Used# [2024-12-18 11:18:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 08:18:04 [end_date_ymd] => 2024-12-18 11:18:04 [RateCDR] => 1 ) [2024-12-18 11:18: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` >= '2024-12-18 08:18:04' and `end` < '2024-12-18 11:18: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 ,'') [2024-12-18 11:18:26] Production.INFO: count ==3808 [2024-12-18 11:18:28] Production.ERROR: pbx CDR StartTime 2024-12-18 08:18:04 - End Time 2024-12-18 11:18:04 [2024-12-18 11:18:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 11:18:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047792', 'tblTempUsageDetail_20' ) start [2024-12-18 11:18:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047792', 'tblTempUsageDetail_20' ) end [2024-12-18 11:18:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047792', 'tblTempVendorCDR_20' ) start [2024-12-18 11:18:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047792', 'tblTempVendorCDR_20' ) end [2024-12-18 11:18:28] Production.INFO: ProcessCDR(1,14047792,1,1,2) [2024-12-18 11:18:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:18:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:18:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:18:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:18:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047792', 'tblTempUsageDetail_20' ) start [2024-12-18 11:18:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047792', 'tblTempUsageDetail_20' ) end [2024-12-18 11:18:33] Production.ERROR: pbx prc_insertCDR start [2024-12-18 11:18:33] Production.ERROR: pbx prc_insertCDR end [2024-12-18 11:18:33] Production.INFO: ==12038== Releasing lock... [2024-12-18 11:18:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 11:18:33] Production.INFO: 56.5 MB #Memory Used# [2024-12-18 11:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 08:19:05 [end_date_ymd] => 2024-12-18 11:19:05 [RateCDR] => 1 ) [2024-12-18 11:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 08:19:05' and `end` < '2024-12-18 11:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 11:19:26] Production.INFO: count ==3810 [2024-12-18 11:19:27] Production.ERROR: pbx CDR StartTime 2024-12-18 08:19:05 - End Time 2024-12-18 11:19:05 [2024-12-18 11:19:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 11:19:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047799', 'tblTempUsageDetail_20' ) start [2024-12-18 11:19:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047799', 'tblTempUsageDetail_20' ) end [2024-12-18 11:19:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047799', 'tblTempVendorCDR_20' ) start [2024-12-18 11:19:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047799', 'tblTempVendorCDR_20' ) end [2024-12-18 11:19:27] Production.INFO: ProcessCDR(1,14047799,1,1,2) [2024-12-18 11:19:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:19:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:19:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:19:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:19:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047799', 'tblTempUsageDetail_20' ) start [2024-12-18 11:19:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047799', 'tblTempUsageDetail_20' ) end [2024-12-18 11:19:32] Production.ERROR: pbx prc_insertCDR start [2024-12-18 11:19:32] Production.ERROR: pbx prc_insertCDR end [2024-12-18 11:19:32] Production.INFO: ==12117== Releasing lock... [2024-12-18 11:19:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 11:19:32] Production.INFO: 56.5 MB #Memory Used# [2024-12-18 11:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 08:20:04 [end_date_ymd] => 2024-12-18 11:20:04 [RateCDR] => 1 ) [2024-12-18 11: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` >= '2024-12-18 08:20:04' and `end` < '2024-12-18 11:20: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 ,'') [2024-12-18 11:20:23] Production.INFO: count ==3836 [2024-12-18 11:20:25] Production.ERROR: pbx CDR StartTime 2024-12-18 08:20:04 - End Time 2024-12-18 11:20:04 [2024-12-18 11:20:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 11:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047804', 'tblTempUsageDetail_20' ) start [2024-12-18 11:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047804', 'tblTempUsageDetail_20' ) end [2024-12-18 11:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047804', 'tblTempVendorCDR_20' ) start [2024-12-18 11:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047804', 'tblTempVendorCDR_20' ) end [2024-12-18 11:20:25] Production.INFO: ProcessCDR(1,14047804,1,1,2) [2024-12-18 11:20:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:20:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:20:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:20:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047804', 'tblTempUsageDetail_20' ) start [2024-12-18 11:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047804', 'tblTempUsageDetail_20' ) end [2024-12-18 11:20:29] Production.ERROR: pbx prc_insertCDR start [2024-12-18 11:20:30] Production.ERROR: pbx prc_insertCDR end [2024-12-18 11:20:30] Production.INFO: ==12199== Releasing lock... [2024-12-18 11:20:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 11:20:30] Production.INFO: 56.75 MB #Memory Used# [2024-12-18 11:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 08:21:04 [end_date_ymd] => 2024-12-18 11:21:04 [RateCDR] => 1 ) [2024-12-18 11:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 08:21:04' and `end` < '2024-12-18 11:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 11:21:23] Production.INFO: count ==3913 [2024-12-18 11:21:24] Production.ERROR: pbx CDR StartTime 2024-12-18 08:21:04 - End Time 2024-12-18 11:21:04 [2024-12-18 11:21:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 11:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047810', 'tblTempUsageDetail_20' ) start [2024-12-18 11:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047810', 'tblTempUsageDetail_20' ) end [2024-12-18 11:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047810', 'tblTempVendorCDR_20' ) start [2024-12-18 11:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047810', 'tblTempVendorCDR_20' ) end [2024-12-18 11:21:24] Production.INFO: ProcessCDR(1,14047810,1,1,2) [2024-12-18 11:21:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:21:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:21:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:21:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:21:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047810', 'tblTempUsageDetail_20' ) start [2024-12-18 11:21:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047810', 'tblTempUsageDetail_20' ) end [2024-12-18 11:21:29] Production.ERROR: pbx prc_insertCDR start [2024-12-18 11:21:29] Production.ERROR: pbx prc_insertCDR end [2024-12-18 11:21:29] Production.INFO: ==12277== Releasing lock... [2024-12-18 11:21:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 11:21:29] Production.INFO: 57.25 MB #Memory Used# [2024-12-18 11:22:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 08:22:04 [end_date_ymd] => 2024-12-18 11:22:04 [RateCDR] => 1 ) [2024-12-18 11:22:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 08:22:04' and `end` < '2024-12-18 11:22:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 11:22:17] Production.INFO: count ==3913 [2024-12-18 11:22:19] Production.ERROR: pbx CDR StartTime 2024-12-18 08:22:04 - End Time 2024-12-18 11:22:04 [2024-12-18 11:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 11:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047815', 'tblTempUsageDetail_20' ) start [2024-12-18 11:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047815', 'tblTempUsageDetail_20' ) end [2024-12-18 11:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047815', 'tblTempVendorCDR_20' ) start [2024-12-18 11:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047815', 'tblTempVendorCDR_20' ) end [2024-12-18 11:22:19] Production.INFO: ProcessCDR(1,14047815,1,1,2) [2024-12-18 11:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047815', 'tblTempUsageDetail_20' ) start [2024-12-18 11:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047815', 'tblTempUsageDetail_20' ) end [2024-12-18 11:22:23] Production.ERROR: pbx prc_insertCDR start [2024-12-18 11:22:23] Production.ERROR: pbx prc_insertCDR end [2024-12-18 11:22:23] Production.INFO: ==12357== Releasing lock... [2024-12-18 11:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 11:22:23] Production.INFO: 57.25 MB #Memory Used# [2024-12-18 11:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 08:23:04 [end_date_ymd] => 2024-12-18 11:23:04 [RateCDR] => 1 ) [2024-12-18 11:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 08:23:04' and `end` < '2024-12-18 11:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 11:23:20] Production.INFO: count ==3938 [2024-12-18 11:23:21] Production.ERROR: pbx CDR StartTime 2024-12-18 08:23:04 - End Time 2024-12-18 11:23:04 [2024-12-18 11:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 11:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047820', 'tblTempUsageDetail_20' ) start [2024-12-18 11:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047820', 'tblTempUsageDetail_20' ) end [2024-12-18 11:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047820', 'tblTempVendorCDR_20' ) start [2024-12-18 11:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047820', 'tblTempVendorCDR_20' ) end [2024-12-18 11:23:21] Production.INFO: ProcessCDR(1,14047820,1,1,2) [2024-12-18 11:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047820', 'tblTempUsageDetail_20' ) start [2024-12-18 11:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047820', 'tblTempUsageDetail_20' ) end [2024-12-18 11:23:26] Production.ERROR: pbx prc_insertCDR start [2024-12-18 11:23:26] Production.ERROR: pbx prc_insertCDR end [2024-12-18 11:23:26] Production.INFO: ==12435== Releasing lock... [2024-12-18 11:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 11:23:26] Production.INFO: 57.5 MB #Memory Used# [2024-12-18 11:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 08:24:05 [end_date_ymd] => 2024-12-18 11:24:05 [RateCDR] => 1 ) [2024-12-18 11:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 08:24:05' and `end` < '2024-12-18 11:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 11:24:20] Production.INFO: count ==3958 [2024-12-18 11:24:22] Production.ERROR: pbx CDR StartTime 2024-12-18 08:24:05 - End Time 2024-12-18 11:24:05 [2024-12-18 11:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 11:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047824', 'tblTempUsageDetail_20' ) start [2024-12-18 11:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047824', 'tblTempUsageDetail_20' ) end [2024-12-18 11:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047824', 'tblTempVendorCDR_20' ) start [2024-12-18 11:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047824', 'tblTempVendorCDR_20' ) end [2024-12-18 11:24:22] Production.INFO: ProcessCDR(1,14047824,1,1,2) [2024-12-18 11:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047824', 'tblTempUsageDetail_20' ) start [2024-12-18 11:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047824', 'tblTempUsageDetail_20' ) end [2024-12-18 11:24:26] Production.ERROR: pbx prc_insertCDR start [2024-12-18 11:24:27] Production.ERROR: pbx prc_insertCDR end [2024-12-18 11:24:27] Production.INFO: ==12529== Releasing lock... [2024-12-18 11:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 11:24:27] Production.INFO: 57.5 MB #Memory Used# [2024-12-18 11:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 08:25:04 [end_date_ymd] => 2024-12-18 11:25:04 [RateCDR] => 1 ) [2024-12-18 11: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` >= '2024-12-18 08:25:04' and `end` < '2024-12-18 11: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 ,'') [2024-12-18 11:25:22] Production.INFO: count ==3962 [2024-12-18 11:25:24] Production.ERROR: pbx CDR StartTime 2024-12-18 08:25:04 - End Time 2024-12-18 11:25:04 [2024-12-18 11:25:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 11:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047830', 'tblTempUsageDetail_20' ) start [2024-12-18 11:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047830', 'tblTempUsageDetail_20' ) end [2024-12-18 11:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047830', 'tblTempVendorCDR_20' ) start [2024-12-18 11:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047830', 'tblTempVendorCDR_20' ) end [2024-12-18 11:25:24] Production.INFO: ProcessCDR(1,14047830,1,1,2) [2024-12-18 11:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047830', 'tblTempUsageDetail_20' ) start [2024-12-18 11:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047830', 'tblTempUsageDetail_20' ) end [2024-12-18 11:25:28] Production.ERROR: pbx prc_insertCDR start [2024-12-18 11:25:29] Production.ERROR: pbx prc_insertCDR end [2024-12-18 11:25:29] Production.INFO: ==12638== Releasing lock... [2024-12-18 11:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 11:25:29] Production.INFO: 57.5 MB #Memory Used# [2024-12-18 11:26:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 08:26:04 [end_date_ymd] => 2024-12-18 11:26:04 [RateCDR] => 1 ) [2024-12-18 11:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 08:26:04' and `end` < '2024-12-18 11:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 11:26:22] Production.INFO: count ==3963 [2024-12-18 11:26:23] Production.ERROR: pbx CDR StartTime 2024-12-18 08:26:04 - End Time 2024-12-18 11:26:04 [2024-12-18 11:26:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 11:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047835', 'tblTempUsageDetail_20' ) start [2024-12-18 11:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047835', 'tblTempUsageDetail_20' ) end [2024-12-18 11:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047835', 'tblTempVendorCDR_20' ) start [2024-12-18 11:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047835', 'tblTempVendorCDR_20' ) end [2024-12-18 11:26:23] Production.INFO: ProcessCDR(1,14047835,1,1,2) [2024-12-18 11:26:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:26:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:26:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047835', 'tblTempUsageDetail_20' ) start [2024-12-18 11:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047835', 'tblTempUsageDetail_20' ) end [2024-12-18 11:26:28] Production.ERROR: pbx prc_insertCDR start [2024-12-18 11:26:28] Production.ERROR: pbx prc_insertCDR end [2024-12-18 11:26:28] Production.INFO: ==12754== Releasing lock... [2024-12-18 11:26:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 11:26:28] Production.INFO: 57.5 MB #Memory Used# [2024-12-18 11:27:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 08:27:04 [end_date_ymd] => 2024-12-18 11:27:04 [RateCDR] => 1 ) [2024-12-18 11:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 08:27:04' and `end` < '2024-12-18 11:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 11:27:21] Production.INFO: count ==3964 [2024-12-18 11:27:23] Production.ERROR: pbx CDR StartTime 2024-12-18 08:27:04 - End Time 2024-12-18 11:27:04 [2024-12-18 11:27:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 11:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047840', 'tblTempUsageDetail_20' ) start [2024-12-18 11:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047840', 'tblTempUsageDetail_20' ) end [2024-12-18 11:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047840', 'tblTempVendorCDR_20' ) start [2024-12-18 11:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047840', 'tblTempVendorCDR_20' ) end [2024-12-18 11:27:23] Production.INFO: ProcessCDR(1,14047840,1,1,2) [2024-12-18 11:27:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:27:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:27:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:27:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047840', 'tblTempUsageDetail_20' ) start [2024-12-18 11:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047840', 'tblTempUsageDetail_20' ) end [2024-12-18 11:27:27] Production.ERROR: pbx prc_insertCDR start [2024-12-18 11:27:28] Production.ERROR: pbx prc_insertCDR end [2024-12-18 11:27:28] Production.INFO: ==12873== Releasing lock... [2024-12-18 11:27:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 11:27:28] Production.INFO: 57.5 MB #Memory Used# [2024-12-18 11:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 08:28:05 [end_date_ymd] => 2024-12-18 11:28:05 [RateCDR] => 1 ) [2024-12-18 11:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 08:28:05' and `end` < '2024-12-18 11:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 11:28:21] Production.INFO: count ==3972 [2024-12-18 11:28:23] Production.ERROR: pbx CDR StartTime 2024-12-18 08:28:05 - End Time 2024-12-18 11:28:05 [2024-12-18 11:28:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 11:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047845', 'tblTempUsageDetail_20' ) start [2024-12-18 11:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047845', 'tblTempUsageDetail_20' ) end [2024-12-18 11:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047845', 'tblTempVendorCDR_20' ) start [2024-12-18 11:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047845', 'tblTempVendorCDR_20' ) end [2024-12-18 11:28:23] Production.INFO: ProcessCDR(1,14047845,1,1,2) [2024-12-18 11:28:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:28:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:28:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047845', 'tblTempUsageDetail_20' ) start [2024-12-18 11:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047845', 'tblTempUsageDetail_20' ) end [2024-12-18 11:28:28] Production.ERROR: pbx prc_insertCDR start [2024-12-18 11:28:28] Production.ERROR: pbx prc_insertCDR end [2024-12-18 11:28:28] Production.INFO: ==12982== Releasing lock... [2024-12-18 11:28:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 11:28:28] Production.INFO: 57.75 MB #Memory Used# [2024-12-18 11:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 08:29:05 [end_date_ymd] => 2024-12-18 11:29:05 [RateCDR] => 1 ) [2024-12-18 11:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 08:29:05' and `end` < '2024-12-18 11:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 11:29:20] Production.INFO: count ==3988 [2024-12-18 11:29:21] Production.ERROR: pbx CDR StartTime 2024-12-18 08:29:05 - End Time 2024-12-18 11:29:05 [2024-12-18 11:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 11:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047850', 'tblTempUsageDetail_20' ) start [2024-12-18 11:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047850', 'tblTempUsageDetail_20' ) end [2024-12-18 11:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047850', 'tblTempVendorCDR_20' ) start [2024-12-18 11:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047850', 'tblTempVendorCDR_20' ) end [2024-12-18 11:29:21] Production.INFO: ProcessCDR(1,14047850,1,1,2) [2024-12-18 11:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047850', 'tblTempUsageDetail_20' ) start [2024-12-18 11:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047850', 'tblTempUsageDetail_20' ) end [2024-12-18 11:29:26] Production.ERROR: pbx prc_insertCDR start [2024-12-18 11:29:26] Production.ERROR: pbx prc_insertCDR end [2024-12-18 11:29:26] Production.INFO: ==13110== Releasing lock... [2024-12-18 11:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 11:29:26] Production.INFO: 57.75 MB #Memory Used# [2024-12-18 11:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 08:30:05 [end_date_ymd] => 2024-12-18 11:30:05 [RateCDR] => 1 ) [2024-12-18 11:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 08:30:05' and `end` < '2024-12-18 11:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 11:30:29] Production.INFO: count ==3990 [2024-12-18 11:30:31] Production.ERROR: pbx CDR StartTime 2024-12-18 08:30:05 - End Time 2024-12-18 11:30:05 [2024-12-18 11:30:31] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 11:30:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047855', 'tblTempUsageDetail_20' ) start [2024-12-18 11:30:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047855', 'tblTempUsageDetail_20' ) end [2024-12-18 11:30:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047855', 'tblTempVendorCDR_20' ) start [2024-12-18 11:30:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047855', 'tblTempVendorCDR_20' ) end [2024-12-18 11:30:31] Production.INFO: ProcessCDR(1,14047855,1,1,2) [2024-12-18 11:30:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:30:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:30:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:30:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:30:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047855', 'tblTempUsageDetail_20' ) start [2024-12-18 11:30:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047855', 'tblTempUsageDetail_20' ) end [2024-12-18 11:30:35] Production.ERROR: pbx prc_insertCDR start [2024-12-18 11:30:35] Production.ERROR: pbx prc_insertCDR end [2024-12-18 11:30:35] Production.INFO: ==13271== Releasing lock... [2024-12-18 11:30:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 11:30:35] Production.INFO: 57.75 MB #Memory Used# [2024-12-18 11:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 08:31:05 [end_date_ymd] => 2024-12-18 11:31:05 [RateCDR] => 1 ) [2024-12-18 11:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 08:31:05' and `end` < '2024-12-18 11:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 11:31:24] Production.INFO: count ==4079 [2024-12-18 11:31:26] Production.ERROR: pbx CDR StartTime 2024-12-18 08:31:05 - End Time 2024-12-18 11:31:05 [2024-12-18 11:31:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 11:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047861', 'tblTempUsageDetail_20' ) start [2024-12-18 11:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047861', 'tblTempUsageDetail_20' ) end [2024-12-18 11:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047861', 'tblTempVendorCDR_20' ) start [2024-12-18 11:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047861', 'tblTempVendorCDR_20' ) end [2024-12-18 11:31:26] Production.INFO: ProcessCDR(1,14047861,1,1,2) [2024-12-18 11:31:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:31:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:31:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:31:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:31:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047861', 'tblTempUsageDetail_20' ) start [2024-12-18 11:31:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047861', 'tblTempUsageDetail_20' ) end [2024-12-18 11:31:30] Production.ERROR: pbx prc_insertCDR start [2024-12-18 11:31:30] Production.ERROR: pbx prc_insertCDR end [2024-12-18 11:31:30] Production.INFO: ==13384== Releasing lock... [2024-12-18 11:31:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 11:31:30] Production.INFO: 58.5 MB #Memory Used# [2024-12-18 11:32:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 08:32:04 [end_date_ymd] => 2024-12-18 11:32:04 [RateCDR] => 1 ) [2024-12-18 11:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 08:32:04' and `end` < '2024-12-18 11:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 11:32:21] Production.INFO: count ==4093 [2024-12-18 11:32:22] Production.ERROR: pbx CDR StartTime 2024-12-18 08:32:04 - End Time 2024-12-18 11:32:04 [2024-12-18 11:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 11:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047866', 'tblTempUsageDetail_20' ) start [2024-12-18 11:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047866', 'tblTempUsageDetail_20' ) end [2024-12-18 11:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047866', 'tblTempVendorCDR_20' ) start [2024-12-18 11:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047866', 'tblTempVendorCDR_20' ) end [2024-12-18 11:32:22] Production.INFO: ProcessCDR(1,14047866,1,1,2) [2024-12-18 11:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:32:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:32:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047866', 'tblTempUsageDetail_20' ) start [2024-12-18 11:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047866', 'tblTempUsageDetail_20' ) end [2024-12-18 11:32:27] Production.ERROR: pbx prc_insertCDR start [2024-12-18 11:32:27] Production.ERROR: pbx prc_insertCDR end [2024-12-18 11:32:27] Production.INFO: ==13506== Releasing lock... [2024-12-18 11:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 11:32:27] Production.INFO: 58.5 MB #Memory Used# [2024-12-18 11:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 08:33:05 [end_date_ymd] => 2024-12-18 11:33:05 [RateCDR] => 1 ) [2024-12-18 11:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 08:33:05' and `end` < '2024-12-18 11:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 11:33:20] Production.INFO: count ==4108 [2024-12-18 11:33:22] Production.ERROR: pbx CDR StartTime 2024-12-18 08:33:05 - End Time 2024-12-18 11:33:05 [2024-12-18 11:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 11:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047871', 'tblTempUsageDetail_20' ) start [2024-12-18 11:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047871', 'tblTempUsageDetail_20' ) end [2024-12-18 11:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047871', 'tblTempVendorCDR_20' ) start [2024-12-18 11:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047871', 'tblTempVendorCDR_20' ) end [2024-12-18 11:33:22] Production.INFO: ProcessCDR(1,14047871,1,1,2) [2024-12-18 11:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047871', 'tblTempUsageDetail_20' ) start [2024-12-18 11:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047871', 'tblTempUsageDetail_20' ) end [2024-12-18 11:33:26] Production.ERROR: pbx prc_insertCDR start [2024-12-18 11:33:26] Production.ERROR: pbx prc_insertCDR end [2024-12-18 11:33:26] Production.INFO: ==13635== Releasing lock... [2024-12-18 11:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 11:33:26] Production.INFO: 58.75 MB #Memory Used# [2024-12-18 11:34:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 08:34:04 [end_date_ymd] => 2024-12-18 11:34:04 [RateCDR] => 1 ) [2024-12-18 11:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 08:34:04' and `end` < '2024-12-18 11:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 11:34:18] Production.INFO: count ==4112 [2024-12-18 11:34:20] Production.ERROR: pbx CDR StartTime 2024-12-18 08:34:04 - End Time 2024-12-18 11:34:04 [2024-12-18 11:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 11:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047876', 'tblTempUsageDetail_20' ) start [2024-12-18 11:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047876', 'tblTempUsageDetail_20' ) end [2024-12-18 11:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047876', 'tblTempVendorCDR_20' ) start [2024-12-18 11:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047876', 'tblTempVendorCDR_20' ) end [2024-12-18 11:34:20] Production.INFO: ProcessCDR(1,14047876,1,1,2) [2024-12-18 11:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047876', 'tblTempUsageDetail_20' ) start [2024-12-18 11:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047876', 'tblTempUsageDetail_20' ) end [2024-12-18 11:34:24] Production.ERROR: pbx prc_insertCDR start [2024-12-18 11:34:24] Production.ERROR: pbx prc_insertCDR end [2024-12-18 11:34:24] Production.INFO: ==13739== Releasing lock... [2024-12-18 11:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 11:34:24] Production.INFO: 58.75 MB #Memory Used# [2024-12-18 11:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 08:35:04 [end_date_ymd] => 2024-12-18 11:35:04 [RateCDR] => 1 ) [2024-12-18 11:35: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` >= '2024-12-18 08:35:04' and `end` < '2024-12-18 11:35: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 ,'') [2024-12-18 11:35:19] Production.INFO: count ==4122 [2024-12-18 11:35:21] Production.ERROR: pbx CDR StartTime 2024-12-18 08:35:04 - End Time 2024-12-18 11:35:04 [2024-12-18 11:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 11:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047881', 'tblTempUsageDetail_20' ) start [2024-12-18 11:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047881', 'tblTempUsageDetail_20' ) end [2024-12-18 11:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047881', 'tblTempVendorCDR_20' ) start [2024-12-18 11:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047881', 'tblTempVendorCDR_20' ) end [2024-12-18 11:35:21] Production.INFO: ProcessCDR(1,14047881,1,1,2) [2024-12-18 11:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047881', 'tblTempUsageDetail_20' ) start [2024-12-18 11:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047881', 'tblTempUsageDetail_20' ) end [2024-12-18 11:35:26] Production.ERROR: pbx prc_insertCDR start [2024-12-18 11:35:26] Production.ERROR: pbx prc_insertCDR end [2024-12-18 11:35:26] Production.INFO: ==13858== Releasing lock... [2024-12-18 11:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 11:35:26] Production.INFO: 58.75 MB #Memory Used# [2024-12-18 11:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 08:36:05 [end_date_ymd] => 2024-12-18 11:36:05 [RateCDR] => 1 ) [2024-12-18 11:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 08:36:05' and `end` < '2024-12-18 11:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 11:36:20] Production.INFO: count ==4152 [2024-12-18 11:36:22] Production.ERROR: pbx CDR StartTime 2024-12-18 08:36:05 - End Time 2024-12-18 11:36:05 [2024-12-18 11:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 11:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047886', 'tblTempUsageDetail_20' ) start [2024-12-18 11:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047886', 'tblTempUsageDetail_20' ) end [2024-12-18 11:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047886', 'tblTempVendorCDR_20' ) start [2024-12-18 11:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047886', 'tblTempVendorCDR_20' ) end [2024-12-18 11:36:22] Production.INFO: ProcessCDR(1,14047886,1,1,2) [2024-12-18 11:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047886', 'tblTempUsageDetail_20' ) start [2024-12-18 11:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047886', 'tblTempUsageDetail_20' ) end [2024-12-18 11:36:27] Production.ERROR: pbx prc_insertCDR start [2024-12-18 11:36:27] Production.ERROR: pbx prc_insertCDR end [2024-12-18 11:36:27] Production.INFO: ==13979== Releasing lock... [2024-12-18 11:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 11:36:27] Production.INFO: 59 MB #Memory Used# [2024-12-18 11:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 08:37:04 [end_date_ymd] => 2024-12-18 11:37:04 [RateCDR] => 1 ) [2024-12-18 11: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` >= '2024-12-18 08:37:04' and `end` < '2024-12-18 11: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 ,'') [2024-12-18 11:37:20] Production.INFO: count ==4138 [2024-12-18 11:37:22] Production.ERROR: pbx CDR StartTime 2024-12-18 08:37:04 - End Time 2024-12-18 11:37:04 [2024-12-18 11:37:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 11:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047891', 'tblTempUsageDetail_20' ) start [2024-12-18 11:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047891', 'tblTempUsageDetail_20' ) end [2024-12-18 11:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047891', 'tblTempVendorCDR_20' ) start [2024-12-18 11:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047891', 'tblTempVendorCDR_20' ) end [2024-12-18 11:37:22] Production.INFO: ProcessCDR(1,14047891,1,1,2) [2024-12-18 11:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047891', 'tblTempUsageDetail_20' ) start [2024-12-18 11:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047891', 'tblTempUsageDetail_20' ) end [2024-12-18 11:37:26] Production.ERROR: pbx prc_insertCDR start [2024-12-18 11:37:26] Production.ERROR: pbx prc_insertCDR end [2024-12-18 11:37:26] Production.INFO: ==14088== Releasing lock... [2024-12-18 11:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 11:37:26] Production.INFO: 59 MB #Memory Used# [2024-12-18 11:38:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 08:38:04 [end_date_ymd] => 2024-12-18 11:38:04 [RateCDR] => 1 ) [2024-12-18 11:38:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 08:38:04' and `end` < '2024-12-18 11:38:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 11:38:23] Production.INFO: count ==4132 [2024-12-18 11:38:24] Production.ERROR: pbx CDR StartTime 2024-12-18 08:38:04 - End Time 2024-12-18 11:38:04 [2024-12-18 11:38:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 11:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047896', 'tblTempUsageDetail_20' ) start [2024-12-18 11:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047896', 'tblTempUsageDetail_20' ) end [2024-12-18 11:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047896', 'tblTempVendorCDR_20' ) start [2024-12-18 11:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047896', 'tblTempVendorCDR_20' ) end [2024-12-18 11:38:24] Production.INFO: ProcessCDR(1,14047896,1,1,2) [2024-12-18 11:38:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:38:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:38:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:38:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:38:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047896', 'tblTempUsageDetail_20' ) start [2024-12-18 11:38:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047896', 'tblTempUsageDetail_20' ) end [2024-12-18 11:38:29] Production.ERROR: pbx prc_insertCDR start [2024-12-18 11:38:29] Production.ERROR: pbx prc_insertCDR end [2024-12-18 11:38:29] Production.INFO: ==14197== Releasing lock... [2024-12-18 11:38:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 11:38:29] Production.INFO: 59 MB #Memory Used# [2024-12-18 11:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 08:39:04 [end_date_ymd] => 2024-12-18 11:39:04 [RateCDR] => 1 ) [2024-12-18 11:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 08:39:04' and `end` < '2024-12-18 11:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 11:39:18] Production.INFO: count ==4122 [2024-12-18 11:39:20] Production.ERROR: pbx CDR StartTime 2024-12-18 08:39:04 - End Time 2024-12-18 11:39:04 [2024-12-18 11:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 11:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047901', 'tblTempUsageDetail_20' ) start [2024-12-18 11:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047901', 'tblTempUsageDetail_20' ) end [2024-12-18 11:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047901', 'tblTempVendorCDR_20' ) start [2024-12-18 11:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047901', 'tblTempVendorCDR_20' ) end [2024-12-18 11:39:20] Production.INFO: ProcessCDR(1,14047901,1,1,2) [2024-12-18 11:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047901', 'tblTempUsageDetail_20' ) start [2024-12-18 11:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047901', 'tblTempUsageDetail_20' ) end [2024-12-18 11:39:25] Production.ERROR: pbx prc_insertCDR start [2024-12-18 11:39:25] Production.ERROR: pbx prc_insertCDR end [2024-12-18 11:39:25] Production.INFO: ==14279== Releasing lock... [2024-12-18 11:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 11:39:25] Production.INFO: 58.75 MB #Memory Used# [2024-12-18 11:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 08:40:05 [end_date_ymd] => 2024-12-18 11:40:05 [RateCDR] => 1 ) [2024-12-18 11: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` >= '2024-12-18 08:40:05' and `end` < '2024-12-18 11: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 ,'') [2024-12-18 11:40:21] Production.INFO: count ==4138 [2024-12-18 11:40:22] Production.ERROR: pbx CDR StartTime 2024-12-18 08:40:05 - End Time 2024-12-18 11:40:05 [2024-12-18 11:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 11:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047907', 'tblTempUsageDetail_20' ) start [2024-12-18 11:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047907', 'tblTempUsageDetail_20' ) end [2024-12-18 11:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047907', 'tblTempVendorCDR_20' ) start [2024-12-18 11:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047907', 'tblTempVendorCDR_20' ) end [2024-12-18 11:40:23] Production.INFO: ProcessCDR(1,14047907,1,1,2) [2024-12-18 11:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047907', 'tblTempUsageDetail_20' ) start [2024-12-18 11:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047907', 'tblTempUsageDetail_20' ) end [2024-12-18 11:40:27] Production.ERROR: pbx prc_insertCDR start [2024-12-18 11:40:27] Production.ERROR: pbx prc_insertCDR end [2024-12-18 11:40:27] Production.INFO: ==14364== Releasing lock... [2024-12-18 11:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 11:40:27] Production.INFO: 59 MB #Memory Used# [2024-12-18 11:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 08:41:05 [end_date_ymd] => 2024-12-18 11:41:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 08:41:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 11:41:21] Production.INFO: count ==4170 [2024-12-18 11:41:23] Production.ERROR: pbx CDR StartTime 2024-12-18 08:41:05 - End Time 2024-12-18 11:41:05 [2024-12-18 11:41:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 11:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047912', 'tblTempUsageDetail_20' ) start [2024-12-18 11:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047912', 'tblTempUsageDetail_20' ) end [2024-12-18 11:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047912', 'tblTempVendorCDR_20' ) start [2024-12-18 11:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047912', 'tblTempVendorCDR_20' ) end [2024-12-18 11:41:23] Production.INFO: ProcessCDR(1,14047912,1,1,2) [2024-12-18 11:41:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:41:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:41:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047912', 'tblTempUsageDetail_20' ) start [2024-12-18 11:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047912', 'tblTempUsageDetail_20' ) end [2024-12-18 11:41:27] Production.ERROR: pbx prc_insertCDR start [2024-12-18 11:41:28] Production.ERROR: pbx prc_insertCDR end [2024-12-18 11:41:28] Production.INFO: ==14447== Releasing lock... [2024-12-18 11:41:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 11:41:28] Production.INFO: 59.25 MB #Memory Used# [2024-12-18 11:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 08:42:05 [end_date_ymd] => 2024-12-18 11:42:05 [RateCDR] => 1 ) [2024-12-18 11:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 08:42:05' and `end` < '2024-12-18 11:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 11:42:18] Production.INFO: count ==4170 [2024-12-18 11:42:19] Production.ERROR: pbx CDR StartTime 2024-12-18 08:42:05 - End Time 2024-12-18 11:42:05 [2024-12-18 11:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 11:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047917', 'tblTempUsageDetail_20' ) start [2024-12-18 11:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047917', 'tblTempUsageDetail_20' ) end [2024-12-18 11:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047917', 'tblTempVendorCDR_20' ) start [2024-12-18 11:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047917', 'tblTempVendorCDR_20' ) end [2024-12-18 11:42:19] Production.INFO: ProcessCDR(1,14047917,1,1,2) [2024-12-18 11:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047917', 'tblTempUsageDetail_20' ) start [2024-12-18 11:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047917', 'tblTempUsageDetail_20' ) end [2024-12-18 11:42:24] Production.ERROR: pbx prc_insertCDR start [2024-12-18 11:42:24] Production.ERROR: pbx prc_insertCDR end [2024-12-18 11:42:24] Production.INFO: ==14529== Releasing lock... [2024-12-18 11:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 11:42:24] Production.INFO: 59.25 MB #Memory Used# [2024-12-18 11:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 08:43:05 [end_date_ymd] => 2024-12-18 11:43:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 08:43:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 11:43:20] Production.INFO: count ==4162 [2024-12-18 11:43:21] Production.ERROR: pbx CDR StartTime 2024-12-18 08:43:05 - End Time 2024-12-18 11:43:05 [2024-12-18 11:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 11:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047922', 'tblTempUsageDetail_20' ) start [2024-12-18 11:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047922', 'tblTempUsageDetail_20' ) end [2024-12-18 11:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047922', 'tblTempVendorCDR_20' ) start [2024-12-18 11:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047922', 'tblTempVendorCDR_20' ) end [2024-12-18 11:43:21] Production.INFO: ProcessCDR(1,14047922,1,1,2) [2024-12-18 11:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047922', 'tblTempUsageDetail_20' ) start [2024-12-18 11:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047922', 'tblTempUsageDetail_20' ) end [2024-12-18 11:43:26] Production.ERROR: pbx prc_insertCDR start [2024-12-18 11:43:26] Production.ERROR: pbx prc_insertCDR end [2024-12-18 11:43:26] Production.INFO: ==14608== Releasing lock... [2024-12-18 11:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 11:43:26] Production.INFO: 59.25 MB #Memory Used# [2024-12-18 11:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 08:44:05 [end_date_ymd] => 2024-12-18 11:44:05 [RateCDR] => 1 ) [2024-12-18 11:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 08:44:05' and `end` < '2024-12-18 11:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 11:44:20] Production.INFO: count ==4175 [2024-12-18 11:44:22] Production.ERROR: pbx CDR StartTime 2024-12-18 08:44:05 - End Time 2024-12-18 11:44:05 [2024-12-18 11:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 11:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047927', 'tblTempUsageDetail_20' ) start [2024-12-18 11:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047927', 'tblTempUsageDetail_20' ) end [2024-12-18 11:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047927', 'tblTempVendorCDR_20' ) start [2024-12-18 11:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047927', 'tblTempVendorCDR_20' ) end [2024-12-18 11:44:22] Production.INFO: ProcessCDR(1,14047927,1,1,2) [2024-12-18 11:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047927', 'tblTempUsageDetail_20' ) start [2024-12-18 11:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047927', 'tblTempUsageDetail_20' ) end [2024-12-18 11:44:26] Production.ERROR: pbx prc_insertCDR start [2024-12-18 11:44:26] Production.ERROR: pbx prc_insertCDR end [2024-12-18 11:44:26] Production.INFO: ==14689== Releasing lock... [2024-12-18 11:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 11:44:26] Production.INFO: 59.25 MB #Memory Used# [2024-12-18 11:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 08:45:05 [end_date_ymd] => 2024-12-18 11:45:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 08:45:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 11:45:22] Production.INFO: count ==4173 [2024-12-18 11:45:24] Production.ERROR: pbx CDR StartTime 2024-12-18 08:45:05 - End Time 2024-12-18 11:45:05 [2024-12-18 11:45:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 11:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047932', 'tblTempUsageDetail_20' ) start [2024-12-18 11:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047932', 'tblTempUsageDetail_20' ) end [2024-12-18 11:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047932', 'tblTempVendorCDR_20' ) start [2024-12-18 11:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047932', 'tblTempVendorCDR_20' ) end [2024-12-18 11:45:24] Production.INFO: ProcessCDR(1,14047932,1,1,2) [2024-12-18 11:45:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:45:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:45:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:45:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047932', 'tblTempUsageDetail_20' ) start [2024-12-18 11:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047932', 'tblTempUsageDetail_20' ) end [2024-12-18 11:45:28] Production.ERROR: pbx prc_insertCDR start [2024-12-18 11:45:28] Production.ERROR: pbx prc_insertCDR end [2024-12-18 11:45:28] Production.INFO: ==14770== Releasing lock... [2024-12-18 11:45:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 11:45:28] Production.INFO: 59.25 MB #Memory Used# [2024-12-18 11:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 08:46:05 [end_date_ymd] => 2024-12-18 11:46:05 [RateCDR] => 1 ) [2024-12-18 11:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 08:46:05' and `end` < '2024-12-18 11:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 11:46:18] Production.INFO: count ==4162 [2024-12-18 11:46:20] Production.ERROR: pbx CDR StartTime 2024-12-18 08:46:05 - End Time 2024-12-18 11:46:05 [2024-12-18 11:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 11:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047937', 'tblTempUsageDetail_20' ) start [2024-12-18 11:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047937', 'tblTempUsageDetail_20' ) end [2024-12-18 11:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047937', 'tblTempVendorCDR_20' ) start [2024-12-18 11:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047937', 'tblTempVendorCDR_20' ) end [2024-12-18 11:46:20] Production.INFO: ProcessCDR(1,14047937,1,1,2) [2024-12-18 11:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047937', 'tblTempUsageDetail_20' ) start [2024-12-18 11:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047937', 'tblTempUsageDetail_20' ) end [2024-12-18 11:46:24] Production.ERROR: pbx prc_insertCDR start [2024-12-18 11:46:24] Production.ERROR: pbx prc_insertCDR end [2024-12-18 11:46:24] Production.INFO: ==14893== Releasing lock... [2024-12-18 11:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 11:46:24] Production.INFO: 59.25 MB #Memory Used# [2024-12-18 11:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 08:47:05 [end_date_ymd] => 2024-12-18 11:47:05 [RateCDR] => 1 ) [2024-12-18 11:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 08:47:05' and `end` < '2024-12-18 11:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 11:47:19] Production.INFO: count ==4150 [2024-12-18 11:47:20] Production.ERROR: pbx CDR StartTime 2024-12-18 08:47:05 - End Time 2024-12-18 11:47:05 [2024-12-18 11:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 11:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047942', 'tblTempUsageDetail_20' ) start [2024-12-18 11:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047942', 'tblTempUsageDetail_20' ) end [2024-12-18 11:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047942', 'tblTempVendorCDR_20' ) start [2024-12-18 11:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047942', 'tblTempVendorCDR_20' ) end [2024-12-18 11:47:20] Production.INFO: ProcessCDR(1,14047942,1,1,2) [2024-12-18 11:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047942', 'tblTempUsageDetail_20' ) start [2024-12-18 11:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047942', 'tblTempUsageDetail_20' ) end [2024-12-18 11:47:25] Production.ERROR: pbx prc_insertCDR start [2024-12-18 11:47:25] Production.ERROR: pbx prc_insertCDR end [2024-12-18 11:47:25] Production.INFO: ==14966== Releasing lock... [2024-12-18 11:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 11:47:25] Production.INFO: 59 MB #Memory Used# [2024-12-18 11:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 08:48:05 [end_date_ymd] => 2024-12-18 11:48:05 [RateCDR] => 1 ) [2024-12-18 11:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 08:48:05' and `end` < '2024-12-18 11:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 11:48:18] Production.INFO: count ==4153 [2024-12-18 11:48:20] Production.ERROR: pbx CDR StartTime 2024-12-18 08:48:05 - End Time 2024-12-18 11:48:05 [2024-12-18 11:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 11:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047947', 'tblTempUsageDetail_20' ) start [2024-12-18 11:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047947', 'tblTempUsageDetail_20' ) end [2024-12-18 11:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047947', 'tblTempVendorCDR_20' ) start [2024-12-18 11:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047947', 'tblTempVendorCDR_20' ) end [2024-12-18 11:48:20] Production.INFO: ProcessCDR(1,14047947,1,1,2) [2024-12-18 11:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047947', 'tblTempUsageDetail_20' ) start [2024-12-18 11:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047947', 'tblTempUsageDetail_20' ) end [2024-12-18 11:48:24] Production.ERROR: pbx prc_insertCDR start [2024-12-18 11:48:24] Production.ERROR: pbx prc_insertCDR end [2024-12-18 11:48:24] Production.INFO: ==15046== Releasing lock... [2024-12-18 11:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 11:48:24] Production.INFO: 59 MB #Memory Used# [2024-12-18 11:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 08:49:04 [end_date_ymd] => 2024-12-18 11:49:04 [RateCDR] => 1 ) [2024-12-18 11:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 08:49:04' and `end` < '2024-12-18 11:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 11:49:28] Production.INFO: count ==4168 [2024-12-18 11:49:29] Production.ERROR: pbx CDR StartTime 2024-12-18 08:49:04 - End Time 2024-12-18 11:49:04 [2024-12-18 11:49:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 11:49:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047952', 'tblTempUsageDetail_20' ) start [2024-12-18 11:49:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047952', 'tblTempUsageDetail_20' ) end [2024-12-18 11:49:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047952', 'tblTempVendorCDR_20' ) start [2024-12-18 11:49:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047952', 'tblTempVendorCDR_20' ) end [2024-12-18 11:49:29] Production.INFO: ProcessCDR(1,14047952,1,1,2) [2024-12-18 11:49:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:49:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:49:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:49:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:49:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047952', 'tblTempUsageDetail_20' ) start [2024-12-18 11:49:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047952', 'tblTempUsageDetail_20' ) end [2024-12-18 11:49:34] Production.ERROR: pbx prc_insertCDR start [2024-12-18 11:49:34] Production.ERROR: pbx prc_insertCDR end [2024-12-18 11:49:34] Production.INFO: ==15126== Releasing lock... [2024-12-18 11:49:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 11:49:34] Production.INFO: 59.25 MB #Memory Used# [2024-12-18 11:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 08:50:06 [end_date_ymd] => 2024-12-18 11:50:06 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 08:50:06' and `end` < '2024-12-18 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 ,'') [2024-12-18 11:50:30] Production.INFO: count ==4177 [2024-12-18 11:50:32] Production.ERROR: pbx CDR StartTime 2024-12-18 08:50:06 - End Time 2024-12-18 11:50:06 [2024-12-18 11:50:32] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 11:50:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047958', 'tblTempUsageDetail_20' ) start [2024-12-18 11:50:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047958', 'tblTempUsageDetail_20' ) end [2024-12-18 11:50:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047958', 'tblTempVendorCDR_20' ) start [2024-12-18 11:50:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047958', 'tblTempVendorCDR_20' ) end [2024-12-18 11:50:32] Production.INFO: ProcessCDR(1,14047958,1,1,2) [2024-12-18 11:50:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:50:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:50:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:50:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:50:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047958', 'tblTempUsageDetail_20' ) start [2024-12-18 11:50:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047958', 'tblTempUsageDetail_20' ) end [2024-12-18 11:50:37] Production.ERROR: pbx prc_insertCDR start [2024-12-18 11:50:37] Production.ERROR: pbx prc_insertCDR end [2024-12-18 11:50:37] Production.INFO: ==15200== Releasing lock... [2024-12-18 11:50:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 11:50:37] Production.INFO: 59.25 MB #Memory Used# [2024-12-18 11:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 08:51:05 [end_date_ymd] => 2024-12-18 11:51:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 08:51:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 11:51:22] Production.INFO: count ==4231 [2024-12-18 11:51:23] Production.ERROR: pbx CDR StartTime 2024-12-18 08:51:05 - End Time 2024-12-18 11:51:05 [2024-12-18 11:51:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 11:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047963', 'tblTempUsageDetail_20' ) start [2024-12-18 11:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047963', 'tblTempUsageDetail_20' ) end [2024-12-18 11:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047963', 'tblTempVendorCDR_20' ) start [2024-12-18 11:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047963', 'tblTempVendorCDR_20' ) end [2024-12-18 11:51:23] Production.INFO: ProcessCDR(1,14047963,1,1,2) [2024-12-18 11:51:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:51:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:51:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:51:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047963', 'tblTempUsageDetail_20' ) start [2024-12-18 11:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047963', 'tblTempUsageDetail_20' ) end [2024-12-18 11:51:28] Production.ERROR: pbx prc_insertCDR start [2024-12-18 11:51:28] Production.ERROR: pbx prc_insertCDR end [2024-12-18 11:51:28] Production.INFO: ==15280== Releasing lock... [2024-12-18 11:51:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 11:51:28] Production.INFO: 59.75 MB #Memory Used# [2024-12-18 11:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 08:52:05 [end_date_ymd] => 2024-12-18 11:52:05 [RateCDR] => 1 ) [2024-12-18 11:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 08:52:05' and `end` < '2024-12-18 11:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 11:52:19] Production.INFO: count ==4243 [2024-12-18 11:52:21] Production.ERROR: pbx CDR StartTime 2024-12-18 08:52:05 - End Time 2024-12-18 11:52:05 [2024-12-18 11:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 11:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047968', 'tblTempUsageDetail_20' ) start [2024-12-18 11:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047968', 'tblTempUsageDetail_20' ) end [2024-12-18 11:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047968', 'tblTempVendorCDR_20' ) start [2024-12-18 11:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047968', 'tblTempVendorCDR_20' ) end [2024-12-18 11:52:21] Production.INFO: ProcessCDR(1,14047968,1,1,2) [2024-12-18 11:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047968', 'tblTempUsageDetail_20' ) start [2024-12-18 11:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047968', 'tblTempUsageDetail_20' ) end [2024-12-18 11:52:26] Production.ERROR: pbx prc_insertCDR start [2024-12-18 11:52:26] Production.ERROR: pbx prc_insertCDR end [2024-12-18 11:52:26] Production.INFO: ==15355== Releasing lock... [2024-12-18 11:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 11:52:26] Production.INFO: 59.75 MB #Memory Used# [2024-12-18 11:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 08:53:04 [end_date_ymd] => 2024-12-18 11:53:04 [RateCDR] => 1 ) [2024-12-18 11:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 08:53:04' and `end` < '2024-12-18 11:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 11:53:31] Production.INFO: count ==4254 [2024-12-18 11:53:32] Production.ERROR: pbx CDR StartTime 2024-12-18 08:53:04 - End Time 2024-12-18 11:53:04 [2024-12-18 11:53:32] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 11:53:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047973', 'tblTempUsageDetail_20' ) start [2024-12-18 11:53:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047973', 'tblTempUsageDetail_20' ) end [2024-12-18 11:53:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047973', 'tblTempVendorCDR_20' ) start [2024-12-18 11:53:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047973', 'tblTempVendorCDR_20' ) end [2024-12-18 11:53:32] Production.INFO: ProcessCDR(1,14047973,1,1,2) [2024-12-18 11:53:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:53:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:53:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:53:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:53:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047973', 'tblTempUsageDetail_20' ) start [2024-12-18 11:53:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047973', 'tblTempUsageDetail_20' ) end [2024-12-18 11:53:37] Production.ERROR: pbx prc_insertCDR start [2024-12-18 11:53:37] Production.ERROR: pbx prc_insertCDR end [2024-12-18 11:53:37] Production.INFO: ==15428== Releasing lock... [2024-12-18 11:53:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 11:53:37] Production.INFO: 59.75 MB #Memory Used# [2024-12-18 11:54:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 08:54:04 [end_date_ymd] => 2024-12-18 11:54:04 [RateCDR] => 1 ) [2024-12-18 11: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` >= '2024-12-18 08:54:04' and `end` < '2024-12-18 11: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 ,'') [2024-12-18 11:54:23] Production.INFO: count ==4243 [2024-12-18 11:54:25] Production.ERROR: pbx CDR StartTime 2024-12-18 08:54:04 - End Time 2024-12-18 11:54:04 [2024-12-18 11:54:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 11:54:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047978', 'tblTempUsageDetail_20' ) start [2024-12-18 11:54:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047978', 'tblTempUsageDetail_20' ) end [2024-12-18 11:54:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047978', 'tblTempVendorCDR_20' ) start [2024-12-18 11:54:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047978', 'tblTempVendorCDR_20' ) end [2024-12-18 11:54:25] Production.INFO: ProcessCDR(1,14047978,1,1,2) [2024-12-18 11:54:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:54:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:54:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:54:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:54:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047978', 'tblTempUsageDetail_20' ) start [2024-12-18 11:54:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047978', 'tblTempUsageDetail_20' ) end [2024-12-18 11:54:29] Production.ERROR: pbx prc_insertCDR start [2024-12-18 11:54:29] Production.ERROR: pbx prc_insertCDR end [2024-12-18 11:54:29] Production.INFO: ==15504== Releasing lock... [2024-12-18 11:54:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 11:54:29] Production.INFO: 59.75 MB #Memory Used# [2024-12-18 11:55:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 08:55:04 [end_date_ymd] => 2024-12-18 11:55:04 [RateCDR] => 1 ) [2024-12-18 11:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 08:55:04' and `end` < '2024-12-18 11:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 11:55:20] Production.INFO: count ==4247 [2024-12-18 11:55:21] Production.ERROR: pbx CDR StartTime 2024-12-18 08:55:04 - End Time 2024-12-18 11:55:04 [2024-12-18 11:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047983', 'tblTempUsageDetail_20' ) start [2024-12-18 11:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047983', 'tblTempUsageDetail_20' ) end [2024-12-18 11:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047983', 'tblTempVendorCDR_20' ) start [2024-12-18 11:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047983', 'tblTempVendorCDR_20' ) end [2024-12-18 11:55:22] Production.INFO: ProcessCDR(1,14047983,1,1,2) [2024-12-18 11:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047983', 'tblTempUsageDetail_20' ) start [2024-12-18 11:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047983', 'tblTempUsageDetail_20' ) end [2024-12-18 11:55:26] Production.ERROR: pbx prc_insertCDR start [2024-12-18 11:55:26] Production.ERROR: pbx prc_insertCDR end [2024-12-18 11:55:26] Production.INFO: ==15576== Releasing lock... [2024-12-18 11:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 11:55:26] Production.INFO: 59.75 MB #Memory Used# [2024-12-18 11:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 08:56:05 [end_date_ymd] => 2024-12-18 11:56:05 [RateCDR] => 1 ) [2024-12-18 11:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 08:56:05' and `end` < '2024-12-18 11:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 11:56:21] Production.INFO: count ==4254 [2024-12-18 11:56:22] Production.ERROR: pbx CDR StartTime 2024-12-18 08:56:05 - End Time 2024-12-18 11:56:05 [2024-12-18 11:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 11:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047988', 'tblTempUsageDetail_20' ) start [2024-12-18 11:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047988', 'tblTempUsageDetail_20' ) end [2024-12-18 11:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047988', 'tblTempVendorCDR_20' ) start [2024-12-18 11:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047988', 'tblTempVendorCDR_20' ) end [2024-12-18 11:56:22] Production.INFO: ProcessCDR(1,14047988,1,1,2) [2024-12-18 11:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:56:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:56:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047988', 'tblTempUsageDetail_20' ) start [2024-12-18 11:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047988', 'tblTempUsageDetail_20' ) end [2024-12-18 11:56:27] Production.ERROR: pbx prc_insertCDR start [2024-12-18 11:56:27] Production.ERROR: pbx prc_insertCDR end [2024-12-18 11:56:27] Production.INFO: ==15647== Releasing lock... [2024-12-18 11:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 11:56:27] Production.INFO: 59.75 MB #Memory Used# [2024-12-18 11:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 08:57:05 [end_date_ymd] => 2024-12-18 11:57:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 08:57:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 11:57:18] Production.INFO: count ==4251 [2024-12-18 11:57:20] Production.ERROR: pbx CDR StartTime 2024-12-18 08:57:05 - End Time 2024-12-18 11:57:05 [2024-12-18 11:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 11:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047993', 'tblTempUsageDetail_20' ) start [2024-12-18 11:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047993', 'tblTempUsageDetail_20' ) end [2024-12-18 11:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047993', 'tblTempVendorCDR_20' ) start [2024-12-18 11:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047993', 'tblTempVendorCDR_20' ) end [2024-12-18 11:57:20] Production.INFO: ProcessCDR(1,14047993,1,1,2) [2024-12-18 11:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047993', 'tblTempUsageDetail_20' ) start [2024-12-18 11:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047993', 'tblTempUsageDetail_20' ) end [2024-12-18 11:57:24] Production.ERROR: pbx prc_insertCDR start [2024-12-18 11:57:24] Production.ERROR: pbx prc_insertCDR end [2024-12-18 11:57:24] Production.INFO: ==15720== Releasing lock... [2024-12-18 11:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 11:57:24] Production.INFO: 59.75 MB #Memory Used# [2024-12-18 11:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 08:58:05 [end_date_ymd] => 2024-12-18 11:58:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 08:58:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 11:58:25] Production.INFO: count ==4248 [2024-12-18 11:58:26] Production.ERROR: pbx CDR StartTime 2024-12-18 08:58:05 - End Time 2024-12-18 11:58:05 [2024-12-18 11:58:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 11:58:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047998', 'tblTempUsageDetail_20' ) start [2024-12-18 11:58:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14047998', 'tblTempUsageDetail_20' ) end [2024-12-18 11:58:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047998', 'tblTempVendorCDR_20' ) start [2024-12-18 11:58:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14047998', 'tblTempVendorCDR_20' ) end [2024-12-18 11:58:27] Production.INFO: ProcessCDR(1,14047998,1,1,2) [2024-12-18 11:58:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14047998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:58:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14047998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:58:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14047998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:58:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14047998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:58:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047998', 'tblTempUsageDetail_20' ) start [2024-12-18 11:58:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14047998', 'tblTempUsageDetail_20' ) end [2024-12-18 11:58:31] Production.ERROR: pbx prc_insertCDR start [2024-12-18 11:58:31] Production.ERROR: pbx prc_insertCDR end [2024-12-18 11:58:31] Production.INFO: ==15794== Releasing lock... [2024-12-18 11:58:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 11:58:31] Production.INFO: 59.75 MB #Memory Used# [2024-12-18 11:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 08:59:05 [end_date_ymd] => 2024-12-18 11:59:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 08:59:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 11:59:23] Production.INFO: count ==4258 [2024-12-18 11:59:25] Production.ERROR: pbx CDR StartTime 2024-12-18 08:59:05 - End Time 2024-12-18 11:59:05 [2024-12-18 11:59:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 11:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048003', 'tblTempUsageDetail_20' ) start [2024-12-18 11:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048003', 'tblTempUsageDetail_20' ) end [2024-12-18 11:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048003', 'tblTempVendorCDR_20' ) start [2024-12-18 11:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048003', 'tblTempVendorCDR_20' ) end [2024-12-18 11:59:25] Production.INFO: ProcessCDR(1,14048003,1,1,2) [2024-12-18 11:59:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:59:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 11:59:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:59:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 11:59:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048003', 'tblTempUsageDetail_20' ) start [2024-12-18 11:59:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048003', 'tblTempUsageDetail_20' ) end [2024-12-18 11:59:30] Production.ERROR: pbx prc_insertCDR start [2024-12-18 11:59:30] Production.ERROR: pbx prc_insertCDR end [2024-12-18 11:59:30] Production.INFO: ==15869== Releasing lock... [2024-12-18 11:59:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 11:59:30] Production.INFO: 59.75 MB #Memory Used# [2024-12-18 12:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 09:00:05 [end_date_ymd] => 2024-12-18 12:00:05 [RateCDR] => 1 ) [2024-12-18 12:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 09:00:05' and `end` < '2024-12-18 12:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 12:00:20] Production.INFO: count ==4261 [2024-12-18 12:00:22] Production.ERROR: pbx CDR StartTime 2024-12-18 09:00:05 - End Time 2024-12-18 12:00:05 [2024-12-18 12:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 12:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048009', 'tblTempUsageDetail_20' ) start [2024-12-18 12:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048009', 'tblTempUsageDetail_20' ) end [2024-12-18 12:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048009', 'tblTempVendorCDR_20' ) start [2024-12-18 12:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048009', 'tblTempVendorCDR_20' ) end [2024-12-18 12:00:22] Production.INFO: ProcessCDR(1,14048009,1,1,2) [2024-12-18 12:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048009', 'tblTempUsageDetail_20' ) start [2024-12-18 12:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048009', 'tblTempUsageDetail_20' ) end [2024-12-18 12:00:27] Production.ERROR: pbx prc_insertCDR start [2024-12-18 12:00:27] Production.ERROR: pbx prc_insertCDR end [2024-12-18 12:00:27] Production.INFO: ==15942== Releasing lock... [2024-12-18 12:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 12:00:27] Production.INFO: 60 MB #Memory Used# [2024-12-18 12:01:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 09:01:04 [end_date_ymd] => 2024-12-18 12:01:04 [RateCDR] => 1 ) [2024-12-18 12: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` >= '2024-12-18 09:01:04' and `end` < '2024-12-18 12: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 ,'') [2024-12-18 12:01:17] Production.INFO: count ==4327 [2024-12-18 12:01:19] Production.ERROR: pbx CDR StartTime 2024-12-18 09:01:04 - End Time 2024-12-18 12:01:04 [2024-12-18 12:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 12:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048014', 'tblTempUsageDetail_20' ) start [2024-12-18 12:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048014', 'tblTempUsageDetail_20' ) end [2024-12-18 12:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048014', 'tblTempVendorCDR_20' ) start [2024-12-18 12:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048014', 'tblTempVendorCDR_20' ) end [2024-12-18 12:01:19] Production.INFO: ProcessCDR(1,14048014,1,1,2) [2024-12-18 12:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048014', 'tblTempUsageDetail_20' ) start [2024-12-18 12:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048014', 'tblTempUsageDetail_20' ) end [2024-12-18 12:01:23] Production.ERROR: pbx prc_insertCDR start [2024-12-18 12:01:23] Production.ERROR: pbx prc_insertCDR end [2024-12-18 12:01:23] Production.INFO: ==16065== Releasing lock... [2024-12-18 12:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 12:01:23] Production.INFO: 60.75 MB #Memory Used# [2024-12-18 12:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 09:02:05 [end_date_ymd] => 2024-12-18 12:02:05 [RateCDR] => 1 ) [2024-12-18 12:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 09:02:05' and `end` < '2024-12-18 12:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 12:02:25] Production.INFO: count ==4303 [2024-12-18 12:02:26] Production.ERROR: pbx CDR StartTime 2024-12-18 09:02:05 - End Time 2024-12-18 12:02:05 [2024-12-18 12:02:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 12:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048019', 'tblTempUsageDetail_20' ) start [2024-12-18 12:02:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048019', 'tblTempUsageDetail_20' ) end [2024-12-18 12:02:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048019', 'tblTempVendorCDR_20' ) start [2024-12-18 12:02:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048019', 'tblTempVendorCDR_20' ) end [2024-12-18 12:02:27] Production.INFO: ProcessCDR(1,14048019,1,1,2) [2024-12-18 12:02:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:02:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:02:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:02:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:02:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048019', 'tblTempUsageDetail_20' ) start [2024-12-18 12:02:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048019', 'tblTempUsageDetail_20' ) end [2024-12-18 12:02:31] Production.ERROR: pbx prc_insertCDR start [2024-12-18 12:02:31] Production.ERROR: pbx prc_insertCDR end [2024-12-18 12:02:31] Production.INFO: ==16138== Releasing lock... [2024-12-18 12:02:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 12:02:31] Production.INFO: 60.5 MB #Memory Used# [2024-12-18 12:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 09:03:05 [end_date_ymd] => 2024-12-18 12:03:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 09:03:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 12:03:24] Production.INFO: count ==4304 [2024-12-18 12:03:26] Production.ERROR: pbx CDR StartTime 2024-12-18 09:03:05 - End Time 2024-12-18 12:03:05 [2024-12-18 12:03:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 12:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048024', 'tblTempUsageDetail_20' ) start [2024-12-18 12:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048024', 'tblTempUsageDetail_20' ) end [2024-12-18 12:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048024', 'tblTempVendorCDR_20' ) start [2024-12-18 12:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048024', 'tblTempVendorCDR_20' ) end [2024-12-18 12:03:26] Production.INFO: ProcessCDR(1,14048024,1,1,2) [2024-12-18 12:03:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:03:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:03:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:03:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:03:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048024', 'tblTempUsageDetail_20' ) start [2024-12-18 12:03:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048024', 'tblTempUsageDetail_20' ) end [2024-12-18 12:03:31] Production.ERROR: pbx prc_insertCDR start [2024-12-18 12:03:31] Production.ERROR: pbx prc_insertCDR end [2024-12-18 12:03:31] Production.INFO: ==16209== Releasing lock... [2024-12-18 12:03:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 12:03:31] Production.INFO: 60.25 MB #Memory Used# [2024-12-18 12:04:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 09:04:04 [end_date_ymd] => 2024-12-18 12:04:04 [RateCDR] => 1 ) [2024-12-18 12:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 09:04:04' and `end` < '2024-12-18 12:04:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 12:04:27] Production.INFO: count ==4302 [2024-12-18 12:04:29] Production.ERROR: pbx CDR StartTime 2024-12-18 09:04:04 - End Time 2024-12-18 12:04:04 [2024-12-18 12:04:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 12:04:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048029', 'tblTempUsageDetail_20' ) start [2024-12-18 12:04:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048029', 'tblTempUsageDetail_20' ) end [2024-12-18 12:04:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048029', 'tblTempVendorCDR_20' ) start [2024-12-18 12:04:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048029', 'tblTempVendorCDR_20' ) end [2024-12-18 12:04:29] Production.INFO: ProcessCDR(1,14048029,1,1,2) [2024-12-18 12:04:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:04:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:04:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:04:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:04:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048029', 'tblTempUsageDetail_20' ) start [2024-12-18 12:04:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048029', 'tblTempUsageDetail_20' ) end [2024-12-18 12:04:33] Production.ERROR: pbx prc_insertCDR start [2024-12-18 12:04:34] Production.ERROR: pbx prc_insertCDR end [2024-12-18 12:04:34] Production.INFO: ==16281== Releasing lock... [2024-12-18 12:04:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 12:04:34] Production.INFO: 60.25 MB #Memory Used# [2024-12-18 12:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 09:05:05 [end_date_ymd] => 2024-12-18 12:05:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 09:05:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 12:05:23] Production.INFO: count ==4283 [2024-12-18 12:05:25] Production.ERROR: pbx CDR StartTime 2024-12-18 09:05:05 - End Time 2024-12-18 12:05:05 [2024-12-18 12:05:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 12:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048034', 'tblTempUsageDetail_20' ) start [2024-12-18 12:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048034', 'tblTempUsageDetail_20' ) end [2024-12-18 12:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048034', 'tblTempVendorCDR_20' ) start [2024-12-18 12:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048034', 'tblTempVendorCDR_20' ) end [2024-12-18 12:05:25] Production.INFO: ProcessCDR(1,14048034,1,1,2) [2024-12-18 12:05:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:05:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:05:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:05:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:05:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048034', 'tblTempUsageDetail_20' ) start [2024-12-18 12:05:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048034', 'tblTempUsageDetail_20' ) end [2024-12-18 12:05:30] Production.ERROR: pbx prc_insertCDR start [2024-12-18 12:05:30] Production.ERROR: pbx prc_insertCDR end [2024-12-18 12:05:30] Production.INFO: ==16351== Releasing lock... [2024-12-18 12:05:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 12:05:30] Production.INFO: 60 MB #Memory Used# [2024-12-18 12:06:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 09:06:04 [end_date_ymd] => 2024-12-18 12:06:04 [RateCDR] => 1 ) [2024-12-18 12:06:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 09:06:04' and `end` < '2024-12-18 12:06:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 12:06:23] Production.INFO: count ==4271 [2024-12-18 12:06:24] Production.ERROR: pbx CDR StartTime 2024-12-18 09:06:04 - End Time 2024-12-18 12:06:04 [2024-12-18 12:06:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 12:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048039', 'tblTempUsageDetail_20' ) start [2024-12-18 12:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048039', 'tblTempUsageDetail_20' ) end [2024-12-18 12:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048039', 'tblTempVendorCDR_20' ) start [2024-12-18 12:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048039', 'tblTempVendorCDR_20' ) end [2024-12-18 12:06:24] Production.INFO: ProcessCDR(1,14048039,1,1,2) [2024-12-18 12:06:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048039', 'tblTempUsageDetail_20' ) start [2024-12-18 12:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048039', 'tblTempUsageDetail_20' ) end [2024-12-18 12:06:27] Production.ERROR: pbx prc_insertCDR start [2024-12-18 12:06:27] Production.ERROR: pbx prc_insertCDR end [2024-12-18 12:06:27] Production.INFO: ==16423== Releasing lock... [2024-12-18 12:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 12:06:27] Production.INFO: 60 MB #Memory Used# [2024-12-18 12:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 09:07:05 [end_date_ymd] => 2024-12-18 12:07:05 [RateCDR] => 1 ) [2024-12-18 12:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 09:07:05' and `end` < '2024-12-18 12:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 12:07:19] Production.INFO: count ==4257 [2024-12-18 12:07:21] Production.ERROR: pbx CDR StartTime 2024-12-18 09:07:05 - End Time 2024-12-18 12:07:05 [2024-12-18 12:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 12:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048044', 'tblTempUsageDetail_20' ) start [2024-12-18 12:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048044', 'tblTempUsageDetail_20' ) end [2024-12-18 12:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048044', 'tblTempVendorCDR_20' ) start [2024-12-18 12:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048044', 'tblTempVendorCDR_20' ) end [2024-12-18 12:07:21] Production.INFO: ProcessCDR(1,14048044,1,1,2) [2024-12-18 12:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048044', 'tblTempUsageDetail_20' ) start [2024-12-18 12:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048044', 'tblTempUsageDetail_20' ) end [2024-12-18 12:07:25] Production.ERROR: pbx prc_insertCDR start [2024-12-18 12:07:25] Production.ERROR: pbx prc_insertCDR end [2024-12-18 12:07:25] Production.INFO: ==16495== Releasing lock... [2024-12-18 12:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 12:07:25] Production.INFO: 59.75 MB #Memory Used# [2024-12-18 12:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 09:08:05 [end_date_ymd] => 2024-12-18 12:08:05 [RateCDR] => 1 ) [2024-12-18 12:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 09:08:05' and `end` < '2024-12-18 12:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 12:08:33] Production.INFO: count ==4275 [2024-12-18 12:08:34] Production.ERROR: pbx CDR StartTime 2024-12-18 09:08:05 - End Time 2024-12-18 12:08:05 [2024-12-18 12:08:34] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 12:08:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048049', 'tblTempUsageDetail_20' ) start [2024-12-18 12:08:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048049', 'tblTempUsageDetail_20' ) end [2024-12-18 12:08:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048049', 'tblTempVendorCDR_20' ) start [2024-12-18 12:08:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048049', 'tblTempVendorCDR_20' ) end [2024-12-18 12:08:34] Production.INFO: ProcessCDR(1,14048049,1,1,2) [2024-12-18 12:08:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:08:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:08:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:08:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:08:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048049', 'tblTempUsageDetail_20' ) start [2024-12-18 12:08:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048049', 'tblTempUsageDetail_20' ) end [2024-12-18 12:08:39] Production.ERROR: pbx prc_insertCDR start [2024-12-18 12:08:39] Production.ERROR: pbx prc_insertCDR end [2024-12-18 12:08:39] Production.INFO: ==16566== Releasing lock... [2024-12-18 12:08:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 12:08:39] Production.INFO: 60 MB #Memory Used# [2024-12-18 12:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 09:09:05 [end_date_ymd] => 2024-12-18 12:09:05 [RateCDR] => 1 ) [2024-12-18 12:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 09:09:05' and `end` < '2024-12-18 12:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 12:09:29] Production.INFO: count ==4302 [2024-12-18 12:09:30] Production.ERROR: pbx CDR StartTime 2024-12-18 09:09:05 - End Time 2024-12-18 12:09:05 [2024-12-18 12:09:30] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 12:09:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048054', 'tblTempUsageDetail_20' ) start [2024-12-18 12:09:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048054', 'tblTempUsageDetail_20' ) end [2024-12-18 12:09:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048054', 'tblTempVendorCDR_20' ) start [2024-12-18 12:09:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048054', 'tblTempVendorCDR_20' ) end [2024-12-18 12:09:31] Production.INFO: ProcessCDR(1,14048054,1,1,2) [2024-12-18 12:09:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:09:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:09:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:09:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:09:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048054', 'tblTempUsageDetail_20' ) start [2024-12-18 12:09:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048054', 'tblTempUsageDetail_20' ) end [2024-12-18 12:09:35] Production.ERROR: pbx prc_insertCDR start [2024-12-18 12:09:35] Production.ERROR: pbx prc_insertCDR end [2024-12-18 12:09:35] Production.INFO: ==16638== Releasing lock... [2024-12-18 12:09:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 12:09:35] Production.INFO: 60.25 MB #Memory Used# [2024-12-18 12:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 09:10:05 [end_date_ymd] => 2024-12-18 12:10:05 [RateCDR] => 1 ) [2024-12-18 12:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 09:10:05' and `end` < '2024-12-18 12:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 12:10:35] Production.INFO: count ==4311 [2024-12-18 12:10:37] Production.ERROR: pbx CDR StartTime 2024-12-18 09:10:05 - End Time 2024-12-18 12:10:05 [2024-12-18 12:10:37] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 12:10:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048059', 'tblTempUsageDetail_20' ) start [2024-12-18 12:10:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048059', 'tblTempUsageDetail_20' ) end [2024-12-18 12:10:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048059', 'tblTempVendorCDR_20' ) start [2024-12-18 12:10:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048059', 'tblTempVendorCDR_20' ) end [2024-12-18 12:10:37] Production.INFO: ProcessCDR(1,14048059,1,1,2) [2024-12-18 12:10:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:10:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:10:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:10:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:10:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048059', 'tblTempUsageDetail_20' ) start [2024-12-18 12:10:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048059', 'tblTempUsageDetail_20' ) end [2024-12-18 12:10:42] Production.ERROR: pbx prc_insertCDR start [2024-12-18 12:10:42] Production.ERROR: pbx prc_insertCDR end [2024-12-18 12:10:42] Production.INFO: ==16712== Releasing lock... [2024-12-18 12:10:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 12:10:42] Production.INFO: 60.25 MB #Memory Used# [2024-12-18 12:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 09:11:04 [end_date_ymd] => 2024-12-18 12:11:04 [RateCDR] => 1 ) [2024-12-18 12:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 09:11:04' and `end` < '2024-12-18 12:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 12:11:26] Production.INFO: count ==4329 [2024-12-18 12:11:28] Production.ERROR: pbx CDR StartTime 2024-12-18 09:11:04 - End Time 2024-12-18 12:11:04 [2024-12-18 12:11:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 12:11:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048061', 'tblTempUsageDetail_20' ) start [2024-12-18 12:11:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048061', 'tblTempUsageDetail_20' ) end [2024-12-18 12:11:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048061', 'tblTempVendorCDR_20' ) start [2024-12-18 12:11:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048061', 'tblTempVendorCDR_20' ) end [2024-12-18 12:11:28] Production.INFO: ProcessCDR(1,14048061,1,1,2) [2024-12-18 12:11:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:11:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:11:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:11:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:11:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048061', 'tblTempUsageDetail_20' ) start [2024-12-18 12:11:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048061', 'tblTempUsageDetail_20' ) end [2024-12-18 12:11:33] Production.ERROR: pbx prc_insertCDR start [2024-12-18 12:11:33] Production.ERROR: pbx prc_insertCDR end [2024-12-18 12:11:33] Production.INFO: ==16789== Releasing lock... [2024-12-18 12:11:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 12:11:33] Production.INFO: 60.5 MB #Memory Used# [2024-12-18 12:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 09:12:05 [end_date_ymd] => 2024-12-18 12:12:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 09:12:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 12:12:23] Production.INFO: count ==4349 [2024-12-18 12:12:25] Production.ERROR: pbx CDR StartTime 2024-12-18 09:12:05 - End Time 2024-12-18 12:12:05 [2024-12-18 12:12:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 12:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048070', 'tblTempUsageDetail_20' ) start [2024-12-18 12:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048070', 'tblTempUsageDetail_20' ) end [2024-12-18 12:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048070', 'tblTempVendorCDR_20' ) start [2024-12-18 12:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048070', 'tblTempVendorCDR_20' ) end [2024-12-18 12:12:25] Production.INFO: ProcessCDR(1,14048070,1,1,2) [2024-12-18 12:12:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:12:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:12:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:12:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:12:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048070', 'tblTempUsageDetail_20' ) start [2024-12-18 12:12:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048070', 'tblTempUsageDetail_20' ) end [2024-12-18 12:12:29] Production.ERROR: pbx prc_insertCDR start [2024-12-18 12:12:29] Production.ERROR: pbx prc_insertCDR end [2024-12-18 12:12:29] Production.INFO: ==16862== Releasing lock... [2024-12-18 12:12:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 12:12:29] Production.INFO: 60.5 MB #Memory Used# [2024-12-18 12:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 09:13:04 [end_date_ymd] => 2024-12-18 12:13:04 [RateCDR] => 1 ) [2024-12-18 12:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 09:13:04' and `end` < '2024-12-18 12:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 12:13:18] Production.INFO: count ==4354 [2024-12-18 12:13:20] Production.ERROR: pbx CDR StartTime 2024-12-18 09:13:04 - End Time 2024-12-18 12:13:04 [2024-12-18 12:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 12:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048075', 'tblTempUsageDetail_20' ) start [2024-12-18 12:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048075', 'tblTempUsageDetail_20' ) end [2024-12-18 12:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048075', 'tblTempVendorCDR_20' ) start [2024-12-18 12:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048075', 'tblTempVendorCDR_20' ) end [2024-12-18 12:13:20] Production.INFO: ProcessCDR(1,14048075,1,1,2) [2024-12-18 12:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048075', 'tblTempUsageDetail_20' ) start [2024-12-18 12:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048075', 'tblTempUsageDetail_20' ) end [2024-12-18 12:13:24] Production.ERROR: pbx prc_insertCDR start [2024-12-18 12:13:24] Production.ERROR: pbx prc_insertCDR end [2024-12-18 12:13:24] Production.INFO: ==16936== Releasing lock... [2024-12-18 12:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 12:13:24] Production.INFO: 60.5 MB #Memory Used# [2024-12-18 12:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 09:14:05 [end_date_ymd] => 2024-12-18 12:14:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 09:14:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 12:14:20] Production.INFO: count ==4357 [2024-12-18 12:14:21] Production.ERROR: pbx CDR StartTime 2024-12-18 09:14:05 - End Time 2024-12-18 12:14:05 [2024-12-18 12:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 12:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048080', 'tblTempUsageDetail_20' ) start [2024-12-18 12:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048080', 'tblTempUsageDetail_20' ) end [2024-12-18 12:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048080', 'tblTempVendorCDR_20' ) start [2024-12-18 12:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048080', 'tblTempVendorCDR_20' ) end [2024-12-18 12:14:21] Production.INFO: ProcessCDR(1,14048080,1,1,2) [2024-12-18 12:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048080', 'tblTempUsageDetail_20' ) start [2024-12-18 12:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048080', 'tblTempUsageDetail_20' ) end [2024-12-18 12:14:26] Production.ERROR: pbx prc_insertCDR start [2024-12-18 12:14:26] Production.ERROR: pbx prc_insertCDR end [2024-12-18 12:14:26] Production.INFO: ==17010== Releasing lock... [2024-12-18 12:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 12:14:26] Production.INFO: 60.5 MB #Memory Used# [2024-12-18 12:15:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 09:15:04 [end_date_ymd] => 2024-12-18 12:15:04 [RateCDR] => 1 ) [2024-12-18 12: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` >= '2024-12-18 09:15:04' and `end` < '2024-12-18 12: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 ,'') [2024-12-18 12:15:26] Production.INFO: count ==4359 [2024-12-18 12:15:27] Production.ERROR: pbx CDR StartTime 2024-12-18 09:15:04 - End Time 2024-12-18 12:15:04 [2024-12-18 12:15:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 12:15:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048085', 'tblTempUsageDetail_20' ) start [2024-12-18 12:15:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048085', 'tblTempUsageDetail_20' ) end [2024-12-18 12:15:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048085', 'tblTempVendorCDR_20' ) start [2024-12-18 12:15:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048085', 'tblTempVendorCDR_20' ) end [2024-12-18 12:15:27] Production.INFO: ProcessCDR(1,14048085,1,1,2) [2024-12-18 12:15:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:15:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:15:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:15:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:15:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048085', 'tblTempUsageDetail_20' ) start [2024-12-18 12:15:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048085', 'tblTempUsageDetail_20' ) end [2024-12-18 12:15:32] Production.ERROR: pbx prc_insertCDR start [2024-12-18 12:15:32] Production.ERROR: pbx prc_insertCDR end [2024-12-18 12:15:32] Production.INFO: ==17083== Releasing lock... [2024-12-18 12:15:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 12:15:32] Production.INFO: 60.75 MB #Memory Used# [2024-12-18 12:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 09:16:05 [end_date_ymd] => 2024-12-18 12:16:05 [RateCDR] => 1 ) [2024-12-18 12:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 09:16:05' and `end` < '2024-12-18 12:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 12:16:28] Production.INFO: count ==4363 [2024-12-18 12:16:30] Production.ERROR: pbx CDR StartTime 2024-12-18 09:16:05 - End Time 2024-12-18 12:16:05 [2024-12-18 12:16:30] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 12:16:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048090', 'tblTempUsageDetail_20' ) start [2024-12-18 12:16:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048090', 'tblTempUsageDetail_20' ) end [2024-12-18 12:16:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048090', 'tblTempVendorCDR_20' ) start [2024-12-18 12:16:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048090', 'tblTempVendorCDR_20' ) end [2024-12-18 12:16:30] Production.INFO: ProcessCDR(1,14048090,1,1,2) [2024-12-18 12:16:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:16:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:16:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:16:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:16:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048090', 'tblTempUsageDetail_20' ) start [2024-12-18 12:16:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048090', 'tblTempUsageDetail_20' ) end [2024-12-18 12:16:34] Production.ERROR: pbx prc_insertCDR start [2024-12-18 12:16:34] Production.ERROR: pbx prc_insertCDR end [2024-12-18 12:16:34] Production.INFO: ==17153== Releasing lock... [2024-12-18 12:16:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 12:16:34] Production.INFO: 60.75 MB #Memory Used# [2024-12-18 12:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 09:17:04 [end_date_ymd] => 2024-12-18 12:17:04 [RateCDR] => 1 ) [2024-12-18 12: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` >= '2024-12-18 09:17:04' and `end` < '2024-12-18 12: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 ,'') [2024-12-18 12:17:28] Production.INFO: count ==4361 [2024-12-18 12:17:29] Production.ERROR: pbx CDR StartTime 2024-12-18 09:17:04 - End Time 2024-12-18 12:17:04 [2024-12-18 12:17:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 12:17:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048092', 'tblTempUsageDetail_20' ) start [2024-12-18 12:17:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048092', 'tblTempUsageDetail_20' ) end [2024-12-18 12:17:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048092', 'tblTempVendorCDR_20' ) start [2024-12-18 12:17:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048092', 'tblTempVendorCDR_20' ) end [2024-12-18 12:17:29] Production.INFO: ProcessCDR(1,14048092,1,1,2) [2024-12-18 12:17:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:17:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:17:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:17:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:17:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048092', 'tblTempUsageDetail_20' ) start [2024-12-18 12:17:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048092', 'tblTempUsageDetail_20' ) end [2024-12-18 12:17:34] Production.ERROR: pbx prc_insertCDR start [2024-12-18 12:17:34] Production.ERROR: pbx prc_insertCDR end [2024-12-18 12:17:34] Production.INFO: ==17274== Releasing lock... [2024-12-18 12:17:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 12:17:34] Production.INFO: 60.75 MB #Memory Used# [2024-12-18 12:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 09:18:05 [end_date_ymd] => 2024-12-18 12:18:05 [RateCDR] => 1 ) [2024-12-18 12:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 09:18:05' and `end` < '2024-12-18 12:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 12:18:28] Production.INFO: count ==4352 [2024-12-18 12:18:29] Production.ERROR: pbx CDR StartTime 2024-12-18 09:18:05 - End Time 2024-12-18 12:18:05 [2024-12-18 12:18:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 12:18:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048100', 'tblTempUsageDetail_20' ) start [2024-12-18 12:18:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048100', 'tblTempUsageDetail_20' ) end [2024-12-18 12:18:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048100', 'tblTempVendorCDR_20' ) start [2024-12-18 12:18:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048100', 'tblTempVendorCDR_20' ) end [2024-12-18 12:18:29] Production.INFO: ProcessCDR(1,14048100,1,1,2) [2024-12-18 12:18:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:18:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:18:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:18:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:18:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048100', 'tblTempUsageDetail_20' ) start [2024-12-18 12:18:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048100', 'tblTempUsageDetail_20' ) end [2024-12-18 12:18:34] Production.ERROR: pbx prc_insertCDR start [2024-12-18 12:18:34] Production.ERROR: pbx prc_insertCDR end [2024-12-18 12:18:34] Production.INFO: ==17344== Releasing lock... [2024-12-18 12:18:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 12:18:34] Production.INFO: 60.5 MB #Memory Used# [2024-12-18 12:19:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 09:19:04 [end_date_ymd] => 2024-12-18 12:19:04 [RateCDR] => 1 ) [2024-12-18 12: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` >= '2024-12-18 09:19:04' and `end` < '2024-12-18 12: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 ,'') [2024-12-18 12:19:20] Production.INFO: count ==4343 [2024-12-18 12:19:22] Production.ERROR: pbx CDR StartTime 2024-12-18 09:19:04 - End Time 2024-12-18 12:19:04 [2024-12-18 12:19:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 12:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048105', 'tblTempUsageDetail_20' ) start [2024-12-18 12:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048105', 'tblTempUsageDetail_20' ) end [2024-12-18 12:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048105', 'tblTempVendorCDR_20' ) start [2024-12-18 12:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048105', 'tblTempVendorCDR_20' ) end [2024-12-18 12:19:22] Production.INFO: ProcessCDR(1,14048105,1,1,2) [2024-12-18 12:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048105', 'tblTempUsageDetail_20' ) start [2024-12-18 12:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048105', 'tblTempUsageDetail_20' ) end [2024-12-18 12:19:26] Production.ERROR: pbx prc_insertCDR start [2024-12-18 12:19:26] Production.ERROR: pbx prc_insertCDR end [2024-12-18 12:19:26] Production.INFO: ==17415== Releasing lock... [2024-12-18 12:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 12:19:26] Production.INFO: 60.5 MB #Memory Used# [2024-12-18 12:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 09:20:05 [end_date_ymd] => 2024-12-18 12:20:05 [RateCDR] => 1 ) [2024-12-18 12: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` >= '2024-12-18 09:20:05' and `end` < '2024-12-18 12: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 ,'') [2024-12-18 12:20:20] Production.INFO: count ==4338 [2024-12-18 12:20:22] Production.ERROR: pbx CDR StartTime 2024-12-18 09:20:05 - End Time 2024-12-18 12:20:05 [2024-12-18 12:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 12:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048111', 'tblTempUsageDetail_20' ) start [2024-12-18 12:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048111', 'tblTempUsageDetail_20' ) end [2024-12-18 12:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048111', 'tblTempVendorCDR_20' ) start [2024-12-18 12:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048111', 'tblTempVendorCDR_20' ) end [2024-12-18 12:20:22] Production.INFO: ProcessCDR(1,14048111,1,1,2) [2024-12-18 12:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048111', 'tblTempUsageDetail_20' ) start [2024-12-18 12:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048111', 'tblTempUsageDetail_20' ) end [2024-12-18 12:20:26] Production.ERROR: pbx prc_insertCDR start [2024-12-18 12:20:26] Production.ERROR: pbx prc_insertCDR end [2024-12-18 12:20:26] Production.INFO: ==17492== Releasing lock... [2024-12-18 12:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 12:20:26] Production.INFO: 60.5 MB #Memory Used# [2024-12-18 12:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 09:21:05 [end_date_ymd] => 2024-12-18 12:21:05 [RateCDR] => 1 ) [2024-12-18 12:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 09:21:05' and `end` < '2024-12-18 12:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 12:21:18] Production.INFO: count ==4346 [2024-12-18 12:21:19] Production.ERROR: pbx CDR StartTime 2024-12-18 09:21:05 - End Time 2024-12-18 12:21:05 [2024-12-18 12:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 12:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048116', 'tblTempUsageDetail_20' ) start [2024-12-18 12:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048116', 'tblTempUsageDetail_20' ) end [2024-12-18 12:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048116', 'tblTempVendorCDR_20' ) start [2024-12-18 12:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048116', 'tblTempVendorCDR_20' ) end [2024-12-18 12:21:19] Production.INFO: ProcessCDR(1,14048116,1,1,2) [2024-12-18 12:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048116', 'tblTempUsageDetail_20' ) start [2024-12-18 12:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048116', 'tblTempUsageDetail_20' ) end [2024-12-18 12:21:24] Production.ERROR: pbx prc_insertCDR start [2024-12-18 12:21:24] Production.ERROR: pbx prc_insertCDR end [2024-12-18 12:21:24] Production.INFO: ==17567== Releasing lock... [2024-12-18 12:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 12:21:24] Production.INFO: 60.5 MB #Memory Used# [2024-12-18 12:22:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 09:22:04 [end_date_ymd] => 2024-12-18 12:22:04 [RateCDR] => 1 ) [2024-12-18 12:22:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 09:22:04' and `end` < '2024-12-18 12:22:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 12:22:23] Production.INFO: count ==4365 [2024-12-18 12:22:24] Production.ERROR: pbx CDR StartTime 2024-12-18 09:22:04 - End Time 2024-12-18 12:22:04 [2024-12-18 12:22:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 12:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048121', 'tblTempUsageDetail_20' ) start [2024-12-18 12:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048121', 'tblTempUsageDetail_20' ) end [2024-12-18 12:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048121', 'tblTempVendorCDR_20' ) start [2024-12-18 12:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048121', 'tblTempVendorCDR_20' ) end [2024-12-18 12:22:25] Production.INFO: ProcessCDR(1,14048121,1,1,2) [2024-12-18 12:22:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:22:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:22:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:22:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:22:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048121', 'tblTempUsageDetail_20' ) start [2024-12-18 12:22:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048121', 'tblTempUsageDetail_20' ) end [2024-12-18 12:22:29] Production.ERROR: pbx prc_insertCDR start [2024-12-18 12:22:29] Production.ERROR: pbx prc_insertCDR end [2024-12-18 12:22:29] Production.INFO: ==17636== Releasing lock... [2024-12-18 12:22:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 12:22:29] Production.INFO: 60.75 MB #Memory Used# [2024-12-18 12:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 09:23:05 [end_date_ymd] => 2024-12-18 12:23:05 [RateCDR] => 1 ) [2024-12-18 12:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 09:23:05' and `end` < '2024-12-18 12:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 12:23:21] Production.INFO: count ==4355 [2024-12-18 12:23:22] Production.ERROR: pbx CDR StartTime 2024-12-18 09:23:05 - End Time 2024-12-18 12:23:05 [2024-12-18 12:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 12:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048126', 'tblTempUsageDetail_20' ) start [2024-12-18 12:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048126', 'tblTempUsageDetail_20' ) end [2024-12-18 12:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048126', 'tblTempVendorCDR_20' ) start [2024-12-18 12:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048126', 'tblTempVendorCDR_20' ) end [2024-12-18 12:23:22] Production.INFO: ProcessCDR(1,14048126,1,1,2) [2024-12-18 12:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048126', 'tblTempUsageDetail_20' ) start [2024-12-18 12:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048126', 'tblTempUsageDetail_20' ) end [2024-12-18 12:23:27] Production.ERROR: pbx prc_insertCDR start [2024-12-18 12:23:27] Production.ERROR: pbx prc_insertCDR end [2024-12-18 12:23:27] Production.INFO: ==17710== Releasing lock... [2024-12-18 12:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 12:23:27] Production.INFO: 60.5 MB #Memory Used# [2024-12-18 12:24:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 09:24:04 [end_date_ymd] => 2024-12-18 12:24:04 [RateCDR] => 1 ) [2024-12-18 12:24:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 09:24:04' and `end` < '2024-12-18 12:24:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 12:24:26] Production.INFO: count ==4377 [2024-12-18 12:24:27] Production.ERROR: pbx CDR StartTime 2024-12-18 09:24:04 - End Time 2024-12-18 12:24:04 [2024-12-18 12:24:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 12:24:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048131', 'tblTempUsageDetail_20' ) start [2024-12-18 12:24:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048131', 'tblTempUsageDetail_20' ) end [2024-12-18 12:24:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048131', 'tblTempVendorCDR_20' ) start [2024-12-18 12:24:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048131', 'tblTempVendorCDR_20' ) end [2024-12-18 12:24:28] Production.INFO: ProcessCDR(1,14048131,1,1,2) [2024-12-18 12:24:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:24:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:24:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:24:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:24:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048131', 'tblTempUsageDetail_20' ) start [2024-12-18 12:24:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048131', 'tblTempUsageDetail_20' ) end [2024-12-18 12:24:32] Production.ERROR: pbx prc_insertCDR start [2024-12-18 12:24:32] Production.ERROR: pbx prc_insertCDR end [2024-12-18 12:24:32] Production.INFO: ==17785== Releasing lock... [2024-12-18 12:24:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 12:24:32] Production.INFO: 61.25 MB #Memory Used# [2024-12-18 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 09:25:05 [end_date_ymd] => 2024-12-18 12:25:05 [RateCDR] => 1 ) [2024-12-18 12:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 09:25:05' and `end` < '2024-12-18 12:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 12:25:22] Production.INFO: count ==4380 [2024-12-18 12:25:23] Production.ERROR: pbx CDR StartTime 2024-12-18 09:25:05 - End Time 2024-12-18 12:25:05 [2024-12-18 12:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 12:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048136', 'tblTempUsageDetail_20' ) start [2024-12-18 12:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048136', 'tblTempUsageDetail_20' ) end [2024-12-18 12:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048136', 'tblTempVendorCDR_20' ) start [2024-12-18 12:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048136', 'tblTempVendorCDR_20' ) end [2024-12-18 12:25:24] Production.INFO: ProcessCDR(1,14048136,1,1,2) [2024-12-18 12:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048136', 'tblTempUsageDetail_20' ) start [2024-12-18 12:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048136', 'tblTempUsageDetail_20' ) end [2024-12-18 12:25:28] Production.ERROR: pbx prc_insertCDR start [2024-12-18 12:25:28] Production.ERROR: pbx prc_insertCDR end [2024-12-18 12:25:28] Production.INFO: ==17861== Releasing lock... [2024-12-18 12:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 12:25:28] Production.INFO: 60.75 MB #Memory Used# [2024-12-18 12:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 09:26:05 [end_date_ymd] => 2024-12-18 12:26:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 09:26:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 12:26:18] Production.INFO: count ==4364 [2024-12-18 12:26:20] Production.ERROR: pbx CDR StartTime 2024-12-18 09:26:05 - End Time 2024-12-18 12:26:05 [2024-12-18 12:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 12:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048141', 'tblTempUsageDetail_20' ) start [2024-12-18 12:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048141', 'tblTempUsageDetail_20' ) end [2024-12-18 12:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048141', 'tblTempVendorCDR_20' ) start [2024-12-18 12:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048141', 'tblTempVendorCDR_20' ) end [2024-12-18 12:26:20] Production.INFO: ProcessCDR(1,14048141,1,1,2) [2024-12-18 12:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048141', 'tblTempUsageDetail_20' ) start [2024-12-18 12:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048141', 'tblTempUsageDetail_20' ) end [2024-12-18 12:26:25] Production.ERROR: pbx prc_insertCDR start [2024-12-18 12:26:25] Production.ERROR: pbx prc_insertCDR end [2024-12-18 12:26:25] Production.INFO: ==17940== Releasing lock... [2024-12-18 12:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 12:26:25] Production.INFO: 60.75 MB #Memory Used# [2024-12-18 12:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 09:27:05 [end_date_ymd] => 2024-12-18 12:27:05 [RateCDR] => 1 ) [2024-12-18 12:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 09:27:05' and `end` < '2024-12-18 12:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 12:27:21] Production.INFO: count ==4372 [2024-12-18 12:27:22] Production.ERROR: pbx CDR StartTime 2024-12-18 09:27:05 - End Time 2024-12-18 12:27:05 [2024-12-18 12:27:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 12:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048146', 'tblTempUsageDetail_20' ) start [2024-12-18 12:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048146', 'tblTempUsageDetail_20' ) end [2024-12-18 12:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048146', 'tblTempVendorCDR_20' ) start [2024-12-18 12:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048146', 'tblTempVendorCDR_20' ) end [2024-12-18 12:27:23] Production.INFO: ProcessCDR(1,14048146,1,1,2) [2024-12-18 12:27:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:27:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:27:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:27:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048146', 'tblTempUsageDetail_20' ) start [2024-12-18 12:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048146', 'tblTempUsageDetail_20' ) end [2024-12-18 12:27:27] Production.ERROR: pbx prc_insertCDR start [2024-12-18 12:27:27] Production.ERROR: pbx prc_insertCDR end [2024-12-18 12:27:27] Production.INFO: ==18015== Releasing lock... [2024-12-18 12:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 12:27:27] Production.INFO: 60.75 MB #Memory Used# [2024-12-18 12:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 09:28:05 [end_date_ymd] => 2024-12-18 12:28:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 09:28:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 12:28:21] Production.INFO: count ==4359 [2024-12-18 12:28:23] Production.ERROR: pbx CDR StartTime 2024-12-18 09:28:05 - End Time 2024-12-18 12:28:05 [2024-12-18 12:28:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 12:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048151', 'tblTempUsageDetail_20' ) start [2024-12-18 12:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048151', 'tblTempUsageDetail_20' ) end [2024-12-18 12:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048151', 'tblTempVendorCDR_20' ) start [2024-12-18 12:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048151', 'tblTempVendorCDR_20' ) end [2024-12-18 12:28:23] Production.INFO: ProcessCDR(1,14048151,1,1,2) [2024-12-18 12:28:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:28:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:28:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:28:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048151', 'tblTempUsageDetail_20' ) start [2024-12-18 12:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048151', 'tblTempUsageDetail_20' ) end [2024-12-18 12:28:28] Production.ERROR: pbx prc_insertCDR start [2024-12-18 12:28:28] Production.ERROR: pbx prc_insertCDR end [2024-12-18 12:28:28] Production.INFO: ==18086== Releasing lock... [2024-12-18 12:28:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 12:28:28] Production.INFO: 60.75 MB #Memory Used# [2024-12-18 12:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 09:29:05 [end_date_ymd] => 2024-12-18 12:29:05 [RateCDR] => 1 ) [2024-12-18 12:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 09:29:05' and `end` < '2024-12-18 12:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 12:29:28] Production.INFO: count ==4367 [2024-12-18 12:29:30] Production.ERROR: pbx CDR StartTime 2024-12-18 09:29:05 - End Time 2024-12-18 12:29:05 [2024-12-18 12:29:30] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 12:29:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048156', 'tblTempUsageDetail_20' ) start [2024-12-18 12:29:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048156', 'tblTempUsageDetail_20' ) end [2024-12-18 12:29:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048156', 'tblTempVendorCDR_20' ) start [2024-12-18 12:29:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048156', 'tblTempVendorCDR_20' ) end [2024-12-18 12:29:30] Production.INFO: ProcessCDR(1,14048156,1,1,2) [2024-12-18 12:29:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:29:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:29:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:29:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:29:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048156', 'tblTempUsageDetail_20' ) start [2024-12-18 12:29:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048156', 'tblTempUsageDetail_20' ) end [2024-12-18 12:29:35] Production.ERROR: pbx prc_insertCDR start [2024-12-18 12:29:35] Production.ERROR: pbx prc_insertCDR end [2024-12-18 12:29:35] Production.INFO: ==18161== Releasing lock... [2024-12-18 12:29:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 12:29:35] Production.INFO: 60.75 MB #Memory Used# [2024-12-18 12:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 09:30:05 [end_date_ymd] => 2024-12-18 12:30:05 [RateCDR] => 1 ) [2024-12-18 12:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 09:30:05' and `end` < '2024-12-18 12:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 12:30:23] Production.INFO: count ==4368 [2024-12-18 12:30:25] Production.ERROR: pbx CDR StartTime 2024-12-18 09:30:05 - End Time 2024-12-18 12:30:05 [2024-12-18 12:30:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 12:30:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048162', 'tblTempUsageDetail_20' ) start [2024-12-18 12:30:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048162', 'tblTempUsageDetail_20' ) end [2024-12-18 12:30:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048162', 'tblTempVendorCDR_20' ) start [2024-12-18 12:30:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048162', 'tblTempVendorCDR_20' ) end [2024-12-18 12:30:25] Production.INFO: ProcessCDR(1,14048162,1,1,2) [2024-12-18 12:30:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:30:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:30:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:30:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:30:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048162', 'tblTempUsageDetail_20' ) start [2024-12-18 12:30:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048162', 'tblTempUsageDetail_20' ) end [2024-12-18 12:30:29] Production.ERROR: pbx prc_insertCDR start [2024-12-18 12:30:29] Production.ERROR: pbx prc_insertCDR end [2024-12-18 12:30:29] Production.INFO: ==18237== Releasing lock... [2024-12-18 12:30:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 12:30:29] Production.INFO: 60.75 MB #Memory Used# [2024-12-18 12:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 09:31:05 [end_date_ymd] => 2024-12-18 12:31:05 [RateCDR] => 1 ) [2024-12-18 12:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 09:31:05' and `end` < '2024-12-18 12:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 12:31:27] Production.INFO: count ==4381 [2024-12-18 12:31:28] Production.ERROR: pbx CDR StartTime 2024-12-18 09:31:05 - End Time 2024-12-18 12:31:05 [2024-12-18 12:31:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 12:31:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048167', 'tblTempUsageDetail_20' ) start [2024-12-18 12:31:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048167', 'tblTempUsageDetail_20' ) end [2024-12-18 12:31:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048167', 'tblTempVendorCDR_20' ) start [2024-12-18 12:31:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048167', 'tblTempVendorCDR_20' ) end [2024-12-18 12:31:29] Production.INFO: ProcessCDR(1,14048167,1,1,2) [2024-12-18 12:31:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:31:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:31:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:31:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:31:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048167', 'tblTempUsageDetail_20' ) start [2024-12-18 12:31:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048167', 'tblTempUsageDetail_20' ) end [2024-12-18 12:31:33] Production.ERROR: pbx prc_insertCDR start [2024-12-18 12:31:33] Production.ERROR: pbx prc_insertCDR end [2024-12-18 12:31:33] Production.INFO: ==18313== Releasing lock... [2024-12-18 12:31:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 12:31:33] Production.INFO: 60.75 MB #Memory Used# [2024-12-18 12:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 09:32:05 [end_date_ymd] => 2024-12-18 12:32:05 [RateCDR] => 1 ) [2024-12-18 12:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 09:32:05' and `end` < '2024-12-18 12:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 12:32:21] Production.INFO: count ==4393 [2024-12-18 12:32:23] Production.ERROR: pbx CDR StartTime 2024-12-18 09:32:05 - End Time 2024-12-18 12:32:05 [2024-12-18 12:32:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 12:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048172', 'tblTempUsageDetail_20' ) start [2024-12-18 12:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048172', 'tblTempUsageDetail_20' ) end [2024-12-18 12:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048172', 'tblTempVendorCDR_20' ) start [2024-12-18 12:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048172', 'tblTempVendorCDR_20' ) end [2024-12-18 12:32:23] Production.INFO: ProcessCDR(1,14048172,1,1,2) [2024-12-18 12:32:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:32:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:32:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:32:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048172', 'tblTempUsageDetail_20' ) start [2024-12-18 12:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048172', 'tblTempUsageDetail_20' ) end [2024-12-18 12:32:28] Production.ERROR: pbx prc_insertCDR start [2024-12-18 12:32:28] Production.ERROR: pbx prc_insertCDR end [2024-12-18 12:32:28] Production.INFO: ==18387== Releasing lock... [2024-12-18 12:32:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 12:32:28] Production.INFO: 61 MB #Memory Used# [2024-12-18 12:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 09:33:05 [end_date_ymd] => 2024-12-18 12:33:05 [RateCDR] => 1 ) [2024-12-18 12:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 09:33:05' and `end` < '2024-12-18 12:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 12:33:25] Production.INFO: count ==4396 [2024-12-18 12:33:27] Production.ERROR: pbx CDR StartTime 2024-12-18 09:33:05 - End Time 2024-12-18 12:33:05 [2024-12-18 12:33:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 12:33:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048177', 'tblTempUsageDetail_20' ) start [2024-12-18 12:33:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048177', 'tblTempUsageDetail_20' ) end [2024-12-18 12:33:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048177', 'tblTempVendorCDR_20' ) start [2024-12-18 12:33:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048177', 'tblTempVendorCDR_20' ) end [2024-12-18 12:33:27] Production.INFO: ProcessCDR(1,14048177,1,1,2) [2024-12-18 12:33:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:33:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:33:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:33:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:33:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048177', 'tblTempUsageDetail_20' ) start [2024-12-18 12:33:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048177', 'tblTempUsageDetail_20' ) end [2024-12-18 12:33:32] Production.ERROR: pbx prc_insertCDR start [2024-12-18 12:33:32] Production.ERROR: pbx prc_insertCDR end [2024-12-18 12:33:32] Production.INFO: ==18502== Releasing lock... [2024-12-18 12:33:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 12:33:32] Production.INFO: 61 MB #Memory Used# [2024-12-18 12:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 09:34:05 [end_date_ymd] => 2024-12-18 12:34:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 09:34:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 12:34:22] Production.INFO: count ==4376 [2024-12-18 12:34:24] Production.ERROR: pbx CDR StartTime 2024-12-18 09:34:05 - End Time 2024-12-18 12:34:05 [2024-12-18 12:34:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 12:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048182', 'tblTempUsageDetail_20' ) start [2024-12-18 12:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048182', 'tblTempUsageDetail_20' ) end [2024-12-18 12:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048182', 'tblTempVendorCDR_20' ) start [2024-12-18 12:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048182', 'tblTempVendorCDR_20' ) end [2024-12-18 12:34:24] Production.INFO: ProcessCDR(1,14048182,1,1,2) [2024-12-18 12:34:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:34:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:34:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:34:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:34:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048182', 'tblTempUsageDetail_20' ) start [2024-12-18 12:34:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048182', 'tblTempUsageDetail_20' ) end [2024-12-18 12:34:29] Production.ERROR: pbx prc_insertCDR start [2024-12-18 12:34:29] Production.ERROR: pbx prc_insertCDR end [2024-12-18 12:34:29] Production.INFO: ==18576== Releasing lock... [2024-12-18 12:34:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 12:34:29] Production.INFO: 60.75 MB #Memory Used# [2024-12-18 12:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 09:35:04 [end_date_ymd] => 2024-12-18 12:35:04 [RateCDR] => 1 ) [2024-12-18 12:35: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` >= '2024-12-18 09:35:04' and `end` < '2024-12-18 12:35: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 ,'') [2024-12-18 12:35:27] Production.INFO: count ==4373 [2024-12-18 12:35:29] Production.ERROR: pbx CDR StartTime 2024-12-18 09:35:04 - End Time 2024-12-18 12:35:04 [2024-12-18 12:35:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 12:35:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048187', 'tblTempUsageDetail_20' ) start [2024-12-18 12:35:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048187', 'tblTempUsageDetail_20' ) end [2024-12-18 12:35:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048187', 'tblTempVendorCDR_20' ) start [2024-12-18 12:35:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048187', 'tblTempVendorCDR_20' ) end [2024-12-18 12:35:29] Production.INFO: ProcessCDR(1,14048187,1,1,2) [2024-12-18 12:35:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:35:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:35:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:35:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:35:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048187', 'tblTempUsageDetail_20' ) start [2024-12-18 12:35:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048187', 'tblTempUsageDetail_20' ) end [2024-12-18 12:35:34] Production.ERROR: pbx prc_insertCDR start [2024-12-18 12:35:34] Production.ERROR: pbx prc_insertCDR end [2024-12-18 12:35:34] Production.INFO: ==18654== Releasing lock... [2024-12-18 12:35:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 12:35:34] Production.INFO: 60.75 MB #Memory Used# [2024-12-18 12:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 09:36:05 [end_date_ymd] => 2024-12-18 12:36:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 09:36:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 12:36:25] Production.INFO: count ==4375 [2024-12-18 12:36:26] Production.ERROR: pbx CDR StartTime 2024-12-18 09:36:05 - End Time 2024-12-18 12:36:05 [2024-12-18 12:36:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 12:36:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048192', 'tblTempUsageDetail_20' ) start [2024-12-18 12:36:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048192', 'tblTempUsageDetail_20' ) end [2024-12-18 12:36:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048192', 'tblTempVendorCDR_20' ) start [2024-12-18 12:36:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048192', 'tblTempVendorCDR_20' ) end [2024-12-18 12:36:26] Production.INFO: ProcessCDR(1,14048192,1,1,2) [2024-12-18 12:36:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:36:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:36:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:36:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:36:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048192', 'tblTempUsageDetail_20' ) start [2024-12-18 12:36:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048192', 'tblTempUsageDetail_20' ) end [2024-12-18 12:36:31] Production.ERROR: pbx prc_insertCDR start [2024-12-18 12:36:31] Production.ERROR: pbx prc_insertCDR end [2024-12-18 12:36:31] Production.INFO: ==18733== Releasing lock... [2024-12-18 12:36:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 12:36:31] Production.INFO: 60.75 MB #Memory Used# [2024-12-18 12:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 09:37:05 [end_date_ymd] => 2024-12-18 12:37:05 [RateCDR] => 1 ) [2024-12-18 12:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 09:37:05' and `end` < '2024-12-18 12:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 12:37:21] Production.INFO: count ==4365 [2024-12-18 12:37:23] Production.ERROR: pbx CDR StartTime 2024-12-18 09:37:05 - End Time 2024-12-18 12:37:05 [2024-12-18 12:37:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 12:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048197', 'tblTempUsageDetail_20' ) start [2024-12-18 12:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048197', 'tblTempUsageDetail_20' ) end [2024-12-18 12:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048197', 'tblTempVendorCDR_20' ) start [2024-12-18 12:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048197', 'tblTempVendorCDR_20' ) end [2024-12-18 12:37:23] Production.INFO: ProcessCDR(1,14048197,1,1,2) [2024-12-18 12:37:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:37:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:37:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:37:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048197', 'tblTempUsageDetail_20' ) start [2024-12-18 12:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048197', 'tblTempUsageDetail_20' ) end [2024-12-18 12:37:28] Production.ERROR: pbx prc_insertCDR start [2024-12-18 12:37:28] Production.ERROR: pbx prc_insertCDR end [2024-12-18 12:37:28] Production.INFO: ==18812== Releasing lock... [2024-12-18 12:37:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 12:37:28] Production.INFO: 60.75 MB #Memory Used# [2024-12-18 12:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 09:38:05 [end_date_ymd] => 2024-12-18 12:38:05 [RateCDR] => 1 ) [2024-12-18 12:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 09:38:05' and `end` < '2024-12-18 12:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 12:38:20] Production.INFO: count ==4364 [2024-12-18 12:38:22] Production.ERROR: pbx CDR StartTime 2024-12-18 09:38:05 - End Time 2024-12-18 12:38:05 [2024-12-18 12:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 12:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048202', 'tblTempUsageDetail_20' ) start [2024-12-18 12:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048202', 'tblTempUsageDetail_20' ) end [2024-12-18 12:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048202', 'tblTempVendorCDR_20' ) start [2024-12-18 12:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048202', 'tblTempVendorCDR_20' ) end [2024-12-18 12:38:22] Production.INFO: ProcessCDR(1,14048202,1,1,2) [2024-12-18 12:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048202', 'tblTempUsageDetail_20' ) start [2024-12-18 12:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048202', 'tblTempUsageDetail_20' ) end [2024-12-18 12:38:27] Production.ERROR: pbx prc_insertCDR start [2024-12-18 12:38:27] Production.ERROR: pbx prc_insertCDR end [2024-12-18 12:38:27] Production.INFO: ==18893== Releasing lock... [2024-12-18 12:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 12:38:27] Production.INFO: 60.75 MB #Memory Used# [2024-12-18 12:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 09:39:05 [end_date_ymd] => 2024-12-18 12:39:05 [RateCDR] => 1 ) [2024-12-18 12:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 09:39:05' and `end` < '2024-12-18 12:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 12:39:22] Production.INFO: count ==4367 [2024-12-18 12:39:24] Production.ERROR: pbx CDR StartTime 2024-12-18 09:39:05 - End Time 2024-12-18 12:39:05 [2024-12-18 12:39:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 12:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048207', 'tblTempUsageDetail_20' ) start [2024-12-18 12:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048207', 'tblTempUsageDetail_20' ) end [2024-12-18 12:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048207', 'tblTempVendorCDR_20' ) start [2024-12-18 12:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048207', 'tblTempVendorCDR_20' ) end [2024-12-18 12:39:24] Production.INFO: ProcessCDR(1,14048207,1,1,2) [2024-12-18 12:39:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:39:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:39:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:39:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048207', 'tblTempUsageDetail_20' ) start [2024-12-18 12:39:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048207', 'tblTempUsageDetail_20' ) end [2024-12-18 12:39:29] Production.ERROR: pbx prc_insertCDR start [2024-12-18 12:39:29] Production.ERROR: pbx prc_insertCDR end [2024-12-18 12:39:29] Production.INFO: ==18968== Releasing lock... [2024-12-18 12:39:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 12:39:29] Production.INFO: 61 MB #Memory Used# [2024-12-18 12:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 09:40:06 [end_date_ymd] => 2024-12-18 12:40:06 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 09:40:06' and `end` < '2024-12-18 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 ,'') [2024-12-18 12:40:21] Production.INFO: count ==4358 [2024-12-18 12:40:23] Production.ERROR: pbx CDR StartTime 2024-12-18 09:40:06 - End Time 2024-12-18 12:40:06 [2024-12-18 12:40:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 12:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048212', 'tblTempUsageDetail_20' ) start [2024-12-18 12:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048212', 'tblTempUsageDetail_20' ) end [2024-12-18 12:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048212', 'tblTempVendorCDR_20' ) start [2024-12-18 12:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048212', 'tblTempVendorCDR_20' ) end [2024-12-18 12:40:23] Production.INFO: ProcessCDR(1,14048212,1,1,2) [2024-12-18 12:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048212', 'tblTempUsageDetail_20' ) start [2024-12-18 12:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048212', 'tblTempUsageDetail_20' ) end [2024-12-18 12:40:27] Production.ERROR: pbx prc_insertCDR start [2024-12-18 12:40:28] Production.ERROR: pbx prc_insertCDR end [2024-12-18 12:40:28] Production.INFO: ==19049== Releasing lock... [2024-12-18 12:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 12:40:28] Production.INFO: 60.75 MB #Memory Used# [2024-12-18 12:41:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 09:41:04 [end_date_ymd] => 2024-12-18 12:41:04 [RateCDR] => 1 ) [2024-12-18 12:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 09:41:04' and `end` < '2024-12-18 12:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 12:41:17] Production.INFO: count ==4413 [2024-12-18 12:41:19] Production.ERROR: pbx CDR StartTime 2024-12-18 09:41:04 - End Time 2024-12-18 12:41:04 [2024-12-18 12:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 12:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048218', 'tblTempUsageDetail_20' ) start [2024-12-18 12:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048218', 'tblTempUsageDetail_20' ) end [2024-12-18 12:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048218', 'tblTempVendorCDR_20' ) start [2024-12-18 12:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048218', 'tblTempVendorCDR_20' ) end [2024-12-18 12:41:19] Production.INFO: ProcessCDR(1,14048218,1,1,2) [2024-12-18 12:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048218', 'tblTempUsageDetail_20' ) start [2024-12-18 12:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048218', 'tblTempUsageDetail_20' ) end [2024-12-18 12:41:23] Production.ERROR: pbx prc_insertCDR start [2024-12-18 12:41:24] Production.ERROR: pbx prc_insertCDR end [2024-12-18 12:41:24] Production.INFO: ==19127== Releasing lock... [2024-12-18 12:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 12:41:24] Production.INFO: 61 MB #Memory Used# [2024-12-18 12:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 09:42:05 [end_date_ymd] => 2024-12-18 12:42:05 [RateCDR] => 1 ) [2024-12-18 12:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 09:42:05' and `end` < '2024-12-18 12:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 12:42:25] Production.INFO: count ==4413 [2024-12-18 12:42:26] Production.ERROR: pbx CDR StartTime 2024-12-18 09:42:05 - End Time 2024-12-18 12:42:05 [2024-12-18 12:42:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 12:42:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048223', 'tblTempUsageDetail_20' ) start [2024-12-18 12:42:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048223', 'tblTempUsageDetail_20' ) end [2024-12-18 12:42:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048223', 'tblTempVendorCDR_20' ) start [2024-12-18 12:42:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048223', 'tblTempVendorCDR_20' ) end [2024-12-18 12:42:26] Production.INFO: ProcessCDR(1,14048223,1,1,2) [2024-12-18 12:42:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:42:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:42:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:42:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:42:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048223', 'tblTempUsageDetail_20' ) start [2024-12-18 12:42:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048223', 'tblTempUsageDetail_20' ) end [2024-12-18 12:42:31] Production.ERROR: pbx prc_insertCDR start [2024-12-18 12:42:31] Production.ERROR: pbx prc_insertCDR end [2024-12-18 12:42:31] Production.INFO: ==19203== Releasing lock... [2024-12-18 12:42:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 12:42:31] Production.INFO: 61 MB #Memory Used# [2024-12-18 12:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 09:43:05 [end_date_ymd] => 2024-12-18 12:43:05 [RateCDR] => 1 ) [2024-12-18 12:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 09:43:05' and `end` < '2024-12-18 12:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 12:43:17] Production.INFO: count ==4413 [2024-12-18 12:43:19] Production.ERROR: pbx CDR StartTime 2024-12-18 09:43:05 - End Time 2024-12-18 12:43:05 [2024-12-18 12:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 12:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048228', 'tblTempUsageDetail_20' ) start [2024-12-18 12:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048228', 'tblTempUsageDetail_20' ) end [2024-12-18 12:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048228', 'tblTempVendorCDR_20' ) start [2024-12-18 12:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048228', 'tblTempVendorCDR_20' ) end [2024-12-18 12:43:19] Production.INFO: ProcessCDR(1,14048228,1,1,2) [2024-12-18 12:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048228', 'tblTempUsageDetail_20' ) start [2024-12-18 12:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048228', 'tblTempUsageDetail_20' ) end [2024-12-18 12:43:23] Production.ERROR: pbx prc_insertCDR start [2024-12-18 12:43:23] Production.ERROR: pbx prc_insertCDR end [2024-12-18 12:43:23] Production.INFO: ==19283== Releasing lock... [2024-12-18 12:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 12:43:23] Production.INFO: 61 MB #Memory Used# [2024-12-18 12:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 09:44:05 [end_date_ymd] => 2024-12-18 12:44:05 [RateCDR] => 1 ) [2024-12-18 12:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 09:44:05' and `end` < '2024-12-18 12:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 12:44:21] Production.INFO: count ==4409 [2024-12-18 12:44:23] Production.ERROR: pbx CDR StartTime 2024-12-18 09:44:05 - End Time 2024-12-18 12:44:05 [2024-12-18 12:44:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 12:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048233', 'tblTempUsageDetail_20' ) start [2024-12-18 12:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048233', 'tblTempUsageDetail_20' ) end [2024-12-18 12:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048233', 'tblTempVendorCDR_20' ) start [2024-12-18 12:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048233', 'tblTempVendorCDR_20' ) end [2024-12-18 12:44:23] Production.INFO: ProcessCDR(1,14048233,1,1,2) [2024-12-18 12:44:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:44:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:44:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048233', 'tblTempUsageDetail_20' ) start [2024-12-18 12:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048233', 'tblTempUsageDetail_20' ) end [2024-12-18 12:44:27] Production.ERROR: pbx prc_insertCDR start [2024-12-18 12:44:28] Production.ERROR: pbx prc_insertCDR end [2024-12-18 12:44:28] Production.INFO: ==19361== Releasing lock... [2024-12-18 12:44:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 12:44:28] Production.INFO: 61 MB #Memory Used# [2024-12-18 12:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 09:45:05 [end_date_ymd] => 2024-12-18 12:45:05 [RateCDR] => 1 ) [2024-12-18 12:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 09:45:05' and `end` < '2024-12-18 12:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 12:45:22] Production.INFO: count ==4407 [2024-12-18 12:45:24] Production.ERROR: pbx CDR StartTime 2024-12-18 09:45:05 - End Time 2024-12-18 12:45:05 [2024-12-18 12:45:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 12:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048238', 'tblTempUsageDetail_20' ) start [2024-12-18 12:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048238', 'tblTempUsageDetail_20' ) end [2024-12-18 12:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048238', 'tblTempVendorCDR_20' ) start [2024-12-18 12:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048238', 'tblTempVendorCDR_20' ) end [2024-12-18 12:45:24] Production.INFO: ProcessCDR(1,14048238,1,1,2) [2024-12-18 12:45:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:45:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:45:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:45:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048238', 'tblTempUsageDetail_20' ) start [2024-12-18 12:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048238', 'tblTempUsageDetail_20' ) end [2024-12-18 12:45:28] Production.ERROR: pbx prc_insertCDR start [2024-12-18 12:45:29] Production.ERROR: pbx prc_insertCDR end [2024-12-18 12:45:29] Production.INFO: ==19441== Releasing lock... [2024-12-18 12:45:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 12:45:29] Production.INFO: 61 MB #Memory Used# [2024-12-18 12:46:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 09:46:04 [end_date_ymd] => 2024-12-18 12:46:04 [RateCDR] => 1 ) [2024-12-18 12:46: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` >= '2024-12-18 09:46:04' and `end` < '2024-12-18 12: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 ,'') [2024-12-18 12:46:21] Production.INFO: count ==4407 [2024-12-18 12:46:23] Production.ERROR: pbx CDR StartTime 2024-12-18 09:46:04 - End Time 2024-12-18 12:46:04 [2024-12-18 12:46:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 12:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048243', 'tblTempUsageDetail_20' ) start [2024-12-18 12:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048243', 'tblTempUsageDetail_20' ) end [2024-12-18 12:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048243', 'tblTempVendorCDR_20' ) start [2024-12-18 12:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048243', 'tblTempVendorCDR_20' ) end [2024-12-18 12:46:23] Production.INFO: ProcessCDR(1,14048243,1,1,2) [2024-12-18 12:46:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:46:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:46:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:46:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048243', 'tblTempUsageDetail_20' ) start [2024-12-18 12:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048243', 'tblTempUsageDetail_20' ) end [2024-12-18 12:46:28] Production.ERROR: pbx prc_insertCDR start [2024-12-18 12:46:28] Production.ERROR: pbx prc_insertCDR end [2024-12-18 12:46:28] Production.INFO: ==19520== Releasing lock... [2024-12-18 12:46:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 12:46:28] Production.INFO: 61 MB #Memory Used# [2024-12-18 12:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 09:47:05 [end_date_ymd] => 2024-12-18 12:47:05 [RateCDR] => 1 ) [2024-12-18 12:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 09:47:05' and `end` < '2024-12-18 12:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 12:47:21] Production.INFO: count ==4406 [2024-12-18 12:47:22] Production.ERROR: pbx CDR StartTime 2024-12-18 09:47:05 - End Time 2024-12-18 12:47:05 [2024-12-18 12:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 12:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048248', 'tblTempUsageDetail_20' ) start [2024-12-18 12:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048248', 'tblTempUsageDetail_20' ) end [2024-12-18 12:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048248', 'tblTempVendorCDR_20' ) start [2024-12-18 12:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048248', 'tblTempVendorCDR_20' ) end [2024-12-18 12:47:22] Production.INFO: ProcessCDR(1,14048248,1,1,2) [2024-12-18 12:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:47:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:47:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:47:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048248', 'tblTempUsageDetail_20' ) start [2024-12-18 12:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048248', 'tblTempUsageDetail_20' ) end [2024-12-18 12:47:27] Production.ERROR: pbx prc_insertCDR start [2024-12-18 12:47:27] Production.ERROR: pbx prc_insertCDR end [2024-12-18 12:47:27] Production.INFO: ==19595== Releasing lock... [2024-12-18 12:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 12:47:27] Production.INFO: 61 MB #Memory Used# [2024-12-18 12:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 09:48:05 [end_date_ymd] => 2024-12-18 12:48:05 [RateCDR] => 1 ) [2024-12-18 12:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 09:48:05' and `end` < '2024-12-18 12:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 12:48:25] Production.INFO: count ==4421 [2024-12-18 12:48:27] Production.ERROR: pbx CDR StartTime 2024-12-18 09:48:05 - End Time 2024-12-18 12:48:05 [2024-12-18 12:48:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 12:48:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048253', 'tblTempUsageDetail_20' ) start [2024-12-18 12:48:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048253', 'tblTempUsageDetail_20' ) end [2024-12-18 12:48:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048253', 'tblTempVendorCDR_20' ) start [2024-12-18 12:48:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048253', 'tblTempVendorCDR_20' ) end [2024-12-18 12:48:27] Production.INFO: ProcessCDR(1,14048253,1,1,2) [2024-12-18 12:48:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:48:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:48:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:48:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:48:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048253', 'tblTempUsageDetail_20' ) start [2024-12-18 12:48:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048253', 'tblTempUsageDetail_20' ) end [2024-12-18 12:48:31] Production.ERROR: pbx prc_insertCDR start [2024-12-18 12:48:31] Production.ERROR: pbx prc_insertCDR end [2024-12-18 12:48:31] Production.INFO: ==19713== Releasing lock... [2024-12-18 12:48:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 12:48:31] Production.INFO: 61 MB #Memory Used# [2024-12-18 12:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 09:49:04 [end_date_ymd] => 2024-12-18 12:49:04 [RateCDR] => 1 ) [2024-12-18 12:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 09:49:04' and `end` < '2024-12-18 12:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 12:49:19] Production.INFO: count ==4439 [2024-12-18 12:49:21] Production.ERROR: pbx CDR StartTime 2024-12-18 09:49:04 - End Time 2024-12-18 12:49:04 [2024-12-18 12:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 12:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048258', 'tblTempUsageDetail_20' ) start [2024-12-18 12:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048258', 'tblTempUsageDetail_20' ) end [2024-12-18 12:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048258', 'tblTempVendorCDR_20' ) start [2024-12-18 12:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048258', 'tblTempVendorCDR_20' ) end [2024-12-18 12:49:21] Production.INFO: ProcessCDR(1,14048258,1,1,2) [2024-12-18 12:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048258', 'tblTempUsageDetail_20' ) start [2024-12-18 12:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048258', 'tblTempUsageDetail_20' ) end [2024-12-18 12:49:26] Production.ERROR: pbx prc_insertCDR start [2024-12-18 12:49:26] Production.ERROR: pbx prc_insertCDR end [2024-12-18 12:49:26] Production.INFO: ==19787== Releasing lock... [2024-12-18 12:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 12:49:26] Production.INFO: 61.25 MB #Memory Used# [2024-12-18 12:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 09:50:05 [end_date_ymd] => 2024-12-18 12:50:05 [RateCDR] => 1 ) [2024-12-18 12: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` >= '2024-12-18 09:50:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 12:50:18] Production.INFO: count ==4436 [2024-12-18 12:50:20] Production.ERROR: pbx CDR StartTime 2024-12-18 09:50:05 - End Time 2024-12-18 12:50:05 [2024-12-18 12:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 12:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048263', 'tblTempUsageDetail_20' ) start [2024-12-18 12:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048263', 'tblTempUsageDetail_20' ) end [2024-12-18 12:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048263', 'tblTempVendorCDR_20' ) start [2024-12-18 12:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048263', 'tblTempVendorCDR_20' ) end [2024-12-18 12:50:20] Production.INFO: ProcessCDR(1,14048263,1,1,2) [2024-12-18 12:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048263', 'tblTempUsageDetail_20' ) start [2024-12-18 12:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048263', 'tblTempUsageDetail_20' ) end [2024-12-18 12:50:24] Production.ERROR: pbx prc_insertCDR start [2024-12-18 12:50:24] Production.ERROR: pbx prc_insertCDR end [2024-12-18 12:50:24] Production.INFO: ==19863== Releasing lock... [2024-12-18 12:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 12:50:24] Production.INFO: 61.25 MB #Memory Used# [2024-12-18 12:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 09:51:04 [end_date_ymd] => 2024-12-18 12:51:04 [RateCDR] => 1 ) [2024-12-18 12:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 09:51:04' and `end` < '2024-12-18 12:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 12:51:20] Production.INFO: count ==4436 [2024-12-18 12:51:22] Production.ERROR: pbx CDR StartTime 2024-12-18 09:51:04 - End Time 2024-12-18 12:51:04 [2024-12-18 12:51:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 12:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048269', 'tblTempUsageDetail_20' ) start [2024-12-18 12:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048269', 'tblTempUsageDetail_20' ) end [2024-12-18 12:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048269', 'tblTempVendorCDR_20' ) start [2024-12-18 12:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048269', 'tblTempVendorCDR_20' ) end [2024-12-18 12:51:22] Production.INFO: ProcessCDR(1,14048269,1,1,2) [2024-12-18 12:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048269', 'tblTempUsageDetail_20' ) start [2024-12-18 12:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048269', 'tblTempUsageDetail_20' ) end [2024-12-18 12:51:26] Production.ERROR: pbx prc_insertCDR start [2024-12-18 12:51:26] Production.ERROR: pbx prc_insertCDR end [2024-12-18 12:51:26] Production.INFO: ==19941== Releasing lock... [2024-12-18 12:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 12:51:26] Production.INFO: 61.25 MB #Memory Used# [2024-12-18 12:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 09:52:05 [end_date_ymd] => 2024-12-18 12:52:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 09:52:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 12:52:18] Production.INFO: count ==4444 [2024-12-18 12:52:19] Production.ERROR: pbx CDR StartTime 2024-12-18 09:52:05 - End Time 2024-12-18 12:52:05 [2024-12-18 12:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 12:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048274', 'tblTempUsageDetail_20' ) start [2024-12-18 12:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048274', 'tblTempUsageDetail_20' ) end [2024-12-18 12:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048274', 'tblTempVendorCDR_20' ) start [2024-12-18 12:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048274', 'tblTempVendorCDR_20' ) end [2024-12-18 12:52:19] Production.INFO: ProcessCDR(1,14048274,1,1,2) [2024-12-18 12:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048274', 'tblTempUsageDetail_20' ) start [2024-12-18 12:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048274', 'tblTempUsageDetail_20' ) end [2024-12-18 12:52:24] Production.ERROR: pbx prc_insertCDR start [2024-12-18 12:52:24] Production.ERROR: pbx prc_insertCDR end [2024-12-18 12:52:24] Production.INFO: ==20015== Releasing lock... [2024-12-18 12:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 12:52:24] Production.INFO: 61.25 MB #Memory Used# [2024-12-18 12:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 09:53:05 [end_date_ymd] => 2024-12-18 12:53:05 [RateCDR] => 1 ) [2024-12-18 12:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 09:53:05' and `end` < '2024-12-18 12:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 12:53:24] Production.INFO: count ==4415 [2024-12-18 12:53:25] Production.ERROR: pbx CDR StartTime 2024-12-18 09:53:05 - End Time 2024-12-18 12:53:05 [2024-12-18 12:53:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 12:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048279', 'tblTempUsageDetail_20' ) start [2024-12-18 12:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048279', 'tblTempUsageDetail_20' ) end [2024-12-18 12:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048279', 'tblTempVendorCDR_20' ) start [2024-12-18 12:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048279', 'tblTempVendorCDR_20' ) end [2024-12-18 12:53:25] Production.INFO: ProcessCDR(1,14048279,1,1,2) [2024-12-18 12:53:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:53:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:53:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:53:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:53:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048279', 'tblTempUsageDetail_20' ) start [2024-12-18 12:53:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048279', 'tblTempUsageDetail_20' ) end [2024-12-18 12:53:30] Production.ERROR: pbx prc_insertCDR start [2024-12-18 12:53:30] Production.ERROR: pbx prc_insertCDR end [2024-12-18 12:53:30] Production.INFO: ==20093== Releasing lock... [2024-12-18 12:53:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 12:53:30] Production.INFO: 61 MB #Memory Used# [2024-12-18 12:54:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 09:54:04 [end_date_ymd] => 2024-12-18 12:54:04 [RateCDR] => 1 ) [2024-12-18 12: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` >= '2024-12-18 09:54:04' and `end` < '2024-12-18 12: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 ,'') [2024-12-18 12:54:20] Production.INFO: count ==4406 [2024-12-18 12:54:22] Production.ERROR: pbx CDR StartTime 2024-12-18 09:54:04 - End Time 2024-12-18 12:54:04 [2024-12-18 12:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 12:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048284', 'tblTempUsageDetail_20' ) start [2024-12-18 12:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048284', 'tblTempUsageDetail_20' ) end [2024-12-18 12:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048284', 'tblTempVendorCDR_20' ) start [2024-12-18 12:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048284', 'tblTempVendorCDR_20' ) end [2024-12-18 12:54:22] Production.INFO: ProcessCDR(1,14048284,1,1,2) [2024-12-18 12:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048284', 'tblTempUsageDetail_20' ) start [2024-12-18 12:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048284', 'tblTempUsageDetail_20' ) end [2024-12-18 12:54:27] Production.ERROR: pbx prc_insertCDR start [2024-12-18 12:54:27] Production.ERROR: pbx prc_insertCDR end [2024-12-18 12:54:27] Production.INFO: ==20174== Releasing lock... [2024-12-18 12:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 12:54:27] Production.INFO: 61 MB #Memory Used# [2024-12-18 12:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 09:55:05 [end_date_ymd] => 2024-12-18 12:55:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 09:55:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 12:55:19] Production.INFO: count ==4399 [2024-12-18 12:55:21] Production.ERROR: pbx CDR StartTime 2024-12-18 09:55:05 - End Time 2024-12-18 12:55:05 [2024-12-18 12:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 12:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048289', 'tblTempUsageDetail_20' ) start [2024-12-18 12:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048289', 'tblTempUsageDetail_20' ) end [2024-12-18 12:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048289', 'tblTempVendorCDR_20' ) start [2024-12-18 12:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048289', 'tblTempVendorCDR_20' ) end [2024-12-18 12:55:21] Production.INFO: ProcessCDR(1,14048289,1,1,2) [2024-12-18 12:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048289', 'tblTempUsageDetail_20' ) start [2024-12-18 12:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048289', 'tblTempUsageDetail_20' ) end [2024-12-18 12:55:25] Production.ERROR: pbx prc_insertCDR start [2024-12-18 12:55:26] Production.ERROR: pbx prc_insertCDR end [2024-12-18 12:55:26] Production.INFO: ==20252== Releasing lock... [2024-12-18 12:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 12:55:26] Production.INFO: 61 MB #Memory Used# [2024-12-18 12:56:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 09:56:04 [end_date_ymd] => 2024-12-18 12:56:04 [RateCDR] => 1 ) [2024-12-18 12:56:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 09:56:04' and `end` < '2024-12-18 12:56:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 12:56:22] Production.INFO: count ==4413 [2024-12-18 12:56:24] Production.ERROR: pbx CDR StartTime 2024-12-18 09:56:04 - End Time 2024-12-18 12:56:04 [2024-12-18 12:56:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 12:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048294', 'tblTempUsageDetail_20' ) start [2024-12-18 12:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048294', 'tblTempUsageDetail_20' ) end [2024-12-18 12:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048294', 'tblTempVendorCDR_20' ) start [2024-12-18 12:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048294', 'tblTempVendorCDR_20' ) end [2024-12-18 12:56:24] Production.INFO: ProcessCDR(1,14048294,1,1,2) [2024-12-18 12:56:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:56:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:56:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:56:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:56:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048294', 'tblTempUsageDetail_20' ) start [2024-12-18 12:56:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048294', 'tblTempUsageDetail_20' ) end [2024-12-18 12:56:29] Production.ERROR: pbx prc_insertCDR start [2024-12-18 12:56:29] Production.ERROR: pbx prc_insertCDR end [2024-12-18 12:56:29] Production.INFO: ==20324== Releasing lock... [2024-12-18 12:56:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 12:56:29] Production.INFO: 61 MB #Memory Used# [2024-12-18 12:57:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 09:57:04 [end_date_ymd] => 2024-12-18 12:57:04 [RateCDR] => 1 ) [2024-12-18 12:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 09:57:04' and `end` < '2024-12-18 12:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 12:57:23] Production.INFO: count ==4415 [2024-12-18 12:57:25] Production.ERROR: pbx CDR StartTime 2024-12-18 09:57:04 - End Time 2024-12-18 12:57:04 [2024-12-18 12:57:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 12:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048299', 'tblTempUsageDetail_20' ) start [2024-12-18 12:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048299', 'tblTempUsageDetail_20' ) end [2024-12-18 12:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048299', 'tblTempVendorCDR_20' ) start [2024-12-18 12:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048299', 'tblTempVendorCDR_20' ) end [2024-12-18 12:57:25] Production.INFO: ProcessCDR(1,14048299,1,1,2) [2024-12-18 12:57:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:57:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:57:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:57:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:57:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048299', 'tblTempUsageDetail_20' ) start [2024-12-18 12:57:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048299', 'tblTempUsageDetail_20' ) end [2024-12-18 12:57:30] Production.ERROR: pbx prc_insertCDR start [2024-12-18 12:57:30] Production.ERROR: pbx prc_insertCDR end [2024-12-18 12:57:30] Production.INFO: ==20397== Releasing lock... [2024-12-18 12:57:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 12:57:30] Production.INFO: 61 MB #Memory Used# [2024-12-18 12:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 09:58:05 [end_date_ymd] => 2024-12-18 12:58:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 09:58:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 12:58:22] Production.INFO: count ==4428 [2024-12-18 12:58:23] Production.ERROR: pbx CDR StartTime 2024-12-18 09:58:05 - End Time 2024-12-18 12:58:05 [2024-12-18 12:58:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 12:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048304', 'tblTempUsageDetail_20' ) start [2024-12-18 12:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048304', 'tblTempUsageDetail_20' ) end [2024-12-18 12:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048304', 'tblTempVendorCDR_20' ) start [2024-12-18 12:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048304', 'tblTempVendorCDR_20' ) end [2024-12-18 12:58:23] Production.INFO: ProcessCDR(1,14048304,1,1,2) [2024-12-18 12:58:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:58:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:58:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:58:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048304', 'tblTempUsageDetail_20' ) start [2024-12-18 12:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048304', 'tblTempUsageDetail_20' ) end [2024-12-18 12:58:28] Production.ERROR: pbx prc_insertCDR start [2024-12-18 12:58:28] Production.ERROR: pbx prc_insertCDR end [2024-12-18 12:58:28] Production.INFO: ==20470== Releasing lock... [2024-12-18 12:58:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 12:58:28] Production.INFO: 61.25 MB #Memory Used# [2024-12-18 12:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 09:59:04 [end_date_ymd] => 2024-12-18 12:59:04 [RateCDR] => 1 ) [2024-12-18 12:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 09:59:04' and `end` < '2024-12-18 12:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 12:59:18] Production.INFO: count ==4430 [2024-12-18 12:59:19] Production.ERROR: pbx CDR StartTime 2024-12-18 09:59:04 - End Time 2024-12-18 12:59:04 [2024-12-18 12:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 12:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048309', 'tblTempUsageDetail_20' ) start [2024-12-18 12:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048309', 'tblTempUsageDetail_20' ) end [2024-12-18 12:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048309', 'tblTempVendorCDR_20' ) start [2024-12-18 12:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048309', 'tblTempVendorCDR_20' ) end [2024-12-18 12:59:20] Production.INFO: ProcessCDR(1,14048309,1,1,2) [2024-12-18 12:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 12:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 12:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048309', 'tblTempUsageDetail_20' ) start [2024-12-18 12:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048309', 'tblTempUsageDetail_20' ) end [2024-12-18 12:59:24] Production.ERROR: pbx prc_insertCDR start [2024-12-18 12:59:24] Production.ERROR: pbx prc_insertCDR end [2024-12-18 12:59:24] Production.INFO: ==20565== Releasing lock... [2024-12-18 12:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 12:59:24] Production.INFO: 61.25 MB #Memory Used# [2024-12-18 13:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 10:00:05 [end_date_ymd] => 2024-12-18 13:00:05 [RateCDR] => 1 ) [2024-12-18 13:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 10:00:05' and `end` < '2024-12-18 13:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 13:00:19] Production.INFO: count ==4431 [2024-12-18 13:00:21] Production.ERROR: pbx CDR StartTime 2024-12-18 10:00:05 - End Time 2024-12-18 13:00:05 [2024-12-18 13:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 13:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048315', 'tblTempUsageDetail_20' ) start [2024-12-18 13:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048315', 'tblTempUsageDetail_20' ) end [2024-12-18 13:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048315', 'tblTempVendorCDR_20' ) start [2024-12-18 13:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048315', 'tblTempVendorCDR_20' ) end [2024-12-18 13:00:21] Production.INFO: ProcessCDR(1,14048315,1,1,2) [2024-12-18 13:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048315', 'tblTempUsageDetail_20' ) start [2024-12-18 13:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048315', 'tblTempUsageDetail_20' ) end [2024-12-18 13:00:26] Production.ERROR: pbx prc_insertCDR start [2024-12-18 13:00:26] Production.ERROR: pbx prc_insertCDR end [2024-12-18 13:00:26] Production.INFO: ==20639== Releasing lock... [2024-12-18 13:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 13:00:26] Production.INFO: 61.25 MB #Memory Used# [2024-12-18 13:01:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 10:01:04 [end_date_ymd] => 2024-12-18 13:01:04 [RateCDR] => 1 ) [2024-12-18 13: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` >= '2024-12-18 10:01:04' and `end` < '2024-12-18 13: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 ,'') [2024-12-18 13:01:21] Production.INFO: count ==4430 [2024-12-18 13:01:22] Production.ERROR: pbx CDR StartTime 2024-12-18 10:01:04 - End Time 2024-12-18 13:01:04 [2024-12-18 13:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 13:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048320', 'tblTempUsageDetail_20' ) start [2024-12-18 13:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048320', 'tblTempUsageDetail_20' ) end [2024-12-18 13:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048320', 'tblTempVendorCDR_20' ) start [2024-12-18 13:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048320', 'tblTempVendorCDR_20' ) end [2024-12-18 13:01:22] Production.INFO: ProcessCDR(1,14048320,1,1,2) [2024-12-18 13:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:01:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:01:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048320', 'tblTempUsageDetail_20' ) start [2024-12-18 13:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048320', 'tblTempUsageDetail_20' ) end [2024-12-18 13:01:27] Production.ERROR: pbx prc_insertCDR start [2024-12-18 13:01:27] Production.ERROR: pbx prc_insertCDR end [2024-12-18 13:01:27] Production.INFO: ==20725== Releasing lock... [2024-12-18 13:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 13:01:27] Production.INFO: 61.25 MB #Memory Used# [2024-12-18 13:02:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 10:02:04 [end_date_ymd] => 2024-12-18 13:02:04 [RateCDR] => 1 ) [2024-12-18 13:02:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 10:02:04' and `end` < '2024-12-18 13:02:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 13:02:22] Production.INFO: count ==4423 [2024-12-18 13:02:24] Production.ERROR: pbx CDR StartTime 2024-12-18 10:02:04 - End Time 2024-12-18 13:02:04 [2024-12-18 13:02:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 13:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048325', 'tblTempUsageDetail_20' ) start [2024-12-18 13:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048325', 'tblTempUsageDetail_20' ) end [2024-12-18 13:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048325', 'tblTempVendorCDR_20' ) start [2024-12-18 13:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048325', 'tblTempVendorCDR_20' ) end [2024-12-18 13:02:24] Production.INFO: ProcessCDR(1,14048325,1,1,2) [2024-12-18 13:02:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:02:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:02:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:02:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048325', 'tblTempUsageDetail_20' ) start [2024-12-18 13:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048325', 'tblTempUsageDetail_20' ) end [2024-12-18 13:02:28] Production.ERROR: pbx prc_insertCDR start [2024-12-18 13:02:28] Production.ERROR: pbx prc_insertCDR end [2024-12-18 13:02:28] Production.INFO: ==20804== Releasing lock... [2024-12-18 13:02:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 13:02:28] Production.INFO: 61.25 MB #Memory Used# [2024-12-18 13:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 10:03:05 [end_date_ymd] => 2024-12-18 13:03:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 10:03:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 13:03:20] Production.INFO: count ==4417 [2024-12-18 13:03:21] Production.ERROR: pbx CDR StartTime 2024-12-18 10:03:05 - End Time 2024-12-18 13:03:05 [2024-12-18 13:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048330', 'tblTempUsageDetail_20' ) start [2024-12-18 13:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048330', 'tblTempUsageDetail_20' ) end [2024-12-18 13:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048330', 'tblTempVendorCDR_20' ) start [2024-12-18 13:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048330', 'tblTempVendorCDR_20' ) end [2024-12-18 13:03:22] Production.INFO: ProcessCDR(1,14048330,1,1,2) [2024-12-18 13:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048330', 'tblTempUsageDetail_20' ) start [2024-12-18 13:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048330', 'tblTempUsageDetail_20' ) end [2024-12-18 13:03:26] Production.ERROR: pbx prc_insertCDR start [2024-12-18 13:03:26] Production.ERROR: pbx prc_insertCDR end [2024-12-18 13:03:26] Production.INFO: ==20875== Releasing lock... [2024-12-18 13:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 13:03:26] Production.INFO: 61 MB #Memory Used# [2024-12-18 13:04:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 10:04:04 [end_date_ymd] => 2024-12-18 13:04:04 [RateCDR] => 1 ) [2024-12-18 13:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 10:04:04' and `end` < '2024-12-18 13:04:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 13:04:19] Production.INFO: count ==4419 [2024-12-18 13:04:21] Production.ERROR: pbx CDR StartTime 2024-12-18 10:04:04 - End Time 2024-12-18 13:04:04 [2024-12-18 13:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 13:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048335', 'tblTempUsageDetail_20' ) start [2024-12-18 13:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048335', 'tblTempUsageDetail_20' ) end [2024-12-18 13:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048335', 'tblTempVendorCDR_20' ) start [2024-12-18 13:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048335', 'tblTempVendorCDR_20' ) end [2024-12-18 13:04:21] Production.INFO: ProcessCDR(1,14048335,1,1,2) [2024-12-18 13:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048335', 'tblTempUsageDetail_20' ) start [2024-12-18 13:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048335', 'tblTempUsageDetail_20' ) end [2024-12-18 13:04:25] Production.ERROR: pbx prc_insertCDR start [2024-12-18 13:04:25] Production.ERROR: pbx prc_insertCDR end [2024-12-18 13:04:25] Production.INFO: ==20986== Releasing lock... [2024-12-18 13:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 13:04:25] Production.INFO: 61 MB #Memory Used# [2024-12-18 13:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 10:05:04 [end_date_ymd] => 2024-12-18 13:05:04 [RateCDR] => 1 ) [2024-12-18 13: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` >= '2024-12-18 10:05:04' and `end` < '2024-12-18 13: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 ,'') [2024-12-18 13:05:20] Production.INFO: count ==4426 [2024-12-18 13:05:22] Production.ERROR: pbx CDR StartTime 2024-12-18 10:05:04 - End Time 2024-12-18 13:05:04 [2024-12-18 13:05:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 13:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048340', 'tblTempUsageDetail_20' ) start [2024-12-18 13:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048340', 'tblTempUsageDetail_20' ) end [2024-12-18 13:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048340', 'tblTempVendorCDR_20' ) start [2024-12-18 13:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048340', 'tblTempVendorCDR_20' ) end [2024-12-18 13:05:22] Production.INFO: ProcessCDR(1,14048340,1,1,2) [2024-12-18 13:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048340', 'tblTempUsageDetail_20' ) start [2024-12-18 13:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048340', 'tblTempUsageDetail_20' ) end [2024-12-18 13:05:26] Production.ERROR: pbx prc_insertCDR start [2024-12-18 13:05:26] Production.ERROR: pbx prc_insertCDR end [2024-12-18 13:05:26] Production.INFO: ==21057== Releasing lock... [2024-12-18 13:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 13:05:26] Production.INFO: 61.25 MB #Memory Used# [2024-12-18 13:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 10:06:05 [end_date_ymd] => 2024-12-18 13:06:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 10:06:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 13:06:25] Production.INFO: count ==4424 [2024-12-18 13:06:27] Production.ERROR: pbx CDR StartTime 2024-12-18 10:06:05 - End Time 2024-12-18 13:06:05 [2024-12-18 13:06:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 13:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048345', 'tblTempUsageDetail_20' ) start [2024-12-18 13:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048345', 'tblTempUsageDetail_20' ) end [2024-12-18 13:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048345', 'tblTempVendorCDR_20' ) start [2024-12-18 13:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048345', 'tblTempVendorCDR_20' ) end [2024-12-18 13:06:27] Production.INFO: ProcessCDR(1,14048345,1,1,2) [2024-12-18 13:06:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:06:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:06:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:06:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:06:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048345', 'tblTempUsageDetail_20' ) start [2024-12-18 13:06:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048345', 'tblTempUsageDetail_20' ) end [2024-12-18 13:06:31] Production.ERROR: pbx prc_insertCDR start [2024-12-18 13:06:31] Production.ERROR: pbx prc_insertCDR end [2024-12-18 13:06:31] Production.INFO: ==21130== Releasing lock... [2024-12-18 13:06:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 13:06:31] Production.INFO: 61.25 MB #Memory Used# [2024-12-18 13:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 10:07:05 [end_date_ymd] => 2024-12-18 13:07:05 [RateCDR] => 1 ) [2024-12-18 13:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 10:07:05' and `end` < '2024-12-18 13:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 13:07:22] Production.INFO: count ==4431 [2024-12-18 13:07:24] Production.ERROR: pbx CDR StartTime 2024-12-18 10:07:05 - End Time 2024-12-18 13:07:05 [2024-12-18 13:07:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 13:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048350', 'tblTempUsageDetail_20' ) start [2024-12-18 13:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048350', 'tblTempUsageDetail_20' ) end [2024-12-18 13:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048350', 'tblTempVendorCDR_20' ) start [2024-12-18 13:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048350', 'tblTempVendorCDR_20' ) end [2024-12-18 13:07:24] Production.INFO: ProcessCDR(1,14048350,1,1,2) [2024-12-18 13:07:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:07:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:07:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:07:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048350', 'tblTempUsageDetail_20' ) start [2024-12-18 13:07:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048350', 'tblTempUsageDetail_20' ) end [2024-12-18 13:07:29] Production.ERROR: pbx prc_insertCDR start [2024-12-18 13:07:29] Production.ERROR: pbx prc_insertCDR end [2024-12-18 13:07:29] Production.INFO: ==21206== Releasing lock... [2024-12-18 13:07:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 13:07:29] Production.INFO: 61.25 MB #Memory Used# [2024-12-18 13:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 10:08:05 [end_date_ymd] => 2024-12-18 13:08:05 [RateCDR] => 1 ) [2024-12-18 13:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 10:08:05' and `end` < '2024-12-18 13:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 13:08:20] Production.INFO: count ==4442 [2024-12-18 13:08:21] Production.ERROR: pbx CDR StartTime 2024-12-18 10:08:05 - End Time 2024-12-18 13:08:05 [2024-12-18 13:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 13:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048355', 'tblTempUsageDetail_20' ) start [2024-12-18 13:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048355', 'tblTempUsageDetail_20' ) end [2024-12-18 13:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048355', 'tblTempVendorCDR_20' ) start [2024-12-18 13:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048355', 'tblTempVendorCDR_20' ) end [2024-12-18 13:08:21] Production.INFO: ProcessCDR(1,14048355,1,1,2) [2024-12-18 13:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048355', 'tblTempUsageDetail_20' ) start [2024-12-18 13:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048355', 'tblTempUsageDetail_20' ) end [2024-12-18 13:08:26] Production.ERROR: pbx prc_insertCDR start [2024-12-18 13:08:26] Production.ERROR: pbx prc_insertCDR end [2024-12-18 13:08:26] Production.INFO: ==21281== Releasing lock... [2024-12-18 13:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 13:08:26] Production.INFO: 61.5 MB #Memory Used# [2024-12-18 13:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 10:09:05 [end_date_ymd] => 2024-12-18 13:09:05 [RateCDR] => 1 ) [2024-12-18 13:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 10:09:05' and `end` < '2024-12-18 13:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 13:09:27] Production.INFO: count ==4448 [2024-12-18 13:09:29] Production.ERROR: pbx CDR StartTime 2024-12-18 10:09:05 - End Time 2024-12-18 13:09:05 [2024-12-18 13:09:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 13:09:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048360', 'tblTempUsageDetail_20' ) start [2024-12-18 13:09:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048360', 'tblTempUsageDetail_20' ) end [2024-12-18 13:09:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048360', 'tblTempVendorCDR_20' ) start [2024-12-18 13:09:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048360', 'tblTempVendorCDR_20' ) end [2024-12-18 13:09:29] Production.INFO: ProcessCDR(1,14048360,1,1,2) [2024-12-18 13:09:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:09:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:09:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:09:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:09:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048360', 'tblTempUsageDetail_20' ) start [2024-12-18 13:09:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048360', 'tblTempUsageDetail_20' ) end [2024-12-18 13:09:33] Production.ERROR: pbx prc_insertCDR start [2024-12-18 13:09:33] Production.ERROR: pbx prc_insertCDR end [2024-12-18 13:09:33] Production.INFO: ==21352== Releasing lock... [2024-12-18 13:09:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 13:09:33] Production.INFO: 61.25 MB #Memory Used# [2024-12-18 13:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 10:10:05 [end_date_ymd] => 2024-12-18 13:10:05 [RateCDR] => 1 ) [2024-12-18 13:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 10:10:05' and `end` < '2024-12-18 13:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 13:10:25] Production.INFO: count ==4458 [2024-12-18 13:10:27] Production.ERROR: pbx CDR StartTime 2024-12-18 10:10:05 - End Time 2024-12-18 13:10:05 [2024-12-18 13:10:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 13:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048365', 'tblTempUsageDetail_20' ) start [2024-12-18 13:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048365', 'tblTempUsageDetail_20' ) end [2024-12-18 13:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048365', 'tblTempVendorCDR_20' ) start [2024-12-18 13:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048365', 'tblTempVendorCDR_20' ) end [2024-12-18 13:10:27] Production.INFO: ProcessCDR(1,14048365,1,1,2) [2024-12-18 13:10:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:10:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:10:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:10:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:10:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048365', 'tblTempUsageDetail_20' ) start [2024-12-18 13:10:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048365', 'tblTempUsageDetail_20' ) end [2024-12-18 13:10:30] Production.ERROR: pbx prc_insertCDR start [2024-12-18 13:10:30] Production.ERROR: pbx prc_insertCDR end [2024-12-18 13:10:30] Production.INFO: ==21427== Releasing lock... [2024-12-18 13:10:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 13:10:30] Production.INFO: 61.5 MB #Memory Used# [2024-12-18 13:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 10:11:04 [end_date_ymd] => 2024-12-18 13:11:04 [RateCDR] => 1 ) [2024-12-18 13:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 10:11:04' and `end` < '2024-12-18 13:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 13:11:22] Production.INFO: count ==4486 [2024-12-18 13:11:24] Production.ERROR: pbx CDR StartTime 2024-12-18 10:11:04 - End Time 2024-12-18 13:11:04 [2024-12-18 13:11:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 13:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048371', 'tblTempUsageDetail_20' ) start [2024-12-18 13:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048371', 'tblTempUsageDetail_20' ) end [2024-12-18 13:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048371', 'tblTempVendorCDR_20' ) start [2024-12-18 13:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048371', 'tblTempVendorCDR_20' ) end [2024-12-18 13:11:24] Production.INFO: ProcessCDR(1,14048371,1,1,2) [2024-12-18 13:11:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:11:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:11:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:11:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048371', 'tblTempUsageDetail_20' ) start [2024-12-18 13:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048371', 'tblTempUsageDetail_20' ) end [2024-12-18 13:11:28] Production.ERROR: pbx prc_insertCDR start [2024-12-18 13:11:28] Production.ERROR: pbx prc_insertCDR end [2024-12-18 13:11:28] Production.INFO: ==21500== Releasing lock... [2024-12-18 13:11:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 13:11:28] Production.INFO: 61.5 MB #Memory Used# [2024-12-18 13:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 10:12:05 [end_date_ymd] => 2024-12-18 13:12:05 [RateCDR] => 1 ) [2024-12-18 13:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 10:12:05' and `end` < '2024-12-18 13:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 13:12:23] Production.INFO: count ==4490 [2024-12-18 13:12:25] Production.ERROR: pbx CDR StartTime 2024-12-18 10:12:05 - End Time 2024-12-18 13:12:05 [2024-12-18 13:12:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 13:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048376', 'tblTempUsageDetail_20' ) start [2024-12-18 13:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048376', 'tblTempUsageDetail_20' ) end [2024-12-18 13:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048376', 'tblTempVendorCDR_20' ) start [2024-12-18 13:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048376', 'tblTempVendorCDR_20' ) end [2024-12-18 13:12:25] Production.INFO: ProcessCDR(1,14048376,1,1,2) [2024-12-18 13:12:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:12:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:12:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:12:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:12:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048376', 'tblTempUsageDetail_20' ) start [2024-12-18 13:12:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048376', 'tblTempUsageDetail_20' ) end [2024-12-18 13:12:29] Production.ERROR: pbx prc_insertCDR start [2024-12-18 13:12:29] Production.ERROR: pbx prc_insertCDR end [2024-12-18 13:12:29] Production.INFO: ==21573== Releasing lock... [2024-12-18 13:12:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 13:12:29] Production.INFO: 61.75 MB #Memory Used# [2024-12-18 13:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 10:13:05 [end_date_ymd] => 2024-12-18 13:13:05 [RateCDR] => 1 ) [2024-12-18 13:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 10:13:05' and `end` < '2024-12-18 13:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 13:13:28] Production.INFO: count ==4501 [2024-12-18 13:13:29] Production.ERROR: pbx CDR StartTime 2024-12-18 10:13:05 - End Time 2024-12-18 13:13:05 [2024-12-18 13:13:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 13:13:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048381', 'tblTempUsageDetail_20' ) start [2024-12-18 13:13:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048381', 'tblTempUsageDetail_20' ) end [2024-12-18 13:13:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048381', 'tblTempVendorCDR_20' ) start [2024-12-18 13:13:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048381', 'tblTempVendorCDR_20' ) end [2024-12-18 13:13:29] Production.INFO: ProcessCDR(1,14048381,1,1,2) [2024-12-18 13:13:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:13:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:13:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:13:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:13:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048381', 'tblTempUsageDetail_20' ) start [2024-12-18 13:13:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048381', 'tblTempUsageDetail_20' ) end [2024-12-18 13:13:34] Production.ERROR: pbx prc_insertCDR start [2024-12-18 13:13:34] Production.ERROR: pbx prc_insertCDR end [2024-12-18 13:13:34] Production.INFO: ==21645== Releasing lock... [2024-12-18 13:13:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 13:13:34] Production.INFO: 61.75 MB #Memory Used# [2024-12-18 13:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 10:14:05 [end_date_ymd] => 2024-12-18 13:14:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 10:14:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 13:14:20] Production.INFO: count ==4500 [2024-12-18 13:14:22] Production.ERROR: pbx CDR StartTime 2024-12-18 10:14:05 - End Time 2024-12-18 13:14:05 [2024-12-18 13:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 13:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048386', 'tblTempUsageDetail_20' ) start [2024-12-18 13:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048386', 'tblTempUsageDetail_20' ) end [2024-12-18 13:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048386', 'tblTempVendorCDR_20' ) start [2024-12-18 13:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048386', 'tblTempVendorCDR_20' ) end [2024-12-18 13:14:22] Production.INFO: ProcessCDR(1,14048386,1,1,2) [2024-12-18 13:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048386', 'tblTempUsageDetail_20' ) start [2024-12-18 13:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048386', 'tblTempUsageDetail_20' ) end [2024-12-18 13:14:25] Production.ERROR: pbx prc_insertCDR start [2024-12-18 13:14:25] Production.ERROR: pbx prc_insertCDR end [2024-12-18 13:14:25] Production.INFO: ==21717== Releasing lock... [2024-12-18 13:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 13:14:25] Production.INFO: 61.75 MB #Memory Used# [2024-12-18 13:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 10:15:05 [end_date_ymd] => 2024-12-18 13:15:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 10:15:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 13:15:18] Production.INFO: count ==4497 [2024-12-18 13:15:19] Production.ERROR: pbx CDR StartTime 2024-12-18 10:15:05 - End Time 2024-12-18 13:15:05 [2024-12-18 13:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 13:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048391', 'tblTempUsageDetail_20' ) start [2024-12-18 13:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048391', 'tblTempUsageDetail_20' ) end [2024-12-18 13:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048391', 'tblTempVendorCDR_20' ) start [2024-12-18 13:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048391', 'tblTempVendorCDR_20' ) end [2024-12-18 13:15:20] Production.INFO: ProcessCDR(1,14048391,1,1,2) [2024-12-18 13:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048391', 'tblTempUsageDetail_20' ) start [2024-12-18 13:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048391', 'tblTempUsageDetail_20' ) end [2024-12-18 13:15:24] Production.ERROR: pbx prc_insertCDR start [2024-12-18 13:15:24] Production.ERROR: pbx prc_insertCDR end [2024-12-18 13:15:24] Production.INFO: ==21791== Releasing lock... [2024-12-18 13:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 13:15:24] Production.INFO: 61.75 MB #Memory Used# [2024-12-18 13:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 10:16:05 [end_date_ymd] => 2024-12-18 13:16:05 [RateCDR] => 1 ) [2024-12-18 13:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 10:16:05' and `end` < '2024-12-18 13:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 13:16:19] Production.INFO: count ==4516 [2024-12-18 13:16:21] Production.ERROR: pbx CDR StartTime 2024-12-18 10:16:05 - End Time 2024-12-18 13:16:05 [2024-12-18 13:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048396', 'tblTempUsageDetail_20' ) start [2024-12-18 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048396', 'tblTempUsageDetail_20' ) end [2024-12-18 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048396', 'tblTempVendorCDR_20' ) start [2024-12-18 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048396', 'tblTempVendorCDR_20' ) end [2024-12-18 13:16:21] Production.INFO: ProcessCDR(1,14048396,1,1,2) [2024-12-18 13:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048396', 'tblTempUsageDetail_20' ) start [2024-12-18 13:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048396', 'tblTempUsageDetail_20' ) end [2024-12-18 13:16:25] Production.ERROR: pbx prc_insertCDR start [2024-12-18 13:16:25] Production.ERROR: pbx prc_insertCDR end [2024-12-18 13:16:25] Production.INFO: ==21863== Releasing lock... [2024-12-18 13:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 13:16:25] Production.INFO: 61.75 MB #Memory Used# [2024-12-18 13:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 10:17:04 [end_date_ymd] => 2024-12-18 13:17:04 [RateCDR] => 1 ) [2024-12-18 13:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 10:17:04' and `end` < '2024-12-18 13:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 13:17:17] Production.INFO: count ==4520 [2024-12-18 13:17:19] Production.ERROR: pbx CDR StartTime 2024-12-18 10:17:04 - End Time 2024-12-18 13:17:04 [2024-12-18 13:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 13:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048401', 'tblTempUsageDetail_20' ) start [2024-12-18 13:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048401', 'tblTempUsageDetail_20' ) end [2024-12-18 13:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048401', 'tblTempVendorCDR_20' ) start [2024-12-18 13:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048401', 'tblTempVendorCDR_20' ) end [2024-12-18 13:17:19] Production.INFO: ProcessCDR(1,14048401,1,1,2) [2024-12-18 13:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048401', 'tblTempUsageDetail_20' ) start [2024-12-18 13:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048401', 'tblTempUsageDetail_20' ) end [2024-12-18 13:17:24] Production.ERROR: pbx prc_insertCDR start [2024-12-18 13:17:24] Production.ERROR: pbx prc_insertCDR end [2024-12-18 13:17:24] Production.INFO: ==21935== Releasing lock... [2024-12-18 13:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 13:17:24] Production.INFO: 61.75 MB #Memory Used# [2024-12-18 13:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 10:18:05 [end_date_ymd] => 2024-12-18 13:18:05 [RateCDR] => 1 ) [2024-12-18 13:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 10:18:05' and `end` < '2024-12-18 13:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 13:18:20] Production.INFO: count ==4518 [2024-12-18 13:18:21] Production.ERROR: pbx CDR StartTime 2024-12-18 10:18:05 - End Time 2024-12-18 13:18:05 [2024-12-18 13:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 13:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048406', 'tblTempUsageDetail_20' ) start [2024-12-18 13:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048406', 'tblTempUsageDetail_20' ) end [2024-12-18 13:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048406', 'tblTempVendorCDR_20' ) start [2024-12-18 13:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048406', 'tblTempVendorCDR_20' ) end [2024-12-18 13:18:21] Production.INFO: ProcessCDR(1,14048406,1,1,2) [2024-12-18 13:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048406', 'tblTempUsageDetail_20' ) start [2024-12-18 13:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048406', 'tblTempUsageDetail_20' ) end [2024-12-18 13:18:26] Production.ERROR: pbx prc_insertCDR start [2024-12-18 13:18:26] Production.ERROR: pbx prc_insertCDR end [2024-12-18 13:18:26] Production.INFO: ==22008== Releasing lock... [2024-12-18 13:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 13:18:26] Production.INFO: 61.75 MB #Memory Used# [2024-12-18 13:19:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 10:19:04 [end_date_ymd] => 2024-12-18 13:19:04 [RateCDR] => 1 ) [2024-12-18 13: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` >= '2024-12-18 10:19:04' and `end` < '2024-12-18 13: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 ,'') [2024-12-18 13:19:17] Production.INFO: count ==4516 [2024-12-18 13:19:19] Production.ERROR: pbx CDR StartTime 2024-12-18 10:19:04 - End Time 2024-12-18 13:19:04 [2024-12-18 13:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 13:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048411', 'tblTempUsageDetail_20' ) start [2024-12-18 13:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048411', 'tblTempUsageDetail_20' ) end [2024-12-18 13:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048411', 'tblTempVendorCDR_20' ) start [2024-12-18 13:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048411', 'tblTempVendorCDR_20' ) end [2024-12-18 13:19:19] Production.INFO: ProcessCDR(1,14048411,1,1,2) [2024-12-18 13:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048411', 'tblTempUsageDetail_20' ) start [2024-12-18 13:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048411', 'tblTempUsageDetail_20' ) end [2024-12-18 13:19:24] Production.ERROR: pbx prc_insertCDR start [2024-12-18 13:19:24] Production.ERROR: pbx prc_insertCDR end [2024-12-18 13:19:24] Production.INFO: ==22078== Releasing lock... [2024-12-18 13:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 13:19:24] Production.INFO: 61.75 MB #Memory Used# [2024-12-18 13:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 10:20:06 [end_date_ymd] => 2024-12-18 13:20:06 [RateCDR] => 1 ) [2024-12-18 13:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 10:20:06' and `end` < '2024-12-18 13:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 13:20:23] Production.INFO: count ==4545 [2024-12-18 13:20:24] Production.ERROR: pbx CDR StartTime 2024-12-18 10:20:06 - End Time 2024-12-18 13:20:06 [2024-12-18 13:20:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 13:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048417', 'tblTempUsageDetail_20' ) start [2024-12-18 13:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048417', 'tblTempUsageDetail_20' ) end [2024-12-18 13:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048417', 'tblTempVendorCDR_20' ) start [2024-12-18 13:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048417', 'tblTempVendorCDR_20' ) end [2024-12-18 13:20:24] Production.INFO: ProcessCDR(1,14048417,1,1,2) [2024-12-18 13:20:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:20:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:20:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:20:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048417', 'tblTempUsageDetail_20' ) start [2024-12-18 13:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048417', 'tblTempUsageDetail_20' ) end [2024-12-18 13:20:29] Production.ERROR: pbx prc_insertCDR start [2024-12-18 13:20:29] Production.ERROR: pbx prc_insertCDR end [2024-12-18 13:20:29] Production.INFO: ==22194== Releasing lock... [2024-12-18 13:20:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 13:20:29] Production.INFO: 62 MB #Memory Used# [2024-12-18 13:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 10:21:05 [end_date_ymd] => 2024-12-18 13:21:05 [RateCDR] => 1 ) [2024-12-18 13:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 10:21:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 13:21:20] Production.INFO: count ==4548 [2024-12-18 13:21:22] Production.ERROR: pbx CDR StartTime 2024-12-18 10:21:05 - End Time 2024-12-18 13:21:05 [2024-12-18 13:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 13:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048422', 'tblTempUsageDetail_20' ) start [2024-12-18 13:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048422', 'tblTempUsageDetail_20' ) end [2024-12-18 13:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048422', 'tblTempVendorCDR_20' ) start [2024-12-18 13:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048422', 'tblTempVendorCDR_20' ) end [2024-12-18 13:21:22] Production.INFO: ProcessCDR(1,14048422,1,1,2) [2024-12-18 13:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048422', 'tblTempUsageDetail_20' ) start [2024-12-18 13:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048422', 'tblTempUsageDetail_20' ) end [2024-12-18 13:21:26] Production.ERROR: pbx prc_insertCDR start [2024-12-18 13:21:26] Production.ERROR: pbx prc_insertCDR end [2024-12-18 13:21:26] Production.INFO: ==22270== Releasing lock... [2024-12-18 13:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 13:21:26] Production.INFO: 62 MB #Memory Used# [2024-12-18 13:22:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 10:22:04 [end_date_ymd] => 2024-12-18 13:22:04 [RateCDR] => 1 ) [2024-12-18 13:22:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 10:22:04' and `end` < '2024-12-18 13:22:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 13:22:20] Production.INFO: count ==4522 [2024-12-18 13:22:22] Production.ERROR: pbx CDR StartTime 2024-12-18 10:22:04 - End Time 2024-12-18 13:22:04 [2024-12-18 13:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 13:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048427', 'tblTempUsageDetail_20' ) start [2024-12-18 13:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048427', 'tblTempUsageDetail_20' ) end [2024-12-18 13:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048427', 'tblTempVendorCDR_20' ) start [2024-12-18 13:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048427', 'tblTempVendorCDR_20' ) end [2024-12-18 13:22:22] Production.INFO: ProcessCDR(1,14048427,1,1,2) [2024-12-18 13:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048427', 'tblTempUsageDetail_20' ) start [2024-12-18 13:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048427', 'tblTempUsageDetail_20' ) end [2024-12-18 13:22:26] Production.ERROR: pbx prc_insertCDR start [2024-12-18 13:22:26] Production.ERROR: pbx prc_insertCDR end [2024-12-18 13:22:26] Production.INFO: ==22342== Releasing lock... [2024-12-18 13:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 13:22:26] Production.INFO: 61.75 MB #Memory Used# [2024-12-18 13:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 10:23:05 [end_date_ymd] => 2024-12-18 13:23:05 [RateCDR] => 1 ) [2024-12-18 13:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 10:23:05' and `end` < '2024-12-18 13:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 13:23:18] Production.INFO: count ==4520 [2024-12-18 13:23:19] Production.ERROR: pbx CDR StartTime 2024-12-18 10:23:05 - End Time 2024-12-18 13:23:05 [2024-12-18 13:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 13:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048432', 'tblTempUsageDetail_20' ) start [2024-12-18 13:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048432', 'tblTempUsageDetail_20' ) end [2024-12-18 13:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048432', 'tblTempVendorCDR_20' ) start [2024-12-18 13:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048432', 'tblTempVendorCDR_20' ) end [2024-12-18 13:23:19] Production.INFO: ProcessCDR(1,14048432,1,1,2) [2024-12-18 13:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048432', 'tblTempUsageDetail_20' ) start [2024-12-18 13:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048432', 'tblTempUsageDetail_20' ) end [2024-12-18 13:23:24] Production.ERROR: pbx prc_insertCDR start [2024-12-18 13:23:24] Production.ERROR: pbx prc_insertCDR end [2024-12-18 13:23:24] Production.INFO: ==22419== Releasing lock... [2024-12-18 13:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 13:23:24] Production.INFO: 61.75 MB #Memory Used# [2024-12-18 13:24:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 10:24:04 [end_date_ymd] => 2024-12-18 13:24:04 [RateCDR] => 1 ) [2024-12-18 13:24:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 10:24:04' and `end` < '2024-12-18 13:24:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 13:24:17] Production.INFO: count ==4523 [2024-12-18 13:24:19] Production.ERROR: pbx CDR StartTime 2024-12-18 10:24:04 - End Time 2024-12-18 13:24:04 [2024-12-18 13:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 13:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048437', 'tblTempUsageDetail_20' ) start [2024-12-18 13:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048437', 'tblTempUsageDetail_20' ) end [2024-12-18 13:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048437', 'tblTempVendorCDR_20' ) start [2024-12-18 13:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048437', 'tblTempVendorCDR_20' ) end [2024-12-18 13:24:19] Production.INFO: ProcessCDR(1,14048437,1,1,2) [2024-12-18 13:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048437', 'tblTempUsageDetail_20' ) start [2024-12-18 13:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048437', 'tblTempUsageDetail_20' ) end [2024-12-18 13:24:24] Production.ERROR: pbx prc_insertCDR start [2024-12-18 13:24:24] Production.ERROR: pbx prc_insertCDR end [2024-12-18 13:24:24] Production.INFO: ==22489== Releasing lock... [2024-12-18 13:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 13:24:24] Production.INFO: 62 MB #Memory Used# [2024-12-18 13:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 10:25:04 [end_date_ymd] => 2024-12-18 13:25:04 [RateCDR] => 1 ) [2024-12-18 13: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` >= '2024-12-18 10:25:04' and `end` < '2024-12-18 13: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 ,'') [2024-12-18 13:25:21] Production.INFO: count ==4513 [2024-12-18 13:25:23] Production.ERROR: pbx CDR StartTime 2024-12-18 10:25:04 - End Time 2024-12-18 13:25:04 [2024-12-18 13:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 13:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048442', 'tblTempUsageDetail_20' ) start [2024-12-18 13:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048442', 'tblTempUsageDetail_20' ) end [2024-12-18 13:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048442', 'tblTempVendorCDR_20' ) start [2024-12-18 13:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048442', 'tblTempVendorCDR_20' ) end [2024-12-18 13:25:23] Production.INFO: ProcessCDR(1,14048442,1,1,2) [2024-12-18 13:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048442', 'tblTempUsageDetail_20' ) start [2024-12-18 13:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048442', 'tblTempUsageDetail_20' ) end [2024-12-18 13:25:28] Production.ERROR: pbx prc_insertCDR start [2024-12-18 13:25:28] Production.ERROR: pbx prc_insertCDR end [2024-12-18 13:25:28] Production.INFO: ==22564== Releasing lock... [2024-12-18 13:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 13:25:28] Production.INFO: 61.75 MB #Memory Used# [2024-12-18 13:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 10:26:05 [end_date_ymd] => 2024-12-18 13:26:05 [RateCDR] => 1 ) [2024-12-18 13:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 10:26:05' and `end` < '2024-12-18 13:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 13:26:19] Production.INFO: count ==4492 [2024-12-18 13:26:21] Production.ERROR: pbx CDR StartTime 2024-12-18 10:26:05 - End Time 2024-12-18 13:26:05 [2024-12-18 13:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 13:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048447', 'tblTempUsageDetail_20' ) start [2024-12-18 13:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048447', 'tblTempUsageDetail_20' ) end [2024-12-18 13:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048447', 'tblTempVendorCDR_20' ) start [2024-12-18 13:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048447', 'tblTempVendorCDR_20' ) end [2024-12-18 13:26:21] Production.INFO: ProcessCDR(1,14048447,1,1,2) [2024-12-18 13:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048447', 'tblTempUsageDetail_20' ) start [2024-12-18 13:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048447', 'tblTempUsageDetail_20' ) end [2024-12-18 13:26:25] Production.ERROR: pbx prc_insertCDR start [2024-12-18 13:26:25] Production.ERROR: pbx prc_insertCDR end [2024-12-18 13:26:25] Production.INFO: ==22634== Releasing lock... [2024-12-18 13:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 13:26:25] Production.INFO: 61.75 MB #Memory Used# [2024-12-18 13:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 10:27:05 [end_date_ymd] => 2024-12-18 13:27:05 [RateCDR] => 1 ) [2024-12-18 13:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 10:27:05' and `end` < '2024-12-18 13:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 13:27:23] Production.INFO: count ==4489 [2024-12-18 13:27:25] Production.ERROR: pbx CDR StartTime 2024-12-18 10:27:05 - End Time 2024-12-18 13:27:05 [2024-12-18 13:27:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 13:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048452', 'tblTempUsageDetail_20' ) start [2024-12-18 13:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048452', 'tblTempUsageDetail_20' ) end [2024-12-18 13:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048452', 'tblTempVendorCDR_20' ) start [2024-12-18 13:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048452', 'tblTempVendorCDR_20' ) end [2024-12-18 13:27:25] Production.INFO: ProcessCDR(1,14048452,1,1,2) [2024-12-18 13:27:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:27:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:27:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:27:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:27:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048452', 'tblTempUsageDetail_20' ) start [2024-12-18 13:27:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048452', 'tblTempUsageDetail_20' ) end [2024-12-18 13:27:30] Production.ERROR: pbx prc_insertCDR start [2024-12-18 13:27:30] Production.ERROR: pbx prc_insertCDR end [2024-12-18 13:27:30] Production.INFO: ==22709== Releasing lock... [2024-12-18 13:27:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 13:27:30] Production.INFO: 61.75 MB #Memory Used# [2024-12-18 13:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 10:28:05 [end_date_ymd] => 2024-12-18 13:28:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 10:28:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 13:28:21] Production.INFO: count ==4483 [2024-12-18 13:28:23] Production.ERROR: pbx CDR StartTime 2024-12-18 10:28:05 - End Time 2024-12-18 13:28:05 [2024-12-18 13:28:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 13:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048457', 'tblTempUsageDetail_20' ) start [2024-12-18 13:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048457', 'tblTempUsageDetail_20' ) end [2024-12-18 13:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048457', 'tblTempVendorCDR_20' ) start [2024-12-18 13:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048457', 'tblTempVendorCDR_20' ) end [2024-12-18 13:28:23] Production.INFO: ProcessCDR(1,14048457,1,1,2) [2024-12-18 13:28:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:28:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:28:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:28:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048457', 'tblTempUsageDetail_20' ) start [2024-12-18 13:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048457', 'tblTempUsageDetail_20' ) end [2024-12-18 13:28:28] Production.ERROR: pbx prc_insertCDR start [2024-12-18 13:28:28] Production.ERROR: pbx prc_insertCDR end [2024-12-18 13:28:28] Production.INFO: ==22784== Releasing lock... [2024-12-18 13:28:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 13:28:28] Production.INFO: 61.5 MB #Memory Used# [2024-12-18 13:29:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 10:29:04 [end_date_ymd] => 2024-12-18 13:29:04 [RateCDR] => 1 ) [2024-12-18 13:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 10:29:04' and `end` < '2024-12-18 13:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 13:29:17] Production.INFO: count ==4452 [2024-12-18 13:29:19] Production.ERROR: pbx CDR StartTime 2024-12-18 10:29:04 - End Time 2024-12-18 13:29:04 [2024-12-18 13:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 13:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048462', 'tblTempUsageDetail_20' ) start [2024-12-18 13:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048462', 'tblTempUsageDetail_20' ) end [2024-12-18 13:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048462', 'tblTempVendorCDR_20' ) start [2024-12-18 13:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048462', 'tblTempVendorCDR_20' ) end [2024-12-18 13:29:19] Production.INFO: ProcessCDR(1,14048462,1,1,2) [2024-12-18 13:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048462', 'tblTempUsageDetail_20' ) start [2024-12-18 13:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048462', 'tblTempUsageDetail_20' ) end [2024-12-18 13:29:23] Production.ERROR: pbx prc_insertCDR start [2024-12-18 13:29:23] Production.ERROR: pbx prc_insertCDR end [2024-12-18 13:29:23] Production.INFO: ==22855== Releasing lock... [2024-12-18 13:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 13:29:23] Production.INFO: 61.25 MB #Memory Used# [2024-12-18 13:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 10:30:06 [end_date_ymd] => 2024-12-18 13:30:06 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 10:30:06' and `end` < '2024-12-18 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 ,'') [2024-12-18 13:30:19] Production.INFO: count ==4450 [2024-12-18 13:30:20] Production.ERROR: pbx CDR StartTime 2024-12-18 10:30:06 - End Time 2024-12-18 13:30:06 [2024-12-18 13:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 13:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048468', 'tblTempUsageDetail_20' ) start [2024-12-18 13:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048468', 'tblTempUsageDetail_20' ) end [2024-12-18 13:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048468', 'tblTempVendorCDR_20' ) start [2024-12-18 13:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048468', 'tblTempVendorCDR_20' ) end [2024-12-18 13:30:21] Production.INFO: ProcessCDR(1,14048468,1,1,2) [2024-12-18 13:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048468', 'tblTempUsageDetail_20' ) start [2024-12-18 13:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048468', 'tblTempUsageDetail_20' ) end [2024-12-18 13:30:25] Production.ERROR: pbx prc_insertCDR start [2024-12-18 13:30:25] Production.ERROR: pbx prc_insertCDR end [2024-12-18 13:30:25] Production.INFO: ==22930== Releasing lock... [2024-12-18 13:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 13:30:25] Production.INFO: 61.25 MB #Memory Used# [2024-12-18 13:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 10:31:05 [end_date_ymd] => 2024-12-18 13:31:05 [RateCDR] => 1 ) [2024-12-18 13:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 10:31:05' and `end` < '2024-12-18 13:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 13:31:22] Production.INFO: count ==4456 [2024-12-18 13:31:24] Production.ERROR: pbx CDR StartTime 2024-12-18 10:31:05 - End Time 2024-12-18 13:31:05 [2024-12-18 13:31:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 13:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048473', 'tblTempUsageDetail_20' ) start [2024-12-18 13:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048473', 'tblTempUsageDetail_20' ) end [2024-12-18 13:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048473', 'tblTempVendorCDR_20' ) start [2024-12-18 13:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048473', 'tblTempVendorCDR_20' ) end [2024-12-18 13:31:24] Production.INFO: ProcessCDR(1,14048473,1,1,2) [2024-12-18 13:31:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:31:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:31:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:31:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048473', 'tblTempUsageDetail_20' ) start [2024-12-18 13:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048473', 'tblTempUsageDetail_20' ) end [2024-12-18 13:31:28] Production.ERROR: pbx prc_insertCDR start [2024-12-18 13:31:28] Production.ERROR: pbx prc_insertCDR end [2024-12-18 13:31:28] Production.INFO: ==23007== Releasing lock... [2024-12-18 13:31:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 13:31:28] Production.INFO: 61.5 MB #Memory Used# [2024-12-18 13:32:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 10:32:04 [end_date_ymd] => 2024-12-18 13:32:04 [RateCDR] => 1 ) [2024-12-18 13:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 10:32:04' and `end` < '2024-12-18 13:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 13:32:20] Production.INFO: count ==4459 [2024-12-18 13:32:22] Production.ERROR: pbx CDR StartTime 2024-12-18 10:32:04 - End Time 2024-12-18 13:32:04 [2024-12-18 13:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 13:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048478', 'tblTempUsageDetail_20' ) start [2024-12-18 13:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048478', 'tblTempUsageDetail_20' ) end [2024-12-18 13:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048478', 'tblTempVendorCDR_20' ) start [2024-12-18 13:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048478', 'tblTempVendorCDR_20' ) end [2024-12-18 13:32:22] Production.INFO: ProcessCDR(1,14048478,1,1,2) [2024-12-18 13:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:32:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:32:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048478', 'tblTempUsageDetail_20' ) start [2024-12-18 13:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048478', 'tblTempUsageDetail_20' ) end [2024-12-18 13:32:27] Production.ERROR: pbx prc_insertCDR start [2024-12-18 13:32:27] Production.ERROR: pbx prc_insertCDR end [2024-12-18 13:32:27] Production.INFO: ==23081== Releasing lock... [2024-12-18 13:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 13:32:27] Production.INFO: 61.5 MB #Memory Used# [2024-12-18 13:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 10:33:04 [end_date_ymd] => 2024-12-18 13:33:04 [RateCDR] => 1 ) [2024-12-18 13:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 10:33:04' and `end` < '2024-12-18 13:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 13:33:21] Production.INFO: count ==4456 [2024-12-18 13:33:23] Production.ERROR: pbx CDR StartTime 2024-12-18 10:33:04 - End Time 2024-12-18 13:33:04 [2024-12-18 13:33:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 13:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048483', 'tblTempUsageDetail_20' ) start [2024-12-18 13:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048483', 'tblTempUsageDetail_20' ) end [2024-12-18 13:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048483', 'tblTempVendorCDR_20' ) start [2024-12-18 13:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048483', 'tblTempVendorCDR_20' ) end [2024-12-18 13:33:23] Production.INFO: ProcessCDR(1,14048483,1,1,2) [2024-12-18 13:33:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:33:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:33:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048483', 'tblTempUsageDetail_20' ) start [2024-12-18 13:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048483', 'tblTempUsageDetail_20' ) end [2024-12-18 13:33:27] Production.ERROR: pbx prc_insertCDR start [2024-12-18 13:33:27] Production.ERROR: pbx prc_insertCDR end [2024-12-18 13:33:27] Production.INFO: ==23155== Releasing lock... [2024-12-18 13:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 13:33:27] Production.INFO: 61.5 MB #Memory Used# [2024-12-18 13:34:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 10:34:04 [end_date_ymd] => 2024-12-18 13:34:04 [RateCDR] => 1 ) [2024-12-18 13:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 10:34:04' and `end` < '2024-12-18 13:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 13:34:21] Production.INFO: count ==4446 [2024-12-18 13:34:22] Production.ERROR: pbx CDR StartTime 2024-12-18 10:34:04 - End Time 2024-12-18 13:34:04 [2024-12-18 13:34:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 13:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048488', 'tblTempUsageDetail_20' ) start [2024-12-18 13:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048488', 'tblTempUsageDetail_20' ) end [2024-12-18 13:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048488', 'tblTempVendorCDR_20' ) start [2024-12-18 13:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048488', 'tblTempVendorCDR_20' ) end [2024-12-18 13:34:23] Production.INFO: ProcessCDR(1,14048488,1,1,2) [2024-12-18 13:34:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:34:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:34:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048488', 'tblTempUsageDetail_20' ) start [2024-12-18 13:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048488', 'tblTempUsageDetail_20' ) end [2024-12-18 13:34:27] Production.ERROR: pbx prc_insertCDR start [2024-12-18 13:34:27] Production.ERROR: pbx prc_insertCDR end [2024-12-18 13:34:27] Production.INFO: ==23224== Releasing lock... [2024-12-18 13:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 13:34:27] Production.INFO: 61.25 MB #Memory Used# [2024-12-18 13:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 10:35:04 [end_date_ymd] => 2024-12-18 13:35:04 [RateCDR] => 1 ) [2024-12-18 13:35: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` >= '2024-12-18 10:35:04' and `end` < '2024-12-18 13:35: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 ,'') [2024-12-18 13:35:18] Production.INFO: count ==4456 [2024-12-18 13:35:20] Production.ERROR: pbx CDR StartTime 2024-12-18 10:35:04 - End Time 2024-12-18 13:35:04 [2024-12-18 13:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 13:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048493', 'tblTempUsageDetail_20' ) start [2024-12-18 13:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048493', 'tblTempUsageDetail_20' ) end [2024-12-18 13:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048493', 'tblTempVendorCDR_20' ) start [2024-12-18 13:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048493', 'tblTempVendorCDR_20' ) end [2024-12-18 13:35:20] Production.INFO: ProcessCDR(1,14048493,1,1,2) [2024-12-18 13:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048493', 'tblTempUsageDetail_20' ) start [2024-12-18 13:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048493', 'tblTempUsageDetail_20' ) end [2024-12-18 13:35:24] Production.ERROR: pbx prc_insertCDR start [2024-12-18 13:35:24] Production.ERROR: pbx prc_insertCDR end [2024-12-18 13:35:24] Production.INFO: ==23336== Releasing lock... [2024-12-18 13:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 13:35:24] Production.INFO: 61.5 MB #Memory Used# [2024-12-18 13:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 10:36:05 [end_date_ymd] => 2024-12-18 13:36:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 10:36:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 13:36:19] Production.INFO: count ==4413 [2024-12-18 13:36:21] Production.ERROR: pbx CDR StartTime 2024-12-18 10:36:05 - End Time 2024-12-18 13:36:05 [2024-12-18 13:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 13:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048498', 'tblTempUsageDetail_20' ) start [2024-12-18 13:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048498', 'tblTempUsageDetail_20' ) end [2024-12-18 13:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048498', 'tblTempVendorCDR_20' ) start [2024-12-18 13:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048498', 'tblTempVendorCDR_20' ) end [2024-12-18 13:36:21] Production.INFO: ProcessCDR(1,14048498,1,1,2) [2024-12-18 13:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048498', 'tblTempUsageDetail_20' ) start [2024-12-18 13:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048498', 'tblTempUsageDetail_20' ) end [2024-12-18 13:36:25] Production.ERROR: pbx prc_insertCDR start [2024-12-18 13:36:25] Production.ERROR: pbx prc_insertCDR end [2024-12-18 13:36:25] Production.INFO: ==23408== Releasing lock... [2024-12-18 13:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 13:36:25] Production.INFO: 61 MB #Memory Used# [2024-12-18 13:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 10:37:04 [end_date_ymd] => 2024-12-18 13:37:04 [RateCDR] => 1 ) [2024-12-18 13: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` >= '2024-12-18 10:37:04' and `end` < '2024-12-18 13: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 ,'') [2024-12-18 13:37:21] Production.INFO: count ==4421 [2024-12-18 13:37:23] Production.ERROR: pbx CDR StartTime 2024-12-18 10:37:04 - End Time 2024-12-18 13:37:04 [2024-12-18 13:37:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 13:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048503', 'tblTempUsageDetail_20' ) start [2024-12-18 13:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048503', 'tblTempUsageDetail_20' ) end [2024-12-18 13:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048503', 'tblTempVendorCDR_20' ) start [2024-12-18 13:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048503', 'tblTempVendorCDR_20' ) end [2024-12-18 13:37:23] Production.INFO: ProcessCDR(1,14048503,1,1,2) [2024-12-18 13:37:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:37:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:37:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:37:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048503', 'tblTempUsageDetail_20' ) start [2024-12-18 13:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048503', 'tblTempUsageDetail_20' ) end [2024-12-18 13:37:27] Production.ERROR: pbx prc_insertCDR start [2024-12-18 13:37:27] Production.ERROR: pbx prc_insertCDR end [2024-12-18 13:37:27] Production.INFO: ==23484== Releasing lock... [2024-12-18 13:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 13:37:27] Production.INFO: 61 MB #Memory Used# [2024-12-18 13:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 10:38:05 [end_date_ymd] => 2024-12-18 13:38:05 [RateCDR] => 1 ) [2024-12-18 13:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 10:38:05' and `end` < '2024-12-18 13:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 13:38:18] Production.INFO: count ==4425 [2024-12-18 13:38:20] Production.ERROR: pbx CDR StartTime 2024-12-18 10:38:05 - End Time 2024-12-18 13:38:05 [2024-12-18 13:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 13:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048508', 'tblTempUsageDetail_20' ) start [2024-12-18 13:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048508', 'tblTempUsageDetail_20' ) end [2024-12-18 13:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048508', 'tblTempVendorCDR_20' ) start [2024-12-18 13:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048508', 'tblTempVendorCDR_20' ) end [2024-12-18 13:38:20] Production.INFO: ProcessCDR(1,14048508,1,1,2) [2024-12-18 13:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048508', 'tblTempUsageDetail_20' ) start [2024-12-18 13:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048508', 'tblTempUsageDetail_20' ) end [2024-12-18 13:38:24] Production.ERROR: pbx prc_insertCDR start [2024-12-18 13:38:24] Production.ERROR: pbx prc_insertCDR end [2024-12-18 13:38:24] Production.INFO: ==23588== Releasing lock... [2024-12-18 13:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 13:38:24] Production.INFO: 61.25 MB #Memory Used# [2024-12-18 13:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 10:39:04 [end_date_ymd] => 2024-12-18 13:39:04 [RateCDR] => 1 ) [2024-12-18 13:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 10:39:04' and `end` < '2024-12-18 13:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 13:39:17] Production.INFO: count ==4424 [2024-12-18 13:39:19] Production.ERROR: pbx CDR StartTime 2024-12-18 10:39:04 - End Time 2024-12-18 13:39:04 [2024-12-18 13:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 13:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048513', 'tblTempUsageDetail_20' ) start [2024-12-18 13:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048513', 'tblTempUsageDetail_20' ) end [2024-12-18 13:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048513', 'tblTempVendorCDR_20' ) start [2024-12-18 13:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048513', 'tblTempVendorCDR_20' ) end [2024-12-18 13:39:19] Production.INFO: ProcessCDR(1,14048513,1,1,2) [2024-12-18 13:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048513', 'tblTempUsageDetail_20' ) start [2024-12-18 13:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048513', 'tblTempUsageDetail_20' ) end [2024-12-18 13:39:24] Production.ERROR: pbx prc_insertCDR start [2024-12-18 13:39:24] Production.ERROR: pbx prc_insertCDR end [2024-12-18 13:39:24] Production.INFO: ==23706== Releasing lock... [2024-12-18 13:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 13:39:24] Production.INFO: 61.25 MB #Memory Used# [2024-12-18 13:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 10:40:05 [end_date_ymd] => 2024-12-18 13:40:05 [RateCDR] => 1 ) [2024-12-18 13: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` >= '2024-12-18 10:40:05' and `end` < '2024-12-18 13: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 ,'') [2024-12-18 13:40:25] Production.INFO: count ==4431 [2024-12-18 13:40:26] Production.ERROR: pbx CDR StartTime 2024-12-18 10:40:05 - End Time 2024-12-18 13:40:05 [2024-12-18 13:40:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 13:40:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048518', 'tblTempUsageDetail_20' ) start [2024-12-18 13:40:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048518', 'tblTempUsageDetail_20' ) end [2024-12-18 13:40:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048518', 'tblTempVendorCDR_20' ) start [2024-12-18 13:40:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048518', 'tblTempVendorCDR_20' ) end [2024-12-18 13:40:26] Production.INFO: ProcessCDR(1,14048518,1,1,2) [2024-12-18 13:40:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:40:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:40:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:40:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:40:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048518', 'tblTempUsageDetail_20' ) start [2024-12-18 13:40:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048518', 'tblTempUsageDetail_20' ) end [2024-12-18 13:40:31] Production.ERROR: pbx prc_insertCDR start [2024-12-18 13:40:31] Production.ERROR: pbx prc_insertCDR end [2024-12-18 13:40:31] Production.INFO: ==23802== Releasing lock... [2024-12-18 13:40:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 13:40:31] Production.INFO: 61.25 MB #Memory Used# [2024-12-18 13:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 10:41:05 [end_date_ymd] => 2024-12-18 13:41:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 10:41:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 13:41:23] Production.INFO: count ==4422 [2024-12-18 13:41:25] Production.ERROR: pbx CDR StartTime 2024-12-18 10:41:05 - End Time 2024-12-18 13:41:05 [2024-12-18 13:41:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 13:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048524', 'tblTempUsageDetail_20' ) start [2024-12-18 13:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048524', 'tblTempUsageDetail_20' ) end [2024-12-18 13:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048524', 'tblTempVendorCDR_20' ) start [2024-12-18 13:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048524', 'tblTempVendorCDR_20' ) end [2024-12-18 13:41:25] Production.INFO: ProcessCDR(1,14048524,1,1,2) [2024-12-18 13:41:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:41:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:41:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:41:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:41:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048524', 'tblTempUsageDetail_20' ) start [2024-12-18 13:41:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048524', 'tblTempUsageDetail_20' ) end [2024-12-18 13:41:29] Production.ERROR: pbx prc_insertCDR start [2024-12-18 13:41:29] Production.ERROR: pbx prc_insertCDR end [2024-12-18 13:41:29] Production.INFO: ==23885== Releasing lock... [2024-12-18 13:41:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 13:41:29] Production.INFO: 61.5 MB #Memory Used# [2024-12-18 13:42:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 10:42:04 [end_date_ymd] => 2024-12-18 13:42:04 [RateCDR] => 1 ) [2024-12-18 13:42:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 10:42:04' and `end` < '2024-12-18 13:42:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 13:42:17] Production.INFO: count ==4409 [2024-12-18 13:42:19] Production.ERROR: pbx CDR StartTime 2024-12-18 10:42:04 - End Time 2024-12-18 13:42:04 [2024-12-18 13:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 13:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048529', 'tblTempUsageDetail_20' ) start [2024-12-18 13:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048529', 'tblTempUsageDetail_20' ) end [2024-12-18 13:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048529', 'tblTempVendorCDR_20' ) start [2024-12-18 13:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048529', 'tblTempVendorCDR_20' ) end [2024-12-18 13:42:19] Production.INFO: ProcessCDR(1,14048529,1,1,2) [2024-12-18 13:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048529', 'tblTempUsageDetail_20' ) start [2024-12-18 13:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048529', 'tblTempUsageDetail_20' ) end [2024-12-18 13:42:24] Production.ERROR: pbx prc_insertCDR start [2024-12-18 13:42:24] Production.ERROR: pbx prc_insertCDR end [2024-12-18 13:42:24] Production.INFO: ==23961== Releasing lock... [2024-12-18 13:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 13:42:24] Production.INFO: 61.25 MB #Memory Used# [2024-12-18 13:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 10:43:05 [end_date_ymd] => 2024-12-18 13:43:05 [RateCDR] => 1 ) [2024-12-18 13:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 10:43:05' and `end` < '2024-12-18 13:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 13:43:18] Production.INFO: count ==4398 [2024-12-18 13:43:19] Production.ERROR: pbx CDR StartTime 2024-12-18 10:43:05 - End Time 2024-12-18 13:43:05 [2024-12-18 13:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 13:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048534', 'tblTempUsageDetail_20' ) start [2024-12-18 13:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048534', 'tblTempUsageDetail_20' ) end [2024-12-18 13:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048534', 'tblTempVendorCDR_20' ) start [2024-12-18 13:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048534', 'tblTempVendorCDR_20' ) end [2024-12-18 13:43:20] Production.INFO: ProcessCDR(1,14048534,1,1,2) [2024-12-18 13:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048534', 'tblTempUsageDetail_20' ) start [2024-12-18 13:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048534', 'tblTempUsageDetail_20' ) end [2024-12-18 13:43:25] Production.ERROR: pbx prc_insertCDR start [2024-12-18 13:43:25] Production.ERROR: pbx prc_insertCDR end [2024-12-18 13:43:25] Production.INFO: ==24038== Releasing lock... [2024-12-18 13:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 13:43:25] Production.INFO: 61 MB #Memory Used# [2024-12-18 13:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 10:44:05 [end_date_ymd] => 2024-12-18 13:44:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 10:44:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 13:44:20] Production.INFO: count ==4393 [2024-12-18 13:44:21] Production.ERROR: pbx CDR StartTime 2024-12-18 10:44:05 - End Time 2024-12-18 13:44:05 [2024-12-18 13:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048539', 'tblTempUsageDetail_20' ) start [2024-12-18 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048539', 'tblTempUsageDetail_20' ) end [2024-12-18 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048539', 'tblTempVendorCDR_20' ) start [2024-12-18 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048539', 'tblTempVendorCDR_20' ) end [2024-12-18 13:44:21] Production.INFO: ProcessCDR(1,14048539,1,1,2) [2024-12-18 13:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048539', 'tblTempUsageDetail_20' ) start [2024-12-18 13:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048539', 'tblTempUsageDetail_20' ) end [2024-12-18 13:44:26] Production.ERROR: pbx prc_insertCDR start [2024-12-18 13:44:26] Production.ERROR: pbx prc_insertCDR end [2024-12-18 13:44:26] Production.INFO: ==24126== Releasing lock... [2024-12-18 13:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 13:44:26] Production.INFO: 61 MB #Memory Used# [2024-12-18 13:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 10:45:05 [end_date_ymd] => 2024-12-18 13:45:05 [RateCDR] => 1 ) [2024-12-18 13:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 10:45:05' and `end` < '2024-12-18 13:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 13:45:20] Production.INFO: count ==4386 [2024-12-18 13:45:21] Production.ERROR: pbx CDR StartTime 2024-12-18 10:45:05 - End Time 2024-12-18 13:45:05 [2024-12-18 13:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 13:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048544', 'tblTempUsageDetail_20' ) start [2024-12-18 13:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048544', 'tblTempUsageDetail_20' ) end [2024-12-18 13:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048544', 'tblTempVendorCDR_20' ) start [2024-12-18 13:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048544', 'tblTempVendorCDR_20' ) end [2024-12-18 13:45:22] Production.INFO: ProcessCDR(1,14048544,1,1,2) [2024-12-18 13:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048544', 'tblTempUsageDetail_20' ) start [2024-12-18 13:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048544', 'tblTempUsageDetail_20' ) end [2024-12-18 13:45:26] Production.ERROR: pbx prc_insertCDR start [2024-12-18 13:45:26] Production.ERROR: pbx prc_insertCDR end [2024-12-18 13:45:26] Production.INFO: ==24204== Releasing lock... [2024-12-18 13:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 13:45:26] Production.INFO: 60.75 MB #Memory Used# [2024-12-18 13:46:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 10:46:04 [end_date_ymd] => 2024-12-18 13:46:04 [RateCDR] => 1 ) [2024-12-18 13:46: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` >= '2024-12-18 10:46:04' and `end` < '2024-12-18 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 ,'') [2024-12-18 13:46:21] Production.INFO: count ==4384 [2024-12-18 13:46:23] Production.ERROR: pbx CDR StartTime 2024-12-18 10:46:04 - End Time 2024-12-18 13:46:04 [2024-12-18 13:46:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 13:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048549', 'tblTempUsageDetail_20' ) start [2024-12-18 13:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048549', 'tblTempUsageDetail_20' ) end [2024-12-18 13:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048549', 'tblTempVendorCDR_20' ) start [2024-12-18 13:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048549', 'tblTempVendorCDR_20' ) end [2024-12-18 13:46:23] Production.INFO: ProcessCDR(1,14048549,1,1,2) [2024-12-18 13:46:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:46:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:46:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048549', 'tblTempUsageDetail_20' ) start [2024-12-18 13:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048549', 'tblTempUsageDetail_20' ) end [2024-12-18 13:46:28] Production.ERROR: pbx prc_insertCDR start [2024-12-18 13:46:28] Production.ERROR: pbx prc_insertCDR end [2024-12-18 13:46:28] Production.INFO: ==24281== Releasing lock... [2024-12-18 13:46:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 13:46:28] Production.INFO: 60.75 MB #Memory Used# [2024-12-18 13:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 10:47:05 [end_date_ymd] => 2024-12-18 13:47:05 [RateCDR] => 1 ) [2024-12-18 13: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` >= '2024-12-18 10:47:05' and `end` < '2024-12-18 13: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 ,'') [2024-12-18 13:47:18] Production.INFO: count ==4393 [2024-12-18 13:47:19] Production.ERROR: pbx CDR StartTime 2024-12-18 10:47:05 - End Time 2024-12-18 13:47:05 [2024-12-18 13:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 13:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048554', 'tblTempUsageDetail_20' ) start [2024-12-18 13:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048554', 'tblTempUsageDetail_20' ) end [2024-12-18 13:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048554', 'tblTempVendorCDR_20' ) start [2024-12-18 13:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048554', 'tblTempVendorCDR_20' ) end [2024-12-18 13:47:19] Production.INFO: ProcessCDR(1,14048554,1,1,2) [2024-12-18 13:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048554', 'tblTempUsageDetail_20' ) start [2024-12-18 13:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048554', 'tblTempUsageDetail_20' ) end [2024-12-18 13:47:24] Production.ERROR: pbx prc_insertCDR start [2024-12-18 13:47:24] Production.ERROR: pbx prc_insertCDR end [2024-12-18 13:47:24] Production.INFO: ==24358== Releasing lock... [2024-12-18 13:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 13:47:24] Production.INFO: 61 MB #Memory Used# [2024-12-18 13:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 10:48:05 [end_date_ymd] => 2024-12-18 13:48:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 10:48:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 13:48:19] Production.INFO: count ==4369 [2024-12-18 13:48:20] Production.ERROR: pbx CDR StartTime 2024-12-18 10:48:05 - End Time 2024-12-18 13:48:05 [2024-12-18 13:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 13:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048559', 'tblTempUsageDetail_20' ) start [2024-12-18 13:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048559', 'tblTempUsageDetail_20' ) end [2024-12-18 13:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048559', 'tblTempVendorCDR_20' ) start [2024-12-18 13:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048559', 'tblTempVendorCDR_20' ) end [2024-12-18 13:48:20] Production.INFO: ProcessCDR(1,14048559,1,1,2) [2024-12-18 13:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048559', 'tblTempUsageDetail_20' ) start [2024-12-18 13:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048559', 'tblTempUsageDetail_20' ) end [2024-12-18 13:48:25] Production.ERROR: pbx prc_insertCDR start [2024-12-18 13:48:25] Production.ERROR: pbx prc_insertCDR end [2024-12-18 13:48:25] Production.INFO: ==24437== Releasing lock... [2024-12-18 13:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 13:48:25] Production.INFO: 60.75 MB #Memory Used# [2024-12-18 13:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 10:49:04 [end_date_ymd] => 2024-12-18 13:49:04 [RateCDR] => 1 ) [2024-12-18 13:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 10:49:04' and `end` < '2024-12-18 13:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 13:49:24] Production.INFO: count ==4392 [2024-12-18 13:49:26] Production.ERROR: pbx CDR StartTime 2024-12-18 10:49:04 - End Time 2024-12-18 13:49:04 [2024-12-18 13:49:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 13:49:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048564', 'tblTempUsageDetail_20' ) start [2024-12-18 13:49:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048564', 'tblTempUsageDetail_20' ) end [2024-12-18 13:49:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048564', 'tblTempVendorCDR_20' ) start [2024-12-18 13:49:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048564', 'tblTempVendorCDR_20' ) end [2024-12-18 13:49:26] Production.INFO: ProcessCDR(1,14048564,1,1,2) [2024-12-18 13:49:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:49:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:49:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:49:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:49:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048564', 'tblTempUsageDetail_20' ) start [2024-12-18 13:49:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048564', 'tblTempUsageDetail_20' ) end [2024-12-18 13:49:31] Production.ERROR: pbx prc_insertCDR start [2024-12-18 13:49:31] Production.ERROR: pbx prc_insertCDR end [2024-12-18 13:49:31] Production.INFO: ==24519== Releasing lock... [2024-12-18 13:49:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 13:49:31] Production.INFO: 61 MB #Memory Used# [2024-12-18 13:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 10:50:06 [end_date_ymd] => 2024-12-18 13:50:06 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 10:50:06' and `end` < '2024-12-18 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 ,'') [2024-12-18 13:50:23] Production.INFO: count ==4390 [2024-12-18 13:50:25] Production.ERROR: pbx CDR StartTime 2024-12-18 10:50:06 - End Time 2024-12-18 13:50:06 [2024-12-18 13:50:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 13:50:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048570', 'tblTempUsageDetail_20' ) start [2024-12-18 13:50:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048570', 'tblTempUsageDetail_20' ) end [2024-12-18 13:50:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048570', 'tblTempVendorCDR_20' ) start [2024-12-18 13:50:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048570', 'tblTempVendorCDR_20' ) end [2024-12-18 13:50:25] Production.INFO: ProcessCDR(1,14048570,1,1,2) [2024-12-18 13:50:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:50:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:50:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:50:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:50:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048570', 'tblTempUsageDetail_20' ) start [2024-12-18 13:50:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048570', 'tblTempUsageDetail_20' ) end [2024-12-18 13:50:29] Production.ERROR: pbx prc_insertCDR start [2024-12-18 13:50:29] Production.ERROR: pbx prc_insertCDR end [2024-12-18 13:50:29] Production.INFO: ==24601== Releasing lock... [2024-12-18 13:50:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 13:50:29] Production.INFO: 61 MB #Memory Used# [2024-12-18 13:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 10:51:04 [end_date_ymd] => 2024-12-18 13:51:04 [RateCDR] => 1 ) [2024-12-18 13:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 10:51:04' and `end` < '2024-12-18 13:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 13:51:22] Production.INFO: count ==4389 [2024-12-18 13:51:24] Production.ERROR: pbx CDR StartTime 2024-12-18 10:51:04 - End Time 2024-12-18 13:51:04 [2024-12-18 13:51:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 13:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048575', 'tblTempUsageDetail_20' ) start [2024-12-18 13:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048575', 'tblTempUsageDetail_20' ) end [2024-12-18 13:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048575', 'tblTempVendorCDR_20' ) start [2024-12-18 13:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048575', 'tblTempVendorCDR_20' ) end [2024-12-18 13:51:24] Production.INFO: ProcessCDR(1,14048575,1,1,2) [2024-12-18 13:51:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:51:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:51:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:51:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048575', 'tblTempUsageDetail_20' ) start [2024-12-18 13:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048575', 'tblTempUsageDetail_20' ) end [2024-12-18 13:51:28] Production.ERROR: pbx prc_insertCDR start [2024-12-18 13:51:28] Production.ERROR: pbx prc_insertCDR end [2024-12-18 13:51:28] Production.INFO: ==24719== Releasing lock... [2024-12-18 13:51:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 13:51:28] Production.INFO: 61 MB #Memory Used# [2024-12-18 13:52:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 10:52:04 [end_date_ymd] => 2024-12-18 13:52:04 [RateCDR] => 1 ) [2024-12-18 13:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 10:52:04' and `end` < '2024-12-18 13:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 13:52:23] Production.INFO: count ==4392 [2024-12-18 13:52:24] Production.ERROR: pbx CDR StartTime 2024-12-18 10:52:04 - End Time 2024-12-18 13:52:04 [2024-12-18 13:52:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 13:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048580', 'tblTempUsageDetail_20' ) start [2024-12-18 13:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048580', 'tblTempUsageDetail_20' ) end [2024-12-18 13:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048580', 'tblTempVendorCDR_20' ) start [2024-12-18 13:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048580', 'tblTempVendorCDR_20' ) end [2024-12-18 13:52:24] Production.INFO: ProcessCDR(1,14048580,1,1,2) [2024-12-18 13:52:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:52:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:52:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:52:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048580', 'tblTempUsageDetail_20' ) start [2024-12-18 13:52:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048580', 'tblTempUsageDetail_20' ) end [2024-12-18 13:52:29] Production.ERROR: pbx prc_insertCDR start [2024-12-18 13:52:29] Production.ERROR: pbx prc_insertCDR end [2024-12-18 13:52:29] Production.INFO: ==24796== Releasing lock... [2024-12-18 13:52:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 13:52:29] Production.INFO: 61 MB #Memory Used# [2024-12-18 13:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 10:53:05 [end_date_ymd] => 2024-12-18 13:53:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 10:53:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 13:53:27] Production.INFO: count ==4408 [2024-12-18 13:53:29] Production.ERROR: pbx CDR StartTime 2024-12-18 10:53:05 - End Time 2024-12-18 13:53:05 [2024-12-18 13:53:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 13:53:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048585', 'tblTempUsageDetail_20' ) start [2024-12-18 13:53:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048585', 'tblTempUsageDetail_20' ) end [2024-12-18 13:53:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048585', 'tblTempVendorCDR_20' ) start [2024-12-18 13:53:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048585', 'tblTempVendorCDR_20' ) end [2024-12-18 13:53:29] Production.INFO: ProcessCDR(1,14048585,1,1,2) [2024-12-18 13:53:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:53:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:53:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:53:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:53:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048585', 'tblTempUsageDetail_20' ) start [2024-12-18 13:53:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048585', 'tblTempUsageDetail_20' ) end [2024-12-18 13:53:34] Production.ERROR: pbx prc_insertCDR start [2024-12-18 13:53:34] Production.ERROR: pbx prc_insertCDR end [2024-12-18 13:53:34] Production.INFO: ==24877== Releasing lock... [2024-12-18 13:53:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 13:53:34] Production.INFO: 61 MB #Memory Used# [2024-12-18 13:54:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 10:54:04 [end_date_ymd] => 2024-12-18 13:54:04 [RateCDR] => 1 ) [2024-12-18 13: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` >= '2024-12-18 10:54:04' and `end` < '2024-12-18 13: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 ,'') [2024-12-18 13:54:22] Production.INFO: count ==4433 [2024-12-18 13:54:23] Production.ERROR: pbx CDR StartTime 2024-12-18 10:54:04 - End Time 2024-12-18 13:54:04 [2024-12-18 13:54:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 13:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048590', 'tblTempUsageDetail_20' ) start [2024-12-18 13:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048590', 'tblTempUsageDetail_20' ) end [2024-12-18 13:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048590', 'tblTempVendorCDR_20' ) start [2024-12-18 13:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048590', 'tblTempVendorCDR_20' ) end [2024-12-18 13:54:23] Production.INFO: ProcessCDR(1,14048590,1,1,2) [2024-12-18 13:54:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:54:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:54:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:54:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048590', 'tblTempUsageDetail_20' ) start [2024-12-18 13:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048590', 'tblTempUsageDetail_20' ) end [2024-12-18 13:54:28] Production.ERROR: pbx prc_insertCDR start [2024-12-18 13:54:28] Production.ERROR: pbx prc_insertCDR end [2024-12-18 13:54:28] Production.INFO: ==24957== Releasing lock... [2024-12-18 13:54:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 13:54:28] Production.INFO: 61.25 MB #Memory Used# [2024-12-18 13:55:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 10:55:04 [end_date_ymd] => 2024-12-18 13:55:04 [RateCDR] => 1 ) [2024-12-18 13:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 10:55:04' and `end` < '2024-12-18 13:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 13:55:24] Production.INFO: count ==4438 [2024-12-18 13:55:26] Production.ERROR: pbx CDR StartTime 2024-12-18 10:55:04 - End Time 2024-12-18 13:55:04 [2024-12-18 13:55:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 13:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048595', 'tblTempUsageDetail_20' ) start [2024-12-18 13:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048595', 'tblTempUsageDetail_20' ) end [2024-12-18 13:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048595', 'tblTempVendorCDR_20' ) start [2024-12-18 13:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048595', 'tblTempVendorCDR_20' ) end [2024-12-18 13:55:26] Production.INFO: ProcessCDR(1,14048595,1,1,2) [2024-12-18 13:55:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:55:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:55:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:55:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:55:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048595', 'tblTempUsageDetail_20' ) start [2024-12-18 13:55:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048595', 'tblTempUsageDetail_20' ) end [2024-12-18 13:55:30] Production.ERROR: pbx prc_insertCDR start [2024-12-18 13:55:30] Production.ERROR: pbx prc_insertCDR end [2024-12-18 13:55:30] Production.INFO: ==25032== Releasing lock... [2024-12-18 13:55:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 13:55:30] Production.INFO: 61.25 MB #Memory Used# [2024-12-18 13:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 10:56:05 [end_date_ymd] => 2024-12-18 13:56:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 10:56:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 13:56:20] Production.INFO: count ==4433 [2024-12-18 13:56:21] Production.ERROR: pbx CDR StartTime 2024-12-18 10:56:05 - End Time 2024-12-18 13:56:05 [2024-12-18 13:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 13:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048600', 'tblTempUsageDetail_20' ) start [2024-12-18 13:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048600', 'tblTempUsageDetail_20' ) end [2024-12-18 13:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048600', 'tblTempVendorCDR_20' ) start [2024-12-18 13:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048600', 'tblTempVendorCDR_20' ) end [2024-12-18 13:56:21] Production.INFO: ProcessCDR(1,14048600,1,1,2) [2024-12-18 13:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048600', 'tblTempUsageDetail_20' ) start [2024-12-18 13:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048600', 'tblTempUsageDetail_20' ) end [2024-12-18 13:56:26] Production.ERROR: pbx prc_insertCDR start [2024-12-18 13:56:26] Production.ERROR: pbx prc_insertCDR end [2024-12-18 13:56:26] Production.INFO: ==25109== Releasing lock... [2024-12-18 13:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 13:56:26] Production.INFO: 61.25 MB #Memory Used# [2024-12-18 13:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 10:57:05 [end_date_ymd] => 2024-12-18 13:57:05 [RateCDR] => 1 ) [2024-12-18 13:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 10:57:05' and `end` < '2024-12-18 13:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 13:57:22] Production.INFO: count ==4422 [2024-12-18 13:57:24] Production.ERROR: pbx CDR StartTime 2024-12-18 10:57:05 - End Time 2024-12-18 13:57:05 [2024-12-18 13:57:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 13:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048605', 'tblTempUsageDetail_20' ) start [2024-12-18 13:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048605', 'tblTempUsageDetail_20' ) end [2024-12-18 13:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048605', 'tblTempVendorCDR_20' ) start [2024-12-18 13:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048605', 'tblTempVendorCDR_20' ) end [2024-12-18 13:57:24] Production.INFO: ProcessCDR(1,14048605,1,1,2) [2024-12-18 13:57:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:57:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:57:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:57:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048605', 'tblTempUsageDetail_20' ) start [2024-12-18 13:57:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048605', 'tblTempUsageDetail_20' ) end [2024-12-18 13:57:29] Production.ERROR: pbx prc_insertCDR start [2024-12-18 13:57:29] Production.ERROR: pbx prc_insertCDR end [2024-12-18 13:57:29] Production.INFO: ==25191== Releasing lock... [2024-12-18 13:57:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 13:57:29] Production.INFO: 61.25 MB #Memory Used# [2024-12-18 13:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 10:58:05 [end_date_ymd] => 2024-12-18 13:58:05 [RateCDR] => 1 ) [2024-12-18 13:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 10:58:05' and `end` < '2024-12-18 13:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 13:58:18] Production.INFO: count ==4418 [2024-12-18 13:58:20] Production.ERROR: pbx CDR StartTime 2024-12-18 10:58:05 - End Time 2024-12-18 13:58:05 [2024-12-18 13:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 13:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048610', 'tblTempUsageDetail_20' ) start [2024-12-18 13:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048610', 'tblTempUsageDetail_20' ) end [2024-12-18 13:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048610', 'tblTempVendorCDR_20' ) start [2024-12-18 13:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048610', 'tblTempVendorCDR_20' ) end [2024-12-18 13:58:20] Production.INFO: ProcessCDR(1,14048610,1,1,2) [2024-12-18 13:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048610', 'tblTempUsageDetail_20' ) start [2024-12-18 13:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048610', 'tblTempUsageDetail_20' ) end [2024-12-18 13:58:24] Production.ERROR: pbx prc_insertCDR start [2024-12-18 13:58:24] Production.ERROR: pbx prc_insertCDR end [2024-12-18 13:58:24] Production.INFO: ==25267== Releasing lock... [2024-12-18 13:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 13:58:24] Production.INFO: 61 MB #Memory Used# [2024-12-18 13:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 10:59:05 [end_date_ymd] => 2024-12-18 13:59:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 10:59:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 13:59:23] Production.INFO: count ==4427 [2024-12-18 13:59:24] Production.ERROR: pbx CDR StartTime 2024-12-18 10:59:05 - End Time 2024-12-18 13:59:05 [2024-12-18 13:59:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 13:59:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048615', 'tblTempUsageDetail_20' ) start [2024-12-18 13:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048615', 'tblTempUsageDetail_20' ) end [2024-12-18 13:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048615', 'tblTempVendorCDR_20' ) start [2024-12-18 13:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048615', 'tblTempVendorCDR_20' ) end [2024-12-18 13:59:25] Production.INFO: ProcessCDR(1,14048615,1,1,2) [2024-12-18 13:59:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:59:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 13:59:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:59:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 13:59:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048615', 'tblTempUsageDetail_20' ) start [2024-12-18 13:59:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048615', 'tblTempUsageDetail_20' ) end [2024-12-18 13:59:29] Production.ERROR: pbx prc_insertCDR start [2024-12-18 13:59:29] Production.ERROR: pbx prc_insertCDR end [2024-12-18 13:59:29] Production.INFO: ==25340== Releasing lock... [2024-12-18 13:59:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 13:59:29] Production.INFO: 61.25 MB #Memory Used# [2024-12-18 14:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 11:00:05 [end_date_ymd] => 2024-12-18 14:00:05 [RateCDR] => 1 ) [2024-12-18 14:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 11:00:05' and `end` < '2024-12-18 14:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 14:00:18] Production.INFO: count ==4420 [2024-12-18 14:00:20] Production.ERROR: pbx CDR StartTime 2024-12-18 11:00:05 - End Time 2024-12-18 14:00:05 [2024-12-18 14:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 14:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048621', 'tblTempUsageDetail_20' ) start [2024-12-18 14:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048621', 'tblTempUsageDetail_20' ) end [2024-12-18 14:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048621', 'tblTempVendorCDR_20' ) start [2024-12-18 14:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048621', 'tblTempVendorCDR_20' ) end [2024-12-18 14:00:20] Production.INFO: ProcessCDR(1,14048621,1,1,2) [2024-12-18 14:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048621', 'tblTempUsageDetail_20' ) start [2024-12-18 14:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048621', 'tblTempUsageDetail_20' ) end [2024-12-18 14:00:25] Production.ERROR: pbx prc_insertCDR start [2024-12-18 14:00:25] Production.ERROR: pbx prc_insertCDR end [2024-12-18 14:00:25] Production.INFO: ==25416== Releasing lock... [2024-12-18 14:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 14:00:25] Production.INFO: 61 MB #Memory Used# [2024-12-18 14:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 11:01:05 [end_date_ymd] => 2024-12-18 14:01:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 11:01:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 14:01:22] Production.INFO: count ==4435 [2024-12-18 14:01:24] Production.ERROR: pbx CDR StartTime 2024-12-18 11:01:05 - End Time 2024-12-18 14:01:05 [2024-12-18 14:01:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 14:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048626', 'tblTempUsageDetail_20' ) start [2024-12-18 14:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048626', 'tblTempUsageDetail_20' ) end [2024-12-18 14:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048626', 'tblTempVendorCDR_20' ) start [2024-12-18 14:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048626', 'tblTempVendorCDR_20' ) end [2024-12-18 14:01:24] Production.INFO: ProcessCDR(1,14048626,1,1,2) [2024-12-18 14:01:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:01:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:01:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:01:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048626', 'tblTempUsageDetail_20' ) start [2024-12-18 14:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048626', 'tblTempUsageDetail_20' ) end [2024-12-18 14:01:28] Production.ERROR: pbx prc_insertCDR start [2024-12-18 14:01:28] Production.ERROR: pbx prc_insertCDR end [2024-12-18 14:01:28] Production.INFO: ==25506== Releasing lock... [2024-12-18 14:01:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 14:01:28] Production.INFO: 61.25 MB #Memory Used# [2024-12-18 14:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 11:02:05 [end_date_ymd] => 2024-12-18 14:02:05 [RateCDR] => 1 ) [2024-12-18 14:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 11:02:05' and `end` < '2024-12-18 14:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 14:02:23] Production.INFO: count ==4435 [2024-12-18 14:02:24] Production.ERROR: pbx CDR StartTime 2024-12-18 11:02:05 - End Time 2024-12-18 14:02:05 [2024-12-18 14:02:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 14:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048631', 'tblTempUsageDetail_20' ) start [2024-12-18 14:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048631', 'tblTempUsageDetail_20' ) end [2024-12-18 14:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048631', 'tblTempVendorCDR_20' ) start [2024-12-18 14:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048631', 'tblTempVendorCDR_20' ) end [2024-12-18 14:02:25] Production.INFO: ProcessCDR(1,14048631,1,1,2) [2024-12-18 14:02:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:02:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:02:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:02:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:02:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048631', 'tblTempUsageDetail_20' ) start [2024-12-18 14:02:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048631', 'tblTempUsageDetail_20' ) end [2024-12-18 14:02:29] Production.ERROR: pbx prc_insertCDR start [2024-12-18 14:02:29] Production.ERROR: pbx prc_insertCDR end [2024-12-18 14:02:29] Production.INFO: ==25594== Releasing lock... [2024-12-18 14:02:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 14:02:29] Production.INFO: 61.25 MB #Memory Used# [2024-12-18 14:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 11:03:05 [end_date_ymd] => 2024-12-18 14:03:05 [RateCDR] => 1 ) [2024-12-18 14:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 11:03:05' and `end` < '2024-12-18 14:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 14:03:24] Production.INFO: count ==4440 [2024-12-18 14:03:26] Production.ERROR: pbx CDR StartTime 2024-12-18 11:03:05 - End Time 2024-12-18 14:03:05 [2024-12-18 14:03:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 14:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048636', 'tblTempUsageDetail_20' ) start [2024-12-18 14:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048636', 'tblTempUsageDetail_20' ) end [2024-12-18 14:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048636', 'tblTempVendorCDR_20' ) start [2024-12-18 14:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048636', 'tblTempVendorCDR_20' ) end [2024-12-18 14:03:26] Production.INFO: ProcessCDR(1,14048636,1,1,2) [2024-12-18 14:03:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:03:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:03:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:03:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:03:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048636', 'tblTempUsageDetail_20' ) start [2024-12-18 14:03:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048636', 'tblTempUsageDetail_20' ) end [2024-12-18 14:03:31] Production.ERROR: pbx prc_insertCDR start [2024-12-18 14:03:31] Production.ERROR: pbx prc_insertCDR end [2024-12-18 14:03:31] Production.INFO: ==25702== Releasing lock... [2024-12-18 14:03:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 14:03:31] Production.INFO: 61.25 MB #Memory Used# [2024-12-18 14:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 11:04:05 [end_date_ymd] => 2024-12-18 14:04:05 [RateCDR] => 1 ) [2024-12-18 14:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 11:04:05' and `end` < '2024-12-18 14:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 14:04:21] Production.INFO: count ==4442 [2024-12-18 14:04:22] Production.ERROR: pbx CDR StartTime 2024-12-18 11:04:05 - End Time 2024-12-18 14:04:05 [2024-12-18 14:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 14:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048641', 'tblTempUsageDetail_20' ) start [2024-12-18 14:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048641', 'tblTempUsageDetail_20' ) end [2024-12-18 14:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048641', 'tblTempVendorCDR_20' ) start [2024-12-18 14:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048641', 'tblTempVendorCDR_20' ) end [2024-12-18 14:04:23] Production.INFO: ProcessCDR(1,14048641,1,1,2) [2024-12-18 14:04:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:04:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:04:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048641', 'tblTempUsageDetail_20' ) start [2024-12-18 14:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048641', 'tblTempUsageDetail_20' ) end [2024-12-18 14:04:27] Production.ERROR: pbx prc_insertCDR start [2024-12-18 14:04:27] Production.ERROR: pbx prc_insertCDR end [2024-12-18 14:04:27] Production.INFO: ==25817== Releasing lock... [2024-12-18 14:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 14:04:27] Production.INFO: 61.5 MB #Memory Used# [2024-12-18 14:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 11:05:05 [end_date_ymd] => 2024-12-18 14:05:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 11:05:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 14:05:29] Production.INFO: count ==4455 [2024-12-18 14:05:30] Production.ERROR: pbx CDR StartTime 2024-12-18 11:05:05 - End Time 2024-12-18 14:05:05 [2024-12-18 14:05:30] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 14:05:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048646', 'tblTempUsageDetail_20' ) start [2024-12-18 14:05:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048646', 'tblTempUsageDetail_20' ) end [2024-12-18 14:05:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048646', 'tblTempVendorCDR_20' ) start [2024-12-18 14:05:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048646', 'tblTempVendorCDR_20' ) end [2024-12-18 14:05:30] Production.INFO: ProcessCDR(1,14048646,1,1,2) [2024-12-18 14:05:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:05:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:05:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:05:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:05:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048646', 'tblTempUsageDetail_20' ) start [2024-12-18 14:05:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048646', 'tblTempUsageDetail_20' ) end [2024-12-18 14:05:35] Production.ERROR: pbx prc_insertCDR start [2024-12-18 14:05:35] Production.ERROR: pbx prc_insertCDR end [2024-12-18 14:05:35] Production.INFO: ==25925== Releasing lock... [2024-12-18 14:05:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 14:05:35] Production.INFO: 61.5 MB #Memory Used# [2024-12-18 14:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 11:06:05 [end_date_ymd] => 2024-12-18 14:06:05 [RateCDR] => 1 ) [2024-12-18 14:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 11:06:05' and `end` < '2024-12-18 14:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 14:06:21] Production.INFO: count ==4464 [2024-12-18 14:06:23] Production.ERROR: pbx CDR StartTime 2024-12-18 11:06:05 - End Time 2024-12-18 14:06:05 [2024-12-18 14:06:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 14:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048651', 'tblTempUsageDetail_20' ) start [2024-12-18 14:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048651', 'tblTempUsageDetail_20' ) end [2024-12-18 14:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048651', 'tblTempVendorCDR_20' ) start [2024-12-18 14:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048651', 'tblTempVendorCDR_20' ) end [2024-12-18 14:06:23] Production.INFO: ProcessCDR(1,14048651,1,1,2) [2024-12-18 14:06:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048651', 'tblTempUsageDetail_20' ) start [2024-12-18 14:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048651', 'tblTempUsageDetail_20' ) end [2024-12-18 14:06:27] Production.ERROR: pbx prc_insertCDR start [2024-12-18 14:06:27] Production.ERROR: pbx prc_insertCDR end [2024-12-18 14:06:27] Production.INFO: ==26043== Releasing lock... [2024-12-18 14:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 14:06:27] Production.INFO: 61.5 MB #Memory Used# [2024-12-18 14:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 11:07:04 [end_date_ymd] => 2024-12-18 14:07:04 [RateCDR] => 1 ) [2024-12-18 14:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 11:07:04' and `end` < '2024-12-18 14: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 ,'') [2024-12-18 14:07:24] Production.INFO: count ==4472 [2024-12-18 14:07:26] Production.ERROR: pbx CDR StartTime 2024-12-18 11:07:04 - End Time 2024-12-18 14:07:04 [2024-12-18 14:07:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 14:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048656', 'tblTempUsageDetail_20' ) start [2024-12-18 14:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048656', 'tblTempUsageDetail_20' ) end [2024-12-18 14:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048656', 'tblTempVendorCDR_20' ) start [2024-12-18 14:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048656', 'tblTempVendorCDR_20' ) end [2024-12-18 14:07:26] Production.INFO: ProcessCDR(1,14048656,1,1,2) [2024-12-18 14:07:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:07:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:07:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:07:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:07:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048656', 'tblTempUsageDetail_20' ) start [2024-12-18 14:07:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048656', 'tblTempUsageDetail_20' ) end [2024-12-18 14:07:31] Production.ERROR: pbx prc_insertCDR start [2024-12-18 14:07:31] Production.ERROR: pbx prc_insertCDR end [2024-12-18 14:07:31] Production.INFO: ==26198== Releasing lock... [2024-12-18 14:07:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 14:07:31] Production.INFO: 61.5 MB #Memory Used# [2024-12-18 14:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 11:08:05 [end_date_ymd] => 2024-12-18 14:08:05 [RateCDR] => 1 ) [2024-12-18 14:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 11:08:05' and `end` < '2024-12-18 14:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 14:08:25] Production.INFO: count ==4485 [2024-12-18 14:08:27] Production.ERROR: pbx CDR StartTime 2024-12-18 11:08:05 - End Time 2024-12-18 14:08:05 [2024-12-18 14:08:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 14:08:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048661', 'tblTempUsageDetail_20' ) start [2024-12-18 14:08:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048661', 'tblTempUsageDetail_20' ) end [2024-12-18 14:08:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048661', 'tblTempVendorCDR_20' ) start [2024-12-18 14:08:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048661', 'tblTempVendorCDR_20' ) end [2024-12-18 14:08:27] Production.INFO: ProcessCDR(1,14048661,1,1,2) [2024-12-18 14:08:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:08:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:08:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:08:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:08:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048661', 'tblTempUsageDetail_20' ) start [2024-12-18 14:08:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048661', 'tblTempUsageDetail_20' ) end [2024-12-18 14:08:32] Production.ERROR: pbx prc_insertCDR start [2024-12-18 14:08:32] Production.ERROR: pbx prc_insertCDR end [2024-12-18 14:08:32] Production.INFO: ==26317== Releasing lock... [2024-12-18 14:08:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 14:08:32] Production.INFO: 61.5 MB #Memory Used# [2024-12-18 14:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 11:09:04 [end_date_ymd] => 2024-12-18 14:09:04 [RateCDR] => 1 ) [2024-12-18 14:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 11:09:04' and `end` < '2024-12-18 14:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 14:09:22] Production.INFO: count ==4485 [2024-12-18 14:09:24] Production.ERROR: pbx CDR StartTime 2024-12-18 11:09:04 - End Time 2024-12-18 14:09:04 [2024-12-18 14:09:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 14:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048666', 'tblTempUsageDetail_20' ) start [2024-12-18 14:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048666', 'tblTempUsageDetail_20' ) end [2024-12-18 14:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048666', 'tblTempVendorCDR_20' ) start [2024-12-18 14:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048666', 'tblTempVendorCDR_20' ) end [2024-12-18 14:09:24] Production.INFO: ProcessCDR(1,14048666,1,1,2) [2024-12-18 14:09:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:09:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:09:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:09:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048666', 'tblTempUsageDetail_20' ) start [2024-12-18 14:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048666', 'tblTempUsageDetail_20' ) end [2024-12-18 14:09:28] Production.ERROR: pbx prc_insertCDR start [2024-12-18 14:09:28] Production.ERROR: pbx prc_insertCDR end [2024-12-18 14:09:28] Production.INFO: ==26445== Releasing lock... [2024-12-18 14:09:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 14:09:28] Production.INFO: 61.5 MB #Memory Used# [2024-12-18 14:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 11:10:06 [end_date_ymd] => 2024-12-18 14:10:06 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 11:10:06' and `end` < '2024-12-18 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 ,'') [2024-12-18 14:10:22] Production.INFO: count ==4485 [2024-12-18 14:10:24] Production.ERROR: pbx CDR StartTime 2024-12-18 11:10:06 - End Time 2024-12-18 14:10:06 [2024-12-18 14:10:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 14:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048672', 'tblTempUsageDetail_20' ) start [2024-12-18 14:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048672', 'tblTempUsageDetail_20' ) end [2024-12-18 14:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048672', 'tblTempVendorCDR_20' ) start [2024-12-18 14:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048672', 'tblTempVendorCDR_20' ) end [2024-12-18 14:10:24] Production.INFO: ProcessCDR(1,14048672,1,1,2) [2024-12-18 14:10:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:10:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:10:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:10:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048672', 'tblTempUsageDetail_20' ) start [2024-12-18 14:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048672', 'tblTempUsageDetail_20' ) end [2024-12-18 14:10:29] Production.ERROR: pbx prc_insertCDR start [2024-12-18 14:10:29] Production.ERROR: pbx prc_insertCDR end [2024-12-18 14:10:30] Production.INFO: ==26566== Releasing lock... [2024-12-18 14:10:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 14:10:30] Production.INFO: 61.5 MB #Memory Used# [2024-12-18 14:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 11:11:05 [end_date_ymd] => 2024-12-18 14:11:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 11:11:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 14:11:21] Production.INFO: count ==4452 [2024-12-18 14:11:23] Production.ERROR: pbx CDR StartTime 2024-12-18 11:11:05 - End Time 2024-12-18 14:11:05 [2024-12-18 14:11:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 14:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048677', 'tblTempUsageDetail_20' ) start [2024-12-18 14:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048677', 'tblTempUsageDetail_20' ) end [2024-12-18 14:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048677', 'tblTempVendorCDR_20' ) start [2024-12-18 14:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048677', 'tblTempVendorCDR_20' ) end [2024-12-18 14:11:23] Production.INFO: ProcessCDR(1,14048677,1,1,2) [2024-12-18 14:11:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:11:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:11:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:11:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048677', 'tblTempUsageDetail_20' ) start [2024-12-18 14:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048677', 'tblTempUsageDetail_20' ) end [2024-12-18 14:11:28] Production.ERROR: pbx prc_insertCDR start [2024-12-18 14:11:28] Production.ERROR: pbx prc_insertCDR end [2024-12-18 14:11:28] Production.INFO: ==26686== Releasing lock... [2024-12-18 14:11:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 14:11:28] Production.INFO: 61.25 MB #Memory Used# [2024-12-18 14:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 11:12:05 [end_date_ymd] => 2024-12-18 14:12:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 11:12:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 14:12:20] Production.INFO: count ==4454 [2024-12-18 14:12:21] Production.ERROR: pbx CDR StartTime 2024-12-18 11:12:05 - End Time 2024-12-18 14:12:05 [2024-12-18 14:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 14:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048682', 'tblTempUsageDetail_20' ) start [2024-12-18 14:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048682', 'tblTempUsageDetail_20' ) end [2024-12-18 14:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048682', 'tblTempVendorCDR_20' ) start [2024-12-18 14:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048682', 'tblTempVendorCDR_20' ) end [2024-12-18 14:12:22] Production.INFO: ProcessCDR(1,14048682,1,1,2) [2024-12-18 14:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048682', 'tblTempUsageDetail_20' ) start [2024-12-18 14:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048682', 'tblTempUsageDetail_20' ) end [2024-12-18 14:12:26] Production.ERROR: pbx prc_insertCDR start [2024-12-18 14:12:26] Production.ERROR: pbx prc_insertCDR end [2024-12-18 14:12:26] Production.INFO: ==26806== Releasing lock... [2024-12-18 14:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 14:12:26] Production.INFO: 61.5 MB #Memory Used# [2024-12-18 14:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 11:13:05 [end_date_ymd] => 2024-12-18 14:13:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 11:13:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 14:13:21] Production.INFO: count ==4452 [2024-12-18 14:13:23] Production.ERROR: pbx CDR StartTime 2024-12-18 11:13:05 - End Time 2024-12-18 14:13:05 [2024-12-18 14:13:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 14:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048687', 'tblTempUsageDetail_20' ) start [2024-12-18 14:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048687', 'tblTempUsageDetail_20' ) end [2024-12-18 14:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048687', 'tblTempVendorCDR_20' ) start [2024-12-18 14:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048687', 'tblTempVendorCDR_20' ) end [2024-12-18 14:13:23] Production.INFO: ProcessCDR(1,14048687,1,1,2) [2024-12-18 14:13:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:13:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:13:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048687', 'tblTempUsageDetail_20' ) start [2024-12-18 14:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048687', 'tblTempUsageDetail_20' ) end [2024-12-18 14:13:27] Production.ERROR: pbx prc_insertCDR start [2024-12-18 14:13:27] Production.ERROR: pbx prc_insertCDR end [2024-12-18 14:13:27] Production.INFO: ==26918== Releasing lock... [2024-12-18 14:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 14:13:27] Production.INFO: 61.25 MB #Memory Used# [2024-12-18 14:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 11:14:05 [end_date_ymd] => 2024-12-18 14:14:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 11:14:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 14:14:20] Production.INFO: count ==4443 [2024-12-18 14:14:22] Production.ERROR: pbx CDR StartTime 2024-12-18 11:14:05 - End Time 2024-12-18 14:14:05 [2024-12-18 14:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 14:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048692', 'tblTempUsageDetail_20' ) start [2024-12-18 14:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048692', 'tblTempUsageDetail_20' ) end [2024-12-18 14:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048692', 'tblTempVendorCDR_20' ) start [2024-12-18 14:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048692', 'tblTempVendorCDR_20' ) end [2024-12-18 14:14:22] Production.INFO: ProcessCDR(1,14048692,1,1,2) [2024-12-18 14:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048692', 'tblTempUsageDetail_20' ) start [2024-12-18 14:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048692', 'tblTempUsageDetail_20' ) end [2024-12-18 14:14:27] Production.ERROR: pbx prc_insertCDR start [2024-12-18 14:14:27] Production.ERROR: pbx prc_insertCDR end [2024-12-18 14:14:27] Production.INFO: ==27022== Releasing lock... [2024-12-18 14:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 14:14:27] Production.INFO: 61.25 MB #Memory Used# [2024-12-18 14:15:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 11:15:04 [end_date_ymd] => 2024-12-18 14:15:04 [RateCDR] => 1 ) [2024-12-18 14: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` >= '2024-12-18 11:15:04' and `end` < '2024-12-18 14: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 ,'') [2024-12-18 14:15:20] Production.INFO: count ==4450 [2024-12-18 14:15:21] Production.ERROR: pbx CDR StartTime 2024-12-18 11:15:04 - End Time 2024-12-18 14:15:04 [2024-12-18 14:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 14:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048697', 'tblTempUsageDetail_20' ) start [2024-12-18 14:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048697', 'tblTempUsageDetail_20' ) end [2024-12-18 14:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048697', 'tblTempVendorCDR_20' ) start [2024-12-18 14:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048697', 'tblTempVendorCDR_20' ) end [2024-12-18 14:15:21] Production.INFO: ProcessCDR(1,14048697,1,1,2) [2024-12-18 14:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048697', 'tblTempUsageDetail_20' ) start [2024-12-18 14:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048697', 'tblTempUsageDetail_20' ) end [2024-12-18 14:15:26] Production.ERROR: pbx prc_insertCDR start [2024-12-18 14:15:26] Production.ERROR: pbx prc_insertCDR end [2024-12-18 14:15:26] Production.INFO: ==27105== Releasing lock... [2024-12-18 14:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 14:15:26] Production.INFO: 61.25 MB #Memory Used# [2024-12-18 14:16:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 11:16:04 [end_date_ymd] => 2024-12-18 14:16:04 [RateCDR] => 1 ) [2024-12-18 14:16:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 11:16:04' and `end` < '2024-12-18 14:16:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 14:16:23] Production.INFO: count ==4455 [2024-12-18 14:16:25] Production.ERROR: pbx CDR StartTime 2024-12-18 11:16:04 - End Time 2024-12-18 14:16:04 [2024-12-18 14:16:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 14:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048702', 'tblTempUsageDetail_20' ) start [2024-12-18 14:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048702', 'tblTempUsageDetail_20' ) end [2024-12-18 14:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048702', 'tblTempVendorCDR_20' ) start [2024-12-18 14:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048702', 'tblTempVendorCDR_20' ) end [2024-12-18 14:16:25] Production.INFO: ProcessCDR(1,14048702,1,1,2) [2024-12-18 14:16:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:16:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:16:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:16:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:16:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048702', 'tblTempUsageDetail_20' ) start [2024-12-18 14:16:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048702', 'tblTempUsageDetail_20' ) end [2024-12-18 14:16:29] Production.ERROR: pbx prc_insertCDR start [2024-12-18 14:16:29] Production.ERROR: pbx prc_insertCDR end [2024-12-18 14:16:29] Production.INFO: ==27189== Releasing lock... [2024-12-18 14:16:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 14:16:29] Production.INFO: 61.5 MB #Memory Used# [2024-12-18 14:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 11:17:05 [end_date_ymd] => 2024-12-18 14:17:05 [RateCDR] => 1 ) [2024-12-18 14:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 11:17:05' and `end` < '2024-12-18 14:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 14:17:25] Production.INFO: count ==4468 [2024-12-18 14:17:27] Production.ERROR: pbx CDR StartTime 2024-12-18 11:17:05 - End Time 2024-12-18 14:17:05 [2024-12-18 14:17:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 14:17:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048707', 'tblTempUsageDetail_20' ) start [2024-12-18 14:17:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048707', 'tblTempUsageDetail_20' ) end [2024-12-18 14:17:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048707', 'tblTempVendorCDR_20' ) start [2024-12-18 14:17:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048707', 'tblTempVendorCDR_20' ) end [2024-12-18 14:17:27] Production.INFO: ProcessCDR(1,14048707,1,1,2) [2024-12-18 14:17:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:17:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:17:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:17:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:17:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048707', 'tblTempUsageDetail_20' ) start [2024-12-18 14:17:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048707', 'tblTempUsageDetail_20' ) end [2024-12-18 14:17:32] Production.ERROR: pbx prc_insertCDR start [2024-12-18 14:17:32] Production.ERROR: pbx prc_insertCDR end [2024-12-18 14:17:32] Production.INFO: ==27275== Releasing lock... [2024-12-18 14:17:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 14:17:32] Production.INFO: 61.5 MB #Memory Used# [2024-12-18 14:18:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 11:18:04 [end_date_ymd] => 2024-12-18 14:18:04 [RateCDR] => 1 ) [2024-12-18 14:18: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` >= '2024-12-18 11:18:04' and `end` < '2024-12-18 14:18: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 ,'') [2024-12-18 14:18:20] Production.INFO: count ==4426 [2024-12-18 14:18:22] Production.ERROR: pbx CDR StartTime 2024-12-18 11:18:04 - End Time 2024-12-18 14:18:04 [2024-12-18 14:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 14:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048712', 'tblTempUsageDetail_20' ) start [2024-12-18 14:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048712', 'tblTempUsageDetail_20' ) end [2024-12-18 14:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048712', 'tblTempVendorCDR_20' ) start [2024-12-18 14:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048712', 'tblTempVendorCDR_20' ) end [2024-12-18 14:18:22] Production.INFO: ProcessCDR(1,14048712,1,1,2) [2024-12-18 14:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048712', 'tblTempUsageDetail_20' ) start [2024-12-18 14:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048712', 'tblTempUsageDetail_20' ) end [2024-12-18 14:18:26] Production.ERROR: pbx prc_insertCDR start [2024-12-18 14:18:26] Production.ERROR: pbx prc_insertCDR end [2024-12-18 14:18:26] Production.INFO: ==27358== Releasing lock... [2024-12-18 14:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 14:18:26] Production.INFO: 61.25 MB #Memory Used# [2024-12-18 14:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 11:19:05 [end_date_ymd] => 2024-12-18 14:19:05 [RateCDR] => 1 ) [2024-12-18 14:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 11:19:05' and `end` < '2024-12-18 14:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 14:19:18] Production.INFO: count ==4414 [2024-12-18 14:19:19] Production.ERROR: pbx CDR StartTime 2024-12-18 11:19:05 - End Time 2024-12-18 14:19:05 [2024-12-18 14:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 14:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048717', 'tblTempUsageDetail_20' ) start [2024-12-18 14:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048717', 'tblTempUsageDetail_20' ) end [2024-12-18 14:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048717', 'tblTempVendorCDR_20' ) start [2024-12-18 14:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048717', 'tblTempVendorCDR_20' ) end [2024-12-18 14:19:20] Production.INFO: ProcessCDR(1,14048717,1,1,2) [2024-12-18 14:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048717', 'tblTempUsageDetail_20' ) start [2024-12-18 14:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048717', 'tblTempUsageDetail_20' ) end [2024-12-18 14:19:24] Production.ERROR: pbx prc_insertCDR start [2024-12-18 14:19:24] Production.ERROR: pbx prc_insertCDR end [2024-12-18 14:19:24] Production.INFO: ==27438== Releasing lock... [2024-12-18 14:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 14:19:24] Production.INFO: 61.25 MB #Memory Used# [2024-12-18 14:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 11:20:05 [end_date_ymd] => 2024-12-18 14:20:05 [RateCDR] => 1 ) [2024-12-18 14: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` >= '2024-12-18 11:20:05' and `end` < '2024-12-18 14: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 ,'') [2024-12-18 14:20:29] Production.INFO: count ==4404 [2024-12-18 14:20:30] Production.ERROR: pbx CDR StartTime 2024-12-18 11:20:05 - End Time 2024-12-18 14:20:05 [2024-12-18 14:20:30] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 14:20:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048723', 'tblTempUsageDetail_20' ) start [2024-12-18 14:20:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048723', 'tblTempUsageDetail_20' ) end [2024-12-18 14:20:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048723', 'tblTempVendorCDR_20' ) start [2024-12-18 14:20:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048723', 'tblTempVendorCDR_20' ) end [2024-12-18 14:20:30] Production.INFO: ProcessCDR(1,14048723,1,1,2) [2024-12-18 14:20:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:20:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:20:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:20:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:20:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048723', 'tblTempUsageDetail_20' ) start [2024-12-18 14:20:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048723', 'tblTempUsageDetail_20' ) end [2024-12-18 14:20:35] Production.ERROR: pbx prc_insertCDR start [2024-12-18 14:20:35] Production.ERROR: pbx prc_insertCDR end [2024-12-18 14:20:35] Production.INFO: ==27526== Releasing lock... [2024-12-18 14:20:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 14:20:35] Production.INFO: 61 MB #Memory Used# [2024-12-18 14:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 11:21:04 [end_date_ymd] => 2024-12-18 14:21:04 [RateCDR] => 1 ) [2024-12-18 14:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 11:21:04' and `end` < '2024-12-18 14:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 14:21:22] Production.INFO: count ==4423 [2024-12-18 14:21:23] Production.ERROR: pbx CDR StartTime 2024-12-18 11:21:04 - End Time 2024-12-18 14:21:04 [2024-12-18 14:21:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 14:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048728', 'tblTempUsageDetail_20' ) start [2024-12-18 14:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048728', 'tblTempUsageDetail_20' ) end [2024-12-18 14:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048728', 'tblTempVendorCDR_20' ) start [2024-12-18 14:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048728', 'tblTempVendorCDR_20' ) end [2024-12-18 14:21:23] Production.INFO: ProcessCDR(1,14048728,1,1,2) [2024-12-18 14:21:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:21:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:21:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:21:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048728', 'tblTempUsageDetail_20' ) start [2024-12-18 14:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048728', 'tblTempUsageDetail_20' ) end [2024-12-18 14:21:28] Production.ERROR: pbx prc_insertCDR start [2024-12-18 14:21:28] Production.ERROR: pbx prc_insertCDR end [2024-12-18 14:21:28] Production.INFO: ==27609== Releasing lock... [2024-12-18 14:21:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 14:21:28] Production.INFO: 61.25 MB #Memory Used# [2024-12-18 14:22:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 11:22:04 [end_date_ymd] => 2024-12-18 14:22:04 [RateCDR] => 1 ) [2024-12-18 14:22:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 11:22:04' and `end` < '2024-12-18 14:22:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 14:22:24] Production.INFO: count ==4442 [2024-12-18 14:22:26] Production.ERROR: pbx CDR StartTime 2024-12-18 11:22:04 - End Time 2024-12-18 14:22:04 [2024-12-18 14:22:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 14:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048733', 'tblTempUsageDetail_20' ) start [2024-12-18 14:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048733', 'tblTempUsageDetail_20' ) end [2024-12-18 14:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048733', 'tblTempVendorCDR_20' ) start [2024-12-18 14:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048733', 'tblTempVendorCDR_20' ) end [2024-12-18 14:22:26] Production.INFO: ProcessCDR(1,14048733,1,1,2) [2024-12-18 14:22:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:22:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:22:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:22:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:22:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048733', 'tblTempUsageDetail_20' ) start [2024-12-18 14:22:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048733', 'tblTempUsageDetail_20' ) end [2024-12-18 14:22:31] Production.ERROR: pbx prc_insertCDR start [2024-12-18 14:22:31] Production.ERROR: pbx prc_insertCDR end [2024-12-18 14:22:31] Production.INFO: ==27732== Releasing lock... [2024-12-18 14:22:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 14:22:31] Production.INFO: 61.25 MB #Memory Used# [2024-12-18 14:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 11:23:05 [end_date_ymd] => 2024-12-18 14:23:05 [RateCDR] => 1 ) [2024-12-18 14:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 11:23:05' and `end` < '2024-12-18 14:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 14:23:22] Production.INFO: count ==4446 [2024-12-18 14:23:24] Production.ERROR: pbx CDR StartTime 2024-12-18 11:23:05 - End Time 2024-12-18 14:23:05 [2024-12-18 14:23:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 14:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048738', 'tblTempUsageDetail_20' ) start [2024-12-18 14:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048738', 'tblTempUsageDetail_20' ) end [2024-12-18 14:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048738', 'tblTempVendorCDR_20' ) start [2024-12-18 14:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048738', 'tblTempVendorCDR_20' ) end [2024-12-18 14:23:24] Production.INFO: ProcessCDR(1,14048738,1,1,2) [2024-12-18 14:23:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:23:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:23:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:23:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048738', 'tblTempUsageDetail_20' ) start [2024-12-18 14:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048738', 'tblTempUsageDetail_20' ) end [2024-12-18 14:23:28] Production.ERROR: pbx prc_insertCDR start [2024-12-18 14:23:28] Production.ERROR: pbx prc_insertCDR end [2024-12-18 14:23:28] Production.INFO: ==27816== Releasing lock... [2024-12-18 14:23:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 14:23:28] Production.INFO: 61.25 MB #Memory Used# [2024-12-18 14:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 11:24:05 [end_date_ymd] => 2024-12-18 14:24:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 11:24:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 14:24:21] Production.INFO: count ==4439 [2024-12-18 14:24:23] Production.ERROR: pbx CDR StartTime 2024-12-18 11:24:05 - End Time 2024-12-18 14:24:05 [2024-12-18 14:24:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 14:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048743', 'tblTempUsageDetail_20' ) start [2024-12-18 14:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048743', 'tblTempUsageDetail_20' ) end [2024-12-18 14:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048743', 'tblTempVendorCDR_20' ) start [2024-12-18 14:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048743', 'tblTempVendorCDR_20' ) end [2024-12-18 14:24:23] Production.INFO: ProcessCDR(1,14048743,1,1,2) [2024-12-18 14:24:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:24:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:24:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048743', 'tblTempUsageDetail_20' ) start [2024-12-18 14:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048743', 'tblTempUsageDetail_20' ) end [2024-12-18 14:24:28] Production.ERROR: pbx prc_insertCDR start [2024-12-18 14:24:28] Production.ERROR: pbx prc_insertCDR end [2024-12-18 14:24:28] Production.INFO: ==27899== Releasing lock... [2024-12-18 14:24:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 14:24:28] Production.INFO: 61.25 MB #Memory Used# [2024-12-18 14:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 11:25:04 [end_date_ymd] => 2024-12-18 14:25:04 [RateCDR] => 1 ) [2024-12-18 14: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` >= '2024-12-18 11:25:04' and `end` < '2024-12-18 14: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 ,'') [2024-12-18 14:25:19] Production.INFO: count ==4470 [2024-12-18 14:25:21] Production.ERROR: pbx CDR StartTime 2024-12-18 11:25:04 - End Time 2024-12-18 14:25:04 [2024-12-18 14:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048748', 'tblTempUsageDetail_20' ) start [2024-12-18 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048748', 'tblTempUsageDetail_20' ) end [2024-12-18 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048748', 'tblTempVendorCDR_20' ) start [2024-12-18 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048748', 'tblTempVendorCDR_20' ) end [2024-12-18 14:25:21] Production.INFO: ProcessCDR(1,14048748,1,1,2) [2024-12-18 14:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048748', 'tblTempUsageDetail_20' ) start [2024-12-18 14:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048748', 'tblTempUsageDetail_20' ) end [2024-12-18 14:25:25] Production.ERROR: pbx prc_insertCDR start [2024-12-18 14:25:25] Production.ERROR: pbx prc_insertCDR end [2024-12-18 14:25:25] Production.INFO: ==27985== Releasing lock... [2024-12-18 14:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 14:25:25] Production.INFO: 61.5 MB #Memory Used# [2024-12-18 14:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 11:26:05 [end_date_ymd] => 2024-12-18 14:26:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 11:26:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 14:26:27] Production.INFO: count ==4483 [2024-12-18 14:26:28] Production.ERROR: pbx CDR StartTime 2024-12-18 11:26:05 - End Time 2024-12-18 14:26:05 [2024-12-18 14:26:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 14:26:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048753', 'tblTempUsageDetail_20' ) start [2024-12-18 14:26:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048753', 'tblTempUsageDetail_20' ) end [2024-12-18 14:26:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048753', 'tblTempVendorCDR_20' ) start [2024-12-18 14:26:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048753', 'tblTempVendorCDR_20' ) end [2024-12-18 14:26:29] Production.INFO: ProcessCDR(1,14048753,1,1,2) [2024-12-18 14:26:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:26:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:26:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:26:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:26:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048753', 'tblTempUsageDetail_20' ) start [2024-12-18 14:26:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048753', 'tblTempUsageDetail_20' ) end [2024-12-18 14:26:33] Production.ERROR: pbx prc_insertCDR start [2024-12-18 14:26:33] Production.ERROR: pbx prc_insertCDR end [2024-12-18 14:26:33] Production.INFO: ==28072== Releasing lock... [2024-12-18 14:26:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 14:26:33] Production.INFO: 61.5 MB #Memory Used# [2024-12-18 14:27:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 11:27:04 [end_date_ymd] => 2024-12-18 14:27:04 [RateCDR] => 1 ) [2024-12-18 14:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 11:27:04' and `end` < '2024-12-18 14:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 14:27:21] Production.INFO: count ==4481 [2024-12-18 14:27:23] Production.ERROR: pbx CDR StartTime 2024-12-18 11:27:04 - End Time 2024-12-18 14:27:04 [2024-12-18 14:27:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 14:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048758', 'tblTempUsageDetail_20' ) start [2024-12-18 14:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048758', 'tblTempUsageDetail_20' ) end [2024-12-18 14:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048758', 'tblTempVendorCDR_20' ) start [2024-12-18 14:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048758', 'tblTempVendorCDR_20' ) end [2024-12-18 14:27:23] Production.INFO: ProcessCDR(1,14048758,1,1,2) [2024-12-18 14:27:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:27:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:27:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:27:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048758', 'tblTempUsageDetail_20' ) start [2024-12-18 14:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048758', 'tblTempUsageDetail_20' ) end [2024-12-18 14:27:28] Production.ERROR: pbx prc_insertCDR start [2024-12-18 14:27:28] Production.ERROR: pbx prc_insertCDR end [2024-12-18 14:27:28] Production.INFO: ==28154== Releasing lock... [2024-12-18 14:27:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 14:27:28] Production.INFO: 61.5 MB #Memory Used# [2024-12-18 14:28:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 11:28:04 [end_date_ymd] => 2024-12-18 14:28:04 [RateCDR] => 1 ) [2024-12-18 14:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 11:28:04' and `end` < '2024-12-18 14:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 14:28:29] Production.INFO: count ==4483 [2024-12-18 14:28:31] Production.ERROR: pbx CDR StartTime 2024-12-18 11:28:04 - End Time 2024-12-18 14:28:04 [2024-12-18 14:28:31] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 14:28:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048763', 'tblTempUsageDetail_20' ) start [2024-12-18 14:28:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048763', 'tblTempUsageDetail_20' ) end [2024-12-18 14:28:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048763', 'tblTempVendorCDR_20' ) start [2024-12-18 14:28:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048763', 'tblTempVendorCDR_20' ) end [2024-12-18 14:28:31] Production.INFO: ProcessCDR(1,14048763,1,1,2) [2024-12-18 14:28:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:28:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:28:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:28:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:28:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048763', 'tblTempUsageDetail_20' ) start [2024-12-18 14:28:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048763', 'tblTempUsageDetail_20' ) end [2024-12-18 14:28:36] Production.ERROR: pbx prc_insertCDR start [2024-12-18 14:28:36] Production.ERROR: pbx prc_insertCDR end [2024-12-18 14:28:36] Production.INFO: ==28242== Releasing lock... [2024-12-18 14:28:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 14:28:36] Production.INFO: 61.5 MB #Memory Used# [2024-12-18 14:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 11:29:05 [end_date_ymd] => 2024-12-18 14:29:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 11:29:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 14:29:27] Production.INFO: count ==4476 [2024-12-18 14:29:29] Production.ERROR: pbx CDR StartTime 2024-12-18 11:29:05 - End Time 2024-12-18 14:29:05 [2024-12-18 14:29:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 14:29:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048768', 'tblTempUsageDetail_20' ) start [2024-12-18 14:29:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048768', 'tblTempUsageDetail_20' ) end [2024-12-18 14:29:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048768', 'tblTempVendorCDR_20' ) start [2024-12-18 14:29:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048768', 'tblTempVendorCDR_20' ) end [2024-12-18 14:29:29] Production.INFO: ProcessCDR(1,14048768,1,1,2) [2024-12-18 14:29:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:29:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:29:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:29:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:29:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048768', 'tblTempUsageDetail_20' ) start [2024-12-18 14:29:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048768', 'tblTempUsageDetail_20' ) end [2024-12-18 14:29:34] Production.ERROR: pbx prc_insertCDR start [2024-12-18 14:29:34] Production.ERROR: pbx prc_insertCDR end [2024-12-18 14:29:34] Production.INFO: ==28327== Releasing lock... [2024-12-18 14:29:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 14:29:34] Production.INFO: 61.5 MB #Memory Used# [2024-12-18 14:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 11:30:05 [end_date_ymd] => 2024-12-18 14:30:05 [RateCDR] => 1 ) [2024-12-18 14:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 11:30:05' and `end` < '2024-12-18 14:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 14:30:25] Production.INFO: count ==4460 [2024-12-18 14:30:27] Production.ERROR: pbx CDR StartTime 2024-12-18 11:30:05 - End Time 2024-12-18 14:30:05 [2024-12-18 14:30:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 14:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048772', 'tblTempUsageDetail_20' ) start [2024-12-18 14:30:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048772', 'tblTempUsageDetail_20' ) end [2024-12-18 14:30:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048772', 'tblTempVendorCDR_20' ) start [2024-12-18 14:30:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048772', 'tblTempVendorCDR_20' ) end [2024-12-18 14:30:28] Production.INFO: ProcessCDR(1,14048772,1,1,2) [2024-12-18 14:30:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:30:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:30:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:30:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:30:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048772', 'tblTempUsageDetail_20' ) start [2024-12-18 14:30:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048772', 'tblTempUsageDetail_20' ) end [2024-12-18 14:30:33] Production.ERROR: pbx prc_insertCDR start [2024-12-18 14:30:33] Production.ERROR: pbx prc_insertCDR end [2024-12-18 14:30:33] Production.INFO: ==28414== Releasing lock... [2024-12-18 14:30:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 14:30:33] Production.INFO: 61.5 MB #Memory Used# [2024-12-18 14:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 11:31:04 [end_date_ymd] => 2024-12-18 14:31:04 [RateCDR] => 1 ) [2024-12-18 14:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 11:31:04' and `end` < '2024-12-18 14:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 14:31:21] Production.INFO: count ==4498 [2024-12-18 14:31:22] Production.ERROR: pbx CDR StartTime 2024-12-18 11:31:04 - End Time 2024-12-18 14:31:04 [2024-12-18 14:31:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 14:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048779', 'tblTempUsageDetail_20' ) start [2024-12-18 14:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048779', 'tblTempUsageDetail_20' ) end [2024-12-18 14:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048779', 'tblTempVendorCDR_20' ) start [2024-12-18 14:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048779', 'tblTempVendorCDR_20' ) end [2024-12-18 14:31:23] Production.INFO: ProcessCDR(1,14048779,1,1,2) [2024-12-18 14:31:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:31:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:31:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048779', 'tblTempUsageDetail_20' ) start [2024-12-18 14:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048779', 'tblTempUsageDetail_20' ) end [2024-12-18 14:31:27] Production.ERROR: pbx prc_insertCDR start [2024-12-18 14:31:27] Production.ERROR: pbx prc_insertCDR end [2024-12-18 14:31:27] Production.INFO: ==28501== Releasing lock... [2024-12-18 14:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 14:31:27] Production.INFO: 61.75 MB #Memory Used# [2024-12-18 14:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 11:32:05 [end_date_ymd] => 2024-12-18 14:32:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 11:32:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 14:32:22] Production.INFO: count ==4520 [2024-12-18 14:32:24] Production.ERROR: pbx CDR StartTime 2024-12-18 11:32:05 - End Time 2024-12-18 14:32:05 [2024-12-18 14:32:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 14:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048784', 'tblTempUsageDetail_20' ) start [2024-12-18 14:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048784', 'tblTempUsageDetail_20' ) end [2024-12-18 14:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048784', 'tblTempVendorCDR_20' ) start [2024-12-18 14:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048784', 'tblTempVendorCDR_20' ) end [2024-12-18 14:32:24] Production.INFO: ProcessCDR(1,14048784,1,1,2) [2024-12-18 14:32:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:32:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:32:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:32:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:32:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048784', 'tblTempUsageDetail_20' ) start [2024-12-18 14:32:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048784', 'tblTempUsageDetail_20' ) end [2024-12-18 14:32:29] Production.ERROR: pbx prc_insertCDR start [2024-12-18 14:32:29] Production.ERROR: pbx prc_insertCDR end [2024-12-18 14:32:29] Production.INFO: ==28586== Releasing lock... [2024-12-18 14:32:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 14:32:29] Production.INFO: 61.75 MB #Memory Used# [2024-12-18 14:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 11:33:04 [end_date_ymd] => 2024-12-18 14:33:04 [RateCDR] => 1 ) [2024-12-18 14:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 11:33:04' and `end` < '2024-12-18 14:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 14:33:19] Production.INFO: count ==4514 [2024-12-18 14:33:20] Production.ERROR: pbx CDR StartTime 2024-12-18 11:33:04 - End Time 2024-12-18 14:33:04 [2024-12-18 14:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 14:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048789', 'tblTempUsageDetail_20' ) start [2024-12-18 14:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048789', 'tblTempUsageDetail_20' ) end [2024-12-18 14:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048789', 'tblTempVendorCDR_20' ) start [2024-12-18 14:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048789', 'tblTempVendorCDR_20' ) end [2024-12-18 14:33:21] Production.INFO: ProcessCDR(1,14048789,1,1,2) [2024-12-18 14:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048789', 'tblTempUsageDetail_20' ) start [2024-12-18 14:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048789', 'tblTempUsageDetail_20' ) end [2024-12-18 14:33:25] Production.ERROR: pbx prc_insertCDR start [2024-12-18 14:33:25] Production.ERROR: pbx prc_insertCDR end [2024-12-18 14:33:25] Production.INFO: ==28672== Releasing lock... [2024-12-18 14:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 14:33:25] Production.INFO: 61.75 MB #Memory Used# [2024-12-18 14:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 11:34:05 [end_date_ymd] => 2024-12-18 14:34:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 11:34:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 14:34:21] Production.INFO: count ==4531 [2024-12-18 14:34:23] Production.ERROR: pbx CDR StartTime 2024-12-18 11:34:05 - End Time 2024-12-18 14:34:05 [2024-12-18 14:34:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 14:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048794', 'tblTempUsageDetail_20' ) start [2024-12-18 14:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048794', 'tblTempUsageDetail_20' ) end [2024-12-18 14:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048794', 'tblTempVendorCDR_20' ) start [2024-12-18 14:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048794', 'tblTempVendorCDR_20' ) end [2024-12-18 14:34:23] Production.INFO: ProcessCDR(1,14048794,1,1,2) [2024-12-18 14:34:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:34:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:34:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:34:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048794', 'tblTempUsageDetail_20' ) start [2024-12-18 14:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048794', 'tblTempUsageDetail_20' ) end [2024-12-18 14:34:28] Production.ERROR: pbx prc_insertCDR start [2024-12-18 14:34:28] Production.ERROR: pbx prc_insertCDR end [2024-12-18 14:34:28] Production.INFO: ==28757== Releasing lock... [2024-12-18 14:34:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 14:34:28] Production.INFO: 62 MB #Memory Used# [2024-12-18 14:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 11:35:05 [end_date_ymd] => 2024-12-18 14:35:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 11:35:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 14:35:25] Production.INFO: count ==4536 [2024-12-18 14:35:27] Production.ERROR: pbx CDR StartTime 2024-12-18 11:35:05 - End Time 2024-12-18 14:35:05 [2024-12-18 14:35:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 14:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048799', 'tblTempUsageDetail_20' ) start [2024-12-18 14:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048799', 'tblTempUsageDetail_20' ) end [2024-12-18 14:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048799', 'tblTempVendorCDR_20' ) start [2024-12-18 14:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048799', 'tblTempVendorCDR_20' ) end [2024-12-18 14:35:27] Production.INFO: ProcessCDR(1,14048799,1,1,2) [2024-12-18 14:35:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:35:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:35:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:35:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:35:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048799', 'tblTempUsageDetail_20' ) start [2024-12-18 14:35:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048799', 'tblTempUsageDetail_20' ) end [2024-12-18 14:35:32] Production.ERROR: pbx prc_insertCDR start [2024-12-18 14:35:32] Production.ERROR: pbx prc_insertCDR end [2024-12-18 14:35:32] Production.INFO: ==28853== Releasing lock... [2024-12-18 14:35:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 14:35:32] Production.INFO: 62 MB #Memory Used# [2024-12-18 14:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 11:36:05 [end_date_ymd] => 2024-12-18 14:36:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 11:36:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 14:36:32] Production.INFO: count ==4527 [2024-12-18 14:36:33] Production.ERROR: pbx CDR StartTime 2024-12-18 11:36:05 - End Time 2024-12-18 14:36:05 [2024-12-18 14:36:33] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 14:36:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048804', 'tblTempUsageDetail_20' ) start [2024-12-18 14:36:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048804', 'tblTempUsageDetail_20' ) end [2024-12-18 14:36:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048804', 'tblTempVendorCDR_20' ) start [2024-12-18 14:36:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048804', 'tblTempVendorCDR_20' ) end [2024-12-18 14:36:34] Production.INFO: ProcessCDR(1,14048804,1,1,2) [2024-12-18 14:36:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:36:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:36:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:36:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:36:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048804', 'tblTempUsageDetail_20' ) start [2024-12-18 14:36:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048804', 'tblTempUsageDetail_20' ) end [2024-12-18 14:36:38] Production.ERROR: pbx prc_insertCDR start [2024-12-18 14:36:39] Production.ERROR: pbx prc_insertCDR end [2024-12-18 14:36:39] Production.INFO: ==28939== Releasing lock... [2024-12-18 14:36:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 14:36:39] Production.INFO: 62 MB #Memory Used# [2024-12-18 14:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 11:37:05 [end_date_ymd] => 2024-12-18 14:37:05 [RateCDR] => 1 ) [2024-12-18 14:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 11:37:05' and `end` < '2024-12-18 14:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 14:37:22] Production.INFO: count ==4562 [2024-12-18 14:37:24] Production.ERROR: pbx CDR StartTime 2024-12-18 11:37:05 - End Time 2024-12-18 14:37:05 [2024-12-18 14:37:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 14:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048809', 'tblTempUsageDetail_20' ) start [2024-12-18 14:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048809', 'tblTempUsageDetail_20' ) end [2024-12-18 14:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048809', 'tblTempVendorCDR_20' ) start [2024-12-18 14:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048809', 'tblTempVendorCDR_20' ) end [2024-12-18 14:37:24] Production.INFO: ProcessCDR(1,14048809,1,1,2) [2024-12-18 14:37:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:37:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:37:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:37:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048809', 'tblTempUsageDetail_20' ) start [2024-12-18 14:37:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048809', 'tblTempUsageDetail_20' ) end [2024-12-18 14:37:29] Production.ERROR: pbx prc_insertCDR start [2024-12-18 14:37:29] Production.ERROR: pbx prc_insertCDR end [2024-12-18 14:37:29] Production.INFO: ==29025== Releasing lock... [2024-12-18 14:37:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 14:37:29] Production.INFO: 62.25 MB #Memory Used# [2024-12-18 14:38:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 11:38:04 [end_date_ymd] => 2024-12-18 14:38:04 [RateCDR] => 1 ) [2024-12-18 14:38:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 11:38:04' and `end` < '2024-12-18 14:38:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 14:38:24] Production.INFO: count ==4562 [2024-12-18 14:38:26] Production.ERROR: pbx CDR StartTime 2024-12-18 11:38:04 - End Time 2024-12-18 14:38:04 [2024-12-18 14:38:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 14:38:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048814', 'tblTempUsageDetail_20' ) start [2024-12-18 14:38:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048814', 'tblTempUsageDetail_20' ) end [2024-12-18 14:38:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048814', 'tblTempVendorCDR_20' ) start [2024-12-18 14:38:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048814', 'tblTempVendorCDR_20' ) end [2024-12-18 14:38:26] Production.INFO: ProcessCDR(1,14048814,1,1,2) [2024-12-18 14:38:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:38:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:38:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:38:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:38:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048814', 'tblTempUsageDetail_20' ) start [2024-12-18 14:38:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048814', 'tblTempUsageDetail_20' ) end [2024-12-18 14:38:31] Production.ERROR: pbx prc_insertCDR start [2024-12-18 14:38:31] Production.ERROR: pbx prc_insertCDR end [2024-12-18 14:38:31] Production.INFO: ==29154== Releasing lock... [2024-12-18 14:38:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 14:38:31] Production.INFO: 62.25 MB #Memory Used# [2024-12-18 14:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 11:39:05 [end_date_ymd] => 2024-12-18 14:39:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 11:39:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 14:39:23] Production.INFO: count ==4553 [2024-12-18 14:39:25] Production.ERROR: pbx CDR StartTime 2024-12-18 11:39:05 - End Time 2024-12-18 14:39:05 [2024-12-18 14:39:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 14:39:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048819', 'tblTempUsageDetail_20' ) start [2024-12-18 14:39:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048819', 'tblTempUsageDetail_20' ) end [2024-12-18 14:39:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048819', 'tblTempVendorCDR_20' ) start [2024-12-18 14:39:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048819', 'tblTempVendorCDR_20' ) end [2024-12-18 14:39:25] Production.INFO: ProcessCDR(1,14048819,1,1,2) [2024-12-18 14:39:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:39:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:39:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:39:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:39:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048819', 'tblTempUsageDetail_20' ) start [2024-12-18 14:39:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048819', 'tblTempUsageDetail_20' ) end [2024-12-18 14:39:29] Production.ERROR: pbx prc_insertCDR start [2024-12-18 14:39:29] Production.ERROR: pbx prc_insertCDR end [2024-12-18 14:39:29] Production.INFO: ==29242== Releasing lock... [2024-12-18 14:39:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 14:39:29] Production.INFO: 62 MB #Memory Used# [2024-12-18 14:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 11:40:05 [end_date_ymd] => 2024-12-18 14:40:05 [RateCDR] => 1 ) [2024-12-18 14: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` >= '2024-12-18 11:40:05' and `end` < '2024-12-18 14: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 ,'') [2024-12-18 14:40:24] Production.INFO: count ==4565 [2024-12-18 14:40:25] Production.ERROR: pbx CDR StartTime 2024-12-18 11:40:05 - End Time 2024-12-18 14:40:05 [2024-12-18 14:40:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 14:40:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048825', 'tblTempUsageDetail_20' ) start [2024-12-18 14:40:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048825', 'tblTempUsageDetail_20' ) end [2024-12-18 14:40:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048825', 'tblTempVendorCDR_20' ) start [2024-12-18 14:40:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048825', 'tblTempVendorCDR_20' ) end [2024-12-18 14:40:26] Production.INFO: ProcessCDR(1,14048825,1,1,2) [2024-12-18 14:40:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:40:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:40:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:40:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:40:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048825', 'tblTempUsageDetail_20' ) start [2024-12-18 14:40:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048825', 'tblTempUsageDetail_20' ) end [2024-12-18 14:40:30] Production.ERROR: pbx prc_insertCDR start [2024-12-18 14:40:30] Production.ERROR: pbx prc_insertCDR end [2024-12-18 14:40:30] Production.INFO: ==29327== Releasing lock... [2024-12-18 14:40:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 14:40:30] Production.INFO: 62.25 MB #Memory Used# [2024-12-18 14:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 11:41:05 [end_date_ymd] => 2024-12-18 14:41:05 [RateCDR] => 1 ) [2024-12-18 14:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 11:41:05' and `end` < '2024-12-18 14:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 14:41:20] Production.INFO: count ==4597 [2024-12-18 14:41:21] Production.ERROR: pbx CDR StartTime 2024-12-18 11:41:05 - End Time 2024-12-18 14:41:05 [2024-12-18 14:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 14:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048830', 'tblTempUsageDetail_20' ) start [2024-12-18 14:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048830', 'tblTempUsageDetail_20' ) end [2024-12-18 14:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048830', 'tblTempVendorCDR_20' ) start [2024-12-18 14:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048830', 'tblTempVendorCDR_20' ) end [2024-12-18 14:41:22] Production.INFO: ProcessCDR(1,14048830,1,1,2) [2024-12-18 14:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048830', 'tblTempUsageDetail_20' ) start [2024-12-18 14:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048830', 'tblTempUsageDetail_20' ) end [2024-12-18 14:41:26] Production.ERROR: pbx prc_insertCDR start [2024-12-18 14:41:26] Production.ERROR: pbx prc_insertCDR end [2024-12-18 14:41:26] Production.INFO: ==29415== Releasing lock... [2024-12-18 14:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 14:41:26] Production.INFO: 62.5 MB #Memory Used# [2024-12-18 14:42:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 11:42:04 [end_date_ymd] => 2024-12-18 14:42:04 [RateCDR] => 1 ) [2024-12-18 14:42:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 11:42:04' and `end` < '2024-12-18 14:42:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 14:42:21] Production.INFO: count ==4593 [2024-12-18 14:42:23] Production.ERROR: pbx CDR StartTime 2024-12-18 11:42:04 - End Time 2024-12-18 14:42:04 [2024-12-18 14:42:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 14:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048835', 'tblTempUsageDetail_20' ) start [2024-12-18 14:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048835', 'tblTempUsageDetail_20' ) end [2024-12-18 14:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048835', 'tblTempVendorCDR_20' ) start [2024-12-18 14:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048835', 'tblTempVendorCDR_20' ) end [2024-12-18 14:42:23] Production.INFO: ProcessCDR(1,14048835,1,1,2) [2024-12-18 14:42:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:42:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:42:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:42:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048835', 'tblTempUsageDetail_20' ) start [2024-12-18 14:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048835', 'tblTempUsageDetail_20' ) end [2024-12-18 14:42:28] Production.ERROR: pbx prc_insertCDR start [2024-12-18 14:42:28] Production.ERROR: pbx prc_insertCDR end [2024-12-18 14:42:28] Production.INFO: ==29497== Releasing lock... [2024-12-18 14:42:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 14:42:28] Production.INFO: 62.75 MB #Memory Used# [2024-12-18 14:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 11:43:05 [end_date_ymd] => 2024-12-18 14:43:05 [RateCDR] => 1 ) [2024-12-18 14:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 11:43:05' and `end` < '2024-12-18 14:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 14:43:19] Production.INFO: count ==4601 [2024-12-18 14:43:21] Production.ERROR: pbx CDR StartTime 2024-12-18 11:43:05 - End Time 2024-12-18 14:43:05 [2024-12-18 14:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 14:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048840', 'tblTempUsageDetail_20' ) start [2024-12-18 14:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048840', 'tblTempUsageDetail_20' ) end [2024-12-18 14:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048840', 'tblTempVendorCDR_20' ) start [2024-12-18 14:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048840', 'tblTempVendorCDR_20' ) end [2024-12-18 14:43:21] Production.INFO: ProcessCDR(1,14048840,1,1,2) [2024-12-18 14:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048840', 'tblTempUsageDetail_20' ) start [2024-12-18 14:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048840', 'tblTempUsageDetail_20' ) end [2024-12-18 14:43:26] Production.ERROR: pbx prc_insertCDR start [2024-12-18 14:43:26] Production.ERROR: pbx prc_insertCDR end [2024-12-18 14:43:26] Production.INFO: ==29578== Releasing lock... [2024-12-18 14:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 14:43:26] Production.INFO: 62.5 MB #Memory Used# [2024-12-18 14:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 11:44:05 [end_date_ymd] => 2024-12-18 14:44:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 11:44:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 14:44:19] Production.INFO: count ==4658 [2024-12-18 14:44:21] Production.ERROR: pbx CDR StartTime 2024-12-18 11:44:05 - End Time 2024-12-18 14:44:05 [2024-12-18 14:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 14:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048845', 'tblTempUsageDetail_20' ) start [2024-12-18 14:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048845', 'tblTempUsageDetail_20' ) end [2024-12-18 14:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048845', 'tblTempVendorCDR_20' ) start [2024-12-18 14:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048845', 'tblTempVendorCDR_20' ) end [2024-12-18 14:44:21] Production.INFO: ProcessCDR(1,14048845,1,1,2) [2024-12-18 14:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048845', 'tblTempUsageDetail_20' ) start [2024-12-18 14:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048845', 'tblTempUsageDetail_20' ) end [2024-12-18 14:44:26] Production.ERROR: pbx prc_insertCDR start [2024-12-18 14:44:26] Production.ERROR: pbx prc_insertCDR end [2024-12-18 14:44:26] Production.INFO: ==29662== Releasing lock... [2024-12-18 14:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 14:44:26] Production.INFO: 63 MB #Memory Used# [2024-12-18 14:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 11:45:05 [end_date_ymd] => 2024-12-18 14:45:05 [RateCDR] => 1 ) [2024-12-18 14:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 11:45:05' and `end` < '2024-12-18 14:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 14:45:25] Production.INFO: count ==4675 [2024-12-18 14:45:27] Production.ERROR: pbx CDR StartTime 2024-12-18 11:45:05 - End Time 2024-12-18 14:45:05 [2024-12-18 14:45:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 14:45:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048850', 'tblTempUsageDetail_20' ) start [2024-12-18 14:45:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048850', 'tblTempUsageDetail_20' ) end [2024-12-18 14:45:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048850', 'tblTempVendorCDR_20' ) start [2024-12-18 14:45:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048850', 'tblTempVendorCDR_20' ) end [2024-12-18 14:45:27] Production.INFO: ProcessCDR(1,14048850,1,1,2) [2024-12-18 14:45:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:45:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:45:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:45:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:45:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048850', 'tblTempUsageDetail_20' ) start [2024-12-18 14:45:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048850', 'tblTempUsageDetail_20' ) end [2024-12-18 14:45:32] Production.ERROR: pbx prc_insertCDR start [2024-12-18 14:45:32] Production.ERROR: pbx prc_insertCDR end [2024-12-18 14:45:32] Production.INFO: ==29743== Releasing lock... [2024-12-18 14:45:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 14:45:32] Production.INFO: 63 MB #Memory Used# [2024-12-18 14:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 11:46:05 [end_date_ymd] => 2024-12-18 14:46:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 11:46:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 14:46:22] Production.INFO: count ==4675 [2024-12-18 14:46:24] Production.ERROR: pbx CDR StartTime 2024-12-18 11:46:05 - End Time 2024-12-18 14:46:05 [2024-12-18 14:46:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 14:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048855', 'tblTempUsageDetail_20' ) start [2024-12-18 14:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048855', 'tblTempUsageDetail_20' ) end [2024-12-18 14:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048855', 'tblTempVendorCDR_20' ) start [2024-12-18 14:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048855', 'tblTempVendorCDR_20' ) end [2024-12-18 14:46:24] Production.INFO: ProcessCDR(1,14048855,1,1,2) [2024-12-18 14:46:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:46:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:46:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:46:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:46:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048855', 'tblTempUsageDetail_20' ) start [2024-12-18 14:46:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048855', 'tblTempUsageDetail_20' ) end [2024-12-18 14:46:29] Production.ERROR: pbx prc_insertCDR start [2024-12-18 14:46:29] Production.ERROR: pbx prc_insertCDR end [2024-12-18 14:46:29] Production.INFO: ==29831== Releasing lock... [2024-12-18 14:46:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 14:46:29] Production.INFO: 63 MB #Memory Used# [2024-12-18 14:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 11:47:05 [end_date_ymd] => 2024-12-18 14:47:05 [RateCDR] => 1 ) [2024-12-18 14:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 11:47:05' and `end` < '2024-12-18 14:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 14:47:22] Production.INFO: count ==4684 [2024-12-18 14:47:24] Production.ERROR: pbx CDR StartTime 2024-12-18 11:47:05 - End Time 2024-12-18 14:47:05 [2024-12-18 14:47:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 14:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048860', 'tblTempUsageDetail_20' ) start [2024-12-18 14:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048860', 'tblTempUsageDetail_20' ) end [2024-12-18 14:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048860', 'tblTempVendorCDR_20' ) start [2024-12-18 14:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048860', 'tblTempVendorCDR_20' ) end [2024-12-18 14:47:24] Production.INFO: ProcessCDR(1,14048860,1,1,2) [2024-12-18 14:47:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:47:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:47:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:47:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048860', 'tblTempUsageDetail_20' ) start [2024-12-18 14:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048860', 'tblTempUsageDetail_20' ) end [2024-12-18 14:47:29] Production.ERROR: pbx prc_insertCDR start [2024-12-18 14:47:29] Production.ERROR: pbx prc_insertCDR end [2024-12-18 14:47:29] Production.INFO: ==29915== Releasing lock... [2024-12-18 14:47:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 14:47:29] Production.INFO: 63 MB #Memory Used# [2024-12-18 14:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 11:48:05 [end_date_ymd] => 2024-12-18 14:48:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 11:48:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 14:48:33] Production.INFO: count ==4683 [2024-12-18 14:48:35] Production.ERROR: pbx CDR StartTime 2024-12-18 11:48:05 - End Time 2024-12-18 14:48:05 [2024-12-18 14:48:35] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 14:48:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048865', 'tblTempUsageDetail_20' ) start [2024-12-18 14:48:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048865', 'tblTempUsageDetail_20' ) end [2024-12-18 14:48:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048865', 'tblTempVendorCDR_20' ) start [2024-12-18 14:48:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048865', 'tblTempVendorCDR_20' ) end [2024-12-18 14:48:35] Production.INFO: ProcessCDR(1,14048865,1,1,2) [2024-12-18 14:48:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:48:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:48:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:48:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:48:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048865', 'tblTempUsageDetail_20' ) start [2024-12-18 14:48:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048865', 'tblTempUsageDetail_20' ) end [2024-12-18 14:48:40] Production.ERROR: pbx prc_insertCDR start [2024-12-18 14:48:40] Production.ERROR: pbx prc_insertCDR end [2024-12-18 14:48:40] Production.INFO: ==29995== Releasing lock... [2024-12-18 14:48:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 14:48:40] Production.INFO: 63 MB #Memory Used# [2024-12-18 14:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 11:49:04 [end_date_ymd] => 2024-12-18 14:49:04 [RateCDR] => 1 ) [2024-12-18 14:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 11:49:04' and `end` < '2024-12-18 14:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 14:49:26] Production.INFO: count ==4663 [2024-12-18 14:49:28] Production.ERROR: pbx CDR StartTime 2024-12-18 11:49:04 - End Time 2024-12-18 14:49:04 [2024-12-18 14:49:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 14:49:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048870', 'tblTempUsageDetail_20' ) start [2024-12-18 14:49:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048870', 'tblTempUsageDetail_20' ) end [2024-12-18 14:49:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048870', 'tblTempVendorCDR_20' ) start [2024-12-18 14:49:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048870', 'tblTempVendorCDR_20' ) end [2024-12-18 14:49:28] Production.INFO: ProcessCDR(1,14048870,1,1,2) [2024-12-18 14:49:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:49:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:49:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:49:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:49:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048870', 'tblTempUsageDetail_20' ) start [2024-12-18 14:49:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048870', 'tblTempUsageDetail_20' ) end [2024-12-18 14:49:33] Production.ERROR: pbx prc_insertCDR start [2024-12-18 14:49:33] Production.ERROR: pbx prc_insertCDR end [2024-12-18 14:49:33] Production.INFO: ==30077== Releasing lock... [2024-12-18 14:49:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 14:49:33] Production.INFO: 63 MB #Memory Used# [2024-12-18 14:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 11:50:05 [end_date_ymd] => 2024-12-18 14:50:05 [RateCDR] => 1 ) [2024-12-18 14:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 11:50:05' and `end` < '2024-12-18 14:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 14:50:28] Production.INFO: count ==4660 [2024-12-18 14:50:30] Production.ERROR: pbx CDR StartTime 2024-12-18 11:50:05 - End Time 2024-12-18 14:50:05 [2024-12-18 14:50:30] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 14:50:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048875', 'tblTempUsageDetail_20' ) start [2024-12-18 14:50:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048875', 'tblTempUsageDetail_20' ) end [2024-12-18 14:50:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048875', 'tblTempVendorCDR_20' ) start [2024-12-18 14:50:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048875', 'tblTempVendorCDR_20' ) end [2024-12-18 14:50:30] Production.INFO: ProcessCDR(1,14048875,1,1,2) [2024-12-18 14:50:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:50:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:50:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:50:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:50:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048875', 'tblTempUsageDetail_20' ) start [2024-12-18 14:50:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048875', 'tblTempUsageDetail_20' ) end [2024-12-18 14:50:34] Production.ERROR: pbx prc_insertCDR start [2024-12-18 14:50:34] Production.ERROR: pbx prc_insertCDR end [2024-12-18 14:50:34] Production.INFO: ==30168== Releasing lock... [2024-12-18 14:50:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 14:50:34] Production.INFO: 63 MB #Memory Used# [2024-12-18 14:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 11:51:04 [end_date_ymd] => 2024-12-18 14:51:04 [RateCDR] => 1 ) [2024-12-18 14:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 11:51:04' and `end` < '2024-12-18 14:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 14:51:21] Production.INFO: count ==4706 [2024-12-18 14:51:23] Production.ERROR: pbx CDR StartTime 2024-12-18 11:51:04 - End Time 2024-12-18 14:51:04 [2024-12-18 14:51:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 14:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048881', 'tblTempUsageDetail_20' ) start [2024-12-18 14:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048881', 'tblTempUsageDetail_20' ) end [2024-12-18 14:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048881', 'tblTempVendorCDR_20' ) start [2024-12-18 14:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048881', 'tblTempVendorCDR_20' ) end [2024-12-18 14:51:23] Production.INFO: ProcessCDR(1,14048881,1,1,2) [2024-12-18 14:51:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:51:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:51:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:51:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048881', 'tblTempUsageDetail_20' ) start [2024-12-18 14:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048881', 'tblTempUsageDetail_20' ) end [2024-12-18 14:51:27] Production.ERROR: pbx prc_insertCDR start [2024-12-18 14:51:27] Production.ERROR: pbx prc_insertCDR end [2024-12-18 14:51:28] Production.INFO: ==30258== Releasing lock... [2024-12-18 14:51:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 14:51:28] Production.INFO: 63.25 MB #Memory Used# [2024-12-18 14:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 11:52:05 [end_date_ymd] => 2024-12-18 14:52:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 11:52:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 14:52:27] Production.INFO: count ==4701 [2024-12-18 14:52:29] Production.ERROR: pbx CDR StartTime 2024-12-18 11:52:05 - End Time 2024-12-18 14:52:05 [2024-12-18 14:52:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 14:52:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048886', 'tblTempUsageDetail_20' ) start [2024-12-18 14:52:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048886', 'tblTempUsageDetail_20' ) end [2024-12-18 14:52:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048886', 'tblTempVendorCDR_20' ) start [2024-12-18 14:52:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048886', 'tblTempVendorCDR_20' ) end [2024-12-18 14:52:29] Production.INFO: ProcessCDR(1,14048886,1,1,2) [2024-12-18 14:52:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:52:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:52:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:52:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:52:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048886', 'tblTempUsageDetail_20' ) start [2024-12-18 14:52:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048886', 'tblTempUsageDetail_20' ) end [2024-12-18 14:52:33] Production.ERROR: pbx prc_insertCDR start [2024-12-18 14:52:33] Production.ERROR: pbx prc_insertCDR end [2024-12-18 14:52:33] Production.INFO: ==30378== Releasing lock... [2024-12-18 14:52:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 14:52:33] Production.INFO: 63.25 MB #Memory Used# [2024-12-18 14:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 11:53:04 [end_date_ymd] => 2024-12-18 14:53:04 [RateCDR] => 1 ) [2024-12-18 14:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 11:53:04' and `end` < '2024-12-18 14:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 14:53:26] Production.INFO: count ==4711 [2024-12-18 14:53:28] Production.ERROR: pbx CDR StartTime 2024-12-18 11:53:04 - End Time 2024-12-18 14:53:04 [2024-12-18 14:53:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 14:53:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048891', 'tblTempUsageDetail_20' ) start [2024-12-18 14:53:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048891', 'tblTempUsageDetail_20' ) end [2024-12-18 14:53:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048891', 'tblTempVendorCDR_20' ) start [2024-12-18 14:53:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048891', 'tblTempVendorCDR_20' ) end [2024-12-18 14:53:28] Production.INFO: ProcessCDR(1,14048891,1,1,2) [2024-12-18 14:53:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:53:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:53:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:53:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:53:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048891', 'tblTempUsageDetail_20' ) start [2024-12-18 14:53:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048891', 'tblTempUsageDetail_20' ) end [2024-12-18 14:53:33] Production.ERROR: pbx prc_insertCDR start [2024-12-18 14:53:33] Production.ERROR: pbx prc_insertCDR end [2024-12-18 14:53:33] Production.INFO: ==30506== Releasing lock... [2024-12-18 14:53:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 14:53:33] Production.INFO: 63.25 MB #Memory Used# [2024-12-18 14:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 11:54:05 [end_date_ymd] => 2024-12-18 14:54:05 [RateCDR] => 1 ) [2024-12-18 14:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 11:54:05' and `end` < '2024-12-18 14:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 14:54:25] Production.INFO: count ==4711 [2024-12-18 14:54:27] Production.ERROR: pbx CDR StartTime 2024-12-18 11:54:05 - End Time 2024-12-18 14:54:05 [2024-12-18 14:54:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 14:54:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048896', 'tblTempUsageDetail_20' ) start [2024-12-18 14:54:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048896', 'tblTempUsageDetail_20' ) end [2024-12-18 14:54:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048896', 'tblTempVendorCDR_20' ) start [2024-12-18 14:54:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048896', 'tblTempVendorCDR_20' ) end [2024-12-18 14:54:27] Production.INFO: ProcessCDR(1,14048896,1,1,2) [2024-12-18 14:54:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:54:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:54:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:54:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:54:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048896', 'tblTempUsageDetail_20' ) start [2024-12-18 14:54:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048896', 'tblTempUsageDetail_20' ) end [2024-12-18 14:54:32] Production.ERROR: pbx prc_insertCDR start [2024-12-18 14:54:32] Production.ERROR: pbx prc_insertCDR end [2024-12-18 14:54:32] Production.INFO: ==30676== Releasing lock... [2024-12-18 14:54:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 14:54:32] Production.INFO: 63.25 MB #Memory Used# [2024-12-18 14:55:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 11:55:04 [end_date_ymd] => 2024-12-18 14:55:04 [RateCDR] => 1 ) [2024-12-18 14:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 11:55:04' and `end` < '2024-12-18 14:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 14:55:23] Production.INFO: count ==4709 [2024-12-18 14:55:25] Production.ERROR: pbx CDR StartTime 2024-12-18 11:55:04 - End Time 2024-12-18 14:55:04 [2024-12-18 14:55:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 14:55:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048901', 'tblTempUsageDetail_20' ) start [2024-12-18 14:55:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048901', 'tblTempUsageDetail_20' ) end [2024-12-18 14:55:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048901', 'tblTempVendorCDR_20' ) start [2024-12-18 14:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048901', 'tblTempVendorCDR_20' ) end [2024-12-18 14:55:26] Production.INFO: ProcessCDR(1,14048901,1,1,2) [2024-12-18 14:55:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:55:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:55:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:55:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:55:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048901', 'tblTempUsageDetail_20' ) start [2024-12-18 14:55:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048901', 'tblTempUsageDetail_20' ) end [2024-12-18 14:55:30] Production.ERROR: pbx prc_insertCDR start [2024-12-18 14:55:30] Production.ERROR: pbx prc_insertCDR end [2024-12-18 14:55:30] Production.INFO: ==30804== Releasing lock... [2024-12-18 14:55:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 14:55:30] Production.INFO: 63.25 MB #Memory Used# [2024-12-18 14:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 11:56:05 [end_date_ymd] => 2024-12-18 14:56:05 [RateCDR] => 1 ) [2024-12-18 14:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 11:56:05' and `end` < '2024-12-18 14:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 14:56:20] Production.INFO: count ==4710 [2024-12-18 14:56:21] Production.ERROR: pbx CDR StartTime 2024-12-18 11:56:05 - End Time 2024-12-18 14:56:05 [2024-12-18 14:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 14:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048906', 'tblTempUsageDetail_20' ) start [2024-12-18 14:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048906', 'tblTempUsageDetail_20' ) end [2024-12-18 14:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048906', 'tblTempVendorCDR_20' ) start [2024-12-18 14:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048906', 'tblTempVendorCDR_20' ) end [2024-12-18 14:56:21] Production.INFO: ProcessCDR(1,14048906,1,1,2) [2024-12-18 14:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048906', 'tblTempUsageDetail_20' ) start [2024-12-18 14:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048906', 'tblTempUsageDetail_20' ) end [2024-12-18 14:56:26] Production.ERROR: pbx prc_insertCDR start [2024-12-18 14:56:26] Production.ERROR: pbx prc_insertCDR end [2024-12-18 14:56:26] Production.INFO: ==30934== Releasing lock... [2024-12-18 14:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 14:56:26] Production.INFO: 63.25 MB #Memory Used# [2024-12-18 14:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 11:57:05 [end_date_ymd] => 2024-12-18 14:57:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 11:57:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 14:57:18] Production.INFO: count ==4708 [2024-12-18 14:57:20] Production.ERROR: pbx CDR StartTime 2024-12-18 11:57:05 - End Time 2024-12-18 14:57:05 [2024-12-18 14:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 14:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048911', 'tblTempUsageDetail_20' ) start [2024-12-18 14:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048911', 'tblTempUsageDetail_20' ) end [2024-12-18 14:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048911', 'tblTempVendorCDR_20' ) start [2024-12-18 14:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048911', 'tblTempVendorCDR_20' ) end [2024-12-18 14:57:20] Production.INFO: ProcessCDR(1,14048911,1,1,2) [2024-12-18 14:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048911', 'tblTempUsageDetail_20' ) start [2024-12-18 14:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048911', 'tblTempUsageDetail_20' ) end [2024-12-18 14:57:25] Production.ERROR: pbx prc_insertCDR start [2024-12-18 14:57:25] Production.ERROR: pbx prc_insertCDR end [2024-12-18 14:57:25] Production.INFO: ==31062== Releasing lock... [2024-12-18 14:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 14:57:25] Production.INFO: 63.25 MB #Memory Used# [2024-12-18 14:58:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 11:58:04 [end_date_ymd] => 2024-12-18 14:58:04 [RateCDR] => 1 ) [2024-12-18 14: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` >= '2024-12-18 11:58:04' and `end` < '2024-12-18 14: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 ,'') [2024-12-18 14:58:21] Production.INFO: count ==4706 [2024-12-18 14:58:22] Production.ERROR: pbx CDR StartTime 2024-12-18 11:58:04 - End Time 2024-12-18 14:58:04 [2024-12-18 14:58:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 14:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048916', 'tblTempUsageDetail_20' ) start [2024-12-18 14:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048916', 'tblTempUsageDetail_20' ) end [2024-12-18 14:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048916', 'tblTempVendorCDR_20' ) start [2024-12-18 14:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048916', 'tblTempVendorCDR_20' ) end [2024-12-18 14:58:22] Production.INFO: ProcessCDR(1,14048916,1,1,2) [2024-12-18 14:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:58:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:58:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048916', 'tblTempUsageDetail_20' ) start [2024-12-18 14:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048916', 'tblTempUsageDetail_20' ) end [2024-12-18 14:58:27] Production.ERROR: pbx prc_insertCDR start [2024-12-18 14:58:27] Production.ERROR: pbx prc_insertCDR end [2024-12-18 14:58:27] Production.INFO: ==31189== Releasing lock... [2024-12-18 14:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 14:58:27] Production.INFO: 63.25 MB #Memory Used# [2024-12-18 14:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 11:59:05 [end_date_ymd] => 2024-12-18 14:59:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 11:59:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 14:59:23] Production.INFO: count ==4701 [2024-12-18 14:59:25] Production.ERROR: pbx CDR StartTime 2024-12-18 11:59:05 - End Time 2024-12-18 14:59:05 [2024-12-18 14:59:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 14:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048921', 'tblTempUsageDetail_20' ) start [2024-12-18 14:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048921', 'tblTempUsageDetail_20' ) end [2024-12-18 14:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048921', 'tblTempVendorCDR_20' ) start [2024-12-18 14:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048921', 'tblTempVendorCDR_20' ) end [2024-12-18 14:59:25] Production.INFO: ProcessCDR(1,14048921,1,1,2) [2024-12-18 14:59:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:59:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 14:59:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:59:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 14:59:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048921', 'tblTempUsageDetail_20' ) start [2024-12-18 14:59:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048921', 'tblTempUsageDetail_20' ) end [2024-12-18 14:59:30] Production.ERROR: pbx prc_insertCDR start [2024-12-18 14:59:30] Production.ERROR: pbx prc_insertCDR end [2024-12-18 14:59:30] Production.INFO: ==31287== Releasing lock... [2024-12-18 14:59:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 14:59:30] Production.INFO: 63.25 MB #Memory Used# [2024-12-18 15:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 12:00:05 [end_date_ymd] => 2024-12-18 15:00:05 [RateCDR] => 1 ) [2024-12-18 15:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 12:00:05' and `end` < '2024-12-18 15:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 15:00:23] Production.INFO: count ==4700 [2024-12-18 15:00:25] Production.ERROR: pbx CDR StartTime 2024-12-18 12:00:05 - End Time 2024-12-18 15:00:05 [2024-12-18 15:00:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 15:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048926', 'tblTempUsageDetail_20' ) start [2024-12-18 15:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048926', 'tblTempUsageDetail_20' ) end [2024-12-18 15:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048926', 'tblTempVendorCDR_20' ) start [2024-12-18 15:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048926', 'tblTempVendorCDR_20' ) end [2024-12-18 15:00:25] Production.INFO: ProcessCDR(1,14048926,1,1,2) [2024-12-18 15:00:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:00:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:00:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:00:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048926', 'tblTempUsageDetail_20' ) start [2024-12-18 15:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048926', 'tblTempUsageDetail_20' ) end [2024-12-18 15:00:30] Production.ERROR: pbx prc_insertCDR start [2024-12-18 15:00:30] Production.ERROR: pbx prc_insertCDR end [2024-12-18 15:00:30] Production.INFO: ==31385== Releasing lock... [2024-12-18 15:00:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 15:00:30] Production.INFO: 63.25 MB #Memory Used# [2024-12-18 15:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 12:01:05 [end_date_ymd] => 2024-12-18 15:01:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 12:01:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 15:01:19] Production.INFO: count ==4666 [2024-12-18 15:01:21] Production.ERROR: pbx CDR StartTime 2024-12-18 12:01:05 - End Time 2024-12-18 15:01:05 [2024-12-18 15:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 15:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048932', 'tblTempUsageDetail_20' ) start [2024-12-18 15:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048932', 'tblTempUsageDetail_20' ) end [2024-12-18 15:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048932', 'tblTempVendorCDR_20' ) start [2024-12-18 15:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048932', 'tblTempVendorCDR_20' ) end [2024-12-18 15:01:21] Production.INFO: ProcessCDR(1,14048932,1,1,2) [2024-12-18 15:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048932', 'tblTempUsageDetail_20' ) start [2024-12-18 15:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048932', 'tblTempUsageDetail_20' ) end [2024-12-18 15:01:26] Production.ERROR: pbx prc_insertCDR start [2024-12-18 15:01:26] Production.ERROR: pbx prc_insertCDR end [2024-12-18 15:01:26] Production.INFO: ==31495== Releasing lock... [2024-12-18 15:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 15:01:26] Production.INFO: 63 MB #Memory Used# [2024-12-18 15:02:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 12:02:04 [end_date_ymd] => 2024-12-18 15:02:04 [RateCDR] => 1 ) [2024-12-18 15:02:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 12:02:04' and `end` < '2024-12-18 15:02:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 15:02:17] Production.INFO: count ==4658 [2024-12-18 15:02:19] Production.ERROR: pbx CDR StartTime 2024-12-18 12:02:04 - End Time 2024-12-18 15:02:04 [2024-12-18 15:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 15:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048937', 'tblTempUsageDetail_20' ) start [2024-12-18 15:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048937', 'tblTempUsageDetail_20' ) end [2024-12-18 15:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048937', 'tblTempVendorCDR_20' ) start [2024-12-18 15:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048937', 'tblTempVendorCDR_20' ) end [2024-12-18 15:02:19] Production.INFO: ProcessCDR(1,14048937,1,1,2) [2024-12-18 15:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048937', 'tblTempUsageDetail_20' ) start [2024-12-18 15:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048937', 'tblTempUsageDetail_20' ) end [2024-12-18 15:02:23] Production.ERROR: pbx prc_insertCDR start [2024-12-18 15:02:23] Production.ERROR: pbx prc_insertCDR end [2024-12-18 15:02:24] Production.INFO: ==31668== Releasing lock... [2024-12-18 15:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 15:02:24] Production.INFO: 63 MB #Memory Used# [2024-12-18 15:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 12:03:04 [end_date_ymd] => 2024-12-18 15:03:04 [RateCDR] => 1 ) [2024-12-18 15:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 12:03:04' and `end` < '2024-12-18 15:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 15:03:17] Production.INFO: count ==4617 [2024-12-18 15:03:19] Production.ERROR: pbx CDR StartTime 2024-12-18 12:03:04 - End Time 2024-12-18 15:03:04 [2024-12-18 15:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 15:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048942', 'tblTempUsageDetail_20' ) start [2024-12-18 15:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048942', 'tblTempUsageDetail_20' ) end [2024-12-18 15:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048942', 'tblTempVendorCDR_20' ) start [2024-12-18 15:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048942', 'tblTempVendorCDR_20' ) end [2024-12-18 15:03:19] Production.INFO: ProcessCDR(1,14048942,1,1,2) [2024-12-18 15:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048942', 'tblTempUsageDetail_20' ) start [2024-12-18 15:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048942', 'tblTempUsageDetail_20' ) end [2024-12-18 15:03:24] Production.ERROR: pbx prc_insertCDR start [2024-12-18 15:03:24] Production.ERROR: pbx prc_insertCDR end [2024-12-18 15:03:24] Production.INFO: ==31763== Releasing lock... [2024-12-18 15:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 15:03:24] Production.INFO: 62.5 MB #Memory Used# [2024-12-18 15:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 12:04:05 [end_date_ymd] => 2024-12-18 15:04:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 12:04:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 15:04:18] Production.INFO: count ==4603 [2024-12-18 15:04:20] Production.ERROR: pbx CDR StartTime 2024-12-18 12:04:05 - End Time 2024-12-18 15:04:05 [2024-12-18 15:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 15:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048947', 'tblTempUsageDetail_20' ) start [2024-12-18 15:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048947', 'tblTempUsageDetail_20' ) end [2024-12-18 15:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048947', 'tblTempVendorCDR_20' ) start [2024-12-18 15:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048947', 'tblTempVendorCDR_20' ) end [2024-12-18 15:04:20] Production.INFO: ProcessCDR(1,14048947,1,1,2) [2024-12-18 15:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048947', 'tblTempUsageDetail_20' ) start [2024-12-18 15:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048947', 'tblTempUsageDetail_20' ) end [2024-12-18 15:04:25] Production.ERROR: pbx prc_insertCDR start [2024-12-18 15:04:25] Production.ERROR: pbx prc_insertCDR end [2024-12-18 15:04:25] Production.INFO: ==31863== Releasing lock... [2024-12-18 15:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 15:04:25] Production.INFO: 62.5 MB #Memory Used# [2024-12-18 15:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 12:05:04 [end_date_ymd] => 2024-12-18 15:05:04 [RateCDR] => 1 ) [2024-12-18 15: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` >= '2024-12-18 12:05:04' and `end` < '2024-12-18 15: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 ,'') [2024-12-18 15:05:18] Production.INFO: count ==4616 [2024-12-18 15:05:20] Production.ERROR: pbx CDR StartTime 2024-12-18 12:05:04 - End Time 2024-12-18 15:05:04 [2024-12-18 15:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 15:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048952', 'tblTempUsageDetail_20' ) start [2024-12-18 15:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048952', 'tblTempUsageDetail_20' ) end [2024-12-18 15:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048952', 'tblTempVendorCDR_20' ) start [2024-12-18 15:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048952', 'tblTempVendorCDR_20' ) end [2024-12-18 15:05:20] Production.INFO: ProcessCDR(1,14048952,1,1,2) [2024-12-18 15:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048952', 'tblTempUsageDetail_20' ) start [2024-12-18 15:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048952', 'tblTempUsageDetail_20' ) end [2024-12-18 15:05:25] Production.ERROR: pbx prc_insertCDR start [2024-12-18 15:05:25] Production.ERROR: pbx prc_insertCDR end [2024-12-18 15:05:25] Production.INFO: ==32033== Releasing lock... [2024-12-18 15:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 15:05:25] Production.INFO: 62.5 MB #Memory Used# [2024-12-18 15:06:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 12:06:04 [end_date_ymd] => 2024-12-18 15:06:04 [RateCDR] => 1 ) [2024-12-18 15:06:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 12:06:04' and `end` < '2024-12-18 15:06:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 15:06:30] Production.INFO: count ==4624 [2024-12-18 15:06:31] Production.ERROR: pbx CDR StartTime 2024-12-18 12:06:04 - End Time 2024-12-18 15:06:04 [2024-12-18 15:06:31] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 15:06:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048957', 'tblTempUsageDetail_20' ) start [2024-12-18 15:06:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048957', 'tblTempUsageDetail_20' ) end [2024-12-18 15:06:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048957', 'tblTempVendorCDR_20' ) start [2024-12-18 15:06:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048957', 'tblTempVendorCDR_20' ) end [2024-12-18 15:06:31] Production.INFO: ProcessCDR(1,14048957,1,1,2) [2024-12-18 15:06:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:06:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:06:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:06:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:06:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048957', 'tblTempUsageDetail_20' ) start [2024-12-18 15:06:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048957', 'tblTempUsageDetail_20' ) end [2024-12-18 15:06:36] Production.ERROR: pbx prc_insertCDR start [2024-12-18 15:06:36] Production.ERROR: pbx prc_insertCDR end [2024-12-18 15:06:36] Production.INFO: ==32130== Releasing lock... [2024-12-18 15:06:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 15:06:36] Production.INFO: 62.5 MB #Memory Used# [2024-12-18 15:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 12:07:04 [end_date_ymd] => 2024-12-18 15:07:04 [RateCDR] => 1 ) [2024-12-18 15:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 12:07:04' and `end` < '2024-12-18 15:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 15:07:19] Production.INFO: count ==4600 [2024-12-18 15:07:21] Production.ERROR: pbx CDR StartTime 2024-12-18 12:07:04 - End Time 2024-12-18 15:07:04 [2024-12-18 15:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 15:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048962', 'tblTempUsageDetail_20' ) start [2024-12-18 15:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048962', 'tblTempUsageDetail_20' ) end [2024-12-18 15:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048962', 'tblTempVendorCDR_20' ) start [2024-12-18 15:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048962', 'tblTempVendorCDR_20' ) end [2024-12-18 15:07:21] Production.INFO: ProcessCDR(1,14048962,1,1,2) [2024-12-18 15:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048962', 'tblTempUsageDetail_20' ) start [2024-12-18 15:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048962', 'tblTempUsageDetail_20' ) end [2024-12-18 15:07:26] Production.ERROR: pbx prc_insertCDR start [2024-12-18 15:07:26] Production.ERROR: pbx prc_insertCDR end [2024-12-18 15:07:26] Production.INFO: ==32228== Releasing lock... [2024-12-18 15:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 15:07:26] Production.INFO: 62.5 MB #Memory Used# [2024-12-18 15:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 12:08:05 [end_date_ymd] => 2024-12-18 15:08:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 12:08:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 15:08:17] Production.INFO: count ==4575 [2024-12-18 15:08:19] Production.ERROR: pbx CDR StartTime 2024-12-18 12:08:05 - End Time 2024-12-18 15:08:05 [2024-12-18 15:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 15:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048967', 'tblTempUsageDetail_20' ) start [2024-12-18 15:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048967', 'tblTempUsageDetail_20' ) end [2024-12-18 15:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048967', 'tblTempVendorCDR_20' ) start [2024-12-18 15:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048967', 'tblTempVendorCDR_20' ) end [2024-12-18 15:08:19] Production.INFO: ProcessCDR(1,14048967,1,1,2) [2024-12-18 15:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048967', 'tblTempUsageDetail_20' ) start [2024-12-18 15:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048967', 'tblTempUsageDetail_20' ) end [2024-12-18 15:08:24] Production.ERROR: pbx prc_insertCDR start [2024-12-18 15:08:24] Production.ERROR: pbx prc_insertCDR end [2024-12-18 15:08:24] Production.INFO: ==32341== Releasing lock... [2024-12-18 15:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 15:08:24] Production.INFO: 62.25 MB #Memory Used# [2024-12-18 15:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 12:09:04 [end_date_ymd] => 2024-12-18 15:09:04 [RateCDR] => 1 ) [2024-12-18 15:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 12:09:04' and `end` < '2024-12-18 15:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 15:09:17] Production.INFO: count ==4553 [2024-12-18 15:09:19] Production.ERROR: pbx CDR StartTime 2024-12-18 12:09:04 - End Time 2024-12-18 15:09:04 [2024-12-18 15:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 15:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048972', 'tblTempUsageDetail_20' ) start [2024-12-18 15:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048972', 'tblTempUsageDetail_20' ) end [2024-12-18 15:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048972', 'tblTempVendorCDR_20' ) start [2024-12-18 15:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048972', 'tblTempVendorCDR_20' ) end [2024-12-18 15:09:19] Production.INFO: ProcessCDR(1,14048972,1,1,2) [2024-12-18 15:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048972', 'tblTempUsageDetail_20' ) start [2024-12-18 15:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048972', 'tblTempUsageDetail_20' ) end [2024-12-18 15:09:23] Production.ERROR: pbx prc_insertCDR start [2024-12-18 15:09:23] Production.ERROR: pbx prc_insertCDR end [2024-12-18 15:09:23] Production.INFO: ==32538== Releasing lock... [2024-12-18 15:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 15:09:23] Production.INFO: 62 MB #Memory Used# [2024-12-18 15:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 12:10:05 [end_date_ymd] => 2024-12-18 15:10:05 [RateCDR] => 1 ) [2024-12-18 15: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` >= '2024-12-18 12:10:05' and `end` < '2024-12-18 15: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 ,'') [2024-12-18 15:10:22] Production.INFO: count ==4540 [2024-12-18 15:10:24] Production.ERROR: pbx CDR StartTime 2024-12-18 12:10:05 - End Time 2024-12-18 15:10:05 [2024-12-18 15:10:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 15:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048978', 'tblTempUsageDetail_20' ) start [2024-12-18 15:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048978', 'tblTempUsageDetail_20' ) end [2024-12-18 15:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048978', 'tblTempVendorCDR_20' ) start [2024-12-18 15:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048978', 'tblTempVendorCDR_20' ) end [2024-12-18 15:10:24] Production.INFO: ProcessCDR(1,14048978,1,1,2) [2024-12-18 15:10:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:10:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:10:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048978', 'tblTempUsageDetail_20' ) start [2024-12-18 15:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048978', 'tblTempUsageDetail_20' ) end [2024-12-18 15:10:28] Production.ERROR: pbx prc_insertCDR start [2024-12-18 15:10:28] Production.ERROR: pbx prc_insertCDR end [2024-12-18 15:10:28] Production.INFO: ==32633== Releasing lock... [2024-12-18 15:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 15:10:28] Production.INFO: 62 MB #Memory Used# [2024-12-18 15:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 12:11:05 [end_date_ymd] => 2024-12-18 15:11:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 12:11:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 15:11:22] Production.INFO: count ==4516 [2024-12-18 15:11:23] Production.ERROR: pbx CDR StartTime 2024-12-18 12:11:05 - End Time 2024-12-18 15:11:05 [2024-12-18 15:11:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 15:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048983', 'tblTempUsageDetail_20' ) start [2024-12-18 15:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048983', 'tblTempUsageDetail_20' ) end [2024-12-18 15:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048983', 'tblTempVendorCDR_20' ) start [2024-12-18 15:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048983', 'tblTempVendorCDR_20' ) end [2024-12-18 15:11:23] Production.INFO: ProcessCDR(1,14048983,1,1,2) [2024-12-18 15:11:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:11:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:11:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:11:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048983', 'tblTempUsageDetail_20' ) start [2024-12-18 15:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048983', 'tblTempUsageDetail_20' ) end [2024-12-18 15:11:28] Production.ERROR: pbx prc_insertCDR start [2024-12-18 15:11:28] Production.ERROR: pbx prc_insertCDR end [2024-12-18 15:11:28] Production.INFO: ==32735== Releasing lock... [2024-12-18 15:11:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 15:11:28] Production.INFO: 61.75 MB #Memory Used# [2024-12-18 15:12:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 12:12:04 [end_date_ymd] => 2024-12-18 15:12:04 [RateCDR] => 1 ) [2024-12-18 15:12:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 12:12:04' and `end` < '2024-12-18 15:12:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 15:12:21] Production.INFO: count ==4520 [2024-12-18 15:12:23] Production.ERROR: pbx CDR StartTime 2024-12-18 12:12:04 - End Time 2024-12-18 15:12:04 [2024-12-18 15:12:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 15:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048988', 'tblTempUsageDetail_20' ) start [2024-12-18 15:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048988', 'tblTempUsageDetail_20' ) end [2024-12-18 15:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048988', 'tblTempVendorCDR_20' ) start [2024-12-18 15:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048988', 'tblTempVendorCDR_20' ) end [2024-12-18 15:12:23] Production.INFO: ProcessCDR(1,14048988,1,1,2) [2024-12-18 15:12:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:12:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:12:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048988', 'tblTempUsageDetail_20' ) start [2024-12-18 15:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048988', 'tblTempUsageDetail_20' ) end [2024-12-18 15:12:28] Production.ERROR: pbx prc_insertCDR start [2024-12-18 15:12:28] Production.ERROR: pbx prc_insertCDR end [2024-12-18 15:12:28] Production.INFO: ==458== Releasing lock... [2024-12-18 15:12:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 15:12:28] Production.INFO: 61.75 MB #Memory Used# [2024-12-18 15:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 12:13:05 [end_date_ymd] => 2024-12-18 15:13:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 12:13:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 15:13:18] Production.INFO: count ==4541 [2024-12-18 15:13:20] Production.ERROR: pbx CDR StartTime 2024-12-18 12:13:05 - End Time 2024-12-18 15:13:05 [2024-12-18 15:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 15:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048993', 'tblTempUsageDetail_20' ) start [2024-12-18 15:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048993', 'tblTempUsageDetail_20' ) end [2024-12-18 15:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048993', 'tblTempVendorCDR_20' ) start [2024-12-18 15:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048993', 'tblTempVendorCDR_20' ) end [2024-12-18 15:13:20] Production.INFO: ProcessCDR(1,14048993,1,1,2) [2024-12-18 15:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048993', 'tblTempUsageDetail_20' ) start [2024-12-18 15:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048993', 'tblTempUsageDetail_20' ) end [2024-12-18 15:13:25] Production.ERROR: pbx prc_insertCDR start [2024-12-18 15:13:25] Production.ERROR: pbx prc_insertCDR end [2024-12-18 15:13:25] Production.INFO: ==559== Releasing lock... [2024-12-18 15:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 15:13:25] Production.INFO: 62 MB #Memory Used# [2024-12-18 15:14:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 12:14:04 [end_date_ymd] => 2024-12-18 15:14:04 [RateCDR] => 1 ) [2024-12-18 15:14:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 12:14:04' and `end` < '2024-12-18 15:14:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 15:14:25] Production.INFO: count ==4542 [2024-12-18 15:14:27] Production.ERROR: pbx CDR StartTime 2024-12-18 12:14:04 - End Time 2024-12-18 15:14:04 [2024-12-18 15:14:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 15:14:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048998', 'tblTempUsageDetail_20' ) start [2024-12-18 15:14:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14048998', 'tblTempUsageDetail_20' ) end [2024-12-18 15:14:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048998', 'tblTempVendorCDR_20' ) start [2024-12-18 15:14:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14048998', 'tblTempVendorCDR_20' ) end [2024-12-18 15:14:27] Production.INFO: ProcessCDR(1,14048998,1,1,2) [2024-12-18 15:14:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14048998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:14:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14048998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:14:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14048998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:14:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14048998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:14:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048998', 'tblTempUsageDetail_20' ) start [2024-12-18 15:14:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14048998', 'tblTempUsageDetail_20' ) end [2024-12-18 15:14:32] Production.ERROR: pbx prc_insertCDR start [2024-12-18 15:14:32] Production.ERROR: pbx prc_insertCDR end [2024-12-18 15:14:32] Production.INFO: ==673== Releasing lock... [2024-12-18 15:14:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 15:14:32] Production.INFO: 62 MB #Memory Used# [2024-12-18 15:15:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 12:15:04 [end_date_ymd] => 2024-12-18 15:15:04 [RateCDR] => 1 ) [2024-12-18 15: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` >= '2024-12-18 12:15:04' and `end` < '2024-12-18 15: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 ,'') [2024-12-18 15:15:30] Production.INFO: count ==4529 [2024-12-18 15:15:32] Production.ERROR: pbx CDR StartTime 2024-12-18 12:15:04 - End Time 2024-12-18 15:15:04 [2024-12-18 15:15:32] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 15:15:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049003', 'tblTempUsageDetail_20' ) start [2024-12-18 15:15:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049003', 'tblTempUsageDetail_20' ) end [2024-12-18 15:15:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049003', 'tblTempVendorCDR_20' ) start [2024-12-18 15:15:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049003', 'tblTempVendorCDR_20' ) end [2024-12-18 15:15:32] Production.INFO: ProcessCDR(1,14049003,1,1,2) [2024-12-18 15:15:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:15:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:15:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:15:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:15:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049003', 'tblTempUsageDetail_20' ) start [2024-12-18 15:15:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049003', 'tblTempUsageDetail_20' ) end [2024-12-18 15:15:37] Production.ERROR: pbx prc_insertCDR start [2024-12-18 15:15:37] Production.ERROR: pbx prc_insertCDR end [2024-12-18 15:15:37] Production.INFO: ==823== Releasing lock... [2024-12-18 15:15:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 15:15:37] Production.INFO: 62 MB #Memory Used# [2024-12-18 15:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 12:16:05 [end_date_ymd] => 2024-12-18 15:16:05 [RateCDR] => 1 ) [2024-12-18 15:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 12:16:05' and `end` < '2024-12-18 15:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 15:16:24] Production.INFO: count ==4538 [2024-12-18 15:16:26] Production.ERROR: pbx CDR StartTime 2024-12-18 12:16:05 - End Time 2024-12-18 15:16:05 [2024-12-18 15:16:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 15:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049008', 'tblTempUsageDetail_20' ) start [2024-12-18 15:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049008', 'tblTempUsageDetail_20' ) end [2024-12-18 15:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049008', 'tblTempVendorCDR_20' ) start [2024-12-18 15:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049008', 'tblTempVendorCDR_20' ) end [2024-12-18 15:16:26] Production.INFO: ProcessCDR(1,14049008,1,1,2) [2024-12-18 15:16:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:16:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:16:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:16:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:16:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049008', 'tblTempUsageDetail_20' ) start [2024-12-18 15:16:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049008', 'tblTempUsageDetail_20' ) end [2024-12-18 15:16:30] Production.ERROR: pbx prc_insertCDR start [2024-12-18 15:16:30] Production.ERROR: pbx prc_insertCDR end [2024-12-18 15:16:30] Production.INFO: ==958== Releasing lock... [2024-12-18 15:16:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 15:16:30] Production.INFO: 62 MB #Memory Used# [2024-12-18 15:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 12:17:05 [end_date_ymd] => 2024-12-18 15:17:05 [RateCDR] => 1 ) [2024-12-18 15:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 12:17:05' and `end` < '2024-12-18 15:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 15:17:20] Production.INFO: count ==4532 [2024-12-18 15:17:22] Production.ERROR: pbx CDR StartTime 2024-12-18 12:17:05 - End Time 2024-12-18 15:17:05 [2024-12-18 15:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 15:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049013', 'tblTempUsageDetail_20' ) start [2024-12-18 15:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049013', 'tblTempUsageDetail_20' ) end [2024-12-18 15:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049013', 'tblTempVendorCDR_20' ) start [2024-12-18 15:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049013', 'tblTempVendorCDR_20' ) end [2024-12-18 15:17:22] Production.INFO: ProcessCDR(1,14049013,1,1,2) [2024-12-18 15:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049013', 'tblTempUsageDetail_20' ) start [2024-12-18 15:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049013', 'tblTempUsageDetail_20' ) end [2024-12-18 15:17:27] Production.ERROR: pbx prc_insertCDR start [2024-12-18 15:17:27] Production.ERROR: pbx prc_insertCDR end [2024-12-18 15:17:27] Production.INFO: ==1056== Releasing lock... [2024-12-18 15:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 15:17:27] Production.INFO: 62 MB #Memory Used# [2024-12-18 15:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 12:18:05 [end_date_ymd] => 2024-12-18 15:18:05 [RateCDR] => 1 ) [2024-12-18 15:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 12:18:05' and `end` < '2024-12-18 15:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 15:18:18] Production.INFO: count ==4524 [2024-12-18 15:18:20] Production.ERROR: pbx CDR StartTime 2024-12-18 12:18:05 - End Time 2024-12-18 15:18:05 [2024-12-18 15:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 15:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049018', 'tblTempUsageDetail_20' ) start [2024-12-18 15:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049018', 'tblTempUsageDetail_20' ) end [2024-12-18 15:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049018', 'tblTempVendorCDR_20' ) start [2024-12-18 15:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049018', 'tblTempVendorCDR_20' ) end [2024-12-18 15:18:20] Production.INFO: ProcessCDR(1,14049018,1,1,2) [2024-12-18 15:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049018', 'tblTempUsageDetail_20' ) start [2024-12-18 15:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049018', 'tblTempUsageDetail_20' ) end [2024-12-18 15:18:24] Production.ERROR: pbx prc_insertCDR start [2024-12-18 15:18:24] Production.ERROR: pbx prc_insertCDR end [2024-12-18 15:18:24] Production.INFO: ==1161== Releasing lock... [2024-12-18 15:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 15:18:24] Production.INFO: 61.75 MB #Memory Used# [2024-12-18 15:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 12:19:05 [end_date_ymd] => 2024-12-18 15:19:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 12:19:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 15:19:18] Production.INFO: count ==4514 [2024-12-18 15:19:20] Production.ERROR: pbx CDR StartTime 2024-12-18 12:19:05 - End Time 2024-12-18 15:19:05 [2024-12-18 15:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 15:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049023', 'tblTempUsageDetail_20' ) start [2024-12-18 15:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049023', 'tblTempUsageDetail_20' ) end [2024-12-18 15:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049023', 'tblTempVendorCDR_20' ) start [2024-12-18 15:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049023', 'tblTempVendorCDR_20' ) end [2024-12-18 15:19:20] Production.INFO: ProcessCDR(1,14049023,1,1,2) [2024-12-18 15:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049023', 'tblTempUsageDetail_20' ) start [2024-12-18 15:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049023', 'tblTempUsageDetail_20' ) end [2024-12-18 15:19:24] Production.ERROR: pbx prc_insertCDR start [2024-12-18 15:19:24] Production.ERROR: pbx prc_insertCDR end [2024-12-18 15:19:24] Production.INFO: ==1273== Releasing lock... [2024-12-18 15:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 15:19:24] Production.INFO: 61.75 MB #Memory Used# [2024-12-18 15:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 12:20:05 [end_date_ymd] => 2024-12-18 15:20:05 [RateCDR] => 1 ) [2024-12-18 15: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` >= '2024-12-18 12:20:05' and `end` < '2024-12-18 15: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 ,'') [2024-12-18 15:20:19] Production.INFO: count ==4505 [2024-12-18 15:20:21] Production.ERROR: pbx CDR StartTime 2024-12-18 12:20:05 - End Time 2024-12-18 15:20:05 [2024-12-18 15:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 15:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049028', 'tblTempUsageDetail_20' ) start [2024-12-18 15:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049028', 'tblTempUsageDetail_20' ) end [2024-12-18 15:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049028', 'tblTempVendorCDR_20' ) start [2024-12-18 15:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049028', 'tblTempVendorCDR_20' ) end [2024-12-18 15:20:21] Production.INFO: ProcessCDR(1,14049028,1,1,2) [2024-12-18 15:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049028', 'tblTempUsageDetail_20' ) start [2024-12-18 15:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049028', 'tblTempUsageDetail_20' ) end [2024-12-18 15:20:26] Production.ERROR: pbx prc_insertCDR start [2024-12-18 15:20:26] Production.ERROR: pbx prc_insertCDR end [2024-12-18 15:20:26] Production.INFO: ==1372== Releasing lock... [2024-12-18 15:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 15:20:26] Production.INFO: 61.75 MB #Memory Used# [2024-12-18 15:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 12:21:05 [end_date_ymd] => 2024-12-18 15:21:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 12:21:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 15:21:26] Production.INFO: count ==4521 [2024-12-18 15:21:28] Production.ERROR: pbx CDR StartTime 2024-12-18 12:21:05 - End Time 2024-12-18 15:21:05 [2024-12-18 15:21:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 15:21:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049034', 'tblTempUsageDetail_20' ) start [2024-12-18 15:21:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049034', 'tblTempUsageDetail_20' ) end [2024-12-18 15:21:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049034', 'tblTempVendorCDR_20' ) start [2024-12-18 15:21:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049034', 'tblTempVendorCDR_20' ) end [2024-12-18 15:21:28] Production.INFO: ProcessCDR(1,14049034,1,1,2) [2024-12-18 15:21:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:21:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:21:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:21:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:21:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049034', 'tblTempUsageDetail_20' ) start [2024-12-18 15:21:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049034', 'tblTempUsageDetail_20' ) end [2024-12-18 15:21:33] Production.ERROR: pbx prc_insertCDR start [2024-12-18 15:21:33] Production.ERROR: pbx prc_insertCDR end [2024-12-18 15:21:33] Production.INFO: ==1469== Releasing lock... [2024-12-18 15:21:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 15:21:33] Production.INFO: 61.75 MB #Memory Used# [2024-12-18 15:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 12:22:05 [end_date_ymd] => 2024-12-18 15:22:05 [RateCDR] => 1 ) [2024-12-18 15:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 12:22:05' and `end` < '2024-12-18 15:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 15:22:20] Production.INFO: count ==4544 [2024-12-18 15:22:22] Production.ERROR: pbx CDR StartTime 2024-12-18 12:22:05 - End Time 2024-12-18 15:22:05 [2024-12-18 15:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 15:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049039', 'tblTempUsageDetail_20' ) start [2024-12-18 15:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049039', 'tblTempUsageDetail_20' ) end [2024-12-18 15:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049039', 'tblTempVendorCDR_20' ) start [2024-12-18 15:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049039', 'tblTempVendorCDR_20' ) end [2024-12-18 15:22:22] Production.INFO: ProcessCDR(1,14049039,1,1,2) [2024-12-18 15:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049039', 'tblTempUsageDetail_20' ) start [2024-12-18 15:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049039', 'tblTempUsageDetail_20' ) end [2024-12-18 15:22:27] Production.ERROR: pbx prc_insertCDR start [2024-12-18 15:22:27] Production.ERROR: pbx prc_insertCDR end [2024-12-18 15:22:27] Production.INFO: ==1604== Releasing lock... [2024-12-18 15:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 15:22:27] Production.INFO: 62 MB #Memory Used# [2024-12-18 15:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 12:23:05 [end_date_ymd] => 2024-12-18 15:23:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 12:23:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 15:23:18] Production.INFO: count ==4576 [2024-12-18 15:23:20] Production.ERROR: pbx CDR StartTime 2024-12-18 12:23:05 - End Time 2024-12-18 15:23:05 [2024-12-18 15:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 15:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049044', 'tblTempUsageDetail_20' ) start [2024-12-18 15:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049044', 'tblTempUsageDetail_20' ) end [2024-12-18 15:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049044', 'tblTempVendorCDR_20' ) start [2024-12-18 15:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049044', 'tblTempVendorCDR_20' ) end [2024-12-18 15:23:20] Production.INFO: ProcessCDR(1,14049044,1,1,2) [2024-12-18 15:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049044', 'tblTempUsageDetail_20' ) start [2024-12-18 15:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049044', 'tblTempUsageDetail_20' ) end [2024-12-18 15:23:24] Production.ERROR: pbx prc_insertCDR start [2024-12-18 15:23:24] Production.ERROR: pbx prc_insertCDR end [2024-12-18 15:23:24] Production.INFO: ==1707== Releasing lock... [2024-12-18 15:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 15:23:24] Production.INFO: 62.25 MB #Memory Used# [2024-12-18 15:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 12:24:05 [end_date_ymd] => 2024-12-18 15:24:05 [RateCDR] => 1 ) [2024-12-18 15:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 12:24:05' and `end` < '2024-12-18 15:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 15:24:23] Production.INFO: count ==4584 [2024-12-18 15:24:25] Production.ERROR: pbx CDR StartTime 2024-12-18 12:24:05 - End Time 2024-12-18 15:24:05 [2024-12-18 15:24:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 15:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049049', 'tblTempUsageDetail_20' ) start [2024-12-18 15:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049049', 'tblTempUsageDetail_20' ) end [2024-12-18 15:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049049', 'tblTempVendorCDR_20' ) start [2024-12-18 15:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049049', 'tblTempVendorCDR_20' ) end [2024-12-18 15:24:25] Production.INFO: ProcessCDR(1,14049049,1,1,2) [2024-12-18 15:24:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:24:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:24:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:24:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:24:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049049', 'tblTempUsageDetail_20' ) start [2024-12-18 15:24:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049049', 'tblTempUsageDetail_20' ) end [2024-12-18 15:24:30] Production.ERROR: pbx prc_insertCDR start [2024-12-18 15:24:30] Production.ERROR: pbx prc_insertCDR end [2024-12-18 15:24:30] Production.INFO: ==1806== Releasing lock... [2024-12-18 15:24:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 15:24:30] Production.INFO: 62.25 MB #Memory Used# [2024-12-18 15:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 12:25:04 [end_date_ymd] => 2024-12-18 15:25:04 [RateCDR] => 1 ) [2024-12-18 15: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` >= '2024-12-18 12:25:04' and `end` < '2024-12-18 15: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 ,'') [2024-12-18 15:25:24] Production.INFO: count ==4581 [2024-12-18 15:25:26] Production.ERROR: pbx CDR StartTime 2024-12-18 12:25:04 - End Time 2024-12-18 15:25:04 [2024-12-18 15:25:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 15:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049054', 'tblTempUsageDetail_20' ) start [2024-12-18 15:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049054', 'tblTempUsageDetail_20' ) end [2024-12-18 15:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049054', 'tblTempVendorCDR_20' ) start [2024-12-18 15:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049054', 'tblTempVendorCDR_20' ) end [2024-12-18 15:25:26] Production.INFO: ProcessCDR(1,14049054,1,1,2) [2024-12-18 15:25:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:25:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:25:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049054', 'tblTempUsageDetail_20' ) start [2024-12-18 15:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049054', 'tblTempUsageDetail_20' ) end [2024-12-18 15:25:31] Production.ERROR: pbx prc_insertCDR start [2024-12-18 15:25:31] Production.ERROR: pbx prc_insertCDR end [2024-12-18 15:25:31] Production.INFO: ==1947== Releasing lock... [2024-12-18 15:25:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 15:25:31] Production.INFO: 62.25 MB #Memory Used# [2024-12-18 15:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 12:26:05 [end_date_ymd] => 2024-12-18 15:26:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 12:26:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 15:26:23] Production.INFO: count ==4587 [2024-12-18 15:26:25] Production.ERROR: pbx CDR StartTime 2024-12-18 12:26:05 - End Time 2024-12-18 15:26:05 [2024-12-18 15:26:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 15:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049059', 'tblTempUsageDetail_20' ) start [2024-12-18 15:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049059', 'tblTempUsageDetail_20' ) end [2024-12-18 15:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049059', 'tblTempVendorCDR_20' ) start [2024-12-18 15:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049059', 'tblTempVendorCDR_20' ) end [2024-12-18 15:26:25] Production.INFO: ProcessCDR(1,14049059,1,1,2) [2024-12-18 15:26:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:26:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:26:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:26:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:26:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049059', 'tblTempUsageDetail_20' ) start [2024-12-18 15:26:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049059', 'tblTempUsageDetail_20' ) end [2024-12-18 15:26:29] Production.ERROR: pbx prc_insertCDR start [2024-12-18 15:26:30] Production.ERROR: pbx prc_insertCDR end [2024-12-18 15:26:30] Production.INFO: ==2050== Releasing lock... [2024-12-18 15:26:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 15:26:30] Production.INFO: 62.25 MB #Memory Used# [2024-12-18 15:27:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 12:27:04 [end_date_ymd] => 2024-12-18 15:27:04 [RateCDR] => 1 ) [2024-12-18 15:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 12:27:04' and `end` < '2024-12-18 15:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 15:27:20] Production.INFO: count ==4573 [2024-12-18 15:27:22] Production.ERROR: pbx CDR StartTime 2024-12-18 12:27:04 - End Time 2024-12-18 15:27:04 [2024-12-18 15:27:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 15:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049064', 'tblTempUsageDetail_20' ) start [2024-12-18 15:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049064', 'tblTempUsageDetail_20' ) end [2024-12-18 15:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049064', 'tblTempVendorCDR_20' ) start [2024-12-18 15:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049064', 'tblTempVendorCDR_20' ) end [2024-12-18 15:27:22] Production.INFO: ProcessCDR(1,14049064,1,1,2) [2024-12-18 15:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049064', 'tblTempUsageDetail_20' ) start [2024-12-18 15:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049064', 'tblTempUsageDetail_20' ) end [2024-12-18 15:27:26] Production.ERROR: pbx prc_insertCDR start [2024-12-18 15:27:26] Production.ERROR: pbx prc_insertCDR end [2024-12-18 15:27:26] Production.INFO: ==2155== Releasing lock... [2024-12-18 15:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 15:27:26] Production.INFO: 62.25 MB #Memory Used# [2024-12-18 15:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 12:28:05 [end_date_ymd] => 2024-12-18 15:28:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 12:28:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 15:28:18] Production.INFO: count ==4568 [2024-12-18 15:28:20] Production.ERROR: pbx CDR StartTime 2024-12-18 12:28:05 - End Time 2024-12-18 15:28:05 [2024-12-18 15:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 15:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049069', 'tblTempUsageDetail_20' ) start [2024-12-18 15:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049069', 'tblTempUsageDetail_20' ) end [2024-12-18 15:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049069', 'tblTempVendorCDR_20' ) start [2024-12-18 15:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049069', 'tblTempVendorCDR_20' ) end [2024-12-18 15:28:20] Production.INFO: ProcessCDR(1,14049069,1,1,2) [2024-12-18 15:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049069', 'tblTempUsageDetail_20' ) start [2024-12-18 15:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049069', 'tblTempUsageDetail_20' ) end [2024-12-18 15:28:24] Production.ERROR: pbx prc_insertCDR start [2024-12-18 15:28:25] Production.ERROR: pbx prc_insertCDR end [2024-12-18 15:28:25] Production.INFO: ==2256== Releasing lock... [2024-12-18 15:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 15:28:25] Production.INFO: 62.25 MB #Memory Used# [2024-12-18 15:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 12:29:05 [end_date_ymd] => 2024-12-18 15:29:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 12:29:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 15:29:24] Production.INFO: count ==4560 [2024-12-18 15:29:26] Production.ERROR: pbx CDR StartTime 2024-12-18 12:29:05 - End Time 2024-12-18 15:29:05 [2024-12-18 15:29:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 15:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049074', 'tblTempUsageDetail_20' ) start [2024-12-18 15:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049074', 'tblTempUsageDetail_20' ) end [2024-12-18 15:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049074', 'tblTempVendorCDR_20' ) start [2024-12-18 15:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049074', 'tblTempVendorCDR_20' ) end [2024-12-18 15:29:26] Production.INFO: ProcessCDR(1,14049074,1,1,2) [2024-12-18 15:29:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:29:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:29:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:29:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:29:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049074', 'tblTempUsageDetail_20' ) start [2024-12-18 15:29:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049074', 'tblTempUsageDetail_20' ) end [2024-12-18 15:29:31] Production.ERROR: pbx prc_insertCDR start [2024-12-18 15:29:31] Production.ERROR: pbx prc_insertCDR end [2024-12-18 15:29:31] Production.INFO: ==2362== Releasing lock... [2024-12-18 15:29:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 15:29:31] Production.INFO: 62.25 MB #Memory Used# [2024-12-18 15:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 12:30:06 [end_date_ymd] => 2024-12-18 15:30:06 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 12:30:06' and `end` < '2024-12-18 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 ,'') [2024-12-18 15:30:25] Production.INFO: count ==4587 [2024-12-18 15:30:27] Production.ERROR: pbx CDR StartTime 2024-12-18 12:30:06 - End Time 2024-12-18 15:30:06 [2024-12-18 15:30:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 15:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049079', 'tblTempUsageDetail_20' ) start [2024-12-18 15:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049079', 'tblTempUsageDetail_20' ) end [2024-12-18 15:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049079', 'tblTempVendorCDR_20' ) start [2024-12-18 15:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049079', 'tblTempVendorCDR_20' ) end [2024-12-18 15:30:27] Production.INFO: ProcessCDR(1,14049079,1,1,2) [2024-12-18 15:30:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:30:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:30:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:30:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:30:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049079', 'tblTempUsageDetail_20' ) start [2024-12-18 15:30:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049079', 'tblTempUsageDetail_20' ) end [2024-12-18 15:30:32] Production.ERROR: pbx prc_insertCDR start [2024-12-18 15:30:32] Production.ERROR: pbx prc_insertCDR end [2024-12-18 15:30:32] Production.INFO: ==2467== Releasing lock... [2024-12-18 15:30:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 15:30:32] Production.INFO: 62.25 MB #Memory Used# [2024-12-18 15:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 12:31:04 [end_date_ymd] => 2024-12-18 15:31:04 [RateCDR] => 1 ) [2024-12-18 15:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 12:31:04' and `end` < '2024-12-18 15:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 15:31:18] Production.INFO: count ==4592 [2024-12-18 15:31:20] Production.ERROR: pbx CDR StartTime 2024-12-18 12:31:04 - End Time 2024-12-18 15:31:04 [2024-12-18 15:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 15:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049085', 'tblTempUsageDetail_20' ) start [2024-12-18 15:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049085', 'tblTempUsageDetail_20' ) end [2024-12-18 15:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049085', 'tblTempVendorCDR_20' ) start [2024-12-18 15:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049085', 'tblTempVendorCDR_20' ) end [2024-12-18 15:31:20] Production.INFO: ProcessCDR(1,14049085,1,1,2) [2024-12-18 15:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049085', 'tblTempUsageDetail_20' ) start [2024-12-18 15:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049085', 'tblTempUsageDetail_20' ) end [2024-12-18 15:31:25] Production.ERROR: pbx prc_insertCDR start [2024-12-18 15:31:25] Production.ERROR: pbx prc_insertCDR end [2024-12-18 15:31:25] Production.INFO: ==2572== Releasing lock... [2024-12-18 15:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 15:31:25] Production.INFO: 62.5 MB #Memory Used# [2024-12-18 15:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 12:32:05 [end_date_ymd] => 2024-12-18 15:32:05 [RateCDR] => 1 ) [2024-12-18 15:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 12:32:05' and `end` < '2024-12-18 15:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 15:32:18] Production.INFO: count ==4586 [2024-12-18 15:32:20] Production.ERROR: pbx CDR StartTime 2024-12-18 12:32:05 - End Time 2024-12-18 15:32:05 [2024-12-18 15:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 15:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049090', 'tblTempUsageDetail_20' ) start [2024-12-18 15:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049090', 'tblTempUsageDetail_20' ) end [2024-12-18 15:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049090', 'tblTempVendorCDR_20' ) start [2024-12-18 15:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049090', 'tblTempVendorCDR_20' ) end [2024-12-18 15:32:20] Production.INFO: ProcessCDR(1,14049090,1,1,2) [2024-12-18 15:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049090', 'tblTempUsageDetail_20' ) start [2024-12-18 15:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049090', 'tblTempUsageDetail_20' ) end [2024-12-18 15:32:24] Production.ERROR: pbx prc_insertCDR start [2024-12-18 15:32:24] Production.ERROR: pbx prc_insertCDR end [2024-12-18 15:32:24] Production.INFO: ==2680== Releasing lock... [2024-12-18 15:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 15:32:24] Production.INFO: 62.25 MB #Memory Used# [2024-12-18 15:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 12:33:04 [end_date_ymd] => 2024-12-18 15:33:04 [RateCDR] => 1 ) [2024-12-18 15:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 12:33:04' and `end` < '2024-12-18 15:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 15:33:21] Production.INFO: count ==4591 [2024-12-18 15:33:23] Production.ERROR: pbx CDR StartTime 2024-12-18 12:33:04 - End Time 2024-12-18 15:33:04 [2024-12-18 15:33:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 15:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049095', 'tblTempUsageDetail_20' ) start [2024-12-18 15:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049095', 'tblTempUsageDetail_20' ) end [2024-12-18 15:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049095', 'tblTempVendorCDR_20' ) start [2024-12-18 15:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049095', 'tblTempVendorCDR_20' ) end [2024-12-18 15:33:23] Production.INFO: ProcessCDR(1,14049095,1,1,2) [2024-12-18 15:33:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:33:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:33:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:33:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049095', 'tblTempUsageDetail_20' ) start [2024-12-18 15:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049095', 'tblTempUsageDetail_20' ) end [2024-12-18 15:33:28] Production.ERROR: pbx prc_insertCDR start [2024-12-18 15:33:28] Production.ERROR: pbx prc_insertCDR end [2024-12-18 15:33:28] Production.INFO: ==2778== Releasing lock... [2024-12-18 15:33:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 15:33:28] Production.INFO: 62.25 MB #Memory Used# [2024-12-18 15:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 12:34:05 [end_date_ymd] => 2024-12-18 15:34:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 12:34:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 15:34:24] Production.INFO: count ==4581 [2024-12-18 15:34:26] Production.ERROR: pbx CDR StartTime 2024-12-18 12:34:05 - End Time 2024-12-18 15:34:05 [2024-12-18 15:34:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 15:34:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049100', 'tblTempUsageDetail_20' ) start [2024-12-18 15:34:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049100', 'tblTempUsageDetail_20' ) end [2024-12-18 15:34:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049100', 'tblTempVendorCDR_20' ) start [2024-12-18 15:34:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049100', 'tblTempVendorCDR_20' ) end [2024-12-18 15:34:26] Production.INFO: ProcessCDR(1,14049100,1,1,2) [2024-12-18 15:34:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:34:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:34:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:34:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:34:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049100', 'tblTempUsageDetail_20' ) start [2024-12-18 15:34:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049100', 'tblTempUsageDetail_20' ) end [2024-12-18 15:34:31] Production.ERROR: pbx prc_insertCDR start [2024-12-18 15:34:31] Production.ERROR: pbx prc_insertCDR end [2024-12-18 15:34:31] Production.INFO: ==2884== Releasing lock... [2024-12-18 15:34:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 15:34:31] Production.INFO: 62.25 MB #Memory Used# [2024-12-18 15:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 12:35:05 [end_date_ymd] => 2024-12-18 15:35:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 12:35:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 15:35:28] Production.INFO: count ==4590 [2024-12-18 15:35:30] Production.ERROR: pbx CDR StartTime 2024-12-18 12:35:05 - End Time 2024-12-18 15:35:05 [2024-12-18 15:35:30] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 15:35:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049105', 'tblTempUsageDetail_20' ) start [2024-12-18 15:35:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049105', 'tblTempUsageDetail_20' ) end [2024-12-18 15:35:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049105', 'tblTempVendorCDR_20' ) start [2024-12-18 15:35:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049105', 'tblTempVendorCDR_20' ) end [2024-12-18 15:35:30] Production.INFO: ProcessCDR(1,14049105,1,1,2) [2024-12-18 15:35:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:35:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:35:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:35:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:35:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049105', 'tblTempUsageDetail_20' ) start [2024-12-18 15:35:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049105', 'tblTempUsageDetail_20' ) end [2024-12-18 15:35:35] Production.ERROR: pbx prc_insertCDR start [2024-12-18 15:35:35] Production.ERROR: pbx prc_insertCDR end [2024-12-18 15:35:35] Production.INFO: ==2992== Releasing lock... [2024-12-18 15:35:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 15:35:35] Production.INFO: 62.5 MB #Memory Used# [2024-12-18 15:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 12:36:05 [end_date_ymd] => 2024-12-18 15:36:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 12:36:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 15:36:30] Production.INFO: count ==4601 [2024-12-18 15:36:32] Production.ERROR: pbx CDR StartTime 2024-12-18 12:36:05 - End Time 2024-12-18 15:36:05 [2024-12-18 15:36:32] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 15:36:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049110', 'tblTempUsageDetail_20' ) start [2024-12-18 15:36:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049110', 'tblTempUsageDetail_20' ) end [2024-12-18 15:36:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049110', 'tblTempVendorCDR_20' ) start [2024-12-18 15:36:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049110', 'tblTempVendorCDR_20' ) end [2024-12-18 15:36:32] Production.INFO: ProcessCDR(1,14049110,1,1,2) [2024-12-18 15:36:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:36:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:36:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:36:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:36:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049110', 'tblTempUsageDetail_20' ) start [2024-12-18 15:36:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049110', 'tblTempUsageDetail_20' ) end [2024-12-18 15:36:36] Production.ERROR: pbx prc_insertCDR start [2024-12-18 15:36:36] Production.ERROR: pbx prc_insertCDR end [2024-12-18 15:36:36] Production.INFO: ==3092== Releasing lock... [2024-12-18 15:36:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 15:36:36] Production.INFO: 62.5 MB #Memory Used# [2024-12-18 15:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 12:37:05 [end_date_ymd] => 2024-12-18 15:37:05 [RateCDR] => 1 ) [2024-12-18 15:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 12:37:05' and `end` < '2024-12-18 15:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 15:37:28] Production.INFO: count ==4601 [2024-12-18 15:37:30] Production.ERROR: pbx CDR StartTime 2024-12-18 12:37:05 - End Time 2024-12-18 15:37:05 [2024-12-18 15:37:30] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 15:37:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049113', 'tblTempUsageDetail_20' ) start [2024-12-18 15:37:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049113', 'tblTempUsageDetail_20' ) end [2024-12-18 15:37:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049113', 'tblTempVendorCDR_20' ) start [2024-12-18 15:37:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049113', 'tblTempVendorCDR_20' ) end [2024-12-18 15:37:30] Production.INFO: ProcessCDR(1,14049113,1,1,2) [2024-12-18 15:37:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:37:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:37:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:37:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:37:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049113', 'tblTempUsageDetail_20' ) start [2024-12-18 15:37:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049113', 'tblTempUsageDetail_20' ) end [2024-12-18 15:37:35] Production.ERROR: pbx prc_insertCDR start [2024-12-18 15:37:35] Production.ERROR: pbx prc_insertCDR end [2024-12-18 15:37:35] Production.INFO: ==3201== Releasing lock... [2024-12-18 15:37:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 15:37:35] Production.INFO: 62.5 MB #Memory Used# [2024-12-18 15:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 12:38:05 [end_date_ymd] => 2024-12-18 15:38:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 12:38:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 15:38:21] Production.INFO: count ==4625 [2024-12-18 15:38:23] Production.ERROR: pbx CDR StartTime 2024-12-18 12:38:05 - End Time 2024-12-18 15:38:05 [2024-12-18 15:38:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 15:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049120', 'tblTempUsageDetail_20' ) start [2024-12-18 15:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049120', 'tblTempUsageDetail_20' ) end [2024-12-18 15:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049120', 'tblTempVendorCDR_20' ) start [2024-12-18 15:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049120', 'tblTempVendorCDR_20' ) end [2024-12-18 15:38:23] Production.INFO: ProcessCDR(1,14049120,1,1,2) [2024-12-18 15:38:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:38:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:38:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:38:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049120', 'tblTempUsageDetail_20' ) start [2024-12-18 15:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049120', 'tblTempUsageDetail_20' ) end [2024-12-18 15:38:28] Production.ERROR: pbx prc_insertCDR start [2024-12-18 15:38:28] Production.ERROR: pbx prc_insertCDR end [2024-12-18 15:38:28] Production.INFO: ==3304== Releasing lock... [2024-12-18 15:38:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 15:38:28] Production.INFO: 62.5 MB #Memory Used# [2024-12-18 15:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 12:39:05 [end_date_ymd] => 2024-12-18 15:39:05 [RateCDR] => 1 ) [2024-12-18 15: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` >= '2024-12-18 12:39:05' and `end` < '2024-12-18 15: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 ,'') [2024-12-18 15:39:18] Production.INFO: count ==4614 [2024-12-18 15:39:20] Production.ERROR: pbx CDR StartTime 2024-12-18 12:39:05 - End Time 2024-12-18 15:39:05 [2024-12-18 15:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 15:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049125', 'tblTempUsageDetail_20' ) start [2024-12-18 15:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049125', 'tblTempUsageDetail_20' ) end [2024-12-18 15:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049125', 'tblTempVendorCDR_20' ) start [2024-12-18 15:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049125', 'tblTempVendorCDR_20' ) end [2024-12-18 15:39:20] Production.INFO: ProcessCDR(1,14049125,1,1,2) [2024-12-18 15:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049125', 'tblTempUsageDetail_20' ) start [2024-12-18 15:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049125', 'tblTempUsageDetail_20' ) end [2024-12-18 15:39:25] Production.ERROR: pbx prc_insertCDR start [2024-12-18 15:39:25] Production.ERROR: pbx prc_insertCDR end [2024-12-18 15:39:25] Production.INFO: ==3407== Releasing lock... [2024-12-18 15:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 15:39:25] Production.INFO: 62.5 MB #Memory Used# [2024-12-18 15:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 12:40:06 [end_date_ymd] => 2024-12-18 15:40:06 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 12:40:06' and `end` < '2024-12-18 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 ,'') [2024-12-18 15:40:19] Production.INFO: count ==4605 [2024-12-18 15:40:21] Production.ERROR: pbx CDR StartTime 2024-12-18 12:40:06 - End Time 2024-12-18 15:40:06 [2024-12-18 15:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 15:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049131', 'tblTempUsageDetail_20' ) start [2024-12-18 15:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049131', 'tblTempUsageDetail_20' ) end [2024-12-18 15:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049131', 'tblTempVendorCDR_20' ) start [2024-12-18 15:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049131', 'tblTempVendorCDR_20' ) end [2024-12-18 15:40:21] Production.INFO: ProcessCDR(1,14049131,1,1,2) [2024-12-18 15:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049131', 'tblTempUsageDetail_20' ) start [2024-12-18 15:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049131', 'tblTempUsageDetail_20' ) end [2024-12-18 15:40:26] Production.ERROR: pbx prc_insertCDR start [2024-12-18 15:40:26] Production.ERROR: pbx prc_insertCDR end [2024-12-18 15:40:26] Production.INFO: ==3512== Releasing lock... [2024-12-18 15:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 15:40:26] Production.INFO: 62.5 MB #Memory Used# [2024-12-18 15:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 12:41:05 [end_date_ymd] => 2024-12-18 15:41:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 12:41:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 15:41:22] Production.INFO: count ==4651 [2024-12-18 15:41:24] Production.ERROR: pbx CDR StartTime 2024-12-18 12:41:05 - End Time 2024-12-18 15:41:05 [2024-12-18 15:41:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 15:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049136', 'tblTempUsageDetail_20' ) start [2024-12-18 15:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049136', 'tblTempUsageDetail_20' ) end [2024-12-18 15:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049136', 'tblTempVendorCDR_20' ) start [2024-12-18 15:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049136', 'tblTempVendorCDR_20' ) end [2024-12-18 15:41:25] Production.INFO: ProcessCDR(1,14049136,1,1,2) [2024-12-18 15:41:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:41:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:41:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:41:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:41:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049136', 'tblTempUsageDetail_20' ) start [2024-12-18 15:41:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049136', 'tblTempUsageDetail_20' ) end [2024-12-18 15:41:30] Production.ERROR: pbx prc_insertCDR start [2024-12-18 15:41:30] Production.ERROR: pbx prc_insertCDR end [2024-12-18 15:41:30] Production.INFO: ==3659== Releasing lock... [2024-12-18 15:41:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 15:41:30] Production.INFO: 62.75 MB #Memory Used# [2024-12-18 15:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 12:42:05 [end_date_ymd] => 2024-12-18 15:42:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 12:42:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 15:42:18] Production.INFO: count ==4673 [2024-12-18 15:42:20] Production.ERROR: pbx CDR StartTime 2024-12-18 12:42:05 - End Time 2024-12-18 15:42:05 [2024-12-18 15:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 15:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049141', 'tblTempUsageDetail_20' ) start [2024-12-18 15:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049141', 'tblTempUsageDetail_20' ) end [2024-12-18 15:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049141', 'tblTempVendorCDR_20' ) start [2024-12-18 15:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049141', 'tblTempVendorCDR_20' ) end [2024-12-18 15:42:20] Production.INFO: ProcessCDR(1,14049141,1,1,2) [2024-12-18 15:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049141', 'tblTempUsageDetail_20' ) start [2024-12-18 15:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049141', 'tblTempUsageDetail_20' ) end [2024-12-18 15:42:25] Production.ERROR: pbx prc_insertCDR start [2024-12-18 15:42:25] Production.ERROR: pbx prc_insertCDR end [2024-12-18 15:42:25] Production.INFO: ==3758== Releasing lock... [2024-12-18 15:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 15:42:25] Production.INFO: 63.25 MB #Memory Used# [2024-12-18 15:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 12:43:05 [end_date_ymd] => 2024-12-18 15:43:05 [RateCDR] => 1 ) [2024-12-18 15:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 12:43:05' and `end` < '2024-12-18 15:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 15:43:29] Production.INFO: count ==4687 [2024-12-18 15:43:31] Production.ERROR: pbx CDR StartTime 2024-12-18 12:43:05 - End Time 2024-12-18 15:43:05 [2024-12-18 15:43:31] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 15:43:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049146', 'tblTempUsageDetail_20' ) start [2024-12-18 15:43:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049146', 'tblTempUsageDetail_20' ) end [2024-12-18 15:43:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049146', 'tblTempVendorCDR_20' ) start [2024-12-18 15:43:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049146', 'tblTempVendorCDR_20' ) end [2024-12-18 15:43:31] Production.INFO: ProcessCDR(1,14049146,1,1,2) [2024-12-18 15:43:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:43:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:43:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:43:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:43:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049146', 'tblTempUsageDetail_20' ) start [2024-12-18 15:43:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049146', 'tblTempUsageDetail_20' ) end [2024-12-18 15:43:36] Production.ERROR: pbx prc_insertCDR start [2024-12-18 15:43:36] Production.ERROR: pbx prc_insertCDR end [2024-12-18 15:43:36] Production.INFO: ==3859== Releasing lock... [2024-12-18 15:43:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 15:43:36] Production.INFO: 63 MB #Memory Used# [2024-12-18 15:44:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 12:44:04 [end_date_ymd] => 2024-12-18 15:44:04 [RateCDR] => 1 ) [2024-12-18 15: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` >= '2024-12-18 12:44:04' and `end` < '2024-12-18 15: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 ,'') [2024-12-18 15:44:28] Production.INFO: count ==4686 [2024-12-18 15:44:30] Production.ERROR: pbx CDR StartTime 2024-12-18 12:44:04 - End Time 2024-12-18 15:44:04 [2024-12-18 15:44:30] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 15:44:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049151', 'tblTempUsageDetail_20' ) start [2024-12-18 15:44:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049151', 'tblTempUsageDetail_20' ) end [2024-12-18 15:44:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049151', 'tblTempVendorCDR_20' ) start [2024-12-18 15:44:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049151', 'tblTempVendorCDR_20' ) end [2024-12-18 15:44:30] Production.INFO: ProcessCDR(1,14049151,1,1,2) [2024-12-18 15:44:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:44:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:44:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:44:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:44:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049151', 'tblTempUsageDetail_20' ) start [2024-12-18 15:44:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049151', 'tblTempUsageDetail_20' ) end [2024-12-18 15:44:34] Production.ERROR: pbx prc_insertCDR start [2024-12-18 15:44:34] Production.ERROR: pbx prc_insertCDR end [2024-12-18 15:44:34] Production.INFO: ==3964== Releasing lock... [2024-12-18 15:44:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 15:44:34] Production.INFO: 63 MB #Memory Used# [2024-12-18 15:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 12:45:05 [end_date_ymd] => 2024-12-18 15:45:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 12:45:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 15:45:25] Production.INFO: count ==4724 [2024-12-18 15:45:26] Production.ERROR: pbx CDR StartTime 2024-12-18 12:45:05 - End Time 2024-12-18 15:45:05 [2024-12-18 15:45:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 15:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049156', 'tblTempUsageDetail_20' ) start [2024-12-18 15:45:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049156', 'tblTempUsageDetail_20' ) end [2024-12-18 15:45:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049156', 'tblTempVendorCDR_20' ) start [2024-12-18 15:45:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049156', 'tblTempVendorCDR_20' ) end [2024-12-18 15:45:27] Production.INFO: ProcessCDR(1,14049156,1,1,2) [2024-12-18 15:45:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:45:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:45:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:45:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:45:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049156', 'tblTempUsageDetail_20' ) start [2024-12-18 15:45:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049156', 'tblTempUsageDetail_20' ) end [2024-12-18 15:45:31] Production.ERROR: pbx prc_insertCDR start [2024-12-18 15:45:31] Production.ERROR: pbx prc_insertCDR end [2024-12-18 15:45:31] Production.INFO: ==4070== Releasing lock... [2024-12-18 15:45:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 15:45:31] Production.INFO: 63.25 MB #Memory Used# [2024-12-18 15:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 12:46:05 [end_date_ymd] => 2024-12-18 15:46:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 12:46:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 15:46:21] Production.INFO: count ==4732 [2024-12-18 15:46:23] Production.ERROR: pbx CDR StartTime 2024-12-18 12:46:05 - End Time 2024-12-18 15:46:05 [2024-12-18 15:46:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 15:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049161', 'tblTempUsageDetail_20' ) start [2024-12-18 15:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049161', 'tblTempUsageDetail_20' ) end [2024-12-18 15:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049161', 'tblTempVendorCDR_20' ) start [2024-12-18 15:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049161', 'tblTempVendorCDR_20' ) end [2024-12-18 15:46:23] Production.INFO: ProcessCDR(1,14049161,1,1,2) [2024-12-18 15:46:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:46:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:46:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049161', 'tblTempUsageDetail_20' ) start [2024-12-18 15:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049161', 'tblTempUsageDetail_20' ) end [2024-12-18 15:46:28] Production.ERROR: pbx prc_insertCDR start [2024-12-18 15:46:28] Production.ERROR: pbx prc_insertCDR end [2024-12-18 15:46:28] Production.INFO: ==4171== Releasing lock... [2024-12-18 15:46:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 15:46:28] Production.INFO: 63.5 MB #Memory Used# [2024-12-18 15:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 12:47:05 [end_date_ymd] => 2024-12-18 15:47:05 [RateCDR] => 1 ) [2024-12-18 15:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 12:47:05' and `end` < '2024-12-18 15:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 15:47:24] Production.INFO: count ==4732 [2024-12-18 15:47:25] Production.ERROR: pbx CDR StartTime 2024-12-18 12:47:05 - End Time 2024-12-18 15:47:05 [2024-12-18 15:47:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 15:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049166', 'tblTempUsageDetail_20' ) start [2024-12-18 15:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049166', 'tblTempUsageDetail_20' ) end [2024-12-18 15:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049166', 'tblTempVendorCDR_20' ) start [2024-12-18 15:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049166', 'tblTempVendorCDR_20' ) end [2024-12-18 15:47:25] Production.INFO: ProcessCDR(1,14049166,1,1,2) [2024-12-18 15:47:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:47:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:47:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:47:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:47:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049166', 'tblTempUsageDetail_20' ) start [2024-12-18 15:47:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049166', 'tblTempUsageDetail_20' ) end [2024-12-18 15:47:30] Production.ERROR: pbx prc_insertCDR start [2024-12-18 15:47:30] Production.ERROR: pbx prc_insertCDR end [2024-12-18 15:47:30] Production.INFO: ==4277== Releasing lock... [2024-12-18 15:47:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 15:47:30] Production.INFO: 63.5 MB #Memory Used# [2024-12-18 15:48:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 12:48:04 [end_date_ymd] => 2024-12-18 15:48:04 [RateCDR] => 1 ) [2024-12-18 15:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 12:48:04' and `end` < '2024-12-18 15:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 15:48:25] Production.INFO: count ==4725 [2024-12-18 15:48:27] Production.ERROR: pbx CDR StartTime 2024-12-18 12:48:04 - End Time 2024-12-18 15:48:04 [2024-12-18 15:48:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 15:48:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049171', 'tblTempUsageDetail_20' ) start [2024-12-18 15:48:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049171', 'tblTempUsageDetail_20' ) end [2024-12-18 15:48:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049171', 'tblTempVendorCDR_20' ) start [2024-12-18 15:48:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049171', 'tblTempVendorCDR_20' ) end [2024-12-18 15:48:27] Production.INFO: ProcessCDR(1,14049171,1,1,2) [2024-12-18 15:48:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:48:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:48:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:48:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:48:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049171', 'tblTempUsageDetail_20' ) start [2024-12-18 15:48:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049171', 'tblTempUsageDetail_20' ) end [2024-12-18 15:48:31] Production.ERROR: pbx prc_insertCDR start [2024-12-18 15:48:31] Production.ERROR: pbx prc_insertCDR end [2024-12-18 15:48:31] Production.INFO: ==4374== Releasing lock... [2024-12-18 15:48:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 15:48:31] Production.INFO: 63.25 MB #Memory Used# [2024-12-18 15:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 12:49:05 [end_date_ymd] => 2024-12-18 15:49:05 [RateCDR] => 1 ) [2024-12-18 15:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 12:49:05' and `end` < '2024-12-18 15:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 15:49:22] Production.INFO: count ==4711 [2024-12-18 15:49:24] Production.ERROR: pbx CDR StartTime 2024-12-18 12:49:05 - End Time 2024-12-18 15:49:05 [2024-12-18 15:49:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 15:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049176', 'tblTempUsageDetail_20' ) start [2024-12-18 15:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049176', 'tblTempUsageDetail_20' ) end [2024-12-18 15:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049176', 'tblTempVendorCDR_20' ) start [2024-12-18 15:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049176', 'tblTempVendorCDR_20' ) end [2024-12-18 15:49:24] Production.INFO: ProcessCDR(1,14049176,1,1,2) [2024-12-18 15:49:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:49:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:49:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:49:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049176', 'tblTempUsageDetail_20' ) start [2024-12-18 15:49:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049176', 'tblTempUsageDetail_20' ) end [2024-12-18 15:49:29] Production.ERROR: pbx prc_insertCDR start [2024-12-18 15:49:29] Production.ERROR: pbx prc_insertCDR end [2024-12-18 15:49:29] Production.INFO: ==4485== Releasing lock... [2024-12-18 15:49:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 15:49:29] Production.INFO: 63.25 MB #Memory Used# [2024-12-18 15:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 12:50:05 [end_date_ymd] => 2024-12-18 15:50:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 12:50:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 15:50:18] Production.INFO: count ==4712 [2024-12-18 15:50:20] Production.ERROR: pbx CDR StartTime 2024-12-18 12:50:05 - End Time 2024-12-18 15:50:05 [2024-12-18 15:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 15:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049182', 'tblTempUsageDetail_20' ) start [2024-12-18 15:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049182', 'tblTempUsageDetail_20' ) end [2024-12-18 15:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049182', 'tblTempVendorCDR_20' ) start [2024-12-18 15:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049182', 'tblTempVendorCDR_20' ) end [2024-12-18 15:50:20] Production.INFO: ProcessCDR(1,14049182,1,1,2) [2024-12-18 15:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049182', 'tblTempUsageDetail_20' ) start [2024-12-18 15:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049182', 'tblTempUsageDetail_20' ) end [2024-12-18 15:50:25] Production.ERROR: pbx prc_insertCDR start [2024-12-18 15:50:25] Production.ERROR: pbx prc_insertCDR end [2024-12-18 15:50:25] Production.INFO: ==4621== Releasing lock... [2024-12-18 15:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 15:50:25] Production.INFO: 63.25 MB #Memory Used# [2024-12-18 15:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 12:51:05 [end_date_ymd] => 2024-12-18 15:51:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 12:51:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 15:51:18] Production.INFO: count ==4768 [2024-12-18 15:51:20] Production.ERROR: pbx CDR StartTime 2024-12-18 12:51:05 - End Time 2024-12-18 15:51:05 [2024-12-18 15:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 15:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049187', 'tblTempUsageDetail_20' ) start [2024-12-18 15:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049187', 'tblTempUsageDetail_20' ) end [2024-12-18 15:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049187', 'tblTempVendorCDR_20' ) start [2024-12-18 15:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049187', 'tblTempVendorCDR_20' ) end [2024-12-18 15:51:20] Production.INFO: ProcessCDR(1,14049187,1,1,2) [2024-12-18 15:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049187', 'tblTempUsageDetail_20' ) start [2024-12-18 15:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049187', 'tblTempUsageDetail_20' ) end [2024-12-18 15:51:24] Production.ERROR: pbx prc_insertCDR start [2024-12-18 15:51:24] Production.ERROR: pbx prc_insertCDR end [2024-12-18 15:51:24] Production.INFO: ==4750== Releasing lock... [2024-12-18 15:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 15:51:24] Production.INFO: 63.75 MB #Memory Used# [2024-12-18 15:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 12:52:05 [end_date_ymd] => 2024-12-18 15:52:05 [RateCDR] => 1 ) [2024-12-18 15:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 12:52:05' and `end` < '2024-12-18 15:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 15:52:30] Production.INFO: count ==4760 [2024-12-18 15:52:32] Production.ERROR: pbx CDR StartTime 2024-12-18 12:52:05 - End Time 2024-12-18 15:52:05 [2024-12-18 15:52:32] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 15:52:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049192', 'tblTempUsageDetail_20' ) start [2024-12-18 15:52:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049192', 'tblTempUsageDetail_20' ) end [2024-12-18 15:52:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049192', 'tblTempVendorCDR_20' ) start [2024-12-18 15:52:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049192', 'tblTempVendorCDR_20' ) end [2024-12-18 15:52:32] Production.INFO: ProcessCDR(1,14049192,1,1,2) [2024-12-18 15:52:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:52:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:52:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:52:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:52:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049192', 'tblTempUsageDetail_20' ) start [2024-12-18 15:52:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049192', 'tblTempUsageDetail_20' ) end [2024-12-18 15:52:37] Production.ERROR: pbx prc_insertCDR start [2024-12-18 15:52:37] Production.ERROR: pbx prc_insertCDR end [2024-12-18 15:52:37] Production.INFO: ==4877== Releasing lock... [2024-12-18 15:52:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 15:52:37] Production.INFO: 63.75 MB #Memory Used# [2024-12-18 15:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 12:53:04 [end_date_ymd] => 2024-12-18 15:53:04 [RateCDR] => 1 ) [2024-12-18 15:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 12:53:04' and `end` < '2024-12-18 15:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 15:53:26] Production.INFO: count ==4776 [2024-12-18 15:53:28] Production.ERROR: pbx CDR StartTime 2024-12-18 12:53:04 - End Time 2024-12-18 15:53:04 [2024-12-18 15:53:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 15:53:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049197', 'tblTempUsageDetail_20' ) start [2024-12-18 15:53:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049197', 'tblTempUsageDetail_20' ) end [2024-12-18 15:53:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049197', 'tblTempVendorCDR_20' ) start [2024-12-18 15:53:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049197', 'tblTempVendorCDR_20' ) end [2024-12-18 15:53:28] Production.INFO: ProcessCDR(1,14049197,1,1,2) [2024-12-18 15:53:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:53:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:53:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:53:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:53:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049197', 'tblTempUsageDetail_20' ) start [2024-12-18 15:53:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049197', 'tblTempUsageDetail_20' ) end [2024-12-18 15:53:32] Production.ERROR: pbx prc_insertCDR start [2024-12-18 15:53:32] Production.ERROR: pbx prc_insertCDR end [2024-12-18 15:53:32] Production.INFO: ==5002== Releasing lock... [2024-12-18 15:53:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 15:53:32] Production.INFO: 63.75 MB #Memory Used# [2024-12-18 15:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 12:54:05 [end_date_ymd] => 2024-12-18 15:54:05 [RateCDR] => 1 ) [2024-12-18 15:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 12:54:05' and `end` < '2024-12-18 15:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 15:54:37] Production.INFO: count ==4819 [2024-12-18 15:54:39] Production.ERROR: pbx CDR StartTime 2024-12-18 12:54:05 - End Time 2024-12-18 15:54:05 [2024-12-18 15:54:39] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 15:54:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049202', 'tblTempUsageDetail_20' ) start [2024-12-18 15:54:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049202', 'tblTempUsageDetail_20' ) end [2024-12-18 15:54:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049202', 'tblTempVendorCDR_20' ) start [2024-12-18 15:54:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049202', 'tblTempVendorCDR_20' ) end [2024-12-18 15:54:39] Production.INFO: ProcessCDR(1,14049202,1,1,2) [2024-12-18 15:54:39] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:54:42] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:54:42] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:54:44] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:54:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049202', 'tblTempUsageDetail_20' ) start [2024-12-18 15:54:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049202', 'tblTempUsageDetail_20' ) end [2024-12-18 15:54:44] Production.ERROR: pbx prc_insertCDR start [2024-12-18 15:54:44] Production.ERROR: pbx prc_insertCDR end [2024-12-18 15:54:44] Production.INFO: ==5131== Releasing lock... [2024-12-18 15:54:44] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 15:54:44] Production.INFO: 64 MB #Memory Used# [2024-12-18 15:55:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 12:55:04 [end_date_ymd] => 2024-12-18 15:55:04 [RateCDR] => 1 ) [2024-12-18 15:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 12:55:04' and `end` < '2024-12-18 15:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 15:55:26] Production.INFO: count ==4821 [2024-12-18 15:55:28] Production.ERROR: pbx CDR StartTime 2024-12-18 12:55:04 - End Time 2024-12-18 15:55:04 [2024-12-18 15:55:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 15:55:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049207', 'tblTempUsageDetail_20' ) start [2024-12-18 15:55:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049207', 'tblTempUsageDetail_20' ) end [2024-12-18 15:55:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049207', 'tblTempVendorCDR_20' ) start [2024-12-18 15:55:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049207', 'tblTempVendorCDR_20' ) end [2024-12-18 15:55:28] Production.INFO: ProcessCDR(1,14049207,1,1,2) [2024-12-18 15:55:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:55:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:55:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:55:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:55:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049207', 'tblTempUsageDetail_20' ) start [2024-12-18 15:55:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049207', 'tblTempUsageDetail_20' ) end [2024-12-18 15:55:33] Production.ERROR: pbx prc_insertCDR start [2024-12-18 15:55:33] Production.ERROR: pbx prc_insertCDR end [2024-12-18 15:55:33] Production.INFO: ==5249== Releasing lock... [2024-12-18 15:55:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 15:55:33] Production.INFO: 64 MB #Memory Used# [2024-12-18 15:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 12:56:05 [end_date_ymd] => 2024-12-18 15:56:05 [RateCDR] => 1 ) [2024-12-18 15:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 12:56:05' and `end` < '2024-12-18 15:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 15:56:32] Production.INFO: count ==4848 [2024-12-18 15:56:34] Production.ERROR: pbx CDR StartTime 2024-12-18 12:56:05 - End Time 2024-12-18 15:56:05 [2024-12-18 15:56:34] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 15:56:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049212', 'tblTempUsageDetail_20' ) start [2024-12-18 15:56:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049212', 'tblTempUsageDetail_20' ) end [2024-12-18 15:56:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049212', 'tblTempVendorCDR_20' ) start [2024-12-18 15:56:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049212', 'tblTempVendorCDR_20' ) end [2024-12-18 15:56:34] Production.INFO: ProcessCDR(1,14049212,1,1,2) [2024-12-18 15:56:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:56:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:56:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:56:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:56:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049212', 'tblTempUsageDetail_20' ) start [2024-12-18 15:56:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049212', 'tblTempUsageDetail_20' ) end [2024-12-18 15:56:39] Production.ERROR: pbx prc_insertCDR start [2024-12-18 15:56:39] Production.ERROR: pbx prc_insertCDR end [2024-12-18 15:56:39] Production.INFO: ==5376== Releasing lock... [2024-12-18 15:56:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 15:56:39] Production.INFO: 64.25 MB #Memory Used# [2024-12-18 15:57:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 12:57:04 [end_date_ymd] => 2024-12-18 15:57:04 [RateCDR] => 1 ) [2024-12-18 15:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 12:57:04' and `end` < '2024-12-18 15:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 15:57:22] Production.INFO: count ==4855 [2024-12-18 15:57:24] Production.ERROR: pbx CDR StartTime 2024-12-18 12:57:04 - End Time 2024-12-18 15:57:04 [2024-12-18 15:57:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 15:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049217', 'tblTempUsageDetail_20' ) start [2024-12-18 15:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049217', 'tblTempUsageDetail_20' ) end [2024-12-18 15:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049217', 'tblTempVendorCDR_20' ) start [2024-12-18 15:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049217', 'tblTempVendorCDR_20' ) end [2024-12-18 15:57:24] Production.INFO: ProcessCDR(1,14049217,1,1,2) [2024-12-18 15:57:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:57:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:57:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:57:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049217', 'tblTempUsageDetail_20' ) start [2024-12-18 15:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049217', 'tblTempUsageDetail_20' ) end [2024-12-18 15:57:28] Production.ERROR: pbx prc_insertCDR start [2024-12-18 15:57:28] Production.ERROR: pbx prc_insertCDR end [2024-12-18 15:57:28] Production.INFO: ==5513== Releasing lock... [2024-12-18 15:57:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 15:57:28] Production.INFO: 64.25 MB #Memory Used# [2024-12-18 15:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 12:58:05 [end_date_ymd] => 2024-12-18 15:58:05 [RateCDR] => 1 ) [2024-12-18 15:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 12:58:05' and `end` < '2024-12-18 15:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 15:58:19] Production.INFO: count ==4838 [2024-12-18 15:58:21] Production.ERROR: pbx CDR StartTime 2024-12-18 12:58:05 - End Time 2024-12-18 15:58:05 [2024-12-18 15:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 15:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049222', 'tblTempUsageDetail_20' ) start [2024-12-18 15:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049222', 'tblTempUsageDetail_20' ) end [2024-12-18 15:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049222', 'tblTempVendorCDR_20' ) start [2024-12-18 15:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049222', 'tblTempVendorCDR_20' ) end [2024-12-18 15:58:21] Production.INFO: ProcessCDR(1,14049222,1,1,2) [2024-12-18 15:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049222', 'tblTempUsageDetail_20' ) start [2024-12-18 15:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049222', 'tblTempUsageDetail_20' ) end [2024-12-18 15:58:25] Production.ERROR: pbx prc_insertCDR start [2024-12-18 15:58:25] Production.ERROR: pbx prc_insertCDR end [2024-12-18 15:58:25] Production.INFO: ==5629== Releasing lock... [2024-12-18 15:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 15:58:25] Production.INFO: 64.25 MB #Memory Used# [2024-12-18 15:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 12:59:05 [end_date_ymd] => 2024-12-18 15:59:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 12:59:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 15:59:37] Production.INFO: count ==4842 [2024-12-18 15:59:39] Production.ERROR: pbx CDR StartTime 2024-12-18 12:59:05 - End Time 2024-12-18 15:59:05 [2024-12-18 15:59:39] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 15:59:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049227', 'tblTempUsageDetail_20' ) start [2024-12-18 15:59:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049227', 'tblTempUsageDetail_20' ) end [2024-12-18 15:59:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049227', 'tblTempVendorCDR_20' ) start [2024-12-18 15:59:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049227', 'tblTempVendorCDR_20' ) end [2024-12-18 15:59:39] Production.INFO: ProcessCDR(1,14049227,1,1,2) [2024-12-18 15:59:39] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:59:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 15:59:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:59:44] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 15:59:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049227', 'tblTempUsageDetail_20' ) start [2024-12-18 15:59:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049227', 'tblTempUsageDetail_20' ) end [2024-12-18 15:59:44] Production.ERROR: pbx prc_insertCDR start [2024-12-18 15:59:44] Production.ERROR: pbx prc_insertCDR end [2024-12-18 15:59:44] Production.INFO: ==5742== Releasing lock... [2024-12-18 15:59:44] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 15:59:44] Production.INFO: 64.25 MB #Memory Used# [2024-12-18 16:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 13:00:05 [end_date_ymd] => 2024-12-18 16:00:05 [RateCDR] => 1 ) [2024-12-18 16:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 13:00:05' and `end` < '2024-12-18 16:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 16:00:26] Production.INFO: count ==4860 [2024-12-18 16:00:27] Production.ERROR: pbx CDR StartTime 2024-12-18 13:00:05 - End Time 2024-12-18 16:00:05 [2024-12-18 16:00:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 16:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049232', 'tblTempUsageDetail_20' ) start [2024-12-18 16:00:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049232', 'tblTempUsageDetail_20' ) end [2024-12-18 16:00:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049232', 'tblTempVendorCDR_20' ) start [2024-12-18 16:00:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049232', 'tblTempVendorCDR_20' ) end [2024-12-18 16:00:28] Production.INFO: ProcessCDR(1,14049232,1,1,2) [2024-12-18 16:00:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:00:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:00:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:00:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:00:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049232', 'tblTempUsageDetail_20' ) start [2024-12-18 16:00:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049232', 'tblTempUsageDetail_20' ) end [2024-12-18 16:00:32] Production.ERROR: pbx prc_insertCDR start [2024-12-18 16:00:32] Production.ERROR: pbx prc_insertCDR end [2024-12-18 16:00:32] Production.INFO: ==5859== Releasing lock... [2024-12-18 16:00:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 16:00:32] Production.INFO: 64.5 MB #Memory Used# [2024-12-18 16:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 13:01:05 [end_date_ymd] => 2024-12-18 16:01:05 [RateCDR] => 1 ) [2024-12-18 16:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 13:01:05' and `end` < '2024-12-18 16:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 16:01:26] Production.INFO: count ==4903 [2024-12-18 16:01:28] Production.ERROR: pbx CDR StartTime 2024-12-18 13:01:05 - End Time 2024-12-18 16:01:05 [2024-12-18 16:01:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 16:01:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049238', 'tblTempUsageDetail_20' ) start [2024-12-18 16:01:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049238', 'tblTempUsageDetail_20' ) end [2024-12-18 16:01:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049238', 'tblTempVendorCDR_20' ) start [2024-12-18 16:01:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049238', 'tblTempVendorCDR_20' ) end [2024-12-18 16:01:28] Production.INFO: ProcessCDR(1,14049238,1,1,2) [2024-12-18 16:01:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:01:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:01:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:01:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:01:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049238', 'tblTempUsageDetail_20' ) start [2024-12-18 16:01:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049238', 'tblTempUsageDetail_20' ) end [2024-12-18 16:01:33] Production.ERROR: pbx prc_insertCDR start [2024-12-18 16:01:33] Production.ERROR: pbx prc_insertCDR end [2024-12-18 16:01:33] Production.INFO: ==5990== Releasing lock... [2024-12-18 16:01:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 16:01:33] Production.INFO: 64.75 MB #Memory Used# [2024-12-18 16:02:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 13:02:04 [end_date_ymd] => 2024-12-18 16:02:04 [RateCDR] => 1 ) [2024-12-18 16:02:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 13:02:04' and `end` < '2024-12-18 16:02:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 16:02:29] Production.INFO: count ==4961 [2024-12-18 16:02:31] Production.ERROR: pbx CDR StartTime 2024-12-18 13:02:04 - End Time 2024-12-18 16:02:04 [2024-12-18 16:02:31] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 16:02:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049243', 'tblTempUsageDetail_20' ) start [2024-12-18 16:02:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049243', 'tblTempUsageDetail_20' ) end [2024-12-18 16:02:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049243', 'tblTempVendorCDR_20' ) start [2024-12-18 16:02:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049243', 'tblTempVendorCDR_20' ) end [2024-12-18 16:02:31] Production.INFO: ProcessCDR(1,14049243,1,1,2) [2024-12-18 16:02:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:02:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:02:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:02:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:02:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049243', 'tblTempUsageDetail_20' ) start [2024-12-18 16:02:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049243', 'tblTempUsageDetail_20' ) end [2024-12-18 16:02:36] Production.ERROR: pbx prc_insertCDR start [2024-12-18 16:02:36] Production.ERROR: pbx prc_insertCDR end [2024-12-18 16:02:36] Production.INFO: ==6106== Releasing lock... [2024-12-18 16:02:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 16:02:36] Production.INFO: 65.25 MB #Memory Used# [2024-12-18 16:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 13:03:05 [end_date_ymd] => 2024-12-18 16:03:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 13:03:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 16:03:23] Production.INFO: count ==4981 [2024-12-18 16:03:25] Production.ERROR: pbx CDR StartTime 2024-12-18 13:03:05 - End Time 2024-12-18 16:03:05 [2024-12-18 16:03:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 16:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049248', 'tblTempUsageDetail_20' ) start [2024-12-18 16:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049248', 'tblTempUsageDetail_20' ) end [2024-12-18 16:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049248', 'tblTempVendorCDR_20' ) start [2024-12-18 16:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049248', 'tblTempVendorCDR_20' ) end [2024-12-18 16:03:25] Production.INFO: ProcessCDR(1,14049248,1,1,2) [2024-12-18 16:03:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:03:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:03:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:03:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:03:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049248', 'tblTempUsageDetail_20' ) start [2024-12-18 16:03:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049248', 'tblTempUsageDetail_20' ) end [2024-12-18 16:03:30] Production.ERROR: pbx prc_insertCDR start [2024-12-18 16:03:30] Production.ERROR: pbx prc_insertCDR end [2024-12-18 16:03:30] Production.INFO: ==6220== Releasing lock... [2024-12-18 16:03:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 16:03:30] Production.INFO: 65.25 MB #Memory Used# [2024-12-18 16:04:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 13:04:04 [end_date_ymd] => 2024-12-18 16:04:04 [RateCDR] => 1 ) [2024-12-18 16:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 13:04:04' and `end` < '2024-12-18 16:04:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 16:04:25] Production.INFO: count ==4967 [2024-12-18 16:04:27] Production.ERROR: pbx CDR StartTime 2024-12-18 13:04:04 - End Time 2024-12-18 16:04:04 [2024-12-18 16:04:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 16:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049253', 'tblTempUsageDetail_20' ) start [2024-12-18 16:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049253', 'tblTempUsageDetail_20' ) end [2024-12-18 16:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049253', 'tblTempVendorCDR_20' ) start [2024-12-18 16:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049253', 'tblTempVendorCDR_20' ) end [2024-12-18 16:04:27] Production.INFO: ProcessCDR(1,14049253,1,1,2) [2024-12-18 16:04:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:04:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:04:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:04:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:04:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049253', 'tblTempUsageDetail_20' ) start [2024-12-18 16:04:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049253', 'tblTempUsageDetail_20' ) end [2024-12-18 16:04:31] Production.ERROR: pbx prc_insertCDR start [2024-12-18 16:04:31] Production.ERROR: pbx prc_insertCDR end [2024-12-18 16:04:31] Production.INFO: ==6334== Releasing lock... [2024-12-18 16:04:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 16:04:31] Production.INFO: 65.25 MB #Memory Used# [2024-12-18 16:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 13:05:04 [end_date_ymd] => 2024-12-18 16:05:04 [RateCDR] => 1 ) [2024-12-18 16: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` >= '2024-12-18 13:05:04' and `end` < '2024-12-18 16: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 ,'') [2024-12-18 16:05:23] Production.INFO: count ==4947 [2024-12-18 16:05:25] Production.ERROR: pbx CDR StartTime 2024-12-18 13:05:04 - End Time 2024-12-18 16:05:04 [2024-12-18 16:05:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 16:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049258', 'tblTempUsageDetail_20' ) start [2024-12-18 16:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049258', 'tblTempUsageDetail_20' ) end [2024-12-18 16:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049258', 'tblTempVendorCDR_20' ) start [2024-12-18 16:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049258', 'tblTempVendorCDR_20' ) end [2024-12-18 16:05:25] Production.INFO: ProcessCDR(1,14049258,1,1,2) [2024-12-18 16:05:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:05:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:05:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:05:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:05:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049258', 'tblTempUsageDetail_20' ) start [2024-12-18 16:05:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049258', 'tblTempUsageDetail_20' ) end [2024-12-18 16:05:29] Production.ERROR: pbx prc_insertCDR start [2024-12-18 16:05:29] Production.ERROR: pbx prc_insertCDR end [2024-12-18 16:05:29] Production.INFO: ==6449== Releasing lock... [2024-12-18 16:05:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 16:05:29] Production.INFO: 65 MB #Memory Used# [2024-12-18 16:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 13:06:05 [end_date_ymd] => 2024-12-18 16:06:05 [RateCDR] => 1 ) [2024-12-18 16:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 13:06:05' and `end` < '2024-12-18 16:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 16:06:19] Production.INFO: count ==4951 [2024-12-18 16:06:20] Production.ERROR: pbx CDR StartTime 2024-12-18 13:06:05 - End Time 2024-12-18 16:06:05 [2024-12-18 16:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 16:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049263', 'tblTempUsageDetail_20' ) start [2024-12-18 16:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049263', 'tblTempUsageDetail_20' ) end [2024-12-18 16:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049263', 'tblTempVendorCDR_20' ) start [2024-12-18 16:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049263', 'tblTempVendorCDR_20' ) end [2024-12-18 16:06:21] Production.INFO: ProcessCDR(1,14049263,1,1,2) [2024-12-18 16:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049263', 'tblTempUsageDetail_20' ) start [2024-12-18 16:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049263', 'tblTempUsageDetail_20' ) end [2024-12-18 16:06:25] Production.ERROR: pbx prc_insertCDR start [2024-12-18 16:06:25] Production.ERROR: pbx prc_insertCDR end [2024-12-18 16:06:25] Production.INFO: ==6570== Releasing lock... [2024-12-18 16:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 16:06:25] Production.INFO: 65 MB #Memory Used# [2024-12-18 16:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 13:07:04 [end_date_ymd] => 2024-12-18 16:07:04 [RateCDR] => 1 ) [2024-12-18 16:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 13:07:04' and `end` < '2024-12-18 16: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 ,'') [2024-12-18 16:07:22] Production.INFO: count ==4967 [2024-12-18 16:07:24] Production.ERROR: pbx CDR StartTime 2024-12-18 13:07:04 - End Time 2024-12-18 16:07:04 [2024-12-18 16:07:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 16:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049268', 'tblTempUsageDetail_20' ) start [2024-12-18 16:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049268', 'tblTempUsageDetail_20' ) end [2024-12-18 16:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049268', 'tblTempVendorCDR_20' ) start [2024-12-18 16:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049268', 'tblTempVendorCDR_20' ) end [2024-12-18 16:07:24] Production.INFO: ProcessCDR(1,14049268,1,1,2) [2024-12-18 16:07:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:07:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:07:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:07:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049268', 'tblTempUsageDetail_20' ) start [2024-12-18 16:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049268', 'tblTempUsageDetail_20' ) end [2024-12-18 16:07:28] Production.ERROR: pbx prc_insertCDR start [2024-12-18 16:07:28] Production.ERROR: pbx prc_insertCDR end [2024-12-18 16:07:28] Production.INFO: ==6681== Releasing lock... [2024-12-18 16:07:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 16:07:28] Production.INFO: 65.25 MB #Memory Used# [2024-12-18 16:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 13:08:05 [end_date_ymd] => 2024-12-18 16:08:05 [RateCDR] => 1 ) [2024-12-18 16:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 13:08:05' and `end` < '2024-12-18 16:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 16:08:23] Production.INFO: count ==4946 [2024-12-18 16:08:25] Production.ERROR: pbx CDR StartTime 2024-12-18 13:08:05 - End Time 2024-12-18 16:08:05 [2024-12-18 16:08:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 16:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049273', 'tblTempUsageDetail_20' ) start [2024-12-18 16:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049273', 'tblTempUsageDetail_20' ) end [2024-12-18 16:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049273', 'tblTempVendorCDR_20' ) start [2024-12-18 16:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049273', 'tblTempVendorCDR_20' ) end [2024-12-18 16:08:25] Production.INFO: ProcessCDR(1,14049273,1,1,2) [2024-12-18 16:08:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:08:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:08:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:08:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:08:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049273', 'tblTempUsageDetail_20' ) start [2024-12-18 16:08:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049273', 'tblTempUsageDetail_20' ) end [2024-12-18 16:08:30] Production.ERROR: pbx prc_insertCDR start [2024-12-18 16:08:30] Production.ERROR: pbx prc_insertCDR end [2024-12-18 16:08:30] Production.INFO: ==6797== Releasing lock... [2024-12-18 16:08:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 16:08:30] Production.INFO: 65 MB #Memory Used# [2024-12-18 16:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 13:09:04 [end_date_ymd] => 2024-12-18 16:09:04 [RateCDR] => 1 ) [2024-12-18 16:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 13:09:04' and `end` < '2024-12-18 16:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 16:09:23] Production.INFO: count ==4937 [2024-12-18 16:09:25] Production.ERROR: pbx CDR StartTime 2024-12-18 13:09:04 - End Time 2024-12-18 16:09:04 [2024-12-18 16:09:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 16:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049278', 'tblTempUsageDetail_20' ) start [2024-12-18 16:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049278', 'tblTempUsageDetail_20' ) end [2024-12-18 16:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049278', 'tblTempVendorCDR_20' ) start [2024-12-18 16:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049278', 'tblTempVendorCDR_20' ) end [2024-12-18 16:09:25] Production.INFO: ProcessCDR(1,14049278,1,1,2) [2024-12-18 16:09:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:09:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:09:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:09:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:09:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049278', 'tblTempUsageDetail_20' ) start [2024-12-18 16:09:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049278', 'tblTempUsageDetail_20' ) end [2024-12-18 16:09:29] Production.ERROR: pbx prc_insertCDR start [2024-12-18 16:09:29] Production.ERROR: pbx prc_insertCDR end [2024-12-18 16:09:29] Production.INFO: ==6910== Releasing lock... [2024-12-18 16:09:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 16:09:29] Production.INFO: 65 MB #Memory Used# [2024-12-18 16:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 13:10:05 [end_date_ymd] => 2024-12-18 16:10:05 [RateCDR] => 1 ) [2024-12-18 16: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` >= '2024-12-18 13:10:05' and `end` < '2024-12-18 16: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 ,'') [2024-12-18 16:10:23] Production.INFO: count ==4916 [2024-12-18 16:10:25] Production.ERROR: pbx CDR StartTime 2024-12-18 13:10:05 - End Time 2024-12-18 16:10:05 [2024-12-18 16:10:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 16:10:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049283', 'tblTempUsageDetail_20' ) start [2024-12-18 16:10:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049283', 'tblTempUsageDetail_20' ) end [2024-12-18 16:10:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049283', 'tblTempVendorCDR_20' ) start [2024-12-18 16:10:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049283', 'tblTempVendorCDR_20' ) end [2024-12-18 16:10:25] Production.INFO: ProcessCDR(1,14049283,1,1,2) [2024-12-18 16:10:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:10:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:10:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:10:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049283', 'tblTempUsageDetail_20' ) start [2024-12-18 16:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049283', 'tblTempUsageDetail_20' ) end [2024-12-18 16:10:29] Production.ERROR: pbx prc_insertCDR start [2024-12-18 16:10:29] Production.ERROR: pbx prc_insertCDR end [2024-12-18 16:10:29] Production.INFO: ==7028== Releasing lock... [2024-12-18 16:10:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 16:10:29] Production.INFO: 64.75 MB #Memory Used# [2024-12-18 16:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 13:11:04 [end_date_ymd] => 2024-12-18 16:11:04 [RateCDR] => 1 ) [2024-12-18 16:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 13:11:04' and `end` < '2024-12-18 16:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 16:11:18] Production.INFO: count ==4922 [2024-12-18 16:11:20] Production.ERROR: pbx CDR StartTime 2024-12-18 13:11:04 - End Time 2024-12-18 16:11:04 [2024-12-18 16:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 16:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049289', 'tblTempUsageDetail_20' ) start [2024-12-18 16:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049289', 'tblTempUsageDetail_20' ) end [2024-12-18 16:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049289', 'tblTempVendorCDR_20' ) start [2024-12-18 16:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049289', 'tblTempVendorCDR_20' ) end [2024-12-18 16:11:20] Production.INFO: ProcessCDR(1,14049289,1,1,2) [2024-12-18 16:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049289', 'tblTempUsageDetail_20' ) start [2024-12-18 16:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049289', 'tblTempUsageDetail_20' ) end [2024-12-18 16:11:24] Production.ERROR: pbx prc_insertCDR start [2024-12-18 16:11:24] Production.ERROR: pbx prc_insertCDR end [2024-12-18 16:11:24] Production.INFO: ==7120== Releasing lock... [2024-12-18 16:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 16:11:24] Production.INFO: 64.75 MB #Memory Used# [2024-12-18 16:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 13:12:05 [end_date_ymd] => 2024-12-18 16:12:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 13:12:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 16:12:19] Production.INFO: count ==4906 [2024-12-18 16:12:21] Production.ERROR: pbx CDR StartTime 2024-12-18 13:12:05 - End Time 2024-12-18 16:12:05 [2024-12-18 16:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049294', 'tblTempUsageDetail_20' ) start [2024-12-18 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049294', 'tblTempUsageDetail_20' ) end [2024-12-18 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049294', 'tblTempVendorCDR_20' ) start [2024-12-18 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049294', 'tblTempVendorCDR_20' ) end [2024-12-18 16:12:21] Production.INFO: ProcessCDR(1,14049294,1,1,2) [2024-12-18 16:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049294', 'tblTempUsageDetail_20' ) start [2024-12-18 16:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049294', 'tblTempUsageDetail_20' ) end [2024-12-18 16:12:26] Production.ERROR: pbx prc_insertCDR start [2024-12-18 16:12:26] Production.ERROR: pbx prc_insertCDR end [2024-12-18 16:12:26] Production.INFO: ==7246== Releasing lock... [2024-12-18 16:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 16:12:26] Production.INFO: 64.75 MB #Memory Used# [2024-12-18 16:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 13:13:05 [end_date_ymd] => 2024-12-18 16:13:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 13:13:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 16:13:24] Production.INFO: count ==4885 [2024-12-18 16:13:26] Production.ERROR: pbx CDR StartTime 2024-12-18 13:13:05 - End Time 2024-12-18 16:13:05 [2024-12-18 16:13:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 16:13:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049299', 'tblTempUsageDetail_20' ) start [2024-12-18 16:13:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049299', 'tblTempUsageDetail_20' ) end [2024-12-18 16:13:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049299', 'tblTempVendorCDR_20' ) start [2024-12-18 16:13:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049299', 'tblTempVendorCDR_20' ) end [2024-12-18 16:13:26] Production.INFO: ProcessCDR(1,14049299,1,1,2) [2024-12-18 16:13:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:13:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:13:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:13:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:13:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049299', 'tblTempUsageDetail_20' ) start [2024-12-18 16:13:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049299', 'tblTempUsageDetail_20' ) end [2024-12-18 16:13:31] Production.ERROR: pbx prc_insertCDR start [2024-12-18 16:13:31] Production.ERROR: pbx prc_insertCDR end [2024-12-18 16:13:31] Production.INFO: ==7338== Releasing lock... [2024-12-18 16:13:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 16:13:31] Production.INFO: 64.5 MB #Memory Used# [2024-12-18 16:14:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 13:14:04 [end_date_ymd] => 2024-12-18 16:14:04 [RateCDR] => 1 ) [2024-12-18 16:14:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 13:14:04' and `end` < '2024-12-18 16:14:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 16:14:27] Production.INFO: count ==4862 [2024-12-18 16:14:28] Production.ERROR: pbx CDR StartTime 2024-12-18 13:14:04 - End Time 2024-12-18 16:14:04 [2024-12-18 16:14:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 16:14:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049304', 'tblTempUsageDetail_20' ) start [2024-12-18 16:14:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049304', 'tblTempUsageDetail_20' ) end [2024-12-18 16:14:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049304', 'tblTempVendorCDR_20' ) start [2024-12-18 16:14:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049304', 'tblTempVendorCDR_20' ) end [2024-12-18 16:14:29] Production.INFO: ProcessCDR(1,14049304,1,1,2) [2024-12-18 16:14:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:14:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:14:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:14:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:14:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049304', 'tblTempUsageDetail_20' ) start [2024-12-18 16:14:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049304', 'tblTempUsageDetail_20' ) end [2024-12-18 16:14:33] Production.ERROR: pbx prc_insertCDR start [2024-12-18 16:14:33] Production.ERROR: pbx prc_insertCDR end [2024-12-18 16:14:33] Production.INFO: ==7424== Releasing lock... [2024-12-18 16:14:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 16:14:33] Production.INFO: 64.5 MB #Memory Used# [2024-12-18 16:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 13:15:05 [end_date_ymd] => 2024-12-18 16:15:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 13:15:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 16:15:23] Production.INFO: count ==4868 [2024-12-18 16:15:25] Production.ERROR: pbx CDR StartTime 2024-12-18 13:15:05 - End Time 2024-12-18 16:15:05 [2024-12-18 16:15:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 16:15:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049309', 'tblTempUsageDetail_20' ) start [2024-12-18 16:15:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049309', 'tblTempUsageDetail_20' ) end [2024-12-18 16:15:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049309', 'tblTempVendorCDR_20' ) start [2024-12-18 16:15:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049309', 'tblTempVendorCDR_20' ) end [2024-12-18 16:15:25] Production.INFO: ProcessCDR(1,14049309,1,1,2) [2024-12-18 16:15:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:15:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:15:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:15:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:15:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049309', 'tblTempUsageDetail_20' ) start [2024-12-18 16:15:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049309', 'tblTempUsageDetail_20' ) end [2024-12-18 16:15:31] Production.ERROR: pbx prc_insertCDR start [2024-12-18 16:15:31] Production.ERROR: pbx prc_insertCDR end [2024-12-18 16:15:31] Production.INFO: ==7516== Releasing lock... [2024-12-18 16:15:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 16:15:31] Production.INFO: 64.5 MB #Memory Used# [2024-12-18 16:16:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 13:16:04 [end_date_ymd] => 2024-12-18 16:16:04 [RateCDR] => 1 ) [2024-12-18 16:16:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 13:16:04' and `end` < '2024-12-18 16:16:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 16:16:23] Production.INFO: count ==4907 [2024-12-18 16:16:25] Production.ERROR: pbx CDR StartTime 2024-12-18 13:16:04 - End Time 2024-12-18 16:16:04 [2024-12-18 16:16:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 16:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049314', 'tblTempUsageDetail_20' ) start [2024-12-18 16:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049314', 'tblTempUsageDetail_20' ) end [2024-12-18 16:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049314', 'tblTempVendorCDR_20' ) start [2024-12-18 16:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049314', 'tblTempVendorCDR_20' ) end [2024-12-18 16:16:25] Production.INFO: ProcessCDR(1,14049314,1,1,2) [2024-12-18 16:16:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:16:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:16:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:16:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:16:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049314', 'tblTempUsageDetail_20' ) start [2024-12-18 16:16:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049314', 'tblTempUsageDetail_20' ) end [2024-12-18 16:16:29] Production.ERROR: pbx prc_insertCDR start [2024-12-18 16:16:29] Production.ERROR: pbx prc_insertCDR end [2024-12-18 16:16:29] Production.INFO: ==7607== Releasing lock... [2024-12-18 16:16:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 16:16:29] Production.INFO: 64.75 MB #Memory Used# [2024-12-18 16:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 13:17:04 [end_date_ymd] => 2024-12-18 16:17:04 [RateCDR] => 1 ) [2024-12-18 16: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` >= '2024-12-18 13:17:04' and `end` < '2024-12-18 16: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 ,'') [2024-12-18 16:17:27] Production.INFO: count ==4920 [2024-12-18 16:17:29] Production.ERROR: pbx CDR StartTime 2024-12-18 13:17:04 - End Time 2024-12-18 16:17:04 [2024-12-18 16:17:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 16:17:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049319', 'tblTempUsageDetail_20' ) start [2024-12-18 16:17:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049319', 'tblTempUsageDetail_20' ) end [2024-12-18 16:17:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049319', 'tblTempVendorCDR_20' ) start [2024-12-18 16:17:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049319', 'tblTempVendorCDR_20' ) end [2024-12-18 16:17:29] Production.INFO: ProcessCDR(1,14049319,1,1,2) [2024-12-18 16:17:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:17:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:17:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:17:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:17:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049319', 'tblTempUsageDetail_20' ) start [2024-12-18 16:17:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049319', 'tblTempUsageDetail_20' ) end [2024-12-18 16:17:33] Production.ERROR: pbx prc_insertCDR start [2024-12-18 16:17:33] Production.ERROR: pbx prc_insertCDR end [2024-12-18 16:17:33] Production.INFO: ==7713== Releasing lock... [2024-12-18 16:17:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 16:17:33] Production.INFO: 64.75 MB #Memory Used# [2024-12-18 16:18:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 13:18:04 [end_date_ymd] => 2024-12-18 16:18:04 [RateCDR] => 1 ) [2024-12-18 16:18: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` >= '2024-12-18 13:18:04' and `end` < '2024-12-18 16:18: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 ,'') [2024-12-18 16:18:32] Production.INFO: count ==4920 [2024-12-18 16:18:33] Production.ERROR: pbx CDR StartTime 2024-12-18 13:18:04 - End Time 2024-12-18 16:18:04 [2024-12-18 16:18:33] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 16:18:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049324', 'tblTempUsageDetail_20' ) start [2024-12-18 16:18:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049324', 'tblTempUsageDetail_20' ) end [2024-12-18 16:18:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049324', 'tblTempVendorCDR_20' ) start [2024-12-18 16:18:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049324', 'tblTempVendorCDR_20' ) end [2024-12-18 16:18:34] Production.INFO: ProcessCDR(1,14049324,1,1,2) [2024-12-18 16:18:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:18:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:18:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:18:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:18:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049324', 'tblTempUsageDetail_20' ) start [2024-12-18 16:18:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049324', 'tblTempUsageDetail_20' ) end [2024-12-18 16:18:39] Production.ERROR: pbx prc_insertCDR start [2024-12-18 16:18:39] Production.ERROR: pbx prc_insertCDR end [2024-12-18 16:18:39] Production.INFO: ==7805== Releasing lock... [2024-12-18 16:18:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 16:18:39] Production.INFO: 64.75 MB #Memory Used# [2024-12-18 16:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 13:19:05 [end_date_ymd] => 2024-12-18 16:19:05 [RateCDR] => 1 ) [2024-12-18 16:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 13:19:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 16:19:24] Production.INFO: count ==4934 [2024-12-18 16:19:26] Production.ERROR: pbx CDR StartTime 2024-12-18 13:19:05 - End Time 2024-12-18 16:19:05 [2024-12-18 16:19:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 16:19:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049329', 'tblTempUsageDetail_20' ) start [2024-12-18 16:19:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049329', 'tblTempUsageDetail_20' ) end [2024-12-18 16:19:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049329', 'tblTempVendorCDR_20' ) start [2024-12-18 16:19:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049329', 'tblTempVendorCDR_20' ) end [2024-12-18 16:19:26] Production.INFO: ProcessCDR(1,14049329,1,1,2) [2024-12-18 16:19:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:19:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:19:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:19:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:19:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049329', 'tblTempUsageDetail_20' ) start [2024-12-18 16:19:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049329', 'tblTempUsageDetail_20' ) end [2024-12-18 16:19:30] Production.ERROR: pbx prc_insertCDR start [2024-12-18 16:19:30] Production.ERROR: pbx prc_insertCDR end [2024-12-18 16:19:30] Production.INFO: ==7894== Releasing lock... [2024-12-18 16:19:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 16:19:30] Production.INFO: 65 MB #Memory Used# [2024-12-18 16:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 13:20:06 [end_date_ymd] => 2024-12-18 16:20:06 [RateCDR] => 1 ) [2024-12-18 16:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 13:20:06' and `end` < '2024-12-18 16:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 16:20:24] Production.INFO: count ==4931 [2024-12-18 16:20:26] Production.ERROR: pbx CDR StartTime 2024-12-18 13:20:06 - End Time 2024-12-18 16:20:06 [2024-12-18 16:20:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 16:20:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049335', 'tblTempUsageDetail_20' ) start [2024-12-18 16:20:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049335', 'tblTempUsageDetail_20' ) end [2024-12-18 16:20:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049335', 'tblTempVendorCDR_20' ) start [2024-12-18 16:20:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049335', 'tblTempVendorCDR_20' ) end [2024-12-18 16:20:26] Production.INFO: ProcessCDR(1,14049335,1,1,2) [2024-12-18 16:20:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:20:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:20:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:20:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:20:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049335', 'tblTempUsageDetail_20' ) start [2024-12-18 16:20:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049335', 'tblTempUsageDetail_20' ) end [2024-12-18 16:20:31] Production.ERROR: pbx prc_insertCDR start [2024-12-18 16:20:31] Production.ERROR: pbx prc_insertCDR end [2024-12-18 16:20:31] Production.INFO: ==7986== Releasing lock... [2024-12-18 16:20:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 16:20:31] Production.INFO: 65 MB #Memory Used# [2024-12-18 16:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 13:21:04 [end_date_ymd] => 2024-12-18 16:21:04 [RateCDR] => 1 ) [2024-12-18 16:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 13:21:04' and `end` < '2024-12-18 16:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 16:21:21] Production.INFO: count ==4961 [2024-12-18 16:21:23] Production.ERROR: pbx CDR StartTime 2024-12-18 13:21:04 - End Time 2024-12-18 16:21:04 [2024-12-18 16:21:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 16:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049340', 'tblTempUsageDetail_20' ) start [2024-12-18 16:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049340', 'tblTempUsageDetail_20' ) end [2024-12-18 16:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049340', 'tblTempVendorCDR_20' ) start [2024-12-18 16:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049340', 'tblTempVendorCDR_20' ) end [2024-12-18 16:21:23] Production.INFO: ProcessCDR(1,14049340,1,1,2) [2024-12-18 16:21:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:21:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:21:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:21:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049340', 'tblTempUsageDetail_20' ) start [2024-12-18 16:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049340', 'tblTempUsageDetail_20' ) end [2024-12-18 16:21:28] Production.ERROR: pbx prc_insertCDR start [2024-12-18 16:21:28] Production.ERROR: pbx prc_insertCDR end [2024-12-18 16:21:28] Production.INFO: ==8078== Releasing lock... [2024-12-18 16:21:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 16:21:28] Production.INFO: 65.25 MB #Memory Used# [2024-12-18 16:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 13:22:05 [end_date_ymd] => 2024-12-18 16:22:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 13:22:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 16:22:19] Production.INFO: count ==4962 [2024-12-18 16:22:21] Production.ERROR: pbx CDR StartTime 2024-12-18 13:22:05 - End Time 2024-12-18 16:22:05 [2024-12-18 16:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 16:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049345', 'tblTempUsageDetail_20' ) start [2024-12-18 16:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049345', 'tblTempUsageDetail_20' ) end [2024-12-18 16:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049345', 'tblTempVendorCDR_20' ) start [2024-12-18 16:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049345', 'tblTempVendorCDR_20' ) end [2024-12-18 16:22:21] Production.INFO: ProcessCDR(1,14049345,1,1,2) [2024-12-18 16:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049345', 'tblTempUsageDetail_20' ) start [2024-12-18 16:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049345', 'tblTempUsageDetail_20' ) end [2024-12-18 16:22:25] Production.ERROR: pbx prc_insertCDR start [2024-12-18 16:22:25] Production.ERROR: pbx prc_insertCDR end [2024-12-18 16:22:25] Production.INFO: ==8174== Releasing lock... [2024-12-18 16:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 16:22:25] Production.INFO: 65.25 MB #Memory Used# [2024-12-18 16:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 13:23:04 [end_date_ymd] => 2024-12-18 16:23:04 [RateCDR] => 1 ) [2024-12-18 16:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 13:23:04' and `end` < '2024-12-18 16:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 16:23:22] Production.INFO: count ==4956 [2024-12-18 16:23:24] Production.ERROR: pbx CDR StartTime 2024-12-18 13:23:04 - End Time 2024-12-18 16:23:04 [2024-12-18 16:23:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 16:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049350', 'tblTempUsageDetail_20' ) start [2024-12-18 16:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049350', 'tblTempUsageDetail_20' ) end [2024-12-18 16:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049350', 'tblTempVendorCDR_20' ) start [2024-12-18 16:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049350', 'tblTempVendorCDR_20' ) end [2024-12-18 16:23:24] Production.INFO: ProcessCDR(1,14049350,1,1,2) [2024-12-18 16:23:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:23:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:23:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:23:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049350', 'tblTempUsageDetail_20' ) start [2024-12-18 16:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049350', 'tblTempUsageDetail_20' ) end [2024-12-18 16:23:28] Production.ERROR: pbx prc_insertCDR start [2024-12-18 16:23:28] Production.ERROR: pbx prc_insertCDR end [2024-12-18 16:23:28] Production.INFO: ==8261== Releasing lock... [2024-12-18 16:23:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 16:23:28] Production.INFO: 65 MB #Memory Used# [2024-12-18 16:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 13:24:05 [end_date_ymd] => 2024-12-18 16:24:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 13:24:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 16:24:22] Production.INFO: count ==4943 [2024-12-18 16:24:24] Production.ERROR: pbx CDR StartTime 2024-12-18 13:24:05 - End Time 2024-12-18 16:24:05 [2024-12-18 16:24:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 16:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049355', 'tblTempUsageDetail_20' ) start [2024-12-18 16:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049355', 'tblTempUsageDetail_20' ) end [2024-12-18 16:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049355', 'tblTempVendorCDR_20' ) start [2024-12-18 16:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049355', 'tblTempVendorCDR_20' ) end [2024-12-18 16:24:24] Production.INFO: ProcessCDR(1,14049355,1,1,2) [2024-12-18 16:24:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:24:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:24:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:24:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049355', 'tblTempUsageDetail_20' ) start [2024-12-18 16:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049355', 'tblTempUsageDetail_20' ) end [2024-12-18 16:24:28] Production.ERROR: pbx prc_insertCDR start [2024-12-18 16:24:28] Production.ERROR: pbx prc_insertCDR end [2024-12-18 16:24:28] Production.INFO: ==8356== Releasing lock... [2024-12-18 16:24:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 16:24:28] Production.INFO: 65 MB #Memory Used# [2024-12-18 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 13:25:05 [end_date_ymd] => 2024-12-18 16:25:05 [RateCDR] => 1 ) [2024-12-18 16:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 13:25:05' and `end` < '2024-12-18 16:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 16:25:23] Production.INFO: count ==4940 [2024-12-18 16:25:24] Production.ERROR: pbx CDR StartTime 2024-12-18 13:25:05 - End Time 2024-12-18 16:25:05 [2024-12-18 16:25:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 16:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049360', 'tblTempUsageDetail_20' ) start [2024-12-18 16:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049360', 'tblTempUsageDetail_20' ) end [2024-12-18 16:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049360', 'tblTempVendorCDR_20' ) start [2024-12-18 16:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049360', 'tblTempVendorCDR_20' ) end [2024-12-18 16:25:25] Production.INFO: ProcessCDR(1,14049360,1,1,2) [2024-12-18 16:25:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049360', 'tblTempUsageDetail_20' ) start [2024-12-18 16:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049360', 'tblTempUsageDetail_20' ) end [2024-12-18 16:25:29] Production.ERROR: pbx prc_insertCDR start [2024-12-18 16:25:29] Production.ERROR: pbx prc_insertCDR end [2024-12-18 16:25:29] Production.INFO: ==8454== Releasing lock... [2024-12-18 16:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 16:25:29] Production.INFO: 65 MB #Memory Used# [2024-12-18 16:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 13:26:05 [end_date_ymd] => 2024-12-18 16:26:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 13:26:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 16:26:25] Production.INFO: count ==4941 [2024-12-18 16:26:27] Production.ERROR: pbx CDR StartTime 2024-12-18 13:26:05 - End Time 2024-12-18 16:26:05 [2024-12-18 16:26:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 16:26:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049365', 'tblTempUsageDetail_20' ) start [2024-12-18 16:26:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049365', 'tblTempUsageDetail_20' ) end [2024-12-18 16:26:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049365', 'tblTempVendorCDR_20' ) start [2024-12-18 16:26:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049365', 'tblTempVendorCDR_20' ) end [2024-12-18 16:26:27] Production.INFO: ProcessCDR(1,14049365,1,1,2) [2024-12-18 16:26:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:26:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:26:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:26:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:26:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049365', 'tblTempUsageDetail_20' ) start [2024-12-18 16:26:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049365', 'tblTempUsageDetail_20' ) end [2024-12-18 16:26:32] Production.ERROR: pbx prc_insertCDR start [2024-12-18 16:26:32] Production.ERROR: pbx prc_insertCDR end [2024-12-18 16:26:32] Production.INFO: ==8545== Releasing lock... [2024-12-18 16:26:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 16:26:32] Production.INFO: 65 MB #Memory Used# [2024-12-18 16:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 13:27:05 [end_date_ymd] => 2024-12-18 16:27:05 [RateCDR] => 1 ) [2024-12-18 16:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 13:27:05' and `end` < '2024-12-18 16:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 16:27:20] Production.INFO: count ==4950 [2024-12-18 16:27:22] Production.ERROR: pbx CDR StartTime 2024-12-18 13:27:05 - End Time 2024-12-18 16:27:05 [2024-12-18 16:27:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 16:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049370', 'tblTempUsageDetail_20' ) start [2024-12-18 16:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049370', 'tblTempUsageDetail_20' ) end [2024-12-18 16:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049370', 'tblTempVendorCDR_20' ) start [2024-12-18 16:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049370', 'tblTempVendorCDR_20' ) end [2024-12-18 16:27:22] Production.INFO: ProcessCDR(1,14049370,1,1,2) [2024-12-18 16:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:27:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049370', 'tblTempUsageDetail_20' ) start [2024-12-18 16:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049370', 'tblTempUsageDetail_20' ) end [2024-12-18 16:27:27] Production.ERROR: pbx prc_insertCDR start [2024-12-18 16:27:27] Production.ERROR: pbx prc_insertCDR end [2024-12-18 16:27:27] Production.INFO: ==8640== Releasing lock... [2024-12-18 16:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 16:27:27] Production.INFO: 65 MB #Memory Used# [2024-12-18 16:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 13:28:05 [end_date_ymd] => 2024-12-18 16:28:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 13:28:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 16:28:22] Production.INFO: count ==4948 [2024-12-18 16:28:24] Production.ERROR: pbx CDR StartTime 2024-12-18 13:28:05 - End Time 2024-12-18 16:28:05 [2024-12-18 16:28:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 16:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049375', 'tblTempUsageDetail_20' ) start [2024-12-18 16:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049375', 'tblTempUsageDetail_20' ) end [2024-12-18 16:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049375', 'tblTempVendorCDR_20' ) start [2024-12-18 16:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049375', 'tblTempVendorCDR_20' ) end [2024-12-18 16:28:24] Production.INFO: ProcessCDR(1,14049375,1,1,2) [2024-12-18 16:28:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:28:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:28:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:28:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049375', 'tblTempUsageDetail_20' ) start [2024-12-18 16:28:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049375', 'tblTempUsageDetail_20' ) end [2024-12-18 16:28:29] Production.ERROR: pbx prc_insertCDR start [2024-12-18 16:28:29] Production.ERROR: pbx prc_insertCDR end [2024-12-18 16:28:29] Production.INFO: ==8766== Releasing lock... [2024-12-18 16:28:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 16:28:29] Production.INFO: 65 MB #Memory Used# [2024-12-18 16:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 13:29:05 [end_date_ymd] => 2024-12-18 16:29:05 [RateCDR] => 1 ) [2024-12-18 16:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 13:29:05' and `end` < '2024-12-18 16:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 16:29:19] Production.INFO: count ==4953 [2024-12-18 16:29:21] Production.ERROR: pbx CDR StartTime 2024-12-18 13:29:05 - End Time 2024-12-18 16:29:05 [2024-12-18 16:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 16:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049380', 'tblTempUsageDetail_20' ) start [2024-12-18 16:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049380', 'tblTempUsageDetail_20' ) end [2024-12-18 16:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049380', 'tblTempVendorCDR_20' ) start [2024-12-18 16:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049380', 'tblTempVendorCDR_20' ) end [2024-12-18 16:29:21] Production.INFO: ProcessCDR(1,14049380,1,1,2) [2024-12-18 16:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049380', 'tblTempUsageDetail_20' ) start [2024-12-18 16:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049380', 'tblTempUsageDetail_20' ) end [2024-12-18 16:29:25] Production.ERROR: pbx prc_insertCDR start [2024-12-18 16:29:25] Production.ERROR: pbx prc_insertCDR end [2024-12-18 16:29:25] Production.INFO: ==8858== Releasing lock... [2024-12-18 16:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 16:29:25] Production.INFO: 65 MB #Memory Used# [2024-12-18 16:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 13:30:06 [end_date_ymd] => 2024-12-18 16:30:06 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 13:30:06' and `end` < '2024-12-18 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 ,'') [2024-12-18 16:30:19] Production.INFO: count ==4963 [2024-12-18 16:30:21] Production.ERROR: pbx CDR StartTime 2024-12-18 13:30:06 - End Time 2024-12-18 16:30:06 [2024-12-18 16:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 16:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049386', 'tblTempUsageDetail_20' ) start [2024-12-18 16:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049386', 'tblTempUsageDetail_20' ) end [2024-12-18 16:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049386', 'tblTempVendorCDR_20' ) start [2024-12-18 16:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049386', 'tblTempVendorCDR_20' ) end [2024-12-18 16:30:21] Production.INFO: ProcessCDR(1,14049386,1,1,2) [2024-12-18 16:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049386', 'tblTempUsageDetail_20' ) start [2024-12-18 16:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049386', 'tblTempUsageDetail_20' ) end [2024-12-18 16:30:26] Production.ERROR: pbx prc_insertCDR start [2024-12-18 16:30:27] Production.ERROR: pbx prc_insertCDR end [2024-12-18 16:30:27] Production.INFO: ==8951== Releasing lock... [2024-12-18 16:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 16:30:27] Production.INFO: 65.25 MB #Memory Used# [2024-12-18 16:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 13:31:05 [end_date_ymd] => 2024-12-18 16:31:05 [RateCDR] => 1 ) [2024-12-18 16:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 13:31:05' and `end` < '2024-12-18 16:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 16:31:25] Production.INFO: count ==4999 [2024-12-18 16:31:26] Production.ERROR: pbx CDR StartTime 2024-12-18 13:31:05 - End Time 2024-12-18 16:31:05 [2024-12-18 16:31:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 16:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049391', 'tblTempUsageDetail_20' ) start [2024-12-18 16:31:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049391', 'tblTempUsageDetail_20' ) end [2024-12-18 16:31:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049391', 'tblTempVendorCDR_20' ) start [2024-12-18 16:31:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049391', 'tblTempVendorCDR_20' ) end [2024-12-18 16:31:27] Production.INFO: ProcessCDR(1,14049391,1,1,2) [2024-12-18 16:31:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:31:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:31:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:31:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:31:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049391', 'tblTempUsageDetail_20' ) start [2024-12-18 16:31:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049391', 'tblTempUsageDetail_20' ) end [2024-12-18 16:31:31] Production.ERROR: pbx prc_insertCDR start [2024-12-18 16:31:31] Production.ERROR: pbx prc_insertCDR end [2024-12-18 16:31:31] Production.INFO: ==9044== Releasing lock... [2024-12-18 16:31:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 16:31:31] Production.INFO: 65.5 MB #Memory Used# [2024-12-18 16:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 13:32:05 [end_date_ymd] => 2024-12-18 16:32:05 [RateCDR] => 1 ) [2024-12-18 16:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 13:32:05' and `end` < '2024-12-18 16:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 16:32:29] Production.INFO: count ==4998 [2024-12-18 16:32:31] Production.ERROR: pbx CDR StartTime 2024-12-18 13:32:05 - End Time 2024-12-18 16:32:05 [2024-12-18 16:32:31] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 16:32:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049396', 'tblTempUsageDetail_20' ) start [2024-12-18 16:32:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049396', 'tblTempUsageDetail_20' ) end [2024-12-18 16:32:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049396', 'tblTempVendorCDR_20' ) start [2024-12-18 16:32:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049396', 'tblTempVendorCDR_20' ) end [2024-12-18 16:32:31] Production.INFO: ProcessCDR(1,14049396,1,1,2) [2024-12-18 16:32:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:32:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:32:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:32:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:32:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049396', 'tblTempUsageDetail_20' ) start [2024-12-18 16:32:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049396', 'tblTempUsageDetail_20' ) end [2024-12-18 16:32:35] Production.ERROR: pbx prc_insertCDR start [2024-12-18 16:32:35] Production.ERROR: pbx prc_insertCDR end [2024-12-18 16:32:35] Production.INFO: ==9133== Releasing lock... [2024-12-18 16:32:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 16:32:35] Production.INFO: 65.5 MB #Memory Used# [2024-12-18 16:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 13:33:05 [end_date_ymd] => 2024-12-18 16:33:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 13:33:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 16:33:22] Production.INFO: count ==4989 [2024-12-18 16:33:24] Production.ERROR: pbx CDR StartTime 2024-12-18 13:33:05 - End Time 2024-12-18 16:33:05 [2024-12-18 16:33:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 16:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049401', 'tblTempUsageDetail_20' ) start [2024-12-18 16:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049401', 'tblTempUsageDetail_20' ) end [2024-12-18 16:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049401', 'tblTempVendorCDR_20' ) start [2024-12-18 16:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049401', 'tblTempVendorCDR_20' ) end [2024-12-18 16:33:24] Production.INFO: ProcessCDR(1,14049401,1,1,2) [2024-12-18 16:33:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:33:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:33:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049401', 'tblTempUsageDetail_20' ) start [2024-12-18 16:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049401', 'tblTempUsageDetail_20' ) end [2024-12-18 16:33:27] Production.ERROR: pbx prc_insertCDR start [2024-12-18 16:33:27] Production.ERROR: pbx prc_insertCDR end [2024-12-18 16:33:27] Production.INFO: ==9221== Releasing lock... [2024-12-18 16:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 16:33:27] Production.INFO: 65.25 MB #Memory Used# [2024-12-18 16:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 13:34:05 [end_date_ymd] => 2024-12-18 16:34:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 13:34:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 16:34:21] Production.INFO: count ==4992 [2024-12-18 16:34:23] Production.ERROR: pbx CDR StartTime 2024-12-18 13:34:05 - End Time 2024-12-18 16:34:05 [2024-12-18 16:34:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 16:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049406', 'tblTempUsageDetail_20' ) start [2024-12-18 16:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049406', 'tblTempUsageDetail_20' ) end [2024-12-18 16:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049406', 'tblTempVendorCDR_20' ) start [2024-12-18 16:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049406', 'tblTempVendorCDR_20' ) end [2024-12-18 16:34:23] Production.INFO: ProcessCDR(1,14049406,1,1,2) [2024-12-18 16:34:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:34:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:34:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049406', 'tblTempUsageDetail_20' ) start [2024-12-18 16:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049406', 'tblTempUsageDetail_20' ) end [2024-12-18 16:34:27] Production.ERROR: pbx prc_insertCDR start [2024-12-18 16:34:27] Production.ERROR: pbx prc_insertCDR end [2024-12-18 16:34:27] Production.INFO: ==9313== Releasing lock... [2024-12-18 16:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 16:34:27] Production.INFO: 65.5 MB #Memory Used# [2024-12-18 16:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 13:35:05 [end_date_ymd] => 2024-12-18 16:35:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 13:35:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 16:35:24] Production.INFO: count ==4979 [2024-12-18 16:35:26] Production.ERROR: pbx CDR StartTime 2024-12-18 13:35:05 - End Time 2024-12-18 16:35:05 [2024-12-18 16:35:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 16:35:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049411', 'tblTempUsageDetail_20' ) start [2024-12-18 16:35:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049411', 'tblTempUsageDetail_20' ) end [2024-12-18 16:35:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049411', 'tblTempVendorCDR_20' ) start [2024-12-18 16:35:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049411', 'tblTempVendorCDR_20' ) end [2024-12-18 16:35:26] Production.INFO: ProcessCDR(1,14049411,1,1,2) [2024-12-18 16:35:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:35:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:35:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:35:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:35:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049411', 'tblTempUsageDetail_20' ) start [2024-12-18 16:35:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049411', 'tblTempUsageDetail_20' ) end [2024-12-18 16:35:30] Production.ERROR: pbx prc_insertCDR start [2024-12-18 16:35:30] Production.ERROR: pbx prc_insertCDR end [2024-12-18 16:35:30] Production.INFO: ==9400== Releasing lock... [2024-12-18 16:35:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 16:35:30] Production.INFO: 65.25 MB #Memory Used# [2024-12-18 16:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 13:36:05 [end_date_ymd] => 2024-12-18 16:36:05 [RateCDR] => 1 ) [2024-12-18 16:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 13:36:05' and `end` < '2024-12-18 16:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 16:36:21] Production.INFO: count ==4988 [2024-12-18 16:36:23] Production.ERROR: pbx CDR StartTime 2024-12-18 13:36:05 - End Time 2024-12-18 16:36:05 [2024-12-18 16:36:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 16:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049416', 'tblTempUsageDetail_20' ) start [2024-12-18 16:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049416', 'tblTempUsageDetail_20' ) end [2024-12-18 16:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049416', 'tblTempVendorCDR_20' ) start [2024-12-18 16:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049416', 'tblTempVendorCDR_20' ) end [2024-12-18 16:36:23] Production.INFO: ProcessCDR(1,14049416,1,1,2) [2024-12-18 16:36:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:36:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:36:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:36:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049416', 'tblTempUsageDetail_20' ) start [2024-12-18 16:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049416', 'tblTempUsageDetail_20' ) end [2024-12-18 16:36:28] Production.ERROR: pbx prc_insertCDR start [2024-12-18 16:36:28] Production.ERROR: pbx prc_insertCDR end [2024-12-18 16:36:28] Production.INFO: ==9493== Releasing lock... [2024-12-18 16:36:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 16:36:28] Production.INFO: 65.25 MB #Memory Used# [2024-12-18 16:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 13:37:05 [end_date_ymd] => 2024-12-18 16:37:05 [RateCDR] => 1 ) [2024-12-18 16:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 13:37:05' and `end` < '2024-12-18 16:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 16:37:18] Production.INFO: count ==4969 [2024-12-18 16:37:20] Production.ERROR: pbx CDR StartTime 2024-12-18 13:37:05 - End Time 2024-12-18 16:37:05 [2024-12-18 16:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 16:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049421', 'tblTempUsageDetail_20' ) start [2024-12-18 16:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049421', 'tblTempUsageDetail_20' ) end [2024-12-18 16:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049421', 'tblTempVendorCDR_20' ) start [2024-12-18 16:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049421', 'tblTempVendorCDR_20' ) end [2024-12-18 16:37:20] Production.INFO: ProcessCDR(1,14049421,1,1,2) [2024-12-18 16:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049421', 'tblTempUsageDetail_20' ) start [2024-12-18 16:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049421', 'tblTempUsageDetail_20' ) end [2024-12-18 16:37:25] Production.ERROR: pbx prc_insertCDR start [2024-12-18 16:37:25] Production.ERROR: pbx prc_insertCDR end [2024-12-18 16:37:25] Production.INFO: ==9585== Releasing lock... [2024-12-18 16:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 16:37:25] Production.INFO: 65.25 MB #Memory Used# [2024-12-18 16:38:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 13:38:04 [end_date_ymd] => 2024-12-18 16:38:04 [RateCDR] => 1 ) [2024-12-18 16:38:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 13:38:04' and `end` < '2024-12-18 16:38:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 16:38:25] Production.INFO: count ==4986 [2024-12-18 16:38:27] Production.ERROR: pbx CDR StartTime 2024-12-18 13:38:04 - End Time 2024-12-18 16:38:04 [2024-12-18 16:38:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 16:38:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049426', 'tblTempUsageDetail_20' ) start [2024-12-18 16:38:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049426', 'tblTempUsageDetail_20' ) end [2024-12-18 16:38:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049426', 'tblTempVendorCDR_20' ) start [2024-12-18 16:38:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049426', 'tblTempVendorCDR_20' ) end [2024-12-18 16:38:27] Production.INFO: ProcessCDR(1,14049426,1,1,2) [2024-12-18 16:38:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:38:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:38:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:38:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:38:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049426', 'tblTempUsageDetail_20' ) start [2024-12-18 16:38:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049426', 'tblTempUsageDetail_20' ) end [2024-12-18 16:38:32] Production.ERROR: pbx prc_insertCDR start [2024-12-18 16:38:32] Production.ERROR: pbx prc_insertCDR end [2024-12-18 16:38:32] Production.INFO: ==9675== Releasing lock... [2024-12-18 16:38:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 16:38:32] Production.INFO: 65.25 MB #Memory Used# [2024-12-18 16:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 13:39:05 [end_date_ymd] => 2024-12-18 16:39:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 13:39:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 16:39:22] Production.INFO: count ==4963 [2024-12-18 16:39:24] Production.ERROR: pbx CDR StartTime 2024-12-18 13:39:05 - End Time 2024-12-18 16:39:05 [2024-12-18 16:39:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 16:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049431', 'tblTempUsageDetail_20' ) start [2024-12-18 16:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049431', 'tblTempUsageDetail_20' ) end [2024-12-18 16:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049431', 'tblTempVendorCDR_20' ) start [2024-12-18 16:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049431', 'tblTempVendorCDR_20' ) end [2024-12-18 16:39:24] Production.INFO: ProcessCDR(1,14049431,1,1,2) [2024-12-18 16:39:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:39:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:39:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:39:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:39:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049431', 'tblTempUsageDetail_20' ) start [2024-12-18 16:39:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049431', 'tblTempUsageDetail_20' ) end [2024-12-18 16:39:29] Production.ERROR: pbx prc_insertCDR start [2024-12-18 16:39:29] Production.ERROR: pbx prc_insertCDR end [2024-12-18 16:39:29] Production.INFO: ==9767== Releasing lock... [2024-12-18 16:39:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 16:39:29] Production.INFO: 65.25 MB #Memory Used# [2024-12-18 16:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 13:40:05 [end_date_ymd] => 2024-12-18 16:40:05 [RateCDR] => 1 ) [2024-12-18 16: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` >= '2024-12-18 13:40:05' and `end` < '2024-12-18 16: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 ,'') [2024-12-18 16:40:19] Production.INFO: count ==4968 [2024-12-18 16:40:21] Production.ERROR: pbx CDR StartTime 2024-12-18 13:40:05 - End Time 2024-12-18 16:40:05 [2024-12-18 16:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 16:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049436', 'tblTempUsageDetail_20' ) start [2024-12-18 16:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049436', 'tblTempUsageDetail_20' ) end [2024-12-18 16:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049436', 'tblTempVendorCDR_20' ) start [2024-12-18 16:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049436', 'tblTempVendorCDR_20' ) end [2024-12-18 16:40:21] Production.INFO: ProcessCDR(1,14049436,1,1,2) [2024-12-18 16:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049436', 'tblTempUsageDetail_20' ) start [2024-12-18 16:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049436', 'tblTempUsageDetail_20' ) end [2024-12-18 16:40:26] Production.ERROR: pbx prc_insertCDR start [2024-12-18 16:40:26] Production.ERROR: pbx prc_insertCDR end [2024-12-18 16:40:26] Production.INFO: ==9860== Releasing lock... [2024-12-18 16:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 16:40:26] Production.INFO: 65.25 MB #Memory Used# [2024-12-18 16:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 13:41:05 [end_date_ymd] => 2024-12-18 16:41:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 13:41:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 16:41:20] Production.INFO: count ==4964 [2024-12-18 16:41:22] Production.ERROR: pbx CDR StartTime 2024-12-18 13:41:05 - End Time 2024-12-18 16:41:05 [2024-12-18 16:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 16:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049442', 'tblTempUsageDetail_20' ) start [2024-12-18 16:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049442', 'tblTempUsageDetail_20' ) end [2024-12-18 16:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049442', 'tblTempVendorCDR_20' ) start [2024-12-18 16:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049442', 'tblTempVendorCDR_20' ) end [2024-12-18 16:41:22] Production.INFO: ProcessCDR(1,14049442,1,1,2) [2024-12-18 16:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049442', 'tblTempUsageDetail_20' ) start [2024-12-18 16:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049442', 'tblTempUsageDetail_20' ) end [2024-12-18 16:41:26] Production.ERROR: pbx prc_insertCDR start [2024-12-18 16:41:26] Production.ERROR: pbx prc_insertCDR end [2024-12-18 16:41:26] Production.INFO: ==9949== Releasing lock... [2024-12-18 16:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 16:41:26] Production.INFO: 65.25 MB #Memory Used# [2024-12-18 16:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 13:42:05 [end_date_ymd] => 2024-12-18 16:42:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 13:42:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 16:42:28] Production.INFO: count ==4985 [2024-12-18 16:42:30] Production.ERROR: pbx CDR StartTime 2024-12-18 13:42:05 - End Time 2024-12-18 16:42:05 [2024-12-18 16:42:30] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 16:42:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049447', 'tblTempUsageDetail_20' ) start [2024-12-18 16:42:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049447', 'tblTempUsageDetail_20' ) end [2024-12-18 16:42:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049447', 'tblTempVendorCDR_20' ) start [2024-12-18 16:42:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049447', 'tblTempVendorCDR_20' ) end [2024-12-18 16:42:30] Production.INFO: ProcessCDR(1,14049447,1,1,2) [2024-12-18 16:42:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:42:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:42:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:42:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:42:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049447', 'tblTempUsageDetail_20' ) start [2024-12-18 16:42:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049447', 'tblTempUsageDetail_20' ) end [2024-12-18 16:42:34] Production.ERROR: pbx prc_insertCDR start [2024-12-18 16:42:34] Production.ERROR: pbx prc_insertCDR end [2024-12-18 16:42:35] Production.INFO: ==10039== Releasing lock... [2024-12-18 16:42:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 16:42:35] Production.INFO: 65.5 MB #Memory Used# [2024-12-18 16:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 13:43:04 [end_date_ymd] => 2024-12-18 16:43:04 [RateCDR] => 1 ) [2024-12-18 16:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 13:43:04' and `end` < '2024-12-18 16:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 16:43:22] Production.INFO: count ==4986 [2024-12-18 16:43:23] Production.ERROR: pbx CDR StartTime 2024-12-18 13:43:04 - End Time 2024-12-18 16:43:04 [2024-12-18 16:43:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 16:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049451', 'tblTempUsageDetail_20' ) start [2024-12-18 16:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049451', 'tblTempUsageDetail_20' ) end [2024-12-18 16:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049451', 'tblTempVendorCDR_20' ) start [2024-12-18 16:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049451', 'tblTempVendorCDR_20' ) end [2024-12-18 16:43:24] Production.INFO: ProcessCDR(1,14049451,1,1,2) [2024-12-18 16:43:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:43:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:43:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049451', 'tblTempUsageDetail_20' ) start [2024-12-18 16:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049451', 'tblTempUsageDetail_20' ) end [2024-12-18 16:43:27] Production.ERROR: pbx prc_insertCDR start [2024-12-18 16:43:27] Production.ERROR: pbx prc_insertCDR end [2024-12-18 16:43:27] Production.INFO: ==10128== Releasing lock... [2024-12-18 16:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 16:43:27] Production.INFO: 65.25 MB #Memory Used# [2024-12-18 16:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 13:44:05 [end_date_ymd] => 2024-12-18 16:44:05 [RateCDR] => 1 ) [2024-12-18 16:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 13:44:05' and `end` < '2024-12-18 16:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 16:44:25] Production.INFO: count ==4996 [2024-12-18 16:44:27] Production.ERROR: pbx CDR StartTime 2024-12-18 13:44:05 - End Time 2024-12-18 16:44:05 [2024-12-18 16:44:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 16:44:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049457', 'tblTempUsageDetail_20' ) start [2024-12-18 16:44:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049457', 'tblTempUsageDetail_20' ) end [2024-12-18 16:44:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049457', 'tblTempVendorCDR_20' ) start [2024-12-18 16:44:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049457', 'tblTempVendorCDR_20' ) end [2024-12-18 16:44:27] Production.INFO: ProcessCDR(1,14049457,1,1,2) [2024-12-18 16:44:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:44:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:44:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:44:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:44:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049457', 'tblTempUsageDetail_20' ) start [2024-12-18 16:44:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049457', 'tblTempUsageDetail_20' ) end [2024-12-18 16:44:31] Production.ERROR: pbx prc_insertCDR start [2024-12-18 16:44:31] Production.ERROR: pbx prc_insertCDR end [2024-12-18 16:44:31] Production.INFO: ==10258== Releasing lock... [2024-12-18 16:44:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 16:44:31] Production.INFO: 65.5 MB #Memory Used# [2024-12-18 16:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 13:45:05 [end_date_ymd] => 2024-12-18 16:45:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 13:45:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 16:45:20] Production.INFO: count ==5006 [2024-12-18 16:45:22] Production.ERROR: pbx CDR StartTime 2024-12-18 13:45:05 - End Time 2024-12-18 16:45:05 [2024-12-18 16:45:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 16:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049462', 'tblTempUsageDetail_20' ) start [2024-12-18 16:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049462', 'tblTempUsageDetail_20' ) end [2024-12-18 16:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049462', 'tblTempVendorCDR_20' ) start [2024-12-18 16:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049462', 'tblTempVendorCDR_20' ) end [2024-12-18 16:45:22] Production.INFO: ProcessCDR(1,14049462,1,1,2) [2024-12-18 16:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049462', 'tblTempUsageDetail_20' ) start [2024-12-18 16:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049462', 'tblTempUsageDetail_20' ) end [2024-12-18 16:45:26] Production.ERROR: pbx prc_insertCDR start [2024-12-18 16:45:26] Production.ERROR: pbx prc_insertCDR end [2024-12-18 16:45:26] Production.INFO: ==10347== Releasing lock... [2024-12-18 16:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 16:45:26] Production.INFO: 65.5 MB #Memory Used# [2024-12-18 16:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 13:46:05 [end_date_ymd] => 2024-12-18 16:46:05 [RateCDR] => 1 ) [2024-12-18 16:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 13:46:05' and `end` < '2024-12-18 16:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 16:46:18] Production.INFO: count ==5012 [2024-12-18 16:46:20] Production.ERROR: pbx CDR StartTime 2024-12-18 13:46:05 - End Time 2024-12-18 16:46:05 [2024-12-18 16:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 16:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049467', 'tblTempUsageDetail_20' ) start [2024-12-18 16:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049467', 'tblTempUsageDetail_20' ) end [2024-12-18 16:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049467', 'tblTempVendorCDR_20' ) start [2024-12-18 16:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049467', 'tblTempVendorCDR_20' ) end [2024-12-18 16:46:20] Production.INFO: ProcessCDR(1,14049467,1,1,2) [2024-12-18 16:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049467', 'tblTempUsageDetail_20' ) start [2024-12-18 16:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049467', 'tblTempUsageDetail_20' ) end [2024-12-18 16:46:25] Production.ERROR: pbx prc_insertCDR start [2024-12-18 16:46:25] Production.ERROR: pbx prc_insertCDR end [2024-12-18 16:46:25] Production.INFO: ==10438== Releasing lock... [2024-12-18 16:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 16:46:25] Production.INFO: 65.5 MB #Memory Used# [2024-12-18 16:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 13:47:05 [end_date_ymd] => 2024-12-18 16:47:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 13:47:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 16:47:23] Production.INFO: count ==5019 [2024-12-18 16:47:25] Production.ERROR: pbx CDR StartTime 2024-12-18 13:47:05 - End Time 2024-12-18 16:47:05 [2024-12-18 16:47:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 16:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049472', 'tblTempUsageDetail_20' ) start [2024-12-18 16:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049472', 'tblTempUsageDetail_20' ) end [2024-12-18 16:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049472', 'tblTempVendorCDR_20' ) start [2024-12-18 16:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049472', 'tblTempVendorCDR_20' ) end [2024-12-18 16:47:25] Production.INFO: ProcessCDR(1,14049472,1,1,2) [2024-12-18 16:47:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:47:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:47:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:47:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049472', 'tblTempUsageDetail_20' ) start [2024-12-18 16:47:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049472', 'tblTempUsageDetail_20' ) end [2024-12-18 16:47:30] Production.ERROR: pbx prc_insertCDR start [2024-12-18 16:47:30] Production.ERROR: pbx prc_insertCDR end [2024-12-18 16:47:30] Production.INFO: ==10527== Releasing lock... [2024-12-18 16:47:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 16:47:30] Production.INFO: 65.5 MB #Memory Used# [2024-12-18 16:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 13:48:05 [end_date_ymd] => 2024-12-18 16:48:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 13:48:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 16:48:32] Production.INFO: count ==5022 [2024-12-18 16:48:33] Production.ERROR: pbx CDR StartTime 2024-12-18 13:48:05 - End Time 2024-12-18 16:48:05 [2024-12-18 16:48:33] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 16:48:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049477', 'tblTempUsageDetail_20' ) start [2024-12-18 16:48:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049477', 'tblTempUsageDetail_20' ) end [2024-12-18 16:48:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049477', 'tblTempVendorCDR_20' ) start [2024-12-18 16:48:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049477', 'tblTempVendorCDR_20' ) end [2024-12-18 16:48:34] Production.INFO: ProcessCDR(1,14049477,1,1,2) [2024-12-18 16:48:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:48:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:48:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:48:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:48:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049477', 'tblTempUsageDetail_20' ) start [2024-12-18 16:48:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049477', 'tblTempUsageDetail_20' ) end [2024-12-18 16:48:38] Production.ERROR: pbx prc_insertCDR start [2024-12-18 16:48:38] Production.ERROR: pbx prc_insertCDR end [2024-12-18 16:48:38] Production.INFO: ==10616== Releasing lock... [2024-12-18 16:48:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 16:48:38] Production.INFO: 65.5 MB #Memory Used# [2024-12-18 16:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 13:49:05 [end_date_ymd] => 2024-12-18 16:49:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 13:49:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 16:49:22] Production.INFO: count ==5016 [2024-12-18 16:49:23] Production.ERROR: pbx CDR StartTime 2024-12-18 13:49:05 - End Time 2024-12-18 16:49:05 [2024-12-18 16:49:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 16:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049482', 'tblTempUsageDetail_20' ) start [2024-12-18 16:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049482', 'tblTempUsageDetail_20' ) end [2024-12-18 16:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049482', 'tblTempVendorCDR_20' ) start [2024-12-18 16:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049482', 'tblTempVendorCDR_20' ) end [2024-12-18 16:49:24] Production.INFO: ProcessCDR(1,14049482,1,1,2) [2024-12-18 16:49:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:49:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:49:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:49:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049482', 'tblTempUsageDetail_20' ) start [2024-12-18 16:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049482', 'tblTempUsageDetail_20' ) end [2024-12-18 16:49:27] Production.ERROR: pbx prc_insertCDR start [2024-12-18 16:49:27] Production.ERROR: pbx prc_insertCDR end [2024-12-18 16:49:27] Production.INFO: ==10708== Releasing lock... [2024-12-18 16:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 16:49:27] Production.INFO: 65.5 MB #Memory Used# [2024-12-18 16:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 13:50:05 [end_date_ymd] => 2024-12-18 16:50:05 [RateCDR] => 1 ) [2024-12-18 16: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` >= '2024-12-18 13:50:05' and `end` < '2024-12-18 16: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 ,'') [2024-12-18 16:50:19] Production.INFO: count ==5006 [2024-12-18 16:50:20] Production.ERROR: pbx CDR StartTime 2024-12-18 13:50:05 - End Time 2024-12-18 16:50:05 [2024-12-18 16:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 16:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049488', 'tblTempUsageDetail_20' ) start [2024-12-18 16:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049488', 'tblTempUsageDetail_20' ) end [2024-12-18 16:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049488', 'tblTempVendorCDR_20' ) start [2024-12-18 16:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049488', 'tblTempVendorCDR_20' ) end [2024-12-18 16:50:21] Production.INFO: ProcessCDR(1,14049488,1,1,2) [2024-12-18 16:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049488', 'tblTempUsageDetail_20' ) start [2024-12-18 16:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049488', 'tblTempUsageDetail_20' ) end [2024-12-18 16:50:25] Production.ERROR: pbx prc_insertCDR start [2024-12-18 16:50:25] Production.ERROR: pbx prc_insertCDR end [2024-12-18 16:50:25] Production.INFO: ==10805== Releasing lock... [2024-12-18 16:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 16:50:25] Production.INFO: 65.5 MB #Memory Used# [2024-12-18 16:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 13:51:04 [end_date_ymd] => 2024-12-18 16:51:04 [RateCDR] => 1 ) [2024-12-18 16:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 13:51:04' and `end` < '2024-12-18 16:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 16:51:29] Production.INFO: count ==5043 [2024-12-18 16:51:31] Production.ERROR: pbx CDR StartTime 2024-12-18 13:51:04 - End Time 2024-12-18 16:51:04 [2024-12-18 16:51:31] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 16:51:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049493', 'tblTempUsageDetail_20' ) start [2024-12-18 16:51:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049493', 'tblTempUsageDetail_20' ) end [2024-12-18 16:51:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049493', 'tblTempVendorCDR_20' ) start [2024-12-18 16:51:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049493', 'tblTempVendorCDR_20' ) end [2024-12-18 16:51:32] Production.INFO: ProcessCDR(1,14049493,1,1,2) [2024-12-18 16:51:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:51:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:51:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:51:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:51:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049493', 'tblTempUsageDetail_20' ) start [2024-12-18 16:51:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049493', 'tblTempUsageDetail_20' ) end [2024-12-18 16:51:35] Production.ERROR: pbx prc_insertCDR start [2024-12-18 16:51:35] Production.ERROR: pbx prc_insertCDR end [2024-12-18 16:51:35] Production.INFO: ==10899== Releasing lock... [2024-12-18 16:51:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 16:51:35] Production.INFO: 65.75 MB #Memory Used# [2024-12-18 16:52:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 13:52:04 [end_date_ymd] => 2024-12-18 16:52:04 [RateCDR] => 1 ) [2024-12-18 16:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 13:52:04' and `end` < '2024-12-18 16:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 16:52:25] Production.INFO: count ==5092 [2024-12-18 16:52:27] Production.ERROR: pbx CDR StartTime 2024-12-18 13:52:04 - End Time 2024-12-18 16:52:04 [2024-12-18 16:52:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 16:52:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049498', 'tblTempUsageDetail_20' ) start [2024-12-18 16:52:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049498', 'tblTempUsageDetail_20' ) end [2024-12-18 16:52:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049498', 'tblTempVendorCDR_20' ) start [2024-12-18 16:52:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049498', 'tblTempVendorCDR_20' ) end [2024-12-18 16:52:27] Production.INFO: ProcessCDR(1,14049498,1,1,2) [2024-12-18 16:52:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:52:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:52:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:52:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:52:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049498', 'tblTempUsageDetail_20' ) start [2024-12-18 16:52:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049498', 'tblTempUsageDetail_20' ) end [2024-12-18 16:52:30] Production.ERROR: pbx prc_insertCDR start [2024-12-18 16:52:30] Production.ERROR: pbx prc_insertCDR end [2024-12-18 16:52:30] Production.INFO: ==10991== Releasing lock... [2024-12-18 16:52:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 16:52:30] Production.INFO: 66 MB #Memory Used# [2024-12-18 16:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 13:53:05 [end_date_ymd] => 2024-12-18 16:53:05 [RateCDR] => 1 ) [2024-12-18 16:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 13:53:05' and `end` < '2024-12-18 16:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 16:53:19] Production.INFO: count ==5135 [2024-12-18 16:53:21] Production.ERROR: pbx CDR StartTime 2024-12-18 13:53:05 - End Time 2024-12-18 16:53:05 [2024-12-18 16:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 16:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049503', 'tblTempUsageDetail_20' ) start [2024-12-18 16:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049503', 'tblTempUsageDetail_20' ) end [2024-12-18 16:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049503', 'tblTempVendorCDR_20' ) start [2024-12-18 16:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049503', 'tblTempVendorCDR_20' ) end [2024-12-18 16:53:21] Production.INFO: ProcessCDR(1,14049503,1,1,2) [2024-12-18 16:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049503', 'tblTempUsageDetail_20' ) start [2024-12-18 16:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049503', 'tblTempUsageDetail_20' ) end [2024-12-18 16:53:26] Production.ERROR: pbx prc_insertCDR start [2024-12-18 16:53:26] Production.ERROR: pbx prc_insertCDR end [2024-12-18 16:53:26] Production.INFO: ==11081== Releasing lock... [2024-12-18 16:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 16:53:26] Production.INFO: 66.5 MB #Memory Used# [2024-12-18 16:54:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 13:54:04 [end_date_ymd] => 2024-12-18 16:54:04 [RateCDR] => 1 ) [2024-12-18 16: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` >= '2024-12-18 13:54:04' and `end` < '2024-12-18 16: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 ,'') [2024-12-18 16:54:25] Production.INFO: count ==5203 [2024-12-18 16:54:27] Production.ERROR: pbx CDR StartTime 2024-12-18 13:54:04 - End Time 2024-12-18 16:54:04 [2024-12-18 16:54:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 16:54:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049508', 'tblTempUsageDetail_20' ) start [2024-12-18 16:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049508', 'tblTempUsageDetail_20' ) end [2024-12-18 16:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049508', 'tblTempVendorCDR_20' ) start [2024-12-18 16:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049508', 'tblTempVendorCDR_20' ) end [2024-12-18 16:54:28] Production.INFO: ProcessCDR(1,14049508,1,1,2) [2024-12-18 16:54:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:54:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:54:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:54:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:54:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049508', 'tblTempUsageDetail_20' ) start [2024-12-18 16:54:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049508', 'tblTempUsageDetail_20' ) end [2024-12-18 16:54:31] Production.ERROR: pbx prc_insertCDR start [2024-12-18 16:54:31] Production.ERROR: pbx prc_insertCDR end [2024-12-18 16:54:31] Production.INFO: ==11178== Releasing lock... [2024-12-18 16:54:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 16:54:31] Production.INFO: 67 MB #Memory Used# [2024-12-18 16:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 13:55:05 [end_date_ymd] => 2024-12-18 16:55:05 [RateCDR] => 1 ) [2024-12-18 16: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` >= '2024-12-18 13:55:05' and `end` < '2024-12-18 16:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 16:55:26] Production.INFO: count ==5213 [2024-12-18 16:55:28] Production.ERROR: pbx CDR StartTime 2024-12-18 13:55:05 - End Time 2024-12-18 16:55:05 [2024-12-18 16:55:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 16:55:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049513', 'tblTempUsageDetail_20' ) start [2024-12-18 16:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049513', 'tblTempUsageDetail_20' ) end [2024-12-18 16:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049513', 'tblTempVendorCDR_20' ) start [2024-12-18 16:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049513', 'tblTempVendorCDR_20' ) end [2024-12-18 16:55:29] Production.INFO: ProcessCDR(1,14049513,1,1,2) [2024-12-18 16:55:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:55:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:55:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:55:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:55:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049513', 'tblTempUsageDetail_20' ) start [2024-12-18 16:55:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049513', 'tblTempUsageDetail_20' ) end [2024-12-18 16:55:33] Production.ERROR: pbx prc_insertCDR start [2024-12-18 16:55:33] Production.ERROR: pbx prc_insertCDR end [2024-12-18 16:55:33] Production.INFO: ==11275== Releasing lock... [2024-12-18 16:55:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 16:55:33] Production.INFO: 67 MB #Memory Used# [2024-12-18 16:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 13:56:04 [end_date_ymd] => 2024-12-18 16:56:04 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 13:56:04' and `end` < '2024-12-18 16:56:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 16:56:28] Production.INFO: count ==5218 [2024-12-18 16:56:29] Production.ERROR: pbx CDR StartTime 2024-12-18 13:56:04 - End Time 2024-12-18 16:56:04 [2024-12-18 16:56:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 16:56:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049518', 'tblTempUsageDetail_20' ) start [2024-12-18 16:56:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049518', 'tblTempUsageDetail_20' ) end [2024-12-18 16:56:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049518', 'tblTempVendorCDR_20' ) start [2024-12-18 16:56:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049518', 'tblTempVendorCDR_20' ) end [2024-12-18 16:56:30] Production.INFO: ProcessCDR(1,14049518,1,1,2) [2024-12-18 16:56:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:56:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:56:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:56:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:56:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049518', 'tblTempUsageDetail_20' ) start [2024-12-18 16:56:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049518', 'tblTempUsageDetail_20' ) end [2024-12-18 16:56:34] Production.ERROR: pbx prc_insertCDR start [2024-12-18 16:56:34] Production.ERROR: pbx prc_insertCDR end [2024-12-18 16:56:34] Production.INFO: ==11368== Releasing lock... [2024-12-18 16:56:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 16:56:34] Production.INFO: 67 MB #Memory Used# [2024-12-18 16:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 13:57:05 [end_date_ymd] => 2024-12-18 16:57:05 [RateCDR] => 1 ) [2024-12-18 16:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 13:57:05' and `end` < '2024-12-18 16:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 16:57:26] Production.INFO: count ==5197 [2024-12-18 16:57:28] Production.ERROR: pbx CDR StartTime 2024-12-18 13:57:05 - End Time 2024-12-18 16:57:05 [2024-12-18 16:57:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 16:57:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049523', 'tblTempUsageDetail_20' ) start [2024-12-18 16:57:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049523', 'tblTempUsageDetail_20' ) end [2024-12-18 16:57:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049523', 'tblTempVendorCDR_20' ) start [2024-12-18 16:57:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049523', 'tblTempVendorCDR_20' ) end [2024-12-18 16:57:28] Production.INFO: ProcessCDR(1,14049523,1,1,2) [2024-12-18 16:57:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:57:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:57:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:57:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:57:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049523', 'tblTempUsageDetail_20' ) start [2024-12-18 16:57:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049523', 'tblTempUsageDetail_20' ) end [2024-12-18 16:57:33] Production.ERROR: pbx prc_insertCDR start [2024-12-18 16:57:33] Production.ERROR: pbx prc_insertCDR end [2024-12-18 16:57:33] Production.INFO: ==11463== Releasing lock... [2024-12-18 16:57:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 16:57:33] Production.INFO: 67 MB #Memory Used# [2024-12-18 16:58:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 13:58:04 [end_date_ymd] => 2024-12-18 16:58:04 [RateCDR] => 1 ) [2024-12-18 16: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` >= '2024-12-18 13:58:04' and `end` < '2024-12-18 16: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 ,'') [2024-12-18 16:58:21] Production.INFO: count ==5252 [2024-12-18 16:58:23] Production.ERROR: pbx CDR StartTime 2024-12-18 13:58:04 - End Time 2024-12-18 16:58:04 [2024-12-18 16:58:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 16:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049528', 'tblTempUsageDetail_20' ) start [2024-12-18 16:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049528', 'tblTempUsageDetail_20' ) end [2024-12-18 16:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049528', 'tblTempVendorCDR_20' ) start [2024-12-18 16:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049528', 'tblTempVendorCDR_20' ) end [2024-12-18 16:58:23] Production.INFO: ProcessCDR(1,14049528,1,1,2) [2024-12-18 16:58:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:58:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:58:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:58:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049528', 'tblTempUsageDetail_20' ) start [2024-12-18 16:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049528', 'tblTempUsageDetail_20' ) end [2024-12-18 16:58:28] Production.ERROR: pbx prc_insertCDR start [2024-12-18 16:58:28] Production.ERROR: pbx prc_insertCDR end [2024-12-18 16:58:28] Production.INFO: ==11561== Releasing lock... [2024-12-18 16:58:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 16:58:28] Production.INFO: 67.25 MB #Memory Used# [2024-12-18 16:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 13:59:05 [end_date_ymd] => 2024-12-18 16:59:05 [RateCDR] => 1 ) [2024-12-18 16:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 13:59:05' and `end` < '2024-12-18 16:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 16:59:30] Production.INFO: count ==5240 [2024-12-18 16:59:32] Production.ERROR: pbx CDR StartTime 2024-12-18 13:59:05 - End Time 2024-12-18 16:59:05 [2024-12-18 16:59:32] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 16:59:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049533', 'tblTempUsageDetail_20' ) start [2024-12-18 16:59:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049533', 'tblTempUsageDetail_20' ) end [2024-12-18 16:59:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049533', 'tblTempVendorCDR_20' ) start [2024-12-18 16:59:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049533', 'tblTempVendorCDR_20' ) end [2024-12-18 16:59:32] Production.INFO: ProcessCDR(1,14049533,1,1,2) [2024-12-18 16:59:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:59:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 16:59:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:59:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 16:59:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049533', 'tblTempUsageDetail_20' ) start [2024-12-18 16:59:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049533', 'tblTempUsageDetail_20' ) end [2024-12-18 16:59:37] Production.ERROR: pbx prc_insertCDR start [2024-12-18 16:59:37] Production.ERROR: pbx prc_insertCDR end [2024-12-18 16:59:37] Production.INFO: ==11696== Releasing lock... [2024-12-18 16:59:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 16:59:37] Production.INFO: 67.25 MB #Memory Used# [2024-12-18 17:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 14:00:06 [end_date_ymd] => 2024-12-18 17:00:06 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 14:00:06' and `end` < '2024-12-18 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 ,'') [2024-12-18 17:00:28] Production.INFO: count ==5231 [2024-12-18 17:00:30] Production.ERROR: pbx CDR StartTime 2024-12-18 14:00:06 - End Time 2024-12-18 17:00:06 [2024-12-18 17:00:30] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 17:00:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049539', 'tblTempUsageDetail_20' ) start [2024-12-18 17:00:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049539', 'tblTempUsageDetail_20' ) end [2024-12-18 17:00:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049539', 'tblTempVendorCDR_20' ) start [2024-12-18 17:00:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049539', 'tblTempVendorCDR_20' ) end [2024-12-18 17:00:30] Production.INFO: ProcessCDR(1,14049539,1,1,2) [2024-12-18 17:00:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:00:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:00:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:00:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049539', 'tblTempUsageDetail_20' ) start [2024-12-18 17:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049539', 'tblTempUsageDetail_20' ) end [2024-12-18 17:00:34] Production.ERROR: pbx prc_insertCDR start [2024-12-18 17:00:34] Production.ERROR: pbx prc_insertCDR end [2024-12-18 17:00:34] Production.INFO: ==11794== Releasing lock... [2024-12-18 17:00:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 17:00:34] Production.INFO: 67.25 MB #Memory Used# [2024-12-18 17:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 14:01:05 [end_date_ymd] => 2024-12-18 17:01:05 [RateCDR] => 1 ) [2024-12-18 17:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 14:01:05' and `end` < '2024-12-18 17:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 17:01:21] Production.INFO: count ==5221 [2024-12-18 17:01:23] Production.ERROR: pbx CDR StartTime 2024-12-18 14:01:05 - End Time 2024-12-18 17:01:05 [2024-12-18 17:01:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 17:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049544', 'tblTempUsageDetail_20' ) start [2024-12-18 17:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049544', 'tblTempUsageDetail_20' ) end [2024-12-18 17:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049544', 'tblTempVendorCDR_20' ) start [2024-12-18 17:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049544', 'tblTempVendorCDR_20' ) end [2024-12-18 17:01:23] Production.INFO: ProcessCDR(1,14049544,1,1,2) [2024-12-18 17:01:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:01:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:01:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:01:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049544', 'tblTempUsageDetail_20' ) start [2024-12-18 17:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049544', 'tblTempUsageDetail_20' ) end [2024-12-18 17:01:28] Production.ERROR: pbx prc_insertCDR start [2024-12-18 17:01:28] Production.ERROR: pbx prc_insertCDR end [2024-12-18 17:01:28] Production.INFO: ==11901== Releasing lock... [2024-12-18 17:01:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 17:01:28] Production.INFO: 67 MB #Memory Used# [2024-12-18 17:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 14:02:05 [end_date_ymd] => 2024-12-18 17:02:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 14:02:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 17:02:26] Production.INFO: count ==5213 [2024-12-18 17:02:28] Production.ERROR: pbx CDR StartTime 2024-12-18 14:02:05 - End Time 2024-12-18 17:02:05 [2024-12-18 17:02:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 17:02:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049549', 'tblTempUsageDetail_20' ) start [2024-12-18 17:02:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049549', 'tblTempUsageDetail_20' ) end [2024-12-18 17:02:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049549', 'tblTempVendorCDR_20' ) start [2024-12-18 17:02:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049549', 'tblTempVendorCDR_20' ) end [2024-12-18 17:02:28] Production.INFO: ProcessCDR(1,14049549,1,1,2) [2024-12-18 17:02:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:02:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:02:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:02:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:02:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049549', 'tblTempUsageDetail_20' ) start [2024-12-18 17:02:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049549', 'tblTempUsageDetail_20' ) end [2024-12-18 17:02:33] Production.ERROR: pbx prc_insertCDR start [2024-12-18 17:02:33] Production.ERROR: pbx prc_insertCDR end [2024-12-18 17:02:33] Production.INFO: ==11995== Releasing lock... [2024-12-18 17:02:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 17:02:33] Production.INFO: 67 MB #Memory Used# [2024-12-18 17:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 14:03:04 [end_date_ymd] => 2024-12-18 17:03:04 [RateCDR] => 1 ) [2024-12-18 17:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 14:03:04' and `end` < '2024-12-18 17:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 17:03:21] Production.INFO: count ==5178 [2024-12-18 17:03:23] Production.ERROR: pbx CDR StartTime 2024-12-18 14:03:04 - End Time 2024-12-18 17:03:04 [2024-12-18 17:03:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 17:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049554', 'tblTempUsageDetail_20' ) start [2024-12-18 17:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049554', 'tblTempUsageDetail_20' ) end [2024-12-18 17:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049554', 'tblTempVendorCDR_20' ) start [2024-12-18 17:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049554', 'tblTempVendorCDR_20' ) end [2024-12-18 17:03:23] Production.INFO: ProcessCDR(1,14049554,1,1,2) [2024-12-18 17:03:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049554', 'tblTempUsageDetail_20' ) start [2024-12-18 17:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049554', 'tblTempUsageDetail_20' ) end [2024-12-18 17:03:27] Production.ERROR: pbx prc_insertCDR start [2024-12-18 17:03:27] Production.ERROR: pbx prc_insertCDR end [2024-12-18 17:03:27] Production.INFO: ==12090== Releasing lock... [2024-12-18 17:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 17:03:27] Production.INFO: 66.75 MB #Memory Used# [2024-12-18 17:04:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 14:04:06 [end_date_ymd] => 2024-12-18 17:04:06 [RateCDR] => 1 ) [2024-12-18 17:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 14:04:06' and `end` < '2024-12-18 17:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 17:04:19] Production.INFO: count ==5159 [2024-12-18 17:04:21] Production.ERROR: pbx CDR StartTime 2024-12-18 14:04:06 - End Time 2024-12-18 17:04:06 [2024-12-18 17:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 17:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049559', 'tblTempUsageDetail_20' ) start [2024-12-18 17:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049559', 'tblTempUsageDetail_20' ) end [2024-12-18 17:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049559', 'tblTempVendorCDR_20' ) start [2024-12-18 17:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049559', 'tblTempVendorCDR_20' ) end [2024-12-18 17:04:21] Production.INFO: ProcessCDR(1,14049559,1,1,2) [2024-12-18 17:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049559', 'tblTempUsageDetail_20' ) start [2024-12-18 17:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049559', 'tblTempUsageDetail_20' ) end [2024-12-18 17:04:25] Production.ERROR: pbx prc_insertCDR start [2024-12-18 17:04:25] Production.ERROR: pbx prc_insertCDR end [2024-12-18 17:04:25] Production.INFO: ==12187== Releasing lock... [2024-12-18 17:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 17:04:25] Production.INFO: 66.5 MB #Memory Used# [2024-12-18 17:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 14:05:04 [end_date_ymd] => 2024-12-18 17:05:04 [RateCDR] => 1 ) [2024-12-18 17:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 14:05:04' and `end` < '2024-12-18 17:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 17:05:25] Production.INFO: count ==5149 [2024-12-18 17:05:27] Production.ERROR: pbx CDR StartTime 2024-12-18 14:05:04 - End Time 2024-12-18 17:05:04 [2024-12-18 17:05:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 17:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049564', 'tblTempUsageDetail_20' ) start [2024-12-18 17:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049564', 'tblTempUsageDetail_20' ) end [2024-12-18 17:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049564', 'tblTempVendorCDR_20' ) start [2024-12-18 17:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049564', 'tblTempVendorCDR_20' ) end [2024-12-18 17:05:27] Production.INFO: ProcessCDR(1,14049564,1,1,2) [2024-12-18 17:05:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:05:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:05:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:05:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:05:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049564', 'tblTempUsageDetail_20' ) start [2024-12-18 17:05:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049564', 'tblTempUsageDetail_20' ) end [2024-12-18 17:05:32] Production.ERROR: pbx prc_insertCDR start [2024-12-18 17:05:32] Production.ERROR: pbx prc_insertCDR end [2024-12-18 17:05:32] Production.INFO: ==12283== Releasing lock... [2024-12-18 17:05:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 17:05:32] Production.INFO: 66.5 MB #Memory Used# [2024-12-18 17:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 14:06:05 [end_date_ymd] => 2024-12-18 17:06:05 [RateCDR] => 1 ) [2024-12-18 17:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 14:06:05' and `end` < '2024-12-18 17:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 17:06:19] Production.INFO: count ==5141 [2024-12-18 17:06:21] Production.ERROR: pbx CDR StartTime 2024-12-18 14:06:05 - End Time 2024-12-18 17:06:05 [2024-12-18 17:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049569', 'tblTempUsageDetail_20' ) start [2024-12-18 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049569', 'tblTempUsageDetail_20' ) end [2024-12-18 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049569', 'tblTempVendorCDR_20' ) start [2024-12-18 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049569', 'tblTempVendorCDR_20' ) end [2024-12-18 17:06:21] Production.INFO: ProcessCDR(1,14049569,1,1,2) [2024-12-18 17:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049569', 'tblTempUsageDetail_20' ) start [2024-12-18 17:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049569', 'tblTempUsageDetail_20' ) end [2024-12-18 17:06:26] Production.ERROR: pbx prc_insertCDR start [2024-12-18 17:06:26] Production.ERROR: pbx prc_insertCDR end [2024-12-18 17:06:26] Production.INFO: ==12379== Releasing lock... [2024-12-18 17:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 17:06:26] Production.INFO: 66.5 MB #Memory Used# [2024-12-18 17:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 14:07:04 [end_date_ymd] => 2024-12-18 17:07:04 [RateCDR] => 1 ) [2024-12-18 17:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 14:07:04' and `end` < '2024-12-18 17: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 ,'') [2024-12-18 17:07:17] Production.INFO: count ==5132 [2024-12-18 17:07:19] Production.ERROR: pbx CDR StartTime 2024-12-18 14:07:04 - End Time 2024-12-18 17:07:04 [2024-12-18 17:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 17:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049574', 'tblTempUsageDetail_20' ) start [2024-12-18 17:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049574', 'tblTempUsageDetail_20' ) end [2024-12-18 17:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049574', 'tblTempVendorCDR_20' ) start [2024-12-18 17:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049574', 'tblTempVendorCDR_20' ) end [2024-12-18 17:07:19] Production.INFO: ProcessCDR(1,14049574,1,1,2) [2024-12-18 17:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049574', 'tblTempUsageDetail_20' ) start [2024-12-18 17:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049574', 'tblTempUsageDetail_20' ) end [2024-12-18 17:07:24] Production.ERROR: pbx prc_insertCDR start [2024-12-18 17:07:24] Production.ERROR: pbx prc_insertCDR end [2024-12-18 17:07:24] Production.INFO: ==12477== Releasing lock... [2024-12-18 17:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 17:07:24] Production.INFO: 66.5 MB #Memory Used# [2024-12-18 17:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 14:08:05 [end_date_ymd] => 2024-12-18 17:08:05 [RateCDR] => 1 ) [2024-12-18 17:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 14:08:05' and `end` < '2024-12-18 17:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 17:08:18] Production.INFO: count ==5115 [2024-12-18 17:08:20] Production.ERROR: pbx CDR StartTime 2024-12-18 14:08:05 - End Time 2024-12-18 17:08:05 [2024-12-18 17:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 17:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049579', 'tblTempUsageDetail_20' ) start [2024-12-18 17:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049579', 'tblTempUsageDetail_20' ) end [2024-12-18 17:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049579', 'tblTempVendorCDR_20' ) start [2024-12-18 17:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049579', 'tblTempVendorCDR_20' ) end [2024-12-18 17:08:20] Production.INFO: ProcessCDR(1,14049579,1,1,2) [2024-12-18 17:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049579', 'tblTempUsageDetail_20' ) start [2024-12-18 17:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049579', 'tblTempUsageDetail_20' ) end [2024-12-18 17:08:25] Production.ERROR: pbx prc_insertCDR start [2024-12-18 17:08:25] Production.ERROR: pbx prc_insertCDR end [2024-12-18 17:08:25] Production.INFO: ==12579== Releasing lock... [2024-12-18 17:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 17:08:25] Production.INFO: 66.25 MB #Memory Used# [2024-12-18 17:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 14:09:05 [end_date_ymd] => 2024-12-18 17:09:05 [RateCDR] => 1 ) [2024-12-18 17:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 14:09:05' and `end` < '2024-12-18 17:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 17:09:18] Production.INFO: count ==5113 [2024-12-18 17:09:20] Production.ERROR: pbx CDR StartTime 2024-12-18 14:09:05 - End Time 2024-12-18 17:09:05 [2024-12-18 17:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 17:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049584', 'tblTempUsageDetail_20' ) start [2024-12-18 17:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049584', 'tblTempUsageDetail_20' ) end [2024-12-18 17:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049584', 'tblTempVendorCDR_20' ) start [2024-12-18 17:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049584', 'tblTempVendorCDR_20' ) end [2024-12-18 17:09:20] Production.INFO: ProcessCDR(1,14049584,1,1,2) [2024-12-18 17:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049584', 'tblTempUsageDetail_20' ) start [2024-12-18 17:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049584', 'tblTempUsageDetail_20' ) end [2024-12-18 17:09:25] Production.ERROR: pbx prc_insertCDR start [2024-12-18 17:09:25] Production.ERROR: pbx prc_insertCDR end [2024-12-18 17:09:25] Production.INFO: ==12668== Releasing lock... [2024-12-18 17:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 17:09:25] Production.INFO: 66.25 MB #Memory Used# [2024-12-18 17:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 14:10:06 [end_date_ymd] => 2024-12-18 17:10:06 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 14:10:06' and `end` < '2024-12-18 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 ,'') [2024-12-18 17:10:19] Production.INFO: count ==5086 [2024-12-18 17:10:21] Production.ERROR: pbx CDR StartTime 2024-12-18 14:10:06 - End Time 2024-12-18 17:10:06 [2024-12-18 17:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 17:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049589', 'tblTempUsageDetail_20' ) start [2024-12-18 17:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049589', 'tblTempUsageDetail_20' ) end [2024-12-18 17:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049589', 'tblTempVendorCDR_20' ) start [2024-12-18 17:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049589', 'tblTempVendorCDR_20' ) end [2024-12-18 17:10:21] Production.INFO: ProcessCDR(1,14049589,1,1,2) [2024-12-18 17:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049589', 'tblTempUsageDetail_20' ) start [2024-12-18 17:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049589', 'tblTempUsageDetail_20' ) end [2024-12-18 17:10:26] Production.ERROR: pbx prc_insertCDR start [2024-12-18 17:10:26] Production.ERROR: pbx prc_insertCDR end [2024-12-18 17:10:26] Production.INFO: ==12773== Releasing lock... [2024-12-18 17:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 17:10:26] Production.INFO: 66 MB #Memory Used# [2024-12-18 17:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 14:11:05 [end_date_ymd] => 2024-12-18 17:11:05 [RateCDR] => 1 ) [2024-12-18 17:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 14:11:05' and `end` < '2024-12-18 17:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 17:11:19] Production.INFO: count ==5120 [2024-12-18 17:11:21] Production.ERROR: pbx CDR StartTime 2024-12-18 14:11:05 - End Time 2024-12-18 17:11:05 [2024-12-18 17:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 17:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049595', 'tblTempUsageDetail_20' ) start [2024-12-18 17:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049595', 'tblTempUsageDetail_20' ) end [2024-12-18 17:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049595', 'tblTempVendorCDR_20' ) start [2024-12-18 17:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049595', 'tblTempVendorCDR_20' ) end [2024-12-18 17:11:21] Production.INFO: ProcessCDR(1,14049595,1,1,2) [2024-12-18 17:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049595', 'tblTempUsageDetail_20' ) start [2024-12-18 17:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049595', 'tblTempUsageDetail_20' ) end [2024-12-18 17:11:26] Production.ERROR: pbx prc_insertCDR start [2024-12-18 17:11:26] Production.ERROR: pbx prc_insertCDR end [2024-12-18 17:11:26] Production.INFO: ==12862== Releasing lock... [2024-12-18 17:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 17:11:26] Production.INFO: 66.25 MB #Memory Used# [2024-12-18 17:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 14:12:05 [end_date_ymd] => 2024-12-18 17:12:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 14:12:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 17:12:22] Production.INFO: count ==5112 [2024-12-18 17:12:24] Production.ERROR: pbx CDR StartTime 2024-12-18 14:12:05 - End Time 2024-12-18 17:12:05 [2024-12-18 17:12:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 17:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049600', 'tblTempUsageDetail_20' ) start [2024-12-18 17:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049600', 'tblTempUsageDetail_20' ) end [2024-12-18 17:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049600', 'tblTempVendorCDR_20' ) start [2024-12-18 17:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049600', 'tblTempVendorCDR_20' ) end [2024-12-18 17:12:24] Production.INFO: ProcessCDR(1,14049600,1,1,2) [2024-12-18 17:12:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:12:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:12:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:12:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:12:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049600', 'tblTempUsageDetail_20' ) start [2024-12-18 17:12:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049600', 'tblTempUsageDetail_20' ) end [2024-12-18 17:12:29] Production.ERROR: pbx prc_insertCDR start [2024-12-18 17:12:29] Production.ERROR: pbx prc_insertCDR end [2024-12-18 17:12:29] Production.INFO: ==12956== Releasing lock... [2024-12-18 17:12:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 17:12:29] Production.INFO: 66.25 MB #Memory Used# [2024-12-18 17:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 14:13:04 [end_date_ymd] => 2024-12-18 17:13:04 [RateCDR] => 1 ) [2024-12-18 17:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 14:13:04' and `end` < '2024-12-18 17:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 17:13:17] Production.INFO: count ==5116 [2024-12-18 17:13:19] Production.ERROR: pbx CDR StartTime 2024-12-18 14:13:04 - End Time 2024-12-18 17:13:04 [2024-12-18 17:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 17:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049605', 'tblTempUsageDetail_20' ) start [2024-12-18 17:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049605', 'tblTempUsageDetail_20' ) end [2024-12-18 17:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049605', 'tblTempVendorCDR_20' ) start [2024-12-18 17:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049605', 'tblTempVendorCDR_20' ) end [2024-12-18 17:13:19] Production.INFO: ProcessCDR(1,14049605,1,1,2) [2024-12-18 17:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049605', 'tblTempUsageDetail_20' ) start [2024-12-18 17:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049605', 'tblTempUsageDetail_20' ) end [2024-12-18 17:13:24] Production.ERROR: pbx prc_insertCDR start [2024-12-18 17:13:24] Production.ERROR: pbx prc_insertCDR end [2024-12-18 17:13:24] Production.INFO: ==13052== Releasing lock... [2024-12-18 17:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 17:13:24] Production.INFO: 66.25 MB #Memory Used# [2024-12-18 17:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 14:14:05 [end_date_ymd] => 2024-12-18 17:14:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 14:14:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 17:14:18] Production.INFO: count ==5114 [2024-12-18 17:14:20] Production.ERROR: pbx CDR StartTime 2024-12-18 14:14:05 - End Time 2024-12-18 17:14:05 [2024-12-18 17:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 17:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049610', 'tblTempUsageDetail_20' ) start [2024-12-18 17:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049610', 'tblTempUsageDetail_20' ) end [2024-12-18 17:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049610', 'tblTempVendorCDR_20' ) start [2024-12-18 17:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049610', 'tblTempVendorCDR_20' ) end [2024-12-18 17:14:20] Production.INFO: ProcessCDR(1,14049610,1,1,2) [2024-12-18 17:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049610', 'tblTempUsageDetail_20' ) start [2024-12-18 17:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049610', 'tblTempUsageDetail_20' ) end [2024-12-18 17:14:24] Production.ERROR: pbx prc_insertCDR start [2024-12-18 17:14:24] Production.ERROR: pbx prc_insertCDR end [2024-12-18 17:14:24] Production.INFO: ==13146== Releasing lock... [2024-12-18 17:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 17:14:24] Production.INFO: 66.25 MB #Memory Used# [2024-12-18 17:15:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 14:15:04 [end_date_ymd] => 2024-12-18 17:15:04 [RateCDR] => 1 ) [2024-12-18 17: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` >= '2024-12-18 14:15:04' and `end` < '2024-12-18 17: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 ,'') [2024-12-18 17:15:25] Production.INFO: count ==5107 [2024-12-18 17:15:27] Production.ERROR: pbx CDR StartTime 2024-12-18 14:15:04 - End Time 2024-12-18 17:15:04 [2024-12-18 17:15:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 17:15:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049615', 'tblTempUsageDetail_20' ) start [2024-12-18 17:15:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049615', 'tblTempUsageDetail_20' ) end [2024-12-18 17:15:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049615', 'tblTempVendorCDR_20' ) start [2024-12-18 17:15:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049615', 'tblTempVendorCDR_20' ) end [2024-12-18 17:15:27] Production.INFO: ProcessCDR(1,14049615,1,1,2) [2024-12-18 17:15:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:15:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:15:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:15:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:15:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049615', 'tblTempUsageDetail_20' ) start [2024-12-18 17:15:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049615', 'tblTempUsageDetail_20' ) end [2024-12-18 17:15:31] Production.ERROR: pbx prc_insertCDR start [2024-12-18 17:15:31] Production.ERROR: pbx prc_insertCDR end [2024-12-18 17:15:31] Production.INFO: ==13282== Releasing lock... [2024-12-18 17:15:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 17:15:31] Production.INFO: 66.25 MB #Memory Used# [2024-12-18 17:16:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 14:16:04 [end_date_ymd] => 2024-12-18 17:16:04 [RateCDR] => 1 ) [2024-12-18 17:16:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 14:16:04' and `end` < '2024-12-18 17:16:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 17:16:17] Production.INFO: count ==5106 [2024-12-18 17:16:19] Production.ERROR: pbx CDR StartTime 2024-12-18 14:16:04 - End Time 2024-12-18 17:16:04 [2024-12-18 17:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 17:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049620', 'tblTempUsageDetail_20' ) start [2024-12-18 17:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049620', 'tblTempUsageDetail_20' ) end [2024-12-18 17:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049620', 'tblTempVendorCDR_20' ) start [2024-12-18 17:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049620', 'tblTempVendorCDR_20' ) end [2024-12-18 17:16:19] Production.INFO: ProcessCDR(1,14049620,1,1,2) [2024-12-18 17:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049620', 'tblTempUsageDetail_20' ) start [2024-12-18 17:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049620', 'tblTempUsageDetail_20' ) end [2024-12-18 17:16:24] Production.ERROR: pbx prc_insertCDR start [2024-12-18 17:16:24] Production.ERROR: pbx prc_insertCDR end [2024-12-18 17:16:24] Production.INFO: ==13375== Releasing lock... [2024-12-18 17:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 17:16:24] Production.INFO: 66.25 MB #Memory Used# [2024-12-18 17:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 14:17:05 [end_date_ymd] => 2024-12-18 17:17:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 14:17:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 17:17:18] Production.INFO: count ==5098 [2024-12-18 17:17:20] Production.ERROR: pbx CDR StartTime 2024-12-18 14:17:05 - End Time 2024-12-18 17:17:05 [2024-12-18 17:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 17:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049625', 'tblTempUsageDetail_20' ) start [2024-12-18 17:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049625', 'tblTempUsageDetail_20' ) end [2024-12-18 17:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049625', 'tblTempVendorCDR_20' ) start [2024-12-18 17:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049625', 'tblTempVendorCDR_20' ) end [2024-12-18 17:17:20] Production.INFO: ProcessCDR(1,14049625,1,1,2) [2024-12-18 17:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049625', 'tblTempUsageDetail_20' ) start [2024-12-18 17:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049625', 'tblTempUsageDetail_20' ) end [2024-12-18 17:17:24] Production.ERROR: pbx prc_insertCDR start [2024-12-18 17:17:25] Production.ERROR: pbx prc_insertCDR end [2024-12-18 17:17:25] Production.INFO: ==13464== Releasing lock... [2024-12-18 17:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 17:17:25] Production.INFO: 66.25 MB #Memory Used# [2024-12-18 17:18:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 14:18:04 [end_date_ymd] => 2024-12-18 17:18:04 [RateCDR] => 1 ) [2024-12-18 17:18: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` >= '2024-12-18 14:18:04' and `end` < '2024-12-18 17:18: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 ,'') [2024-12-18 17:18:21] Production.INFO: count ==5103 [2024-12-18 17:18:22] Production.ERROR: pbx CDR StartTime 2024-12-18 14:18:04 - End Time 2024-12-18 17:18:04 [2024-12-18 17:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 17:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049630', 'tblTempUsageDetail_20' ) start [2024-12-18 17:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049630', 'tblTempUsageDetail_20' ) end [2024-12-18 17:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049630', 'tblTempVendorCDR_20' ) start [2024-12-18 17:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049630', 'tblTempVendorCDR_20' ) end [2024-12-18 17:18:23] Production.INFO: ProcessCDR(1,14049630,1,1,2) [2024-12-18 17:18:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:18:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:18:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049630', 'tblTempUsageDetail_20' ) start [2024-12-18 17:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049630', 'tblTempUsageDetail_20' ) end [2024-12-18 17:18:27] Production.ERROR: pbx prc_insertCDR start [2024-12-18 17:18:27] Production.ERROR: pbx prc_insertCDR end [2024-12-18 17:18:27] Production.INFO: ==13561== Releasing lock... [2024-12-18 17:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 17:18:27] Production.INFO: 66.25 MB #Memory Used# [2024-12-18 17:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 14:19:05 [end_date_ymd] => 2024-12-18 17:19:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 14:19:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 17:19:20] Production.INFO: count ==5082 [2024-12-18 17:19:21] Production.ERROR: pbx CDR StartTime 2024-12-18 14:19:05 - End Time 2024-12-18 17:19:05 [2024-12-18 17:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049635', 'tblTempUsageDetail_20' ) start [2024-12-18 17:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049635', 'tblTempUsageDetail_20' ) end [2024-12-18 17:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049635', 'tblTempVendorCDR_20' ) start [2024-12-18 17:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049635', 'tblTempVendorCDR_20' ) end [2024-12-18 17:19:22] Production.INFO: ProcessCDR(1,14049635,1,1,2) [2024-12-18 17:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049635', 'tblTempUsageDetail_20' ) start [2024-12-18 17:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049635', 'tblTempUsageDetail_20' ) end [2024-12-18 17:19:26] Production.ERROR: pbx prc_insertCDR start [2024-12-18 17:19:26] Production.ERROR: pbx prc_insertCDR end [2024-12-18 17:19:26] Production.INFO: ==13655== Releasing lock... [2024-12-18 17:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 17:19:26] Production.INFO: 66 MB #Memory Used# [2024-12-18 17:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 14:20:05 [end_date_ymd] => 2024-12-18 17:20:05 [RateCDR] => 1 ) [2024-12-18 17:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 14:20:05' and `end` < '2024-12-18 17:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 17:20:28] Production.INFO: count ==5074 [2024-12-18 17:20:30] Production.ERROR: pbx CDR StartTime 2024-12-18 14:20:05 - End Time 2024-12-18 17:20:05 [2024-12-18 17:20:30] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 17:20:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049641', 'tblTempUsageDetail_20' ) start [2024-12-18 17:20:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049641', 'tblTempUsageDetail_20' ) end [2024-12-18 17:20:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049641', 'tblTempVendorCDR_20' ) start [2024-12-18 17:20:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049641', 'tblTempVendorCDR_20' ) end [2024-12-18 17:20:30] Production.INFO: ProcessCDR(1,14049641,1,1,2) [2024-12-18 17:20:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:20:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:20:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:20:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:20:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049641', 'tblTempUsageDetail_20' ) start [2024-12-18 17:20:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049641', 'tblTempUsageDetail_20' ) end [2024-12-18 17:20:35] Production.ERROR: pbx prc_insertCDR start [2024-12-18 17:20:35] Production.ERROR: pbx prc_insertCDR end [2024-12-18 17:20:35] Production.INFO: ==13746== Releasing lock... [2024-12-18 17:20:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 17:20:35] Production.INFO: 66 MB #Memory Used# [2024-12-18 17:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 14:21:05 [end_date_ymd] => 2024-12-18 17:21:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 14:21:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 17:21:20] Production.INFO: count ==5083 [2024-12-18 17:21:22] Production.ERROR: pbx CDR StartTime 2024-12-18 14:21:05 - End Time 2024-12-18 17:21:05 [2024-12-18 17:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 17:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049646', 'tblTempUsageDetail_20' ) start [2024-12-18 17:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049646', 'tblTempUsageDetail_20' ) end [2024-12-18 17:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049646', 'tblTempVendorCDR_20' ) start [2024-12-18 17:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049646', 'tblTempVendorCDR_20' ) end [2024-12-18 17:21:22] Production.INFO: ProcessCDR(1,14049646,1,1,2) [2024-12-18 17:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049646', 'tblTempUsageDetail_20' ) start [2024-12-18 17:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049646', 'tblTempUsageDetail_20' ) end [2024-12-18 17:21:27] Production.ERROR: pbx prc_insertCDR start [2024-12-18 17:21:27] Production.ERROR: pbx prc_insertCDR end [2024-12-18 17:21:27] Production.INFO: ==13845== Releasing lock... [2024-12-18 17:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 17:21:27] Production.INFO: 66 MB #Memory Used# [2024-12-18 17:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 14:22:04 [end_date_ymd] => 2024-12-18 17:22:04 [RateCDR] => 1 ) [2024-12-18 17:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 14:22:04' and `end` < '2024-12-18 17:22:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 17:22:19] Production.INFO: count ==5069 [2024-12-18 17:22:21] Production.ERROR: pbx CDR StartTime 2024-12-18 14:22:04 - End Time 2024-12-18 17:22:04 [2024-12-18 17:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049651', 'tblTempUsageDetail_20' ) start [2024-12-18 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049651', 'tblTempUsageDetail_20' ) end [2024-12-18 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049651', 'tblTempVendorCDR_20' ) start [2024-12-18 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049651', 'tblTempVendorCDR_20' ) end [2024-12-18 17:22:21] Production.INFO: ProcessCDR(1,14049651,1,1,2) [2024-12-18 17:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049651', 'tblTempUsageDetail_20' ) start [2024-12-18 17:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049651', 'tblTempUsageDetail_20' ) end [2024-12-18 17:22:25] Production.ERROR: pbx prc_insertCDR start [2024-12-18 17:22:25] Production.ERROR: pbx prc_insertCDR end [2024-12-18 17:22:25] Production.INFO: ==13944== Releasing lock... [2024-12-18 17:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 17:22:25] Production.INFO: 66 MB #Memory Used# [2024-12-18 17:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 14:23:04 [end_date_ymd] => 2024-12-18 17:23:04 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 14:23:04' and `end` < '2024-12-18 17:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 17:23:20] Production.INFO: count ==5014 [2024-12-18 17:23:22] Production.ERROR: pbx CDR StartTime 2024-12-18 14:23:04 - End Time 2024-12-18 17:23:04 [2024-12-18 17:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 17:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049656', 'tblTempUsageDetail_20' ) start [2024-12-18 17:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049656', 'tblTempUsageDetail_20' ) end [2024-12-18 17:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049656', 'tblTempVendorCDR_20' ) start [2024-12-18 17:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049656', 'tblTempVendorCDR_20' ) end [2024-12-18 17:23:22] Production.INFO: ProcessCDR(1,14049656,1,1,2) [2024-12-18 17:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049656', 'tblTempUsageDetail_20' ) start [2024-12-18 17:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049656', 'tblTempUsageDetail_20' ) end [2024-12-18 17:23:25] Production.ERROR: pbx prc_insertCDR start [2024-12-18 17:23:25] Production.ERROR: pbx prc_insertCDR end [2024-12-18 17:23:25] Production.INFO: ==14036== Releasing lock... [2024-12-18 17:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 17:23:25] Production.INFO: 65.5 MB #Memory Used# [2024-12-18 17:24:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 14:24:04 [end_date_ymd] => 2024-12-18 17:24:04 [RateCDR] => 1 ) [2024-12-18 17:24:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 14:24:04' and `end` < '2024-12-18 17:24:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 17:24:22] Production.INFO: count ==5004 [2024-12-18 17:24:24] Production.ERROR: pbx CDR StartTime 2024-12-18 14:24:04 - End Time 2024-12-18 17:24:04 [2024-12-18 17:24:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 17:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049661', 'tblTempUsageDetail_20' ) start [2024-12-18 17:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049661', 'tblTempUsageDetail_20' ) end [2024-12-18 17:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049661', 'tblTempVendorCDR_20' ) start [2024-12-18 17:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049661', 'tblTempVendorCDR_20' ) end [2024-12-18 17:24:24] Production.INFO: ProcessCDR(1,14049661,1,1,2) [2024-12-18 17:24:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:24:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:24:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:24:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049661', 'tblTempUsageDetail_20' ) start [2024-12-18 17:24:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049661', 'tblTempUsageDetail_20' ) end [2024-12-18 17:24:29] Production.ERROR: pbx prc_insertCDR start [2024-12-18 17:24:29] Production.ERROR: pbx prc_insertCDR end [2024-12-18 17:24:29] Production.INFO: ==14120== Releasing lock... [2024-12-18 17:24:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 17:24:29] Production.INFO: 65.5 MB #Memory Used# [2024-12-18 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 14:25:04 [end_date_ymd] => 2024-12-18 17:25:04 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 14:25:04' and `end` < '2024-12-18 17: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 ,'') [2024-12-18 17:25:26] Production.INFO: count ==4982 [2024-12-18 17:26:18] Production.ERROR: pbx CDR StartTime 2024-12-18 14:25:04 - End Time 2024-12-18 17:25:04 [2024-12-18 17:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 17:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049666', 'tblTempUsageDetail_20' ) start [2024-12-18 17:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049666', 'tblTempUsageDetail_20' ) end [2024-12-18 17:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049666', 'tblTempVendorCDR_20' ) start [2024-12-18 17:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049666', 'tblTempVendorCDR_20' ) end [2024-12-18 17:26:21] Production.INFO: ProcessCDR(1,14049666,1,1,2) [2024-12-18 17:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:26:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:26:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:26:51] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:26:51] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049666', 'tblTempUsageDetail_20' ) start [2024-12-18 17:26:51] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049666', 'tblTempUsageDetail_20' ) end [2024-12-18 17:26:51] Production.ERROR: pbx prc_insertCDR start [2024-12-18 17:26:51] Production.ERROR: pbx prc_insertCDR end [2024-12-18 17:26:51] Production.INFO: ==14197== Releasing lock... [2024-12-18 17:26:51] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 17:26:51] Production.INFO: 65.25 MB #Memory Used# [2024-12-18 17:27:21] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 14:27:21 [end_date_ymd] => 2024-12-18 17:27:21 [RateCDR] => 1 ) [2024-12-18 17:27:21] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 14:27:21' and `end` < '2024-12-18 17:27:21' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 17:27:36] Production.INFO: count ==4949 [2024-12-18 17:28:29] Production.ERROR: pbx CDR StartTime 2024-12-18 14:27:21 - End Time 2024-12-18 17:27:21 [2024-12-18 17:28:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 17:28:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049674', 'tblTempUsageDetail_20' ) start [2024-12-18 17:28:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049674', 'tblTempUsageDetail_20' ) end [2024-12-18 17:28:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049674', 'tblTempVendorCDR_20' ) start [2024-12-18 17:28:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049674', 'tblTempVendorCDR_20' ) end [2024-12-18 17:28:35] Production.INFO: ProcessCDR(1,14049674,1,1,2) [2024-12-18 17:28:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:28:44] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:28:44] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:29:12] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:29:12] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049674', 'tblTempUsageDetail_20' ) start [2024-12-18 17:29:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049674', 'tblTempUsageDetail_20' ) end [2024-12-18 17:29:19] Production.ERROR: pbx prc_insertCDR start [2024-12-18 17:29:19] Production.ERROR: pbx prc_insertCDR end [2024-12-18 17:29:19] Production.INFO: ==14353== Releasing lock... [2024-12-18 17:29:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 17:29:19] Production.INFO: 65 MB #Memory Used# [2024-12-18 17:30:18] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 14:30:18 [end_date_ymd] => 2024-12-18 17:30:18 [RateCDR] => 1 ) [2024-12-18 17:30:18] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 14:30:18' and `end` < '2024-12-18 17:30:18' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 17:30:47] Production.INFO: count ==4872 [2024-12-18 17:31:19] Production.ERROR: pbx CDR StartTime 2024-12-18 14:30:18 - End Time 2024-12-18 17:30:18 [2024-12-18 17:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 17:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049687', 'tblTempUsageDetail_20' ) start [2024-12-18 17:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049687', 'tblTempUsageDetail_20' ) end [2024-12-18 17:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049687', 'tblTempVendorCDR_20' ) start [2024-12-18 17:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049687', 'tblTempVendorCDR_20' ) end [2024-12-18 17:31:26] Production.INFO: ProcessCDR(1,14049687,1,1,2) [2024-12-18 17:31:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:31:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:31:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:31:51] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:31:51] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049687', 'tblTempUsageDetail_20' ) start [2024-12-18 17:31:51] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049687', 'tblTempUsageDetail_20' ) end [2024-12-18 17:31:51] Production.ERROR: pbx prc_insertCDR start [2024-12-18 17:31:51] Production.ERROR: pbx prc_insertCDR end [2024-12-18 17:31:51] Production.INFO: ==14565== Releasing lock... [2024-12-18 17:31:51] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 17:31:51] Production.INFO: 64.5 MB #Memory Used# [2024-12-18 17:32:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 14:32:04 [end_date_ymd] => 2024-12-18 17:32:04 [RateCDR] => 1 ) [2024-12-18 17:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 14:32:04' and `end` < '2024-12-18 17:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 17:32:19] Production.INFO: count ==4796 [2024-12-18 17:32:21] Production.ERROR: pbx CDR StartTime 2024-12-18 14:32:04 - End Time 2024-12-18 17:32:04 [2024-12-18 17:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 17:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049695', 'tblTempUsageDetail_20' ) start [2024-12-18 17:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049695', 'tblTempUsageDetail_20' ) end [2024-12-18 17:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049695', 'tblTempVendorCDR_20' ) start [2024-12-18 17:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049695', 'tblTempVendorCDR_20' ) end [2024-12-18 17:32:21] Production.INFO: ProcessCDR(1,14049695,1,1,2) [2024-12-18 17:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049695', 'tblTempUsageDetail_20' ) start [2024-12-18 17:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049695', 'tblTempUsageDetail_20' ) end [2024-12-18 17:32:24] Production.ERROR: pbx prc_insertCDR start [2024-12-18 17:32:24] Production.ERROR: pbx prc_insertCDR end [2024-12-18 17:32:24] Production.INFO: ==14753== Releasing lock... [2024-12-18 17:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 17:32:24] Production.INFO: 63.75 MB #Memory Used# [2024-12-18 17:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 14:33:05 [end_date_ymd] => 2024-12-18 17:33:05 [RateCDR] => 1 ) [2024-12-18 17:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 14:33:05' and `end` < '2024-12-18 17:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 17:33:17] Production.INFO: count ==4790 [2024-12-18 17:33:19] Production.ERROR: pbx CDR StartTime 2024-12-18 14:33:05 - End Time 2024-12-18 17:33:05 [2024-12-18 17:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 17:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049700', 'tblTempUsageDetail_20' ) start [2024-12-18 17:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049700', 'tblTempUsageDetail_20' ) end [2024-12-18 17:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049700', 'tblTempVendorCDR_20' ) start [2024-12-18 17:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049700', 'tblTempVendorCDR_20' ) end [2024-12-18 17:33:19] Production.INFO: ProcessCDR(1,14049700,1,1,2) [2024-12-18 17:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049700', 'tblTempUsageDetail_20' ) start [2024-12-18 17:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049700', 'tblTempUsageDetail_20' ) end [2024-12-18 17:33:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 17:33:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 17:33:22] Production.INFO: ==14829== Releasing lock... [2024-12-18 17:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 17:33:22] Production.INFO: 63.75 MB #Memory Used# [2024-12-18 17:34:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 14:34:04 [end_date_ymd] => 2024-12-18 17:34:04 [RateCDR] => 1 ) [2024-12-18 17:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 14:34:04' and `end` < '2024-12-18 17:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 17:34:18] Production.INFO: count ==4785 [2024-12-18 17:34:20] Production.ERROR: pbx CDR StartTime 2024-12-18 14:34:04 - End Time 2024-12-18 17:34:04 [2024-12-18 17:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 17:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049705', 'tblTempUsageDetail_20' ) start [2024-12-18 17:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049705', 'tblTempUsageDetail_20' ) end [2024-12-18 17:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049705', 'tblTempVendorCDR_20' ) start [2024-12-18 17:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049705', 'tblTempVendorCDR_20' ) end [2024-12-18 17:34:20] Production.INFO: ProcessCDR(1,14049705,1,1,2) [2024-12-18 17:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049705', 'tblTempUsageDetail_20' ) start [2024-12-18 17:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049705', 'tblTempUsageDetail_20' ) end [2024-12-18 17:34:23] Production.ERROR: pbx prc_insertCDR start [2024-12-18 17:34:23] Production.ERROR: pbx prc_insertCDR end [2024-12-18 17:34:23] Production.INFO: ==14906== Releasing lock... [2024-12-18 17:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 17:34:23] Production.INFO: 63.75 MB #Memory Used# [2024-12-18 17:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 14:35:05 [end_date_ymd] => 2024-12-18 17:35:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 14:35:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 17:35:19] Production.INFO: count ==4751 [2024-12-18 17:35:21] Production.ERROR: pbx CDR StartTime 2024-12-18 14:35:05 - End Time 2024-12-18 17:35:05 [2024-12-18 17:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 17:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049710', 'tblTempUsageDetail_20' ) start [2024-12-18 17:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049710', 'tblTempUsageDetail_20' ) end [2024-12-18 17:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049710', 'tblTempVendorCDR_20' ) start [2024-12-18 17:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049710', 'tblTempVendorCDR_20' ) end [2024-12-18 17:35:21] Production.INFO: ProcessCDR(1,14049710,1,1,2) [2024-12-18 17:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049710', 'tblTempUsageDetail_20' ) start [2024-12-18 17:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049710', 'tblTempUsageDetail_20' ) end [2024-12-18 17:35:26] Production.ERROR: pbx prc_insertCDR start [2024-12-18 17:35:26] Production.ERROR: pbx prc_insertCDR end [2024-12-18 17:35:26] Production.INFO: ==14983== Releasing lock... [2024-12-18 17:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 17:35:26] Production.INFO: 63.5 MB #Memory Used# [2024-12-18 17:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 14:36:05 [end_date_ymd] => 2024-12-18 17:36:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 14:36:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 17:36:18] Production.INFO: count ==4749 [2024-12-18 17:36:20] Production.ERROR: pbx CDR StartTime 2024-12-18 14:36:05 - End Time 2024-12-18 17:36:05 [2024-12-18 17:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 17:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049715', 'tblTempUsageDetail_20' ) start [2024-12-18 17:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049715', 'tblTempUsageDetail_20' ) end [2024-12-18 17:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049715', 'tblTempVendorCDR_20' ) start [2024-12-18 17:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049715', 'tblTempVendorCDR_20' ) end [2024-12-18 17:36:20] Production.INFO: ProcessCDR(1,14049715,1,1,2) [2024-12-18 17:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049715', 'tblTempUsageDetail_20' ) start [2024-12-18 17:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049715', 'tblTempUsageDetail_20' ) end [2024-12-18 17:36:24] Production.ERROR: pbx prc_insertCDR start [2024-12-18 17:36:24] Production.ERROR: pbx prc_insertCDR end [2024-12-18 17:36:24] Production.INFO: ==15062== Releasing lock... [2024-12-18 17:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 17:36:24] Production.INFO: 63.5 MB #Memory Used# [2024-12-18 17:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 14:37:04 [end_date_ymd] => 2024-12-18 17:37:04 [RateCDR] => 1 ) [2024-12-18 17: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` >= '2024-12-18 14:37:04' and `end` < '2024-12-18 17: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 ,'') [2024-12-18 17:37:17] Production.INFO: count ==4738 [2024-12-18 17:37:19] Production.ERROR: pbx CDR StartTime 2024-12-18 14:37:04 - End Time 2024-12-18 17:37:04 [2024-12-18 17:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 17:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049720', 'tblTempUsageDetail_20' ) start [2024-12-18 17:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049720', 'tblTempUsageDetail_20' ) end [2024-12-18 17:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049720', 'tblTempVendorCDR_20' ) start [2024-12-18 17:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049720', 'tblTempVendorCDR_20' ) end [2024-12-18 17:37:19] Production.INFO: ProcessCDR(1,14049720,1,1,2) [2024-12-18 17:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049720', 'tblTempUsageDetail_20' ) start [2024-12-18 17:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049720', 'tblTempUsageDetail_20' ) end [2024-12-18 17:37:24] Production.ERROR: pbx prc_insertCDR start [2024-12-18 17:37:24] Production.ERROR: pbx prc_insertCDR end [2024-12-18 17:37:24] Production.INFO: ==15143== Releasing lock... [2024-12-18 17:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 17:37:24] Production.INFO: 63.5 MB #Memory Used# [2024-12-18 17:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 14:38:05 [end_date_ymd] => 2024-12-18 17:38:05 [RateCDR] => 1 ) [2024-12-18 17:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 14:38:05' and `end` < '2024-12-18 17:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 17:38:17] Production.INFO: count ==4725 [2024-12-18 17:38:19] Production.ERROR: pbx CDR StartTime 2024-12-18 14:38:05 - End Time 2024-12-18 17:38:05 [2024-12-18 17:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 17:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049725', 'tblTempUsageDetail_20' ) start [2024-12-18 17:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049725', 'tblTempUsageDetail_20' ) end [2024-12-18 17:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049725', 'tblTempVendorCDR_20' ) start [2024-12-18 17:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049725', 'tblTempVendorCDR_20' ) end [2024-12-18 17:38:19] Production.INFO: ProcessCDR(1,14049725,1,1,2) [2024-12-18 17:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049725', 'tblTempUsageDetail_20' ) start [2024-12-18 17:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049725', 'tblTempUsageDetail_20' ) end [2024-12-18 17:38:23] Production.ERROR: pbx prc_insertCDR start [2024-12-18 17:38:23] Production.ERROR: pbx prc_insertCDR end [2024-12-18 17:38:23] Production.INFO: ==15225== Releasing lock... [2024-12-18 17:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 17:38:23] Production.INFO: 63.25 MB #Memory Used# [2024-12-18 17:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 14:39:04 [end_date_ymd] => 2024-12-18 17:39:04 [RateCDR] => 1 ) [2024-12-18 17:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 14:39:04' and `end` < '2024-12-18 17:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 17:39:17] Production.INFO: count ==4713 [2024-12-18 17:39:19] Production.ERROR: pbx CDR StartTime 2024-12-18 14:39:04 - End Time 2024-12-18 17:39:04 [2024-12-18 17:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 17:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049730', 'tblTempUsageDetail_20' ) start [2024-12-18 17:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049730', 'tblTempUsageDetail_20' ) end [2024-12-18 17:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049730', 'tblTempVendorCDR_20' ) start [2024-12-18 17:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049730', 'tblTempVendorCDR_20' ) end [2024-12-18 17:39:19] Production.INFO: ProcessCDR(1,14049730,1,1,2) [2024-12-18 17:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049730', 'tblTempUsageDetail_20' ) start [2024-12-18 17:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049730', 'tblTempUsageDetail_20' ) end [2024-12-18 17:39:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 17:39:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 17:39:22] Production.INFO: ==15303== Releasing lock... [2024-12-18 17:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 17:39:22] Production.INFO: 63.25 MB #Memory Used# [2024-12-18 17:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 14:40:05 [end_date_ymd] => 2024-12-18 17:40:05 [RateCDR] => 1 ) [2024-12-18 17: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` >= '2024-12-18 14:40:05' and `end` < '2024-12-18 17: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 ,'') [2024-12-18 17:40:18] Production.INFO: count ==4700 [2024-12-18 17:40:20] Production.ERROR: pbx CDR StartTime 2024-12-18 14:40:05 - End Time 2024-12-18 17:40:05 [2024-12-18 17:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 17:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049736', 'tblTempUsageDetail_20' ) start [2024-12-18 17:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049736', 'tblTempUsageDetail_20' ) end [2024-12-18 17:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049736', 'tblTempVendorCDR_20' ) start [2024-12-18 17:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049736', 'tblTempVendorCDR_20' ) end [2024-12-18 17:40:20] Production.INFO: ProcessCDR(1,14049736,1,1,2) [2024-12-18 17:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049736', 'tblTempUsageDetail_20' ) start [2024-12-18 17:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049736', 'tblTempUsageDetail_20' ) end [2024-12-18 17:40:24] Production.ERROR: pbx prc_insertCDR start [2024-12-18 17:40:24] Production.ERROR: pbx prc_insertCDR end [2024-12-18 17:40:24] Production.INFO: ==15379== Releasing lock... [2024-12-18 17:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 17:40:24] Production.INFO: 63.25 MB #Memory Used# [2024-12-18 17:41:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 14:41:04 [end_date_ymd] => 2024-12-18 17:41:04 [RateCDR] => 1 ) [2024-12-18 17:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 14:41:04' and `end` < '2024-12-18 17:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 17:41:17] Production.INFO: count ==4667 [2024-12-18 17:41:19] Production.ERROR: pbx CDR StartTime 2024-12-18 14:41:04 - End Time 2024-12-18 17:41:04 [2024-12-18 17:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 17:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049741', 'tblTempUsageDetail_20' ) start [2024-12-18 17:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049741', 'tblTempUsageDetail_20' ) end [2024-12-18 17:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049741', 'tblTempVendorCDR_20' ) start [2024-12-18 17:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049741', 'tblTempVendorCDR_20' ) end [2024-12-18 17:41:19] Production.INFO: ProcessCDR(1,14049741,1,1,2) [2024-12-18 17:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049741', 'tblTempUsageDetail_20' ) start [2024-12-18 17:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049741', 'tblTempUsageDetail_20' ) end [2024-12-18 17:41:23] Production.ERROR: pbx prc_insertCDR start [2024-12-18 17:41:23] Production.ERROR: pbx prc_insertCDR end [2024-12-18 17:41:23] Production.INFO: ==15459== Releasing lock... [2024-12-18 17:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 17:41:23] Production.INFO: 63 MB #Memory Used# [2024-12-18 17:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 14:42:05 [end_date_ymd] => 2024-12-18 17:42:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 14:42:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 17:42:18] Production.INFO: count ==4636 [2024-12-18 17:42:20] Production.ERROR: pbx CDR StartTime 2024-12-18 14:42:05 - End Time 2024-12-18 17:42:05 [2024-12-18 17:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 17:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049746', 'tblTempUsageDetail_20' ) start [2024-12-18 17:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049746', 'tblTempUsageDetail_20' ) end [2024-12-18 17:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049746', 'tblTempVendorCDR_20' ) start [2024-12-18 17:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049746', 'tblTempVendorCDR_20' ) end [2024-12-18 17:42:20] Production.INFO: ProcessCDR(1,14049746,1,1,2) [2024-12-18 17:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049746', 'tblTempUsageDetail_20' ) start [2024-12-18 17:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049746', 'tblTempUsageDetail_20' ) end [2024-12-18 17:42:25] Production.ERROR: pbx prc_insertCDR start [2024-12-18 17:42:25] Production.ERROR: pbx prc_insertCDR end [2024-12-18 17:42:26] Production.INFO: ==15540== Releasing lock... [2024-12-18 17:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 17:42:26] Production.INFO: 63 MB #Memory Used# [2024-12-18 17:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 14:43:04 [end_date_ymd] => 2024-12-18 17:43:04 [RateCDR] => 1 ) [2024-12-18 17:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 14:43:04' and `end` < '2024-12-18 17:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 17:43:18] Production.INFO: count ==4598 [2024-12-18 17:43:20] Production.ERROR: pbx CDR StartTime 2024-12-18 14:43:04 - End Time 2024-12-18 17:43:04 [2024-12-18 17:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049751', 'tblTempUsageDetail_20' ) start [2024-12-18 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049751', 'tblTempUsageDetail_20' ) end [2024-12-18 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049751', 'tblTempVendorCDR_20' ) start [2024-12-18 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049751', 'tblTempVendorCDR_20' ) end [2024-12-18 17:43:20] Production.INFO: ProcessCDR(1,14049751,1,1,2) [2024-12-18 17:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049751', 'tblTempUsageDetail_20' ) start [2024-12-18 17:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049751', 'tblTempUsageDetail_20' ) end [2024-12-18 17:43:25] Production.ERROR: pbx prc_insertCDR start [2024-12-18 17:43:25] Production.ERROR: pbx prc_insertCDR end [2024-12-18 17:43:25] Production.INFO: ==15617== Releasing lock... [2024-12-18 17:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 17:43:25] Production.INFO: 62.5 MB #Memory Used# [2024-12-18 17:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 14:44:05 [end_date_ymd] => 2024-12-18 17:44:05 [RateCDR] => 1 ) [2024-12-18 17:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 14:44:05' and `end` < '2024-12-18 17:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 17:44:18] Production.INFO: count ==4587 [2024-12-18 17:44:20] Production.ERROR: pbx CDR StartTime 2024-12-18 14:44:05 - End Time 2024-12-18 17:44:05 [2024-12-18 17:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 17:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049756', 'tblTempUsageDetail_20' ) start [2024-12-18 17:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049756', 'tblTempUsageDetail_20' ) end [2024-12-18 17:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049756', 'tblTempVendorCDR_20' ) start [2024-12-18 17:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049756', 'tblTempVendorCDR_20' ) end [2024-12-18 17:44:20] Production.INFO: ProcessCDR(1,14049756,1,1,2) [2024-12-18 17:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049756', 'tblTempUsageDetail_20' ) start [2024-12-18 17:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049756', 'tblTempUsageDetail_20' ) end [2024-12-18 17:44:25] Production.ERROR: pbx prc_insertCDR start [2024-12-18 17:44:25] Production.ERROR: pbx prc_insertCDR end [2024-12-18 17:44:25] Production.INFO: ==15694== Releasing lock... [2024-12-18 17:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 17:44:25] Production.INFO: 62.25 MB #Memory Used# [2024-12-18 17:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 14:45:04 [end_date_ymd] => 2024-12-18 17:45:04 [RateCDR] => 1 ) [2024-12-18 17:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 14:45:04' and `end` < '2024-12-18 17:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 17:45:17] Production.INFO: count ==4559 [2024-12-18 17:45:19] Production.ERROR: pbx CDR StartTime 2024-12-18 14:45:04 - End Time 2024-12-18 17:45:04 [2024-12-18 17:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 17:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049761', 'tblTempUsageDetail_20' ) start [2024-12-18 17:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049761', 'tblTempUsageDetail_20' ) end [2024-12-18 17:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049761', 'tblTempVendorCDR_20' ) start [2024-12-18 17:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049761', 'tblTempVendorCDR_20' ) end [2024-12-18 17:45:19] Production.INFO: ProcessCDR(1,14049761,1,1,2) [2024-12-18 17:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049761', 'tblTempUsageDetail_20' ) start [2024-12-18 17:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049761', 'tblTempUsageDetail_20' ) end [2024-12-18 17:45:23] Production.ERROR: pbx prc_insertCDR start [2024-12-18 17:45:23] Production.ERROR: pbx prc_insertCDR end [2024-12-18 17:45:23] Production.INFO: ==15769== Releasing lock... [2024-12-18 17:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 17:45:23] Production.INFO: 62 MB #Memory Used# [2024-12-18 17:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 14:46:05 [end_date_ymd] => 2024-12-18 17:46:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 14:46:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 17:46:18] Production.INFO: count ==4545 [2024-12-18 17:46:20] Production.ERROR: pbx CDR StartTime 2024-12-18 14:46:05 - End Time 2024-12-18 17:46:05 [2024-12-18 17:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 17:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049766', 'tblTempUsageDetail_20' ) start [2024-12-18 17:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049766', 'tblTempUsageDetail_20' ) end [2024-12-18 17:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049766', 'tblTempVendorCDR_20' ) start [2024-12-18 17:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049766', 'tblTempVendorCDR_20' ) end [2024-12-18 17:46:20] Production.INFO: ProcessCDR(1,14049766,1,1,2) [2024-12-18 17:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049766', 'tblTempUsageDetail_20' ) start [2024-12-18 17:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049766', 'tblTempUsageDetail_20' ) end [2024-12-18 17:46:24] Production.ERROR: pbx prc_insertCDR start [2024-12-18 17:46:24] Production.ERROR: pbx prc_insertCDR end [2024-12-18 17:46:24] Production.INFO: ==15887== Releasing lock... [2024-12-18 17:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 17:46:24] Production.INFO: 62 MB #Memory Used# [2024-12-18 17:47:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 14:47:04 [end_date_ymd] => 2024-12-18 17:47:04 [RateCDR] => 1 ) [2024-12-18 17:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 14:47:04' and `end` < '2024-12-18 17:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 17:47:18] Production.INFO: count ==4540 [2024-12-18 17:47:20] Production.ERROR: pbx CDR StartTime 2024-12-18 14:47:04 - End Time 2024-12-18 17:47:04 [2024-12-18 17:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 17:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049771', 'tblTempUsageDetail_20' ) start [2024-12-18 17:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049771', 'tblTempUsageDetail_20' ) end [2024-12-18 17:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049771', 'tblTempVendorCDR_20' ) start [2024-12-18 17:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049771', 'tblTempVendorCDR_20' ) end [2024-12-18 17:47:20] Production.INFO: ProcessCDR(1,14049771,1,1,2) [2024-12-18 17:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049771', 'tblTempUsageDetail_20' ) start [2024-12-18 17:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049771', 'tblTempUsageDetail_20' ) end [2024-12-18 17:47:23] Production.ERROR: pbx prc_insertCDR start [2024-12-18 17:47:23] Production.ERROR: pbx prc_insertCDR end [2024-12-18 17:47:23] Production.INFO: ==15965== Releasing lock... [2024-12-18 17:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 17:47:23] Production.INFO: 62 MB #Memory Used# [2024-12-18 17:48:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 14:48:06 [end_date_ymd] => 2024-12-18 17:48:06 [RateCDR] => 1 ) [2024-12-18 17: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` >= '2024-12-18 14:48:06' and `end` < '2024-12-18 17: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 ,'') [2024-12-18 17:48:30] Production.INFO: count ==4542 [2024-12-18 17:48:31] Production.ERROR: pbx CDR StartTime 2024-12-18 14:48:06 - End Time 2024-12-18 17:48:06 [2024-12-18 17:48:31] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 17:48:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049776', 'tblTempUsageDetail_20' ) start [2024-12-18 17:48:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049776', 'tblTempUsageDetail_20' ) end [2024-12-18 17:48:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049776', 'tblTempVendorCDR_20' ) start [2024-12-18 17:48:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049776', 'tblTempVendorCDR_20' ) end [2024-12-18 17:48:32] Production.INFO: ProcessCDR(1,14049776,1,1,2) [2024-12-18 17:48:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:48:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:48:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:48:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:48:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049776', 'tblTempUsageDetail_20' ) start [2024-12-18 17:48:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049776', 'tblTempUsageDetail_20' ) end [2024-12-18 17:48:36] Production.ERROR: pbx prc_insertCDR start [2024-12-18 17:48:36] Production.ERROR: pbx prc_insertCDR end [2024-12-18 17:48:36] Production.INFO: ==16049== Releasing lock... [2024-12-18 17:48:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 17:48:36] Production.INFO: 62 MB #Memory Used# [2024-12-18 17:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 14:49:05 [end_date_ymd] => 2024-12-18 17:49:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 14:49:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 17:49:21] Production.INFO: count ==4537 [2024-12-18 17:49:23] Production.ERROR: pbx CDR StartTime 2024-12-18 14:49:05 - End Time 2024-12-18 17:49:05 [2024-12-18 17:49:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 17:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049781', 'tblTempUsageDetail_20' ) start [2024-12-18 17:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049781', 'tblTempUsageDetail_20' ) end [2024-12-18 17:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049781', 'tblTempVendorCDR_20' ) start [2024-12-18 17:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049781', 'tblTempVendorCDR_20' ) end [2024-12-18 17:49:23] Production.INFO: ProcessCDR(1,14049781,1,1,2) [2024-12-18 17:49:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:49:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:49:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:49:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049781', 'tblTempUsageDetail_20' ) start [2024-12-18 17:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049781', 'tblTempUsageDetail_20' ) end [2024-12-18 17:49:28] Production.ERROR: pbx prc_insertCDR start [2024-12-18 17:49:28] Production.ERROR: pbx prc_insertCDR end [2024-12-18 17:49:28] Production.INFO: ==16129== Releasing lock... [2024-12-18 17:49:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 17:49:28] Production.INFO: 62 MB #Memory Used# [2024-12-18 17:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 14:50:05 [end_date_ymd] => 2024-12-18 17:50:05 [RateCDR] => 1 ) [2024-12-18 17: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` >= '2024-12-18 14:50:05' and `end` < '2024-12-18 17: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 ,'') [2024-12-18 17:50:29] Production.INFO: count ==4526 [2024-12-18 17:50:30] Production.ERROR: pbx CDR StartTime 2024-12-18 14:50:05 - End Time 2024-12-18 17:50:05 [2024-12-18 17:50:30] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 17:50:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049786', 'tblTempUsageDetail_20' ) start [2024-12-18 17:50:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049786', 'tblTempUsageDetail_20' ) end [2024-12-18 17:50:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049786', 'tblTempVendorCDR_20' ) start [2024-12-18 17:50:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049786', 'tblTempVendorCDR_20' ) end [2024-12-18 17:50:30] Production.INFO: ProcessCDR(1,14049786,1,1,2) [2024-12-18 17:50:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:50:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:50:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:50:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:50:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049786', 'tblTempUsageDetail_20' ) start [2024-12-18 17:50:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049786', 'tblTempUsageDetail_20' ) end [2024-12-18 17:50:35] Production.ERROR: pbx prc_insertCDR start [2024-12-18 17:50:35] Production.ERROR: pbx prc_insertCDR end [2024-12-18 17:50:35] Production.INFO: ==16212== Releasing lock... [2024-12-18 17:50:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 17:50:35] Production.INFO: 61.75 MB #Memory Used# [2024-12-18 17:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 14:51:05 [end_date_ymd] => 2024-12-18 17:51:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 14:51:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 17:51:22] Production.INFO: count ==4474 [2024-12-18 17:51:24] Production.ERROR: pbx CDR StartTime 2024-12-18 14:51:05 - End Time 2024-12-18 17:51:05 [2024-12-18 17:51:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 17:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049792', 'tblTempUsageDetail_20' ) start [2024-12-18 17:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049792', 'tblTempUsageDetail_20' ) end [2024-12-18 17:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049792', 'tblTempVendorCDR_20' ) start [2024-12-18 17:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049792', 'tblTempVendorCDR_20' ) end [2024-12-18 17:51:24] Production.INFO: ProcessCDR(1,14049792,1,1,2) [2024-12-18 17:51:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:51:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:51:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:51:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:51:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049792', 'tblTempUsageDetail_20' ) start [2024-12-18 17:51:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049792', 'tblTempUsageDetail_20' ) end [2024-12-18 17:51:29] Production.ERROR: pbx prc_insertCDR start [2024-12-18 17:51:29] Production.ERROR: pbx prc_insertCDR end [2024-12-18 17:51:29] Production.INFO: ==16290== Releasing lock... [2024-12-18 17:51:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 17:51:29] Production.INFO: 61.5 MB #Memory Used# [2024-12-18 17:52:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 14:52:04 [end_date_ymd] => 2024-12-18 17:52:04 [RateCDR] => 1 ) [2024-12-18 17:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 14:52:04' and `end` < '2024-12-18 17:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 17:52:20] Production.INFO: count ==4489 [2024-12-18 17:52:21] Production.ERROR: pbx CDR StartTime 2024-12-18 14:52:04 - End Time 2024-12-18 17:52:04 [2024-12-18 17:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049797', 'tblTempUsageDetail_20' ) start [2024-12-18 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049797', 'tblTempUsageDetail_20' ) end [2024-12-18 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049797', 'tblTempVendorCDR_20' ) start [2024-12-18 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049797', 'tblTempVendorCDR_20' ) end [2024-12-18 17:52:21] Production.INFO: ProcessCDR(1,14049797,1,1,2) [2024-12-18 17:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049797', 'tblTempUsageDetail_20' ) start [2024-12-18 17:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049797', 'tblTempUsageDetail_20' ) end [2024-12-18 17:52:26] Production.ERROR: pbx prc_insertCDR start [2024-12-18 17:52:26] Production.ERROR: pbx prc_insertCDR end [2024-12-18 17:52:26] Production.INFO: ==16373== Releasing lock... [2024-12-18 17:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 17:52:26] Production.INFO: 61.5 MB #Memory Used# [2024-12-18 17:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 14:53:05 [end_date_ymd] => 2024-12-18 17:53:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 14:53:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 17:53:22] Production.INFO: count ==4491 [2024-12-18 17:53:23] Production.ERROR: pbx CDR StartTime 2024-12-18 14:53:05 - End Time 2024-12-18 17:53:05 [2024-12-18 17:53:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 17:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049802', 'tblTempUsageDetail_20' ) start [2024-12-18 17:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049802', 'tblTempUsageDetail_20' ) end [2024-12-18 17:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049802', 'tblTempVendorCDR_20' ) start [2024-12-18 17:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049802', 'tblTempVendorCDR_20' ) end [2024-12-18 17:53:23] Production.INFO: ProcessCDR(1,14049802,1,1,2) [2024-12-18 17:53:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:53:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:53:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:53:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:53:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049802', 'tblTempUsageDetail_20' ) start [2024-12-18 17:53:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049802', 'tblTempUsageDetail_20' ) end [2024-12-18 17:53:28] Production.ERROR: pbx prc_insertCDR start [2024-12-18 17:53:28] Production.ERROR: pbx prc_insertCDR end [2024-12-18 17:53:28] Production.INFO: ==16454== Releasing lock... [2024-12-18 17:53:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 17:53:28] Production.INFO: 61.5 MB #Memory Used# [2024-12-18 17:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 14:54:05 [end_date_ymd] => 2024-12-18 17:54:05 [RateCDR] => 1 ) [2024-12-18 17:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 14:54:05' and `end` < '2024-12-18 17:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 17:54:19] Production.INFO: count ==4491 [2024-12-18 17:54:21] Production.ERROR: pbx CDR StartTime 2024-12-18 14:54:05 - End Time 2024-12-18 17:54:05 [2024-12-18 17:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 17:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049807', 'tblTempUsageDetail_20' ) start [2024-12-18 17:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049807', 'tblTempUsageDetail_20' ) end [2024-12-18 17:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049807', 'tblTempVendorCDR_20' ) start [2024-12-18 17:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049807', 'tblTempVendorCDR_20' ) end [2024-12-18 17:54:21] Production.INFO: ProcessCDR(1,14049807,1,1,2) [2024-12-18 17:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049807', 'tblTempUsageDetail_20' ) start [2024-12-18 17:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049807', 'tblTempUsageDetail_20' ) end [2024-12-18 17:54:25] Production.ERROR: pbx prc_insertCDR start [2024-12-18 17:54:25] Production.ERROR: pbx prc_insertCDR end [2024-12-18 17:54:25] Production.INFO: ==16533== Releasing lock... [2024-12-18 17:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 17:54:25] Production.INFO: 61.5 MB #Memory Used# [2024-12-18 17:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 14:55:05 [end_date_ymd] => 2024-12-18 17:55:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 14:55:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 17:55:19] Production.INFO: count ==4490 [2024-12-18 17:55:21] Production.ERROR: pbx CDR StartTime 2024-12-18 14:55:05 - End Time 2024-12-18 17:55:05 [2024-12-18 17:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049812', 'tblTempUsageDetail_20' ) start [2024-12-18 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049812', 'tblTempUsageDetail_20' ) end [2024-12-18 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049812', 'tblTempVendorCDR_20' ) start [2024-12-18 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049812', 'tblTempVendorCDR_20' ) end [2024-12-18 17:55:21] Production.INFO: ProcessCDR(1,14049812,1,1,2) [2024-12-18 17:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049812', 'tblTempUsageDetail_20' ) start [2024-12-18 17:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049812', 'tblTempUsageDetail_20' ) end [2024-12-18 17:55:26] Production.ERROR: pbx prc_insertCDR start [2024-12-18 17:55:26] Production.ERROR: pbx prc_insertCDR end [2024-12-18 17:55:26] Production.INFO: ==16615== Releasing lock... [2024-12-18 17:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 17:55:26] Production.INFO: 61.5 MB #Memory Used# [2024-12-18 17:56:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 14:56:04 [end_date_ymd] => 2024-12-18 17:56:04 [RateCDR] => 1 ) [2024-12-18 17:56:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 14:56:04' and `end` < '2024-12-18 17:56:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 17:56:18] Production.INFO: count ==4485 [2024-12-18 17:56:19] Production.ERROR: pbx CDR StartTime 2024-12-18 14:56:04 - End Time 2024-12-18 17:56:04 [2024-12-18 17:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 17:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049817', 'tblTempUsageDetail_20' ) start [2024-12-18 17:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049817', 'tblTempUsageDetail_20' ) end [2024-12-18 17:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049817', 'tblTempVendorCDR_20' ) start [2024-12-18 17:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049817', 'tblTempVendorCDR_20' ) end [2024-12-18 17:56:19] Production.INFO: ProcessCDR(1,14049817,1,1,2) [2024-12-18 17:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049817', 'tblTempUsageDetail_20' ) start [2024-12-18 17:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049817', 'tblTempUsageDetail_20' ) end [2024-12-18 17:56:24] Production.ERROR: pbx prc_insertCDR start [2024-12-18 17:56:24] Production.ERROR: pbx prc_insertCDR end [2024-12-18 17:56:24] Production.INFO: ==16695== Releasing lock... [2024-12-18 17:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 17:56:24] Production.INFO: 61.5 MB #Memory Used# [2024-12-18 17:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 14:57:05 [end_date_ymd] => 2024-12-18 17:57:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 14:57:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 17:57:19] Production.INFO: count ==4484 [2024-12-18 17:57:21] Production.ERROR: pbx CDR StartTime 2024-12-18 14:57:05 - End Time 2024-12-18 17:57:05 [2024-12-18 17:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 17:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049822', 'tblTempUsageDetail_20' ) start [2024-12-18 17:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049822', 'tblTempUsageDetail_20' ) end [2024-12-18 17:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049822', 'tblTempVendorCDR_20' ) start [2024-12-18 17:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049822', 'tblTempVendorCDR_20' ) end [2024-12-18 17:57:21] Production.INFO: ProcessCDR(1,14049822,1,1,2) [2024-12-18 17:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049822', 'tblTempUsageDetail_20' ) start [2024-12-18 17:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049822', 'tblTempUsageDetail_20' ) end [2024-12-18 17:57:26] Production.ERROR: pbx prc_insertCDR start [2024-12-18 17:57:26] Production.ERROR: pbx prc_insertCDR end [2024-12-18 17:57:26] Production.INFO: ==16775== Releasing lock... [2024-12-18 17:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 17:57:26] Production.INFO: 61.5 MB #Memory Used# [2024-12-18 17:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 14:58:05 [end_date_ymd] => 2024-12-18 17:58:05 [RateCDR] => 1 ) [2024-12-18 17:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 14:58:05' and `end` < '2024-12-18 17:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 17:58:19] Production.INFO: count ==4474 [2024-12-18 17:58:20] Production.ERROR: pbx CDR StartTime 2024-12-18 14:58:05 - End Time 2024-12-18 17:58:05 [2024-12-18 17:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 17:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049827', 'tblTempUsageDetail_20' ) start [2024-12-18 17:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049827', 'tblTempUsageDetail_20' ) end [2024-12-18 17:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049827', 'tblTempVendorCDR_20' ) start [2024-12-18 17:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049827', 'tblTempVendorCDR_20' ) end [2024-12-18 17:58:20] Production.INFO: ProcessCDR(1,14049827,1,1,2) [2024-12-18 17:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049827', 'tblTempUsageDetail_20' ) start [2024-12-18 17:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049827', 'tblTempUsageDetail_20' ) end [2024-12-18 17:58:25] Production.ERROR: pbx prc_insertCDR start [2024-12-18 17:58:25] Production.ERROR: pbx prc_insertCDR end [2024-12-18 17:58:25] Production.INFO: ==16854== Releasing lock... [2024-12-18 17:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 17:58:25] Production.INFO: 61.5 MB #Memory Used# [2024-12-18 17:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 14:59:04 [end_date_ymd] => 2024-12-18 17:59:04 [RateCDR] => 1 ) [2024-12-18 17:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 14:59:04' and `end` < '2024-12-18 17:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 17:59:18] Production.INFO: count ==4463 [2024-12-18 17:59:19] Production.ERROR: pbx CDR StartTime 2024-12-18 14:59:04 - End Time 2024-12-18 17:59:04 [2024-12-18 17:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 17:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049832', 'tblTempUsageDetail_20' ) start [2024-12-18 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049832', 'tblTempUsageDetail_20' ) end [2024-12-18 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049832', 'tblTempVendorCDR_20' ) start [2024-12-18 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049832', 'tblTempVendorCDR_20' ) end [2024-12-18 17:59:20] Production.INFO: ProcessCDR(1,14049832,1,1,2) [2024-12-18 17:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 17:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 17:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049832', 'tblTempUsageDetail_20' ) start [2024-12-18 17:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049832', 'tblTempUsageDetail_20' ) end [2024-12-18 17:59:24] Production.ERROR: pbx prc_insertCDR start [2024-12-18 17:59:24] Production.ERROR: pbx prc_insertCDR end [2024-12-18 17:59:24] Production.INFO: ==16934== Releasing lock... [2024-12-18 17:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 17:59:24] Production.INFO: 61.25 MB #Memory Used# [2024-12-18 18:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 15:00:05 [end_date_ymd] => 2024-12-18 18:00:05 [RateCDR] => 1 ) [2024-12-18 18:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 15:00:05' and `end` < '2024-12-18 18:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 18:00:18] Production.INFO: count ==4458 [2024-12-18 18:00:20] Production.ERROR: pbx CDR StartTime 2024-12-18 15:00:05 - End Time 2024-12-18 18:00:05 [2024-12-18 18:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049837', 'tblTempUsageDetail_20' ) start [2024-12-18 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049837', 'tblTempUsageDetail_20' ) end [2024-12-18 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049837', 'tblTempVendorCDR_20' ) start [2024-12-18 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049837', 'tblTempVendorCDR_20' ) end [2024-12-18 18:00:20] Production.INFO: ProcessCDR(1,14049837,1,1,2) [2024-12-18 18:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049837', 'tblTempUsageDetail_20' ) start [2024-12-18 18:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049837', 'tblTempUsageDetail_20' ) end [2024-12-18 18:00:24] Production.ERROR: pbx prc_insertCDR start [2024-12-18 18:00:24] Production.ERROR: pbx prc_insertCDR end [2024-12-18 18:00:25] Production.INFO: ==17015== Releasing lock... [2024-12-18 18:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 18:00:25] Production.INFO: 61.25 MB #Memory Used# [2024-12-18 18:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 15:01:05 [end_date_ymd] => 2024-12-18 18:01:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 15:01:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 18:01:19] Production.INFO: count ==4465 [2024-12-18 18:01:20] Production.ERROR: pbx CDR StartTime 2024-12-18 15:01:05 - End Time 2024-12-18 18:01:05 [2024-12-18 18:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049843', 'tblTempUsageDetail_20' ) start [2024-12-18 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049843', 'tblTempUsageDetail_20' ) end [2024-12-18 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049843', 'tblTempVendorCDR_20' ) start [2024-12-18 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049843', 'tblTempVendorCDR_20' ) end [2024-12-18 18:01:20] Production.INFO: ProcessCDR(1,14049843,1,1,2) [2024-12-18 18:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049843', 'tblTempUsageDetail_20' ) start [2024-12-18 18:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049843', 'tblTempUsageDetail_20' ) end [2024-12-18 18:01:25] Production.ERROR: pbx prc_insertCDR start [2024-12-18 18:01:25] Production.ERROR: pbx prc_insertCDR end [2024-12-18 18:01:25] Production.INFO: ==17109== Releasing lock... [2024-12-18 18:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 18:01:25] Production.INFO: 61.5 MB #Memory Used# [2024-12-18 18:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 15:02:05 [end_date_ymd] => 2024-12-18 18:02:05 [RateCDR] => 1 ) [2024-12-18 18:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 15:02:05' and `end` < '2024-12-18 18:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 18:02:19] Production.INFO: count ==4470 [2024-12-18 18:02:21] Production.ERROR: pbx CDR StartTime 2024-12-18 15:02:05 - End Time 2024-12-18 18:02:05 [2024-12-18 18:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049848', 'tblTempUsageDetail_20' ) start [2024-12-18 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049848', 'tblTempUsageDetail_20' ) end [2024-12-18 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049848', 'tblTempVendorCDR_20' ) start [2024-12-18 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049848', 'tblTempVendorCDR_20' ) end [2024-12-18 18:02:21] Production.INFO: ProcessCDR(1,14049848,1,1,2) [2024-12-18 18:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049848', 'tblTempUsageDetail_20' ) start [2024-12-18 18:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049848', 'tblTempUsageDetail_20' ) end [2024-12-18 18:02:26] Production.ERROR: pbx prc_insertCDR start [2024-12-18 18:02:26] Production.ERROR: pbx prc_insertCDR end [2024-12-18 18:02:26] Production.INFO: ==17231== Releasing lock... [2024-12-18 18:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 18:02:26] Production.INFO: 61.5 MB #Memory Used# [2024-12-18 18:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 15:03:04 [end_date_ymd] => 2024-12-18 18:03:04 [RateCDR] => 1 ) [2024-12-18 18:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 15:03:04' and `end` < '2024-12-18 18:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 18:03:17] Production.INFO: count ==4461 [2024-12-18 18:03:18] Production.ERROR: pbx CDR StartTime 2024-12-18 15:03:04 - End Time 2024-12-18 18:03:04 [2024-12-18 18:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 18:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049853', 'tblTempUsageDetail_20' ) start [2024-12-18 18:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049853', 'tblTempUsageDetail_20' ) end [2024-12-18 18:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049853', 'tblTempVendorCDR_20' ) start [2024-12-18 18:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049853', 'tblTempVendorCDR_20' ) end [2024-12-18 18:03:19] Production.INFO: ProcessCDR(1,14049853,1,1,2) [2024-12-18 18:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049853', 'tblTempUsageDetail_20' ) start [2024-12-18 18:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049853', 'tblTempUsageDetail_20' ) end [2024-12-18 18:03:23] Production.ERROR: pbx prc_insertCDR start [2024-12-18 18:03:23] Production.ERROR: pbx prc_insertCDR end [2024-12-18 18:03:23] Production.INFO: ==17310== Releasing lock... [2024-12-18 18:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 18:03:23] Production.INFO: 61.25 MB #Memory Used# [2024-12-18 18:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 15:04:05 [end_date_ymd] => 2024-12-18 18:04:05 [RateCDR] => 1 ) [2024-12-18 18:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 15:04:05' and `end` < '2024-12-18 18:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 18:04:18] Production.INFO: count ==4456 [2024-12-18 18:04:19] Production.ERROR: pbx CDR StartTime 2024-12-18 15:04:05 - End Time 2024-12-18 18:04:05 [2024-12-18 18:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 18:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049858', 'tblTempUsageDetail_20' ) start [2024-12-18 18:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049858', 'tblTempUsageDetail_20' ) end [2024-12-18 18:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049858', 'tblTempVendorCDR_20' ) start [2024-12-18 18:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049858', 'tblTempVendorCDR_20' ) end [2024-12-18 18:04:19] Production.INFO: ProcessCDR(1,14049858,1,1,2) [2024-12-18 18:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049858', 'tblTempUsageDetail_20' ) start [2024-12-18 18:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049858', 'tblTempUsageDetail_20' ) end [2024-12-18 18:04:24] Production.ERROR: pbx prc_insertCDR start [2024-12-18 18:04:24] Production.ERROR: pbx prc_insertCDR end [2024-12-18 18:04:24] Production.INFO: ==17389== Releasing lock... [2024-12-18 18:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 18:04:24] Production.INFO: 61.25 MB #Memory Used# [2024-12-18 18:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 15:05:05 [end_date_ymd] => 2024-12-18 18:05:05 [RateCDR] => 1 ) [2024-12-18 18:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 15:05:05' and `end` < '2024-12-18 18:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 18:05:18] Production.INFO: count ==4469 [2024-12-18 18:05:19] Production.ERROR: pbx CDR StartTime 2024-12-18 15:05:05 - End Time 2024-12-18 18:05:05 [2024-12-18 18:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 18:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049863', 'tblTempUsageDetail_20' ) start [2024-12-18 18:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049863', 'tblTempUsageDetail_20' ) end [2024-12-18 18:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049863', 'tblTempVendorCDR_20' ) start [2024-12-18 18:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049863', 'tblTempVendorCDR_20' ) end [2024-12-18 18:05:19] Production.INFO: ProcessCDR(1,14049863,1,1,2) [2024-12-18 18:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049863', 'tblTempUsageDetail_20' ) start [2024-12-18 18:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049863', 'tblTempUsageDetail_20' ) end [2024-12-18 18:05:24] Production.ERROR: pbx prc_insertCDR start [2024-12-18 18:05:24] Production.ERROR: pbx prc_insertCDR end [2024-12-18 18:05:24] Production.INFO: ==17470== Releasing lock... [2024-12-18 18:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 18:05:24] Production.INFO: 61.5 MB #Memory Used# [2024-12-18 18:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 15:06:05 [end_date_ymd] => 2024-12-18 18:06:05 [RateCDR] => 1 ) [2024-12-18 18:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 15:06:05' and `end` < '2024-12-18 18:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 18:06:20] Production.INFO: count ==4460 [2024-12-18 18:06:21] Production.ERROR: pbx CDR StartTime 2024-12-18 15:06:05 - End Time 2024-12-18 18:06:05 [2024-12-18 18:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 18:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049868', 'tblTempUsageDetail_20' ) start [2024-12-18 18:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049868', 'tblTempUsageDetail_20' ) end [2024-12-18 18:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049868', 'tblTempVendorCDR_20' ) start [2024-12-18 18:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049868', 'tblTempVendorCDR_20' ) end [2024-12-18 18:06:21] Production.INFO: ProcessCDR(1,14049868,1,1,2) [2024-12-18 18:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049868', 'tblTempUsageDetail_20' ) start [2024-12-18 18:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049868', 'tblTempUsageDetail_20' ) end [2024-12-18 18:06:26] Production.ERROR: pbx prc_insertCDR start [2024-12-18 18:06:26] Production.ERROR: pbx prc_insertCDR end [2024-12-18 18:06:26] Production.INFO: ==17550== Releasing lock... [2024-12-18 18:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 18:06:26] Production.INFO: 61.25 MB #Memory Used# [2024-12-18 18:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 15:07:04 [end_date_ymd] => 2024-12-18 18:07:04 [RateCDR] => 1 ) [2024-12-18 18:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 15:07:04' and `end` < '2024-12-18 18: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 ,'') [2024-12-18 18:07:18] Production.INFO: count ==4440 [2024-12-18 18:07:19] Production.ERROR: pbx CDR StartTime 2024-12-18 15:07:04 - End Time 2024-12-18 18:07:04 [2024-12-18 18:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 18:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049873', 'tblTempUsageDetail_20' ) start [2024-12-18 18:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049873', 'tblTempUsageDetail_20' ) end [2024-12-18 18:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049873', 'tblTempVendorCDR_20' ) start [2024-12-18 18:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049873', 'tblTempVendorCDR_20' ) end [2024-12-18 18:07:19] Production.INFO: ProcessCDR(1,14049873,1,1,2) [2024-12-18 18:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049873', 'tblTempUsageDetail_20' ) start [2024-12-18 18:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049873', 'tblTempUsageDetail_20' ) end [2024-12-18 18:07:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 18:07:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 18:07:22] Production.INFO: ==17633== Releasing lock... [2024-12-18 18:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 18:07:22] Production.INFO: 61.25 MB #Memory Used# [2024-12-18 18:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 15:08:05 [end_date_ymd] => 2024-12-18 18:08:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 15:08:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 18:08:17] Production.INFO: count ==4453 [2024-12-18 18:08:19] Production.ERROR: pbx CDR StartTime 2024-12-18 15:08:05 - End Time 2024-12-18 18:08:05 [2024-12-18 18:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 18:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049878', 'tblTempUsageDetail_20' ) start [2024-12-18 18:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049878', 'tblTempUsageDetail_20' ) end [2024-12-18 18:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049878', 'tblTempVendorCDR_20' ) start [2024-12-18 18:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049878', 'tblTempVendorCDR_20' ) end [2024-12-18 18:08:19] Production.INFO: ProcessCDR(1,14049878,1,1,2) [2024-12-18 18:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049878', 'tblTempUsageDetail_20' ) start [2024-12-18 18:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049878', 'tblTempUsageDetail_20' ) end [2024-12-18 18:08:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 18:08:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 18:08:22] Production.INFO: ==17713== Releasing lock... [2024-12-18 18:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 18:08:22] Production.INFO: 61.25 MB #Memory Used# [2024-12-18 18:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 15:09:05 [end_date_ymd] => 2024-12-18 18:09:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 15:09:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 18:09:18] Production.INFO: count ==4448 [2024-12-18 18:09:19] Production.ERROR: pbx CDR StartTime 2024-12-18 15:09:05 - End Time 2024-12-18 18:09:05 [2024-12-18 18:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 18:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049883', 'tblTempUsageDetail_20' ) start [2024-12-18 18:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049883', 'tblTempUsageDetail_20' ) end [2024-12-18 18:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049883', 'tblTempVendorCDR_20' ) start [2024-12-18 18:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049883', 'tblTempVendorCDR_20' ) end [2024-12-18 18:09:19] Production.INFO: ProcessCDR(1,14049883,1,1,2) [2024-12-18 18:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049883', 'tblTempUsageDetail_20' ) start [2024-12-18 18:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049883', 'tblTempUsageDetail_20' ) end [2024-12-18 18:09:23] Production.ERROR: pbx prc_insertCDR start [2024-12-18 18:09:23] Production.ERROR: pbx prc_insertCDR end [2024-12-18 18:09:23] Production.INFO: ==17793== Releasing lock... [2024-12-18 18:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 18:09:23] Production.INFO: 61.25 MB #Memory Used# [2024-12-18 18:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 15:10:05 [end_date_ymd] => 2024-12-18 18:10:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 15:10:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 18:10:18] Production.INFO: count ==4441 [2024-12-18 18:10:20] Production.ERROR: pbx CDR StartTime 2024-12-18 15:10:05 - End Time 2024-12-18 18:10:05 [2024-12-18 18:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049889', 'tblTempUsageDetail_20' ) start [2024-12-18 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049889', 'tblTempUsageDetail_20' ) end [2024-12-18 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049889', 'tblTempVendorCDR_20' ) start [2024-12-18 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049889', 'tblTempVendorCDR_20' ) end [2024-12-18 18:10:20] Production.INFO: ProcessCDR(1,14049889,1,1,2) [2024-12-18 18:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049889', 'tblTempUsageDetail_20' ) start [2024-12-18 18:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049889', 'tblTempUsageDetail_20' ) end [2024-12-18 18:10:23] Production.ERROR: pbx prc_insertCDR start [2024-12-18 18:10:23] Production.ERROR: pbx prc_insertCDR end [2024-12-18 18:10:23] Production.INFO: ==17874== Releasing lock... [2024-12-18 18:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 18:10:23] Production.INFO: 61.25 MB #Memory Used# [2024-12-18 18:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 15:11:05 [end_date_ymd] => 2024-12-18 18:11:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 15:11:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 18:11:20] Production.INFO: count ==4441 [2024-12-18 18:11:21] Production.ERROR: pbx CDR StartTime 2024-12-18 15:11:05 - End Time 2024-12-18 18:11:05 [2024-12-18 18:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 18:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049894', 'tblTempUsageDetail_20' ) start [2024-12-18 18:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049894', 'tblTempUsageDetail_20' ) end [2024-12-18 18:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049894', 'tblTempVendorCDR_20' ) start [2024-12-18 18:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049894', 'tblTempVendorCDR_20' ) end [2024-12-18 18:11:21] Production.INFO: ProcessCDR(1,14049894,1,1,2) [2024-12-18 18:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049894', 'tblTempUsageDetail_20' ) start [2024-12-18 18:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049894', 'tblTempUsageDetail_20' ) end [2024-12-18 18:11:26] Production.ERROR: pbx prc_insertCDR start [2024-12-18 18:11:26] Production.ERROR: pbx prc_insertCDR end [2024-12-18 18:11:26] Production.INFO: ==17953== Releasing lock... [2024-12-18 18:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 18:11:26] Production.INFO: 61.25 MB #Memory Used# [2024-12-18 18:12:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 15:12:04 [end_date_ymd] => 2024-12-18 18:12:04 [RateCDR] => 1 ) [2024-12-18 18:12:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 15:12:04' and `end` < '2024-12-18 18:12:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 18:12:17] Production.INFO: count ==4420 [2024-12-18 18:12:18] Production.ERROR: pbx CDR StartTime 2024-12-18 15:12:04 - End Time 2024-12-18 18:12:04 [2024-12-18 18:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 18:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049899', 'tblTempUsageDetail_20' ) start [2024-12-18 18:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049899', 'tblTempUsageDetail_20' ) end [2024-12-18 18:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049899', 'tblTempVendorCDR_20' ) start [2024-12-18 18:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049899', 'tblTempVendorCDR_20' ) end [2024-12-18 18:12:18] Production.INFO: ProcessCDR(1,14049899,1,1,2) [2024-12-18 18:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049899', 'tblTempUsageDetail_20' ) start [2024-12-18 18:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049899', 'tblTempUsageDetail_20' ) end [2024-12-18 18:12:23] Production.ERROR: pbx prc_insertCDR start [2024-12-18 18:12:23] Production.ERROR: pbx prc_insertCDR end [2024-12-18 18:12:23] Production.INFO: ==18031== Releasing lock... [2024-12-18 18:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 18:12:23] Production.INFO: 61 MB #Memory Used# [2024-12-18 18:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 15:13:05 [end_date_ymd] => 2024-12-18 18:13:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 15:13:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 18:13:17] Production.INFO: count ==4406 [2024-12-18 18:13:19] Production.ERROR: pbx CDR StartTime 2024-12-18 15:13:05 - End Time 2024-12-18 18:13:05 [2024-12-18 18:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 18:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049904', 'tblTempUsageDetail_20' ) start [2024-12-18 18:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049904', 'tblTempUsageDetail_20' ) end [2024-12-18 18:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049904', 'tblTempVendorCDR_20' ) start [2024-12-18 18:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049904', 'tblTempVendorCDR_20' ) end [2024-12-18 18:13:19] Production.INFO: ProcessCDR(1,14049904,1,1,2) [2024-12-18 18:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049904', 'tblTempUsageDetail_20' ) start [2024-12-18 18:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049904', 'tblTempUsageDetail_20' ) end [2024-12-18 18:13:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 18:13:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 18:13:22] Production.INFO: ==18116== Releasing lock... [2024-12-18 18:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 18:13:22] Production.INFO: 61 MB #Memory Used# [2024-12-18 18:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 15:14:05 [end_date_ymd] => 2024-12-18 18:14:05 [RateCDR] => 1 ) [2024-12-18 18:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 15:14:05' and `end` < '2024-12-18 18:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 18:14:17] Production.INFO: count ==4396 [2024-12-18 18:14:19] Production.ERROR: pbx CDR StartTime 2024-12-18 15:14:05 - End Time 2024-12-18 18:14:05 [2024-12-18 18:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 18:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049909', 'tblTempUsageDetail_20' ) start [2024-12-18 18:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049909', 'tblTempUsageDetail_20' ) end [2024-12-18 18:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049909', 'tblTempVendorCDR_20' ) start [2024-12-18 18:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049909', 'tblTempVendorCDR_20' ) end [2024-12-18 18:14:19] Production.INFO: ProcessCDR(1,14049909,1,1,2) [2024-12-18 18:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049909', 'tblTempUsageDetail_20' ) start [2024-12-18 18:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049909', 'tblTempUsageDetail_20' ) end [2024-12-18 18:14:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 18:14:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 18:14:22] Production.INFO: ==18192== Releasing lock... [2024-12-18 18:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 18:14:22] Production.INFO: 60.75 MB #Memory Used# [2024-12-18 18:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 15:15:05 [end_date_ymd] => 2024-12-18 18:15:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 15:15:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 18:15:18] Production.INFO: count ==4389 [2024-12-18 18:15:19] Production.ERROR: pbx CDR StartTime 2024-12-18 15:15:05 - End Time 2024-12-18 18:15:05 [2024-12-18 18:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 18:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049914', 'tblTempUsageDetail_20' ) start [2024-12-18 18:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049914', 'tblTempUsageDetail_20' ) end [2024-12-18 18:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049914', 'tblTempVendorCDR_20' ) start [2024-12-18 18:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049914', 'tblTempVendorCDR_20' ) end [2024-12-18 18:15:19] Production.INFO: ProcessCDR(1,14049914,1,1,2) [2024-12-18 18:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049914', 'tblTempUsageDetail_20' ) start [2024-12-18 18:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049914', 'tblTempUsageDetail_20' ) end [2024-12-18 18:15:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 18:15:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 18:15:22] Production.INFO: ==18274== Releasing lock... [2024-12-18 18:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 18:15:22] Production.INFO: 60.75 MB #Memory Used# [2024-12-18 18:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 15:16:05 [end_date_ymd] => 2024-12-18 18:16:05 [RateCDR] => 1 ) [2024-12-18 18:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 15:16:05' and `end` < '2024-12-18 18:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 18:16:22] Production.INFO: count ==4380 [2024-12-18 18:16:23] Production.ERROR: pbx CDR StartTime 2024-12-18 15:16:05 - End Time 2024-12-18 18:16:05 [2024-12-18 18:16:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 18:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049919', 'tblTempUsageDetail_20' ) start [2024-12-18 18:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049919', 'tblTempUsageDetail_20' ) end [2024-12-18 18:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049919', 'tblTempVendorCDR_20' ) start [2024-12-18 18:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049919', 'tblTempVendorCDR_20' ) end [2024-12-18 18:16:24] Production.INFO: ProcessCDR(1,14049919,1,1,2) [2024-12-18 18:16:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:16:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:16:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049919', 'tblTempUsageDetail_20' ) start [2024-12-18 18:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049919', 'tblTempUsageDetail_20' ) end [2024-12-18 18:16:27] Production.ERROR: pbx prc_insertCDR start [2024-12-18 18:16:27] Production.ERROR: pbx prc_insertCDR end [2024-12-18 18:16:27] Production.INFO: ==18359== Releasing lock... [2024-12-18 18:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 18:16:27] Production.INFO: 60.75 MB #Memory Used# [2024-12-18 18:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 15:17:04 [end_date_ymd] => 2024-12-18 18:17:04 [RateCDR] => 1 ) [2024-12-18 18: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` >= '2024-12-18 15:17:04' and `end` < '2024-12-18 18: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 ,'') [2024-12-18 18:17:17] Production.INFO: count ==4361 [2024-12-18 18:17:19] Production.ERROR: pbx CDR StartTime 2024-12-18 15:17:04 - End Time 2024-12-18 18:17:04 [2024-12-18 18:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 18:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049924', 'tblTempUsageDetail_20' ) start [2024-12-18 18:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049924', 'tblTempUsageDetail_20' ) end [2024-12-18 18:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049924', 'tblTempVendorCDR_20' ) start [2024-12-18 18:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049924', 'tblTempVendorCDR_20' ) end [2024-12-18 18:17:19] Production.INFO: ProcessCDR(1,14049924,1,1,2) [2024-12-18 18:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049924', 'tblTempUsageDetail_20' ) start [2024-12-18 18:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049924', 'tblTempUsageDetail_20' ) end [2024-12-18 18:17:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 18:17:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 18:17:22] Production.INFO: ==18436== Releasing lock... [2024-12-18 18:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 18:17:22] Production.INFO: 60.5 MB #Memory Used# [2024-12-18 18:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 15:18:05 [end_date_ymd] => 2024-12-18 18:18:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 15:18:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 18:18:20] Production.INFO: count ==4348 [2024-12-18 18:18:21] Production.ERROR: pbx CDR StartTime 2024-12-18 15:18:05 - End Time 2024-12-18 18:18:05 [2024-12-18 18:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049929', 'tblTempUsageDetail_20' ) start [2024-12-18 18:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049929', 'tblTempUsageDetail_20' ) end [2024-12-18 18:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049929', 'tblTempVendorCDR_20' ) start [2024-12-18 18:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049929', 'tblTempVendorCDR_20' ) end [2024-12-18 18:18:22] Production.INFO: ProcessCDR(1,14049929,1,1,2) [2024-12-18 18:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049929', 'tblTempUsageDetail_20' ) start [2024-12-18 18:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049929', 'tblTempUsageDetail_20' ) end [2024-12-18 18:18:25] Production.ERROR: pbx prc_insertCDR start [2024-12-18 18:18:25] Production.ERROR: pbx prc_insertCDR end [2024-12-18 18:18:25] Production.INFO: ==18553== Releasing lock... [2024-12-18 18:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 18:18:25] Production.INFO: 60.5 MB #Memory Used# [2024-12-18 18:19:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 15:19:04 [end_date_ymd] => 2024-12-18 18:19:04 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 15:19:04' and `end` < '2024-12-18 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 ,'') [2024-12-18 18:19:18] Production.INFO: count ==4346 [2024-12-18 18:19:19] Production.ERROR: pbx CDR StartTime 2024-12-18 15:19:04 - End Time 2024-12-18 18:19:04 [2024-12-18 18:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 18:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049934', 'tblTempUsageDetail_20' ) start [2024-12-18 18:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049934', 'tblTempUsageDetail_20' ) end [2024-12-18 18:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049934', 'tblTempVendorCDR_20' ) start [2024-12-18 18:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049934', 'tblTempVendorCDR_20' ) end [2024-12-18 18:19:19] Production.INFO: ProcessCDR(1,14049934,1,1,2) [2024-12-18 18:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049934', 'tblTempUsageDetail_20' ) start [2024-12-18 18:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049934', 'tblTempUsageDetail_20' ) end [2024-12-18 18:19:24] Production.ERROR: pbx prc_insertCDR start [2024-12-18 18:19:24] Production.ERROR: pbx prc_insertCDR end [2024-12-18 18:19:24] Production.INFO: ==18629== Releasing lock... [2024-12-18 18:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 18:19:24] Production.INFO: 60.5 MB #Memory Used# [2024-12-18 18:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 15:20:05 [end_date_ymd] => 2024-12-18 18:20:05 [RateCDR] => 1 ) [2024-12-18 18: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` >= '2024-12-18 15:20:05' and `end` < '2024-12-18 18: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 ,'') [2024-12-18 18:20:19] Production.INFO: count ==4336 [2024-12-18 18:20:21] Production.ERROR: pbx CDR StartTime 2024-12-18 15:20:05 - End Time 2024-12-18 18:20:05 [2024-12-18 18:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049940', 'tblTempUsageDetail_20' ) start [2024-12-18 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049940', 'tblTempUsageDetail_20' ) end [2024-12-18 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049940', 'tblTempVendorCDR_20' ) start [2024-12-18 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049940', 'tblTempVendorCDR_20' ) end [2024-12-18 18:20:21] Production.INFO: ProcessCDR(1,14049940,1,1,2) [2024-12-18 18:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049940', 'tblTempUsageDetail_20' ) start [2024-12-18 18:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049940', 'tblTempUsageDetail_20' ) end [2024-12-18 18:20:25] Production.ERROR: pbx prc_insertCDR start [2024-12-18 18:20:25] Production.ERROR: pbx prc_insertCDR end [2024-12-18 18:20:25] Production.INFO: ==18707== Releasing lock... [2024-12-18 18:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 18:20:25] Production.INFO: 60.5 MB #Memory Used# [2024-12-18 18:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 15:21:05 [end_date_ymd] => 2024-12-18 18:21:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 15:21:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 18:21:17] Production.INFO: count ==4289 [2024-12-18 18:21:19] Production.ERROR: pbx CDR StartTime 2024-12-18 15:21:05 - End Time 2024-12-18 18:21:05 [2024-12-18 18:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 18:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049945', 'tblTempUsageDetail_20' ) start [2024-12-18 18:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049945', 'tblTempUsageDetail_20' ) end [2024-12-18 18:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049945', 'tblTempVendorCDR_20' ) start [2024-12-18 18:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049945', 'tblTempVendorCDR_20' ) end [2024-12-18 18:21:19] Production.INFO: ProcessCDR(1,14049945,1,1,2) [2024-12-18 18:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049945', 'tblTempUsageDetail_20' ) start [2024-12-18 18:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049945', 'tblTempUsageDetail_20' ) end [2024-12-18 18:21:23] Production.ERROR: pbx prc_insertCDR start [2024-12-18 18:21:23] Production.ERROR: pbx prc_insertCDR end [2024-12-18 18:21:23] Production.INFO: ==18788== Releasing lock... [2024-12-18 18:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 18:21:23] Production.INFO: 60 MB #Memory Used# [2024-12-18 18:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 15:22:05 [end_date_ymd] => 2024-12-18 18:22:05 [RateCDR] => 1 ) [2024-12-18 18:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 15:22:05' and `end` < '2024-12-18 18:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 18:22:18] Production.INFO: count ==4228 [2024-12-18 18:22:20] Production.ERROR: pbx CDR StartTime 2024-12-18 15:22:05 - End Time 2024-12-18 18:22:05 [2024-12-18 18:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049950', 'tblTempUsageDetail_20' ) start [2024-12-18 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049950', 'tblTempUsageDetail_20' ) end [2024-12-18 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049950', 'tblTempVendorCDR_20' ) start [2024-12-18 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049950', 'tblTempVendorCDR_20' ) end [2024-12-18 18:22:20] Production.INFO: ProcessCDR(1,14049950,1,1,2) [2024-12-18 18:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049950', 'tblTempUsageDetail_20' ) start [2024-12-18 18:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049950', 'tblTempUsageDetail_20' ) end [2024-12-18 18:22:24] Production.ERROR: pbx prc_insertCDR start [2024-12-18 18:22:24] Production.ERROR: pbx prc_insertCDR end [2024-12-18 18:22:24] Production.INFO: ==18864== Releasing lock... [2024-12-18 18:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 18:22:24] Production.INFO: 59.5 MB #Memory Used# [2024-12-18 18:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 15:23:04 [end_date_ymd] => 2024-12-18 18:23:04 [RateCDR] => 1 ) [2024-12-18 18:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 15:23:04' and `end` < '2024-12-18 18:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 18:23:18] Production.INFO: count ==4220 [2024-12-18 18:23:19] Production.ERROR: pbx CDR StartTime 2024-12-18 15:23:04 - End Time 2024-12-18 18:23:04 [2024-12-18 18:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 18:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049955', 'tblTempUsageDetail_20' ) start [2024-12-18 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049955', 'tblTempUsageDetail_20' ) end [2024-12-18 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049955', 'tblTempVendorCDR_20' ) start [2024-12-18 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049955', 'tblTempVendorCDR_20' ) end [2024-12-18 18:23:20] Production.INFO: ProcessCDR(1,14049955,1,1,2) [2024-12-18 18:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049955', 'tblTempUsageDetail_20' ) start [2024-12-18 18:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049955', 'tblTempUsageDetail_20' ) end [2024-12-18 18:23:23] Production.ERROR: pbx prc_insertCDR start [2024-12-18 18:23:23] Production.ERROR: pbx prc_insertCDR end [2024-12-18 18:23:23] Production.INFO: ==18942== Releasing lock... [2024-12-18 18:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 18:23:23] Production.INFO: 59.5 MB #Memory Used# [2024-12-18 18:24:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 15:24:04 [end_date_ymd] => 2024-12-18 18:24:04 [RateCDR] => 1 ) [2024-12-18 18:24:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 15:24:04' and `end` < '2024-12-18 18:24:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 18:24:17] Production.INFO: count ==4183 [2024-12-18 18:24:19] Production.ERROR: pbx CDR StartTime 2024-12-18 15:24:04 - End Time 2024-12-18 18:24:04 [2024-12-18 18:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 18:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049960', 'tblTempUsageDetail_20' ) start [2024-12-18 18:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049960', 'tblTempUsageDetail_20' ) end [2024-12-18 18:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049960', 'tblTempVendorCDR_20' ) start [2024-12-18 18:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049960', 'tblTempVendorCDR_20' ) end [2024-12-18 18:24:19] Production.INFO: ProcessCDR(1,14049960,1,1,2) [2024-12-18 18:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049960', 'tblTempUsageDetail_20' ) start [2024-12-18 18:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049960', 'tblTempUsageDetail_20' ) end [2024-12-18 18:24:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 18:24:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 18:24:22] Production.INFO: ==19019== Releasing lock... [2024-12-18 18:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 18:24:22] Production.INFO: 59.25 MB #Memory Used# [2024-12-18 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 15:25:05 [end_date_ymd] => 2024-12-18 18:25:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 15:25:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 18:25:17] Production.INFO: count ==4181 [2024-12-18 18:25:19] Production.ERROR: pbx CDR StartTime 2024-12-18 15:25:05 - End Time 2024-12-18 18:25:05 [2024-12-18 18:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049965', 'tblTempUsageDetail_20' ) start [2024-12-18 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049965', 'tblTempUsageDetail_20' ) end [2024-12-18 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049965', 'tblTempVendorCDR_20' ) start [2024-12-18 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049965', 'tblTempVendorCDR_20' ) end [2024-12-18 18:25:19] Production.INFO: ProcessCDR(1,14049965,1,1,2) [2024-12-18 18:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049965', 'tblTempUsageDetail_20' ) start [2024-12-18 18:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049965', 'tblTempUsageDetail_20' ) end [2024-12-18 18:25:23] Production.ERROR: pbx prc_insertCDR start [2024-12-18 18:25:23] Production.ERROR: pbx prc_insertCDR end [2024-12-18 18:25:24] Production.INFO: ==19098== Releasing lock... [2024-12-18 18:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 18:25:24] Production.INFO: 59.25 MB #Memory Used# [2024-12-18 18:26:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 15:26:04 [end_date_ymd] => 2024-12-18 18:26:04 [RateCDR] => 1 ) [2024-12-18 18:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 15:26:04' and `end` < '2024-12-18 18:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 18:26:19] Production.INFO: count ==4189 [2024-12-18 18:26:20] Production.ERROR: pbx CDR StartTime 2024-12-18 15:26:04 - End Time 2024-12-18 18:26:04 [2024-12-18 18:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 18:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049970', 'tblTempUsageDetail_20' ) start [2024-12-18 18:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049970', 'tblTempUsageDetail_20' ) end [2024-12-18 18:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049970', 'tblTempVendorCDR_20' ) start [2024-12-18 18:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049970', 'tblTempVendorCDR_20' ) end [2024-12-18 18:26:20] Production.INFO: ProcessCDR(1,14049970,1,1,2) [2024-12-18 18:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049970', 'tblTempUsageDetail_20' ) start [2024-12-18 18:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049970', 'tblTempUsageDetail_20' ) end [2024-12-18 18:26:23] Production.ERROR: pbx prc_insertCDR start [2024-12-18 18:26:23] Production.ERROR: pbx prc_insertCDR end [2024-12-18 18:26:23] Production.INFO: ==19173== Releasing lock... [2024-12-18 18:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 18:26:23] Production.INFO: 59.25 MB #Memory Used# [2024-12-18 18:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 15:27:05 [end_date_ymd] => 2024-12-18 18:27:05 [RateCDR] => 1 ) [2024-12-18 18: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` >= '2024-12-18 15:27:05' and `end` < '2024-12-18 18: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 ,'') [2024-12-18 18:27:18] Production.INFO: count ==4182 [2024-12-18 18:27:19] Production.ERROR: pbx CDR StartTime 2024-12-18 15:27:05 - End Time 2024-12-18 18:27:05 [2024-12-18 18:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 18:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049975', 'tblTempUsageDetail_20' ) start [2024-12-18 18:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049975', 'tblTempUsageDetail_20' ) end [2024-12-18 18:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049975', 'tblTempVendorCDR_20' ) start [2024-12-18 18:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049975', 'tblTempVendorCDR_20' ) end [2024-12-18 18:27:19] Production.INFO: ProcessCDR(1,14049975,1,1,2) [2024-12-18 18:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049975', 'tblTempUsageDetail_20' ) start [2024-12-18 18:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049975', 'tblTempUsageDetail_20' ) end [2024-12-18 18:27:24] Production.ERROR: pbx prc_insertCDR start [2024-12-18 18:27:24] Production.ERROR: pbx prc_insertCDR end [2024-12-18 18:27:24] Production.INFO: ==19255== Releasing lock... [2024-12-18 18:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 18:27:24] Production.INFO: 59.25 MB #Memory Used# [2024-12-18 18:28:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 15:28:04 [end_date_ymd] => 2024-12-18 18:28:04 [RateCDR] => 1 ) [2024-12-18 18:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 15:28:04' and `end` < '2024-12-18 18:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 18:28:17] Production.INFO: count ==4178 [2024-12-18 18:28:18] Production.ERROR: pbx CDR StartTime 2024-12-18 15:28:04 - End Time 2024-12-18 18:28:04 [2024-12-18 18:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 18:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049980', 'tblTempUsageDetail_20' ) start [2024-12-18 18:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049980', 'tblTempUsageDetail_20' ) end [2024-12-18 18:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049980', 'tblTempVendorCDR_20' ) start [2024-12-18 18:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049980', 'tblTempVendorCDR_20' ) end [2024-12-18 18:28:18] Production.INFO: ProcessCDR(1,14049980,1,1,2) [2024-12-18 18:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049980', 'tblTempUsageDetail_20' ) start [2024-12-18 18:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049980', 'tblTempUsageDetail_20' ) end [2024-12-18 18:28:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 18:28:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 18:28:22] Production.INFO: ==19330== Releasing lock... [2024-12-18 18:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 18:28:22] Production.INFO: 59.25 MB #Memory Used# [2024-12-18 18:29:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 15:29:04 [end_date_ymd] => 2024-12-18 18:29:04 [RateCDR] => 1 ) [2024-12-18 18:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 15:29:04' and `end` < '2024-12-18 18:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 18:29:17] Production.INFO: count ==4130 [2024-12-18 18:29:18] Production.ERROR: pbx CDR StartTime 2024-12-18 15:29:04 - End Time 2024-12-18 18:29:04 [2024-12-18 18:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 18:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049985', 'tblTempUsageDetail_20' ) start [2024-12-18 18:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049985', 'tblTempUsageDetail_20' ) end [2024-12-18 18:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049985', 'tblTempVendorCDR_20' ) start [2024-12-18 18:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049985', 'tblTempVendorCDR_20' ) end [2024-12-18 18:29:19] Production.INFO: ProcessCDR(1,14049985,1,1,2) [2024-12-18 18:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049985', 'tblTempUsageDetail_20' ) start [2024-12-18 18:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049985', 'tblTempUsageDetail_20' ) end [2024-12-18 18:29:23] Production.ERROR: pbx prc_insertCDR start [2024-12-18 18:29:23] Production.ERROR: pbx prc_insertCDR end [2024-12-18 18:29:23] Production.INFO: ==19420== Releasing lock... [2024-12-18 18:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 18:29:23] Production.INFO: 58.75 MB #Memory Used# [2024-12-18 18:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 15:30:05 [end_date_ymd] => 2024-12-18 18:30:05 [RateCDR] => 1 ) [2024-12-18 18:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 15:30:05' and `end` < '2024-12-18 18:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 18:30:18] Production.INFO: count ==4117 [2024-12-18 18:30:19] Production.ERROR: pbx CDR StartTime 2024-12-18 15:30:05 - End Time 2024-12-18 18:30:05 [2024-12-18 18:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 18:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049991', 'tblTempUsageDetail_20' ) start [2024-12-18 18:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049991', 'tblTempUsageDetail_20' ) end [2024-12-18 18:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049991', 'tblTempVendorCDR_20' ) start [2024-12-18 18:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049991', 'tblTempVendorCDR_20' ) end [2024-12-18 18:30:20] Production.INFO: ProcessCDR(1,14049991,1,1,2) [2024-12-18 18:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049991', 'tblTempUsageDetail_20' ) start [2024-12-18 18:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049991', 'tblTempUsageDetail_20' ) end [2024-12-18 18:30:23] Production.ERROR: pbx prc_insertCDR start [2024-12-18 18:30:23] Production.ERROR: pbx prc_insertCDR end [2024-12-18 18:30:23] Production.INFO: ==19538== Releasing lock... [2024-12-18 18:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 18:30:23] Production.INFO: 58.75 MB #Memory Used# [2024-12-18 18:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 15:31:05 [end_date_ymd] => 2024-12-18 18:31:05 [RateCDR] => 1 ) [2024-12-18 18: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` >= '2024-12-18 15:31:05' and `end` < '2024-12-18 18: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 ,'') [2024-12-18 18:31:19] Production.INFO: count ==4077 [2024-12-18 18:31:20] Production.ERROR: pbx CDR StartTime 2024-12-18 15:31:05 - End Time 2024-12-18 18:31:05 [2024-12-18 18:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 18:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049996', 'tblTempUsageDetail_20' ) start [2024-12-18 18:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14049996', 'tblTempUsageDetail_20' ) end [2024-12-18 18:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049996', 'tblTempVendorCDR_20' ) start [2024-12-18 18:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14049996', 'tblTempVendorCDR_20' ) end [2024-12-18 18:31:21] Production.INFO: ProcessCDR(1,14049996,1,1,2) [2024-12-18 18:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14049996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14049996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14049996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14049996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049996', 'tblTempUsageDetail_20' ) start [2024-12-18 18:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14049996', 'tblTempUsageDetail_20' ) end [2024-12-18 18:31:24] Production.ERROR: pbx prc_insertCDR start [2024-12-18 18:31:24] Production.ERROR: pbx prc_insertCDR end [2024-12-18 18:31:24] Production.INFO: ==19622== Releasing lock... [2024-12-18 18:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 18:31:24] Production.INFO: 58.5 MB #Memory Used# [2024-12-18 18:32:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 15:32:04 [end_date_ymd] => 2024-12-18 18:32:04 [RateCDR] => 1 ) [2024-12-18 18:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 15:32:04' and `end` < '2024-12-18 18:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 18:32:17] Production.INFO: count ==4059 [2024-12-18 18:32:18] Production.ERROR: pbx CDR StartTime 2024-12-18 15:32:04 - End Time 2024-12-18 18:32:04 [2024-12-18 18:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 18:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050001', 'tblTempUsageDetail_20' ) start [2024-12-18 18:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050001', 'tblTempUsageDetail_20' ) end [2024-12-18 18:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050001', 'tblTempVendorCDR_20' ) start [2024-12-18 18:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050001', 'tblTempVendorCDR_20' ) end [2024-12-18 18:32:18] Production.INFO: ProcessCDR(1,14050001,1,1,2) [2024-12-18 18:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050001', 'tblTempUsageDetail_20' ) start [2024-12-18 18:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050001', 'tblTempUsageDetail_20' ) end [2024-12-18 18:32:23] Production.ERROR: pbx prc_insertCDR start [2024-12-18 18:32:23] Production.ERROR: pbx prc_insertCDR end [2024-12-18 18:32:23] Production.INFO: ==19729== Releasing lock... [2024-12-18 18:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 18:32:23] Production.INFO: 58.25 MB #Memory Used# [2024-12-18 18:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 15:33:04 [end_date_ymd] => 2024-12-18 18:33:04 [RateCDR] => 1 ) [2024-12-18 18:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 15:33:04' and `end` < '2024-12-18 18:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 18:33:17] Production.INFO: count ==4053 [2024-12-18 18:33:19] Production.ERROR: pbx CDR StartTime 2024-12-18 15:33:04 - End Time 2024-12-18 18:33:04 [2024-12-18 18:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 18:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050006', 'tblTempUsageDetail_20' ) start [2024-12-18 18:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050006', 'tblTempUsageDetail_20' ) end [2024-12-18 18:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050006', 'tblTempVendorCDR_20' ) start [2024-12-18 18:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050006', 'tblTempVendorCDR_20' ) end [2024-12-18 18:33:19] Production.INFO: ProcessCDR(1,14050006,1,1,2) [2024-12-18 18:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050006', 'tblTempUsageDetail_20' ) start [2024-12-18 18:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050006', 'tblTempUsageDetail_20' ) end [2024-12-18 18:33:24] Production.ERROR: pbx prc_insertCDR start [2024-12-18 18:33:24] Production.ERROR: pbx prc_insertCDR end [2024-12-18 18:33:24] Production.INFO: ==19865== Releasing lock... [2024-12-18 18:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 18:33:24] Production.INFO: 58.25 MB #Memory Used# [2024-12-18 18:34:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 15:34:04 [end_date_ymd] => 2024-12-18 18:34:04 [RateCDR] => 1 ) [2024-12-18 18:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 15:34:04' and `end` < '2024-12-18 18:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 18:34:18] Production.INFO: count ==4043 [2024-12-18 18:34:19] Production.ERROR: pbx CDR StartTime 2024-12-18 15:34:04 - End Time 2024-12-18 18:34:04 [2024-12-18 18:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050011', 'tblTempUsageDetail_20' ) start [2024-12-18 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050011', 'tblTempUsageDetail_20' ) end [2024-12-18 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050011', 'tblTempVendorCDR_20' ) start [2024-12-18 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050011', 'tblTempVendorCDR_20' ) end [2024-12-18 18:34:19] Production.INFO: ProcessCDR(1,14050011,1,1,2) [2024-12-18 18:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050011', 'tblTempUsageDetail_20' ) start [2024-12-18 18:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050011', 'tblTempUsageDetail_20' ) end [2024-12-18 18:34:23] Production.ERROR: pbx prc_insertCDR start [2024-12-18 18:34:23] Production.ERROR: pbx prc_insertCDR end [2024-12-18 18:34:24] Production.INFO: ==19995== Releasing lock... [2024-12-18 18:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 18:34:24] Production.INFO: 58.25 MB #Memory Used# [2024-12-18 18:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 15:35:05 [end_date_ymd] => 2024-12-18 18:35:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 15:35:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 18:35:18] Production.INFO: count ==4020 [2024-12-18 18:35:19] Production.ERROR: pbx CDR StartTime 2024-12-18 15:35:05 - End Time 2024-12-18 18:35:05 [2024-12-18 18:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050016', 'tblTempUsageDetail_20' ) start [2024-12-18 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050016', 'tblTempUsageDetail_20' ) end [2024-12-18 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050016', 'tblTempVendorCDR_20' ) start [2024-12-18 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050016', 'tblTempVendorCDR_20' ) end [2024-12-18 18:35:19] Production.INFO: ProcessCDR(1,14050016,1,1,2) [2024-12-18 18:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050016', 'tblTempUsageDetail_20' ) start [2024-12-18 18:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050016', 'tblTempUsageDetail_20' ) end [2024-12-18 18:35:24] Production.ERROR: pbx prc_insertCDR start [2024-12-18 18:35:24] Production.ERROR: pbx prc_insertCDR end [2024-12-18 18:35:24] Production.INFO: ==20085== Releasing lock... [2024-12-18 18:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 18:35:24] Production.INFO: 58 MB #Memory Used# [2024-12-18 18:36:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 15:36:04 [end_date_ymd] => 2024-12-18 18:36:04 [RateCDR] => 1 ) [2024-12-18 18:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 15:36:04' and `end` < '2024-12-18 18:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 18:36:18] Production.INFO: count ==3991 [2024-12-18 18:36:19] Production.ERROR: pbx CDR StartTime 2024-12-18 15:36:04 - End Time 2024-12-18 18:36:04 [2024-12-18 18:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050021', 'tblTempUsageDetail_20' ) start [2024-12-18 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050021', 'tblTempUsageDetail_20' ) end [2024-12-18 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050021', 'tblTempVendorCDR_20' ) start [2024-12-18 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050021', 'tblTempVendorCDR_20' ) end [2024-12-18 18:36:19] Production.INFO: ProcessCDR(1,14050021,1,1,2) [2024-12-18 18:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050021', 'tblTempUsageDetail_20' ) start [2024-12-18 18:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050021', 'tblTempUsageDetail_20' ) end [2024-12-18 18:36:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 18:36:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 18:36:22] Production.INFO: ==20190== Releasing lock... [2024-12-18 18:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 18:36:22] Production.INFO: 57.75 MB #Memory Used# [2024-12-18 18:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 15:37:05 [end_date_ymd] => 2024-12-18 18:37:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 15:37:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 18:37:17] Production.INFO: count ==3969 [2024-12-18 18:37:18] Production.ERROR: pbx CDR StartTime 2024-12-18 15:37:05 - End Time 2024-12-18 18:37:05 [2024-12-18 18:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 18:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050026', 'tblTempUsageDetail_20' ) start [2024-12-18 18:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050026', 'tblTempUsageDetail_20' ) end [2024-12-18 18:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050026', 'tblTempVendorCDR_20' ) start [2024-12-18 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050026', 'tblTempVendorCDR_20' ) end [2024-12-18 18:37:19] Production.INFO: ProcessCDR(1,14050026,1,1,2) [2024-12-18 18:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050026', 'tblTempUsageDetail_20' ) start [2024-12-18 18:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050026', 'tblTempUsageDetail_20' ) end [2024-12-18 18:37:23] Production.ERROR: pbx prc_insertCDR start [2024-12-18 18:37:23] Production.ERROR: pbx prc_insertCDR end [2024-12-18 18:37:23] Production.INFO: ==20299== Releasing lock... [2024-12-18 18:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 18:37:23] Production.INFO: 57.5 MB #Memory Used# [2024-12-18 18:38:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 15:38:04 [end_date_ymd] => 2024-12-18 18:38:04 [RateCDR] => 1 ) [2024-12-18 18:38:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 15:38:04' and `end` < '2024-12-18 18:38:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 18:38:17] Production.INFO: count ==3970 [2024-12-18 18:38:18] Production.ERROR: pbx CDR StartTime 2024-12-18 15:38:04 - End Time 2024-12-18 18:38:04 [2024-12-18 18:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 18:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050031', 'tblTempUsageDetail_20' ) start [2024-12-18 18:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050031', 'tblTempUsageDetail_20' ) end [2024-12-18 18:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050031', 'tblTempVendorCDR_20' ) start [2024-12-18 18:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050031', 'tblTempVendorCDR_20' ) end [2024-12-18 18:38:18] Production.INFO: ProcessCDR(1,14050031,1,1,2) [2024-12-18 18:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050031', 'tblTempUsageDetail_20' ) start [2024-12-18 18:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050031', 'tblTempUsageDetail_20' ) end [2024-12-18 18:38:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 18:38:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 18:38:21] Production.INFO: ==20399== Releasing lock... [2024-12-18 18:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 18:38:21] Production.INFO: 57.5 MB #Memory Used# [2024-12-18 18:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 15:39:05 [end_date_ymd] => 2024-12-18 18:39:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 15:39:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 18:39:18] Production.INFO: count ==3970 [2024-12-18 18:39:19] Production.ERROR: pbx CDR StartTime 2024-12-18 15:39:05 - End Time 2024-12-18 18:39:05 [2024-12-18 18:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050036', 'tblTempUsageDetail_20' ) start [2024-12-18 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050036', 'tblTempUsageDetail_20' ) end [2024-12-18 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050036', 'tblTempVendorCDR_20' ) start [2024-12-18 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050036', 'tblTempVendorCDR_20' ) end [2024-12-18 18:39:19] Production.INFO: ProcessCDR(1,14050036,1,1,2) [2024-12-18 18:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050036', 'tblTempUsageDetail_20' ) start [2024-12-18 18:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050036', 'tblTempUsageDetail_20' ) end [2024-12-18 18:39:23] Production.ERROR: pbx prc_insertCDR start [2024-12-18 18:39:23] Production.ERROR: pbx prc_insertCDR end [2024-12-18 18:39:23] Production.INFO: ==20501== Releasing lock... [2024-12-18 18:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 18:39:23] Production.INFO: 57.75 MB #Memory Used# [2024-12-18 18:40:07] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 15:40:07 [end_date_ymd] => 2024-12-18 18:40:07 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 15:40:07' and `end` < '2024-12-18 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 ,'') [2024-12-18 18:40:19] Production.INFO: count ==3953 [2024-12-18 18:40:20] Production.ERROR: pbx CDR StartTime 2024-12-18 15:40:07 - End Time 2024-12-18 18:40:07 [2024-12-18 18:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050042', 'tblTempUsageDetail_20' ) start [2024-12-18 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050042', 'tblTempUsageDetail_20' ) end [2024-12-18 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050042', 'tblTempVendorCDR_20' ) start [2024-12-18 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050042', 'tblTempVendorCDR_20' ) end [2024-12-18 18:40:21] Production.INFO: ProcessCDR(1,14050042,1,1,2) [2024-12-18 18:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050042', 'tblTempUsageDetail_20' ) start [2024-12-18 18:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050042', 'tblTempUsageDetail_20' ) end [2024-12-18 18:40:24] Production.ERROR: pbx prc_insertCDR start [2024-12-18 18:40:24] Production.ERROR: pbx prc_insertCDR end [2024-12-18 18:40:24] Production.INFO: ==20600== Releasing lock... [2024-12-18 18:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 18:40:24] Production.INFO: 57.5 MB #Memory Used# [2024-12-18 18:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 15:41:05 [end_date_ymd] => 2024-12-18 18:41:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 15:41:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 18:41:18] Production.INFO: count ==3835 [2024-12-18 18:41:19] Production.ERROR: pbx CDR StartTime 2024-12-18 15:41:05 - End Time 2024-12-18 18:41:05 [2024-12-18 18:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050047', 'tblTempUsageDetail_20' ) start [2024-12-18 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050047', 'tblTempUsageDetail_20' ) end [2024-12-18 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050047', 'tblTempVendorCDR_20' ) start [2024-12-18 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050047', 'tblTempVendorCDR_20' ) end [2024-12-18 18:41:19] Production.INFO: ProcessCDR(1,14050047,1,1,2) [2024-12-18 18:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050047', 'tblTempUsageDetail_20' ) start [2024-12-18 18:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050047', 'tblTempUsageDetail_20' ) end [2024-12-18 18:41:23] Production.ERROR: pbx prc_insertCDR start [2024-12-18 18:41:23] Production.ERROR: pbx prc_insertCDR end [2024-12-18 18:41:23] Production.INFO: ==20697== Releasing lock... [2024-12-18 18:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 18:41:23] Production.INFO: 56.75 MB #Memory Used# [2024-12-18 18:42:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 15:42:04 [end_date_ymd] => 2024-12-18 18:42:04 [RateCDR] => 1 ) [2024-12-18 18:42:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 15:42:04' and `end` < '2024-12-18 18:42:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 18:42:17] Production.INFO: count ==3806 [2024-12-18 18:42:19] Production.ERROR: pbx CDR StartTime 2024-12-18 15:42:04 - End Time 2024-12-18 18:42:04 [2024-12-18 18:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050052', 'tblTempUsageDetail_20' ) start [2024-12-18 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050052', 'tblTempUsageDetail_20' ) end [2024-12-18 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050052', 'tblTempVendorCDR_20' ) start [2024-12-18 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050052', 'tblTempVendorCDR_20' ) end [2024-12-18 18:42:19] Production.INFO: ProcessCDR(1,14050052,1,1,2) [2024-12-18 18:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050052', 'tblTempUsageDetail_20' ) start [2024-12-18 18:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050052', 'tblTempUsageDetail_20' ) end [2024-12-18 18:42:23] Production.ERROR: pbx prc_insertCDR start [2024-12-18 18:42:23] Production.ERROR: pbx prc_insertCDR end [2024-12-18 18:42:23] Production.INFO: ==20778== Releasing lock... [2024-12-18 18:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 18:42:23] Production.INFO: 56.5 MB #Memory Used# [2024-12-18 18:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 15:43:05 [end_date_ymd] => 2024-12-18 18:43:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 15:43:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 18:43:18] Production.INFO: count ==3755 [2024-12-18 18:43:19] Production.ERROR: pbx CDR StartTime 2024-12-18 15:43:05 - End Time 2024-12-18 18:43:05 [2024-12-18 18:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 18:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050057', 'tblTempUsageDetail_20' ) start [2024-12-18 18:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050057', 'tblTempUsageDetail_20' ) end [2024-12-18 18:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050057', 'tblTempVendorCDR_20' ) start [2024-12-18 18:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050057', 'tblTempVendorCDR_20' ) end [2024-12-18 18:43:19] Production.INFO: ProcessCDR(1,14050057,1,1,2) [2024-12-18 18:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050057', 'tblTempUsageDetail_20' ) start [2024-12-18 18:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050057', 'tblTempUsageDetail_20' ) end [2024-12-18 18:43:23] Production.ERROR: pbx prc_insertCDR start [2024-12-18 18:43:23] Production.ERROR: pbx prc_insertCDR end [2024-12-18 18:43:23] Production.INFO: ==20860== Releasing lock... [2024-12-18 18:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 18:43:23] Production.INFO: 56.25 MB #Memory Used# [2024-12-18 18:44:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 15:44:04 [end_date_ymd] => 2024-12-18 18:44:04 [RateCDR] => 1 ) [2024-12-18 18:44:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 15:44:04' and `end` < '2024-12-18 18:44:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 18:44:19] Production.INFO: count ==3742 [2024-12-18 18:44:20] Production.ERROR: pbx CDR StartTime 2024-12-18 15:44:04 - End Time 2024-12-18 18:44:04 [2024-12-18 18:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050061', 'tblTempUsageDetail_20' ) start [2024-12-18 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050061', 'tblTempUsageDetail_20' ) end [2024-12-18 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050061', 'tblTempVendorCDR_20' ) start [2024-12-18 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050061', 'tblTempVendorCDR_20' ) end [2024-12-18 18:44:20] Production.INFO: ProcessCDR(1,14050061,1,1,2) [2024-12-18 18:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050061', 'tblTempUsageDetail_20' ) start [2024-12-18 18:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050061', 'tblTempUsageDetail_20' ) end [2024-12-18 18:44:25] Production.ERROR: pbx prc_insertCDR start [2024-12-18 18:44:25] Production.ERROR: pbx prc_insertCDR end [2024-12-18 18:44:25] Production.INFO: ==20939== Releasing lock... [2024-12-18 18:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 18:44:25] Production.INFO: 56 MB #Memory Used# [2024-12-18 18:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 15:45:05 [end_date_ymd] => 2024-12-18 18:45:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 15:45:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 18:45:17] Production.INFO: count ==3734 [2024-12-18 18:45:19] Production.ERROR: pbx CDR StartTime 2024-12-18 15:45:05 - End Time 2024-12-18 18:45:05 [2024-12-18 18:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050067', 'tblTempUsageDetail_20' ) start [2024-12-18 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050067', 'tblTempUsageDetail_20' ) end [2024-12-18 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050067', 'tblTempVendorCDR_20' ) start [2024-12-18 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050067', 'tblTempVendorCDR_20' ) end [2024-12-18 18:45:19] Production.INFO: ProcessCDR(1,14050067,1,1,2) [2024-12-18 18:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050067', 'tblTempUsageDetail_20' ) start [2024-12-18 18:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050067', 'tblTempUsageDetail_20' ) end [2024-12-18 18:45:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 18:45:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 18:45:22] Production.INFO: ==21018== Releasing lock... [2024-12-18 18:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 18:45:22] Production.INFO: 56 MB #Memory Used# [2024-12-18 18:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 15:46:05 [end_date_ymd] => 2024-12-18 18:46:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 15:46:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 18:46:19] Production.INFO: count ==3732 [2024-12-18 18:46:20] Production.ERROR: pbx CDR StartTime 2024-12-18 15:46:05 - End Time 2024-12-18 18:46:05 [2024-12-18 18:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050072', 'tblTempUsageDetail_20' ) start [2024-12-18 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050072', 'tblTempUsageDetail_20' ) end [2024-12-18 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050072', 'tblTempVendorCDR_20' ) start [2024-12-18 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050072', 'tblTempVendorCDR_20' ) end [2024-12-18 18:46:20] Production.INFO: ProcessCDR(1,14050072,1,1,2) [2024-12-18 18:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050072', 'tblTempUsageDetail_20' ) start [2024-12-18 18:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050072', 'tblTempUsageDetail_20' ) end [2024-12-18 18:46:23] Production.ERROR: pbx prc_insertCDR start [2024-12-18 18:46:23] Production.ERROR: pbx prc_insertCDR end [2024-12-18 18:46:23] Production.INFO: ==21098== Releasing lock... [2024-12-18 18:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 18:46:23] Production.INFO: 56 MB #Memory Used# [2024-12-18 18:47:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 15:47:04 [end_date_ymd] => 2024-12-18 18:47:04 [RateCDR] => 1 ) [2024-12-18 18:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 15:47:04' and `end` < '2024-12-18 18:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 18:47:17] Production.INFO: count ==3726 [2024-12-18 18:47:18] Production.ERROR: pbx CDR StartTime 2024-12-18 15:47:04 - End Time 2024-12-18 18:47:04 [2024-12-18 18:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 18:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050077', 'tblTempUsageDetail_20' ) start [2024-12-18 18:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050077', 'tblTempUsageDetail_20' ) end [2024-12-18 18:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050077', 'tblTempVendorCDR_20' ) start [2024-12-18 18:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050077', 'tblTempVendorCDR_20' ) end [2024-12-18 18:47:18] Production.INFO: ProcessCDR(1,14050077,1,1,2) [2024-12-18 18:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050077', 'tblTempUsageDetail_20' ) start [2024-12-18 18:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050077', 'tblTempUsageDetail_20' ) end [2024-12-18 18:47:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 18:47:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 18:47:21] Production.INFO: ==21175== Releasing lock... [2024-12-18 18:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 18:47:21] Production.INFO: 56.25 MB #Memory Used# [2024-12-18 18:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 15:48:05 [end_date_ymd] => 2024-12-18 18:48:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 15:48:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 18:48:18] Production.INFO: count ==3730 [2024-12-18 18:48:19] Production.ERROR: pbx CDR StartTime 2024-12-18 15:48:05 - End Time 2024-12-18 18:48:05 [2024-12-18 18:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050082', 'tblTempUsageDetail_20' ) start [2024-12-18 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050082', 'tblTempUsageDetail_20' ) end [2024-12-18 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050082', 'tblTempVendorCDR_20' ) start [2024-12-18 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050082', 'tblTempVendorCDR_20' ) end [2024-12-18 18:48:19] Production.INFO: ProcessCDR(1,14050082,1,1,2) [2024-12-18 18:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050082', 'tblTempUsageDetail_20' ) start [2024-12-18 18:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050082', 'tblTempUsageDetail_20' ) end [2024-12-18 18:48:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 18:48:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 18:48:22] Production.INFO: ==21252== Releasing lock... [2024-12-18 18:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 18:48:22] Production.INFO: 55.75 MB #Memory Used# [2024-12-18 18:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 15:49:04 [end_date_ymd] => 2024-12-18 18:49:04 [RateCDR] => 1 ) [2024-12-18 18:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 15:49:04' and `end` < '2024-12-18 18:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 18:49:17] Production.INFO: count ==3705 [2024-12-18 18:49:18] Production.ERROR: pbx CDR StartTime 2024-12-18 15:49:04 - End Time 2024-12-18 18:49:04 [2024-12-18 18:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 18:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050087', 'tblTempUsageDetail_20' ) start [2024-12-18 18:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050087', 'tblTempUsageDetail_20' ) end [2024-12-18 18:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050087', 'tblTempVendorCDR_20' ) start [2024-12-18 18:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050087', 'tblTempVendorCDR_20' ) end [2024-12-18 18:49:18] Production.INFO: ProcessCDR(1,14050087,1,1,2) [2024-12-18 18:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050087', 'tblTempUsageDetail_20' ) start [2024-12-18 18:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050087', 'tblTempUsageDetail_20' ) end [2024-12-18 18:49:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 18:49:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 18:49:21] Production.INFO: ==21373== Releasing lock... [2024-12-18 18:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 18:49:21] Production.INFO: 56.5 MB #Memory Used# [2024-12-18 18:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 15:50:05 [end_date_ymd] => 2024-12-18 18:50:05 [RateCDR] => 1 ) [2024-12-18 18:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 15:50:05' and `end` < '2024-12-18 18:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 18:50:18] Production.INFO: count ==3693 [2024-12-18 18:50:19] Production.ERROR: pbx CDR StartTime 2024-12-18 15:50:05 - End Time 2024-12-18 18:50:05 [2024-12-18 18:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050093', 'tblTempUsageDetail_20' ) start [2024-12-18 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050093', 'tblTempUsageDetail_20' ) end [2024-12-18 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050093', 'tblTempVendorCDR_20' ) start [2024-12-18 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050093', 'tblTempVendorCDR_20' ) end [2024-12-18 18:50:19] Production.INFO: ProcessCDR(1,14050093,1,1,2) [2024-12-18 18:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050093', 'tblTempUsageDetail_20' ) start [2024-12-18 18:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050093', 'tblTempUsageDetail_20' ) end [2024-12-18 18:50:24] Production.ERROR: pbx prc_insertCDR start [2024-12-18 18:50:24] Production.ERROR: pbx prc_insertCDR end [2024-12-18 18:50:24] Production.INFO: ==21450== Releasing lock... [2024-12-18 18:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 18:50:24] Production.INFO: 55.75 MB #Memory Used# [2024-12-18 18:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 15:51:04 [end_date_ymd] => 2024-12-18 18:51:04 [RateCDR] => 1 ) [2024-12-18 18:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 15:51:04' and `end` < '2024-12-18 18:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 18:51:18] Production.INFO: count ==3598 [2024-12-18 18:51:19] Production.ERROR: pbx CDR StartTime 2024-12-18 15:51:04 - End Time 2024-12-18 18:51:04 [2024-12-18 18:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050098', 'tblTempUsageDetail_20' ) start [2024-12-18 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050098', 'tblTempUsageDetail_20' ) end [2024-12-18 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050098', 'tblTempVendorCDR_20' ) start [2024-12-18 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050098', 'tblTempVendorCDR_20' ) end [2024-12-18 18:51:19] Production.INFO: ProcessCDR(1,14050098,1,1,2) [2024-12-18 18:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050098', 'tblTempUsageDetail_20' ) start [2024-12-18 18:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050098', 'tblTempUsageDetail_20' ) end [2024-12-18 18:51:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 18:51:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 18:51:22] Production.INFO: ==21527== Releasing lock... [2024-12-18 18:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 18:51:22] Production.INFO: 55.5 MB #Memory Used# [2024-12-18 18:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 15:52:05 [end_date_ymd] => 2024-12-18 18:52:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 15:52:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 18:52:18] Production.INFO: count ==3589 [2024-12-18 18:52:19] Production.ERROR: pbx CDR StartTime 2024-12-18 15:52:05 - End Time 2024-12-18 18:52:05 [2024-12-18 18:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050103', 'tblTempUsageDetail_20' ) start [2024-12-18 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050103', 'tblTempUsageDetail_20' ) end [2024-12-18 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050103', 'tblTempVendorCDR_20' ) start [2024-12-18 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050103', 'tblTempVendorCDR_20' ) end [2024-12-18 18:52:19] Production.INFO: ProcessCDR(1,14050103,1,1,2) [2024-12-18 18:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050103', 'tblTempUsageDetail_20' ) start [2024-12-18 18:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050103', 'tblTempUsageDetail_20' ) end [2024-12-18 18:52:23] Production.ERROR: pbx prc_insertCDR start [2024-12-18 18:52:24] Production.ERROR: pbx prc_insertCDR end [2024-12-18 18:52:24] Production.INFO: ==21600== Releasing lock... [2024-12-18 18:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 18:52:24] Production.INFO: 55.75 MB #Memory Used# [2024-12-18 18:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 15:53:05 [end_date_ymd] => 2024-12-18 18:53:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 15:53:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 18:53:17] Production.INFO: count ==3561 [2024-12-18 18:53:19] Production.ERROR: pbx CDR StartTime 2024-12-18 15:53:05 - End Time 2024-12-18 18:53:05 [2024-12-18 18:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050108', 'tblTempUsageDetail_20' ) start [2024-12-18 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050108', 'tblTempUsageDetail_20' ) end [2024-12-18 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050108', 'tblTempVendorCDR_20' ) start [2024-12-18 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050108', 'tblTempVendorCDR_20' ) end [2024-12-18 18:53:19] Production.INFO: ProcessCDR(1,14050108,1,1,2) [2024-12-18 18:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050108', 'tblTempUsageDetail_20' ) start [2024-12-18 18:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050108', 'tblTempUsageDetail_20' ) end [2024-12-18 18:53:23] Production.ERROR: pbx prc_insertCDR start [2024-12-18 18:53:23] Production.ERROR: pbx prc_insertCDR end [2024-12-18 18:53:23] Production.INFO: ==21673== Releasing lock... [2024-12-18 18:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 18:53:23] Production.INFO: 55.5 MB #Memory Used# [2024-12-18 18:54:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 15:54:04 [end_date_ymd] => 2024-12-18 18:54:04 [RateCDR] => 1 ) [2024-12-18 18: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` >= '2024-12-18 15:54:04' and `end` < '2024-12-18 18: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 ,'') [2024-12-18 18:54:18] Production.INFO: count ==3521 [2024-12-18 18:54:19] Production.ERROR: pbx CDR StartTime 2024-12-18 15:54:04 - End Time 2024-12-18 18:54:04 [2024-12-18 18:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050112', 'tblTempUsageDetail_20' ) start [2024-12-18 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050112', 'tblTempUsageDetail_20' ) end [2024-12-18 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050112', 'tblTempVendorCDR_20' ) start [2024-12-18 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050112', 'tblTempVendorCDR_20' ) end [2024-12-18 18:54:19] Production.INFO: ProcessCDR(1,14050112,1,1,2) [2024-12-18 18:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050112', 'tblTempUsageDetail_20' ) start [2024-12-18 18:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050112', 'tblTempUsageDetail_20' ) end [2024-12-18 18:54:24] Production.ERROR: pbx prc_insertCDR start [2024-12-18 18:54:24] Production.ERROR: pbx prc_insertCDR end [2024-12-18 18:54:24] Production.INFO: ==21745== Releasing lock... [2024-12-18 18:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 18:54:24] Production.INFO: 54.5 MB #Memory Used# [2024-12-18 18:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 15:55:05 [end_date_ymd] => 2024-12-18 18:55:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 15:55:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 18:55:18] Production.INFO: count ==3512 [2024-12-18 18:55:19] Production.ERROR: pbx CDR StartTime 2024-12-18 15:55:05 - End Time 2024-12-18 18:55:05 [2024-12-18 18:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050118', 'tblTempUsageDetail_20' ) start [2024-12-18 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050118', 'tblTempUsageDetail_20' ) end [2024-12-18 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050118', 'tblTempVendorCDR_20' ) start [2024-12-18 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050118', 'tblTempVendorCDR_20' ) end [2024-12-18 18:55:19] Production.INFO: ProcessCDR(1,14050118,1,1,2) [2024-12-18 18:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050118', 'tblTempUsageDetail_20' ) start [2024-12-18 18:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050118', 'tblTempUsageDetail_20' ) end [2024-12-18 18:55:23] Production.ERROR: pbx prc_insertCDR start [2024-12-18 18:55:23] Production.ERROR: pbx prc_insertCDR end [2024-12-18 18:55:23] Production.INFO: ==21823== Releasing lock... [2024-12-18 18:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 18:55:23] Production.INFO: 54.25 MB #Memory Used# [2024-12-18 18:56:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 15:56:04 [end_date_ymd] => 2024-12-18 18:56:04 [RateCDR] => 1 ) [2024-12-18 18:56:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 15:56:04' and `end` < '2024-12-18 18:56:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 18:56:17] Production.INFO: count ==3477 [2024-12-18 18:56:18] Production.ERROR: pbx CDR StartTime 2024-12-18 15:56:04 - End Time 2024-12-18 18:56:04 [2024-12-18 18:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 18:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050123', 'tblTempUsageDetail_20' ) start [2024-12-18 18:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050123', 'tblTempUsageDetail_20' ) end [2024-12-18 18:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050123', 'tblTempVendorCDR_20' ) start [2024-12-18 18:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050123', 'tblTempVendorCDR_20' ) end [2024-12-18 18:56:18] Production.INFO: ProcessCDR(1,14050123,1,1,2) [2024-12-18 18:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050123', 'tblTempUsageDetail_20' ) start [2024-12-18 18:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050123', 'tblTempUsageDetail_20' ) end [2024-12-18 18:56:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 18:56:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 18:56:22] Production.INFO: ==21896== Releasing lock... [2024-12-18 18:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 18:56:22] Production.INFO: 55 MB #Memory Used# [2024-12-18 18:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 15:57:05 [end_date_ymd] => 2024-12-18 18:57:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 15:57:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 18:57:18] Production.INFO: count ==3439 [2024-12-18 18:57:19] Production.ERROR: pbx CDR StartTime 2024-12-18 15:57:05 - End Time 2024-12-18 18:57:05 [2024-12-18 18:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050128', 'tblTempUsageDetail_20' ) start [2024-12-18 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050128', 'tblTempUsageDetail_20' ) end [2024-12-18 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050128', 'tblTempVendorCDR_20' ) start [2024-12-18 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050128', 'tblTempVendorCDR_20' ) end [2024-12-18 18:57:19] Production.INFO: ProcessCDR(1,14050128,1,1,2) [2024-12-18 18:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050128', 'tblTempUsageDetail_20' ) start [2024-12-18 18:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050128', 'tblTempUsageDetail_20' ) end [2024-12-18 18:57:23] Production.ERROR: pbx prc_insertCDR start [2024-12-18 18:57:23] Production.ERROR: pbx prc_insertCDR end [2024-12-18 18:57:23] Production.INFO: ==21967== Releasing lock... [2024-12-18 18:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 18:57:23] Production.INFO: 54 MB #Memory Used# [2024-12-18 18:58:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 15:58:04 [end_date_ymd] => 2024-12-18 18:58:04 [RateCDR] => 1 ) [2024-12-18 18: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` >= '2024-12-18 15:58:04' and `end` < '2024-12-18 18: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 ,'') [2024-12-18 18:58:17] Production.INFO: count ==3409 [2024-12-18 18:58:18] Production.ERROR: pbx CDR StartTime 2024-12-18 15:58:04 - End Time 2024-12-18 18:58:04 [2024-12-18 18:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 18:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050133', 'tblTempUsageDetail_20' ) start [2024-12-18 18:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050133', 'tblTempUsageDetail_20' ) end [2024-12-18 18:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050133', 'tblTempVendorCDR_20' ) start [2024-12-18 18:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050133', 'tblTempVendorCDR_20' ) end [2024-12-18 18:58:18] Production.INFO: ProcessCDR(1,14050133,1,1,2) [2024-12-18 18:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050133', 'tblTempUsageDetail_20' ) start [2024-12-18 18:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050133', 'tblTempUsageDetail_20' ) end [2024-12-18 18:58:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 18:58:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 18:58:21] Production.INFO: ==22041== Releasing lock... [2024-12-18 18:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 18:58:21] Production.INFO: 54 MB #Memory Used# [2024-12-18 18:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 15:59:05 [end_date_ymd] => 2024-12-18 18:59:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 15:59:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 18:59:17] Production.INFO: count ==3408 [2024-12-18 18:59:18] Production.ERROR: pbx CDR StartTime 2024-12-18 15:59:05 - End Time 2024-12-18 18:59:05 [2024-12-18 18:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 18:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050138', 'tblTempUsageDetail_20' ) start [2024-12-18 18:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050138', 'tblTempUsageDetail_20' ) end [2024-12-18 18:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050138', 'tblTempVendorCDR_20' ) start [2024-12-18 18:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050138', 'tblTempVendorCDR_20' ) end [2024-12-18 18:59:18] Production.INFO: ProcessCDR(1,14050138,1,1,2) [2024-12-18 18:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 18:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 18:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050138', 'tblTempUsageDetail_20' ) start [2024-12-18 18:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050138', 'tblTempUsageDetail_20' ) end [2024-12-18 18:59:23] Production.ERROR: pbx prc_insertCDR start [2024-12-18 18:59:23] Production.ERROR: pbx prc_insertCDR end [2024-12-18 18:59:23] Production.INFO: ==22112== Releasing lock... [2024-12-18 18:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 18:59:23] Production.INFO: 53.75 MB #Memory Used# [2024-12-18 19:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 16:00:06 [end_date_ymd] => 2024-12-18 19:00:06 [RateCDR] => 1 ) [2024-12-18 19:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 16:00:06' and `end` < '2024-12-18 19:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 19:00:18] Production.INFO: count ==3399 [2024-12-18 19:00:19] Production.ERROR: pbx CDR StartTime 2024-12-18 16:00:06 - End Time 2024-12-18 19:00:06 [2024-12-18 19:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050144', 'tblTempUsageDetail_20' ) start [2024-12-18 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050144', 'tblTempUsageDetail_20' ) end [2024-12-18 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050144', 'tblTempVendorCDR_20' ) start [2024-12-18 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050144', 'tblTempVendorCDR_20' ) end [2024-12-18 19:00:19] Production.INFO: ProcessCDR(1,14050144,1,1,2) [2024-12-18 19:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050144', 'tblTempUsageDetail_20' ) start [2024-12-18 19:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050144', 'tblTempUsageDetail_20' ) end [2024-12-18 19:00:24] Production.ERROR: pbx prc_insertCDR start [2024-12-18 19:00:24] Production.ERROR: pbx prc_insertCDR end [2024-12-18 19:00:24] Production.INFO: ==22189== Releasing lock... [2024-12-18 19:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 19:00:24] Production.INFO: 53.5 MB #Memory Used# [2024-12-18 19:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 16:01:05 [end_date_ymd] => 2024-12-18 19:01:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 16:01:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 19:01:18] Production.INFO: count ==3313 [2024-12-18 19:01:19] Production.ERROR: pbx CDR StartTime 2024-12-18 16:01:05 - End Time 2024-12-18 19:01:05 [2024-12-18 19:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050149', 'tblTempUsageDetail_20' ) start [2024-12-18 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050149', 'tblTempUsageDetail_20' ) end [2024-12-18 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050149', 'tblTempVendorCDR_20' ) start [2024-12-18 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050149', 'tblTempVendorCDR_20' ) end [2024-12-18 19:01:19] Production.INFO: ProcessCDR(1,14050149,1,1,2) [2024-12-18 19:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050149', 'tblTempUsageDetail_20' ) start [2024-12-18 19:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050149', 'tblTempUsageDetail_20' ) end [2024-12-18 19:01:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 19:01:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 19:01:22] Production.INFO: ==22319== Releasing lock... [2024-12-18 19:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 19:01:22] Production.INFO: 52.75 MB #Memory Used# [2024-12-18 19:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 16:02:05 [end_date_ymd] => 2024-12-18 19:02:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 16:02:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 19:02:17] Production.INFO: count ==3277 [2024-12-18 19:02:18] Production.ERROR: pbx CDR StartTime 2024-12-18 16:02:05 - End Time 2024-12-18 19:02:05 [2024-12-18 19:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 19:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050154', 'tblTempUsageDetail_20' ) start [2024-12-18 19:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050154', 'tblTempUsageDetail_20' ) end [2024-12-18 19:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050154', 'tblTempVendorCDR_20' ) start [2024-12-18 19:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050154', 'tblTempVendorCDR_20' ) end [2024-12-18 19:02:18] Production.INFO: ProcessCDR(1,14050154,1,1,2) [2024-12-18 19:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050154', 'tblTempUsageDetail_20' ) start [2024-12-18 19:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050154', 'tblTempUsageDetail_20' ) end [2024-12-18 19:02:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 19:02:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 19:02:21] Production.INFO: ==22428== Releasing lock... [2024-12-18 19:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 19:02:21] Production.INFO: 52.75 MB #Memory Used# [2024-12-18 19:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 16:03:05 [end_date_ymd] => 2024-12-18 19:03:05 [RateCDR] => 1 ) [2024-12-18 19:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 16:03:05' and `end` < '2024-12-18 19:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 19:03:17] Production.INFO: count ==3230 [2024-12-18 19:03:18] Production.ERROR: pbx CDR StartTime 2024-12-18 16:03:05 - End Time 2024-12-18 19:03:05 [2024-12-18 19:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 19:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050159', 'tblTempUsageDetail_20' ) start [2024-12-18 19:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050159', 'tblTempUsageDetail_20' ) end [2024-12-18 19:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050159', 'tblTempVendorCDR_20' ) start [2024-12-18 19:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050159', 'tblTempVendorCDR_20' ) end [2024-12-18 19:03:18] Production.INFO: ProcessCDR(1,14050159,1,1,2) [2024-12-18 19:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050159', 'tblTempUsageDetail_20' ) start [2024-12-18 19:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050159', 'tblTempUsageDetail_20' ) end [2024-12-18 19:03:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 19:03:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 19:03:21] Production.INFO: ==22502== Releasing lock... [2024-12-18 19:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 19:03:21] Production.INFO: 52 MB #Memory Used# [2024-12-18 19:04:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 16:04:04 [end_date_ymd] => 2024-12-18 19:04:04 [RateCDR] => 1 ) [2024-12-18 19:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 16:04:04' and `end` < '2024-12-18 19:04:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 19:04:17] Production.INFO: count ==3214 [2024-12-18 19:04:18] Production.ERROR: pbx CDR StartTime 2024-12-18 16:04:04 - End Time 2024-12-18 19:04:04 [2024-12-18 19:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 19:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050164', 'tblTempUsageDetail_20' ) start [2024-12-18 19:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050164', 'tblTempUsageDetail_20' ) end [2024-12-18 19:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050164', 'tblTempVendorCDR_20' ) start [2024-12-18 19:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050164', 'tblTempVendorCDR_20' ) end [2024-12-18 19:04:18] Production.INFO: ProcessCDR(1,14050164,1,1,2) [2024-12-18 19:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050164', 'tblTempUsageDetail_20' ) start [2024-12-18 19:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050164', 'tblTempUsageDetail_20' ) end [2024-12-18 19:04:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 19:04:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 19:04:22] Production.INFO: ==22574== Releasing lock... [2024-12-18 19:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 19:04:22] Production.INFO: 52 MB #Memory Used# [2024-12-18 19:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 16:05:04 [end_date_ymd] => 2024-12-18 19:05:04 [RateCDR] => 1 ) [2024-12-18 19: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` >= '2024-12-18 16:05:04' and `end` < '2024-12-18 19: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 ,'') [2024-12-18 19:05:17] Production.INFO: count ==3208 [2024-12-18 19:05:18] Production.ERROR: pbx CDR StartTime 2024-12-18 16:05:04 - End Time 2024-12-18 19:05:04 [2024-12-18 19:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 19:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050169', 'tblTempUsageDetail_20' ) start [2024-12-18 19:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050169', 'tblTempUsageDetail_20' ) end [2024-12-18 19:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050169', 'tblTempVendorCDR_20' ) start [2024-12-18 19:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050169', 'tblTempVendorCDR_20' ) end [2024-12-18 19:05:18] Production.INFO: ProcessCDR(1,14050169,1,1,2) [2024-12-18 19:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050169', 'tblTempUsageDetail_20' ) start [2024-12-18 19:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050169', 'tblTempUsageDetail_20' ) end [2024-12-18 19:05:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 19:05:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 19:05:22] Production.INFO: ==22766== Releasing lock... [2024-12-18 19:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 19:05:22] Production.INFO: 52 MB #Memory Used# [2024-12-18 19:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 16:06:05 [end_date_ymd] => 2024-12-18 19:06:05 [RateCDR] => 1 ) [2024-12-18 19:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 16:06:05' and `end` < '2024-12-18 19:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 19:06:18] Production.INFO: count ==3202 [2024-12-18 19:06:18] Production.ERROR: pbx CDR StartTime 2024-12-18 16:06:05 - End Time 2024-12-18 19:06:05 [2024-12-18 19:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 19:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050174', 'tblTempUsageDetail_20' ) start [2024-12-18 19:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050174', 'tblTempUsageDetail_20' ) end [2024-12-18 19:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050174', 'tblTempVendorCDR_20' ) start [2024-12-18 19:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050174', 'tblTempVendorCDR_20' ) end [2024-12-18 19:06:18] Production.INFO: ProcessCDR(1,14050174,1,1,2) [2024-12-18 19:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050174', 'tblTempUsageDetail_20' ) start [2024-12-18 19:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050174', 'tblTempUsageDetail_20' ) end [2024-12-18 19:06:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 19:06:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 19:06:21] Production.INFO: ==22837== Releasing lock... [2024-12-18 19:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 19:06:21] Production.INFO: 51.75 MB #Memory Used# [2024-12-18 19:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 16:07:04 [end_date_ymd] => 2024-12-18 19:07:04 [RateCDR] => 1 ) [2024-12-18 19:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 16:07:04' and `end` < '2024-12-18 19: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 ,'') [2024-12-18 19:07:17] Production.INFO: count ==3196 [2024-12-18 19:07:18] Production.ERROR: pbx CDR StartTime 2024-12-18 16:07:04 - End Time 2024-12-18 19:07:04 [2024-12-18 19:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 19:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050179', 'tblTempUsageDetail_20' ) start [2024-12-18 19:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050179', 'tblTempUsageDetail_20' ) end [2024-12-18 19:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050179', 'tblTempVendorCDR_20' ) start [2024-12-18 19:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050179', 'tblTempVendorCDR_20' ) end [2024-12-18 19:07:18] Production.INFO: ProcessCDR(1,14050179,1,1,2) [2024-12-18 19:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050179', 'tblTempUsageDetail_20' ) start [2024-12-18 19:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050179', 'tblTempUsageDetail_20' ) end [2024-12-18 19:07:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 19:07:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 19:07:21] Production.INFO: ==22912== Releasing lock... [2024-12-18 19:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 19:07:21] Production.INFO: 52 MB #Memory Used# [2024-12-18 19:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 16:08:05 [end_date_ymd] => 2024-12-18 19:08:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 16:08:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 19:08:17] Production.INFO: count ==3175 [2024-12-18 19:08:18] Production.ERROR: pbx CDR StartTime 2024-12-18 16:08:05 - End Time 2024-12-18 19:08:05 [2024-12-18 19:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 19:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050184', 'tblTempUsageDetail_20' ) start [2024-12-18 19:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050184', 'tblTempUsageDetail_20' ) end [2024-12-18 19:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050184', 'tblTempVendorCDR_20' ) start [2024-12-18 19:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050184', 'tblTempVendorCDR_20' ) end [2024-12-18 19:08:18] Production.INFO: ProcessCDR(1,14050184,1,1,2) [2024-12-18 19:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050184', 'tblTempUsageDetail_20' ) start [2024-12-18 19:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050184', 'tblTempUsageDetail_20' ) end [2024-12-18 19:08:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 19:08:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 19:08:21] Production.INFO: ==23063== Releasing lock... [2024-12-18 19:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 19:08:21] Production.INFO: 52 MB #Memory Used# [2024-12-18 19:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 16:09:04 [end_date_ymd] => 2024-12-18 19:09:04 [RateCDR] => 1 ) [2024-12-18 19:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 16:09:04' and `end` < '2024-12-18 19:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 19:09:17] Production.INFO: count ==3173 [2024-12-18 19:09:17] Production.ERROR: pbx CDR StartTime 2024-12-18 16:09:04 - End Time 2024-12-18 19:09:04 [2024-12-18 19:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 19:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050189', 'tblTempUsageDetail_20' ) start [2024-12-18 19:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050189', 'tblTempUsageDetail_20' ) end [2024-12-18 19:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050189', 'tblTempVendorCDR_20' ) start [2024-12-18 19:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050189', 'tblTempVendorCDR_20' ) end [2024-12-18 19:09:18] Production.INFO: ProcessCDR(1,14050189,1,1,2) [2024-12-18 19:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050189', 'tblTempUsageDetail_20' ) start [2024-12-18 19:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050189', 'tblTempUsageDetail_20' ) end [2024-12-18 19:09:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 19:09:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 19:09:22] Production.INFO: ==23133== Releasing lock... [2024-12-18 19:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 19:09:22] Production.INFO: 51.75 MB #Memory Used# [2024-12-18 19:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 16:10:06 [end_date_ymd] => 2024-12-18 19:10:06 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 16:10:06' and `end` < '2024-12-18 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 ,'') [2024-12-18 19:10:20] Production.INFO: count ==3162 [2024-12-18 19:10:21] Production.ERROR: pbx CDR StartTime 2024-12-18 16:10:06 - End Time 2024-12-18 19:10:06 [2024-12-18 19:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 19:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050194', 'tblTempUsageDetail_20' ) start [2024-12-18 19:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050194', 'tblTempUsageDetail_20' ) end [2024-12-18 19:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050194', 'tblTempVendorCDR_20' ) start [2024-12-18 19:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050194', 'tblTempVendorCDR_20' ) end [2024-12-18 19:10:21] Production.INFO: ProcessCDR(1,14050194,1,1,2) [2024-12-18 19:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050194', 'tblTempUsageDetail_20' ) start [2024-12-18 19:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050194', 'tblTempUsageDetail_20' ) end [2024-12-18 19:10:26] Production.ERROR: pbx prc_insertCDR start [2024-12-18 19:10:26] Production.ERROR: pbx prc_insertCDR end [2024-12-18 19:10:26] Production.INFO: ==23210== Releasing lock... [2024-12-18 19:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 19:10:26] Production.INFO: 51.5 MB #Memory Used# [2024-12-18 19:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 16:11:05 [end_date_ymd] => 2024-12-18 19:11:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 16:11:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 19:11:17] Production.INFO: count ==3094 [2024-12-18 19:11:18] Production.ERROR: pbx CDR StartTime 2024-12-18 16:11:05 - End Time 2024-12-18 19:11:05 [2024-12-18 19:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 19:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050200', 'tblTempUsageDetail_20' ) start [2024-12-18 19:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050200', 'tblTempUsageDetail_20' ) end [2024-12-18 19:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050200', 'tblTempVendorCDR_20' ) start [2024-12-18 19:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050200', 'tblTempVendorCDR_20' ) end [2024-12-18 19:11:18] Production.INFO: ProcessCDR(1,14050200,1,1,2) [2024-12-18 19:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050200', 'tblTempUsageDetail_20' ) start [2024-12-18 19:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050200', 'tblTempUsageDetail_20' ) end [2024-12-18 19:11:23] Production.ERROR: pbx prc_insertCDR start [2024-12-18 19:11:23] Production.ERROR: pbx prc_insertCDR end [2024-12-18 19:11:23] Production.INFO: ==23283== Releasing lock... [2024-12-18 19:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 19:11:23] Production.INFO: 51 MB #Memory Used# [2024-12-18 19:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 16:12:05 [end_date_ymd] => 2024-12-18 19:12:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 16:12:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 19:12:18] Production.INFO: count ==3067 [2024-12-18 19:12:19] Production.ERROR: pbx CDR StartTime 2024-12-18 16:12:05 - End Time 2024-12-18 19:12:05 [2024-12-18 19:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050205', 'tblTempUsageDetail_20' ) start [2024-12-18 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050205', 'tblTempUsageDetail_20' ) end [2024-12-18 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050205', 'tblTempVendorCDR_20' ) start [2024-12-18 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050205', 'tblTempVendorCDR_20' ) end [2024-12-18 19:12:19] Production.INFO: ProcessCDR(1,14050205,1,1,2) [2024-12-18 19:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050205', 'tblTempUsageDetail_20' ) start [2024-12-18 19:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050205', 'tblTempUsageDetail_20' ) end [2024-12-18 19:12:24] Production.ERROR: pbx prc_insertCDR start [2024-12-18 19:12:24] Production.ERROR: pbx prc_insertCDR end [2024-12-18 19:12:24] Production.INFO: ==23438== Releasing lock... [2024-12-18 19:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 19:12:24] Production.INFO: 50.75 MB #Memory Used# [2024-12-18 19:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 16:13:04 [end_date_ymd] => 2024-12-18 19:13:04 [RateCDR] => 1 ) [2024-12-18 19:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 16:13:04' and `end` < '2024-12-18 19:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 19:13:17] Production.INFO: count ==3044 [2024-12-18 19:13:18] Production.ERROR: pbx CDR StartTime 2024-12-18 16:13:04 - End Time 2024-12-18 19:13:04 [2024-12-18 19:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 19:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050210', 'tblTempUsageDetail_20' ) start [2024-12-18 19:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050210', 'tblTempUsageDetail_20' ) end [2024-12-18 19:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050210', 'tblTempVendorCDR_20' ) start [2024-12-18 19:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050210', 'tblTempVendorCDR_20' ) end [2024-12-18 19:13:18] Production.INFO: ProcessCDR(1,14050210,1,1,2) [2024-12-18 19:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050210', 'tblTempUsageDetail_20' ) start [2024-12-18 19:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050210', 'tblTempUsageDetail_20' ) end [2024-12-18 19:13:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 19:13:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 19:13:22] Production.INFO: ==23509== Releasing lock... [2024-12-18 19:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 19:13:22] Production.INFO: 51 MB #Memory Used# [2024-12-18 19:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 16:14:05 [end_date_ymd] => 2024-12-18 19:14:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 16:14:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 19:14:17] Production.INFO: count ==3031 [2024-12-18 19:14:18] Production.ERROR: pbx CDR StartTime 2024-12-18 16:14:05 - End Time 2024-12-18 19:14:05 [2024-12-18 19:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 19:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050215', 'tblTempUsageDetail_20' ) start [2024-12-18 19:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050215', 'tblTempUsageDetail_20' ) end [2024-12-18 19:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050215', 'tblTempVendorCDR_20' ) start [2024-12-18 19:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050215', 'tblTempVendorCDR_20' ) end [2024-12-18 19:14:18] Production.INFO: ProcessCDR(1,14050215,1,1,2) [2024-12-18 19:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050215', 'tblTempUsageDetail_20' ) start [2024-12-18 19:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050215', 'tblTempUsageDetail_20' ) end [2024-12-18 19:14:23] Production.ERROR: pbx prc_insertCDR start [2024-12-18 19:14:23] Production.ERROR: pbx prc_insertCDR end [2024-12-18 19:14:23] Production.INFO: ==23580== Releasing lock... [2024-12-18 19:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 19:14:23] Production.INFO: 50.5 MB #Memory Used# [2024-12-18 19:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 16:15:05 [end_date_ymd] => 2024-12-18 19:15:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 16:15:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 19:15:17] Production.INFO: count ==3009 [2024-12-18 19:15:18] Production.ERROR: pbx CDR StartTime 2024-12-18 16:15:05 - End Time 2024-12-18 19:15:05 [2024-12-18 19:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 19:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050220', 'tblTempUsageDetail_20' ) start [2024-12-18 19:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050220', 'tblTempUsageDetail_20' ) end [2024-12-18 19:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050220', 'tblTempVendorCDR_20' ) start [2024-12-18 19:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050220', 'tblTempVendorCDR_20' ) end [2024-12-18 19:15:18] Production.INFO: ProcessCDR(1,14050220,1,1,2) [2024-12-18 19:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050220', 'tblTempUsageDetail_20' ) start [2024-12-18 19:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050220', 'tblTempUsageDetail_20' ) end [2024-12-18 19:15:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 19:15:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 19:15:21] Production.INFO: ==23729== Releasing lock... [2024-12-18 19:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 19:15:21] Production.INFO: 50.75 MB #Memory Used# [2024-12-18 19:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 16:16:05 [end_date_ymd] => 2024-12-18 19:16:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 16:16:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 19:16:18] Production.INFO: count ==3004 [2024-12-18 19:16:19] Production.ERROR: pbx CDR StartTime 2024-12-18 16:16:05 - End Time 2024-12-18 19:16:05 [2024-12-18 19:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050225', 'tblTempUsageDetail_20' ) start [2024-12-18 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050225', 'tblTempUsageDetail_20' ) end [2024-12-18 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050225', 'tblTempVendorCDR_20' ) start [2024-12-18 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050225', 'tblTempVendorCDR_20' ) end [2024-12-18 19:16:19] Production.INFO: ProcessCDR(1,14050225,1,1,2) [2024-12-18 19:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050225', 'tblTempUsageDetail_20' ) start [2024-12-18 19:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050225', 'tblTempUsageDetail_20' ) end [2024-12-18 19:16:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 19:16:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 19:16:22] Production.INFO: ==23800== Releasing lock... [2024-12-18 19:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 19:16:22] Production.INFO: 51.25 MB #Memory Used# [2024-12-18 19:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 16:17:05 [end_date_ymd] => 2024-12-18 19:17:05 [RateCDR] => 1 ) [2024-12-18 19:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 16:17:05' and `end` < '2024-12-18 19:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 19:17:18] Production.INFO: count ==2991 [2024-12-18 19:17:18] Production.ERROR: pbx CDR StartTime 2024-12-18 16:17:05 - End Time 2024-12-18 19:17:05 [2024-12-18 19:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 19:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050230', 'tblTempUsageDetail_20' ) start [2024-12-18 19:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050230', 'tblTempUsageDetail_20' ) end [2024-12-18 19:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050230', 'tblTempVendorCDR_20' ) start [2024-12-18 19:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050230', 'tblTempVendorCDR_20' ) end [2024-12-18 19:17:18] Production.INFO: ProcessCDR(1,14050230,1,1,2) [2024-12-18 19:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050230', 'tblTempUsageDetail_20' ) start [2024-12-18 19:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050230', 'tblTempUsageDetail_20' ) end [2024-12-18 19:17:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 19:17:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 19:17:22] Production.INFO: ==23871== Releasing lock... [2024-12-18 19:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 19:17:22] Production.INFO: 50.5 MB #Memory Used# [2024-12-18 19:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 16:18:05 [end_date_ymd] => 2024-12-18 19:18:05 [RateCDR] => 1 ) [2024-12-18 19:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 16:18:05' and `end` < '2024-12-18 19:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 19:18:18] Production.INFO: count ==2986 [2024-12-18 19:18:19] Production.ERROR: pbx CDR StartTime 2024-12-18 16:18:05 - End Time 2024-12-18 19:18:05 [2024-12-18 19:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050235', 'tblTempUsageDetail_20' ) start [2024-12-18 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050235', 'tblTempUsageDetail_20' ) end [2024-12-18 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050235', 'tblTempVendorCDR_20' ) start [2024-12-18 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050235', 'tblTempVendorCDR_20' ) end [2024-12-18 19:18:19] Production.INFO: ProcessCDR(1,14050235,1,1,2) [2024-12-18 19:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050235', 'tblTempUsageDetail_20' ) start [2024-12-18 19:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050235', 'tblTempUsageDetail_20' ) end [2024-12-18 19:18:23] Production.ERROR: pbx prc_insertCDR start [2024-12-18 19:18:23] Production.ERROR: pbx prc_insertCDR end [2024-12-18 19:18:23] Production.INFO: ==23945== Releasing lock... [2024-12-18 19:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 19:18:23] Production.INFO: 50.25 MB #Memory Used# [2024-12-18 19:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 16:19:05 [end_date_ymd] => 2024-12-18 19:19:05 [RateCDR] => 1 ) [2024-12-18 19:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 16:19:05' and `end` < '2024-12-18 19:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 19:19:18] Production.INFO: count ==2954 [2024-12-18 19:19:19] Production.ERROR: pbx CDR StartTime 2024-12-18 16:19:05 - End Time 2024-12-18 19:19:05 [2024-12-18 19:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050240', 'tblTempUsageDetail_20' ) start [2024-12-18 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050240', 'tblTempUsageDetail_20' ) end [2024-12-18 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050240', 'tblTempVendorCDR_20' ) start [2024-12-18 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050240', 'tblTempVendorCDR_20' ) end [2024-12-18 19:19:19] Production.INFO: ProcessCDR(1,14050240,1,1,2) [2024-12-18 19:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050240', 'tblTempUsageDetail_20' ) start [2024-12-18 19:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050240', 'tblTempUsageDetail_20' ) end [2024-12-18 19:19:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 19:19:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 19:19:22] Production.INFO: ==24017== Releasing lock... [2024-12-18 19:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 19:19:22] Production.INFO: 50 MB #Memory Used# [2024-12-18 19:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 16:20:05 [end_date_ymd] => 2024-12-18 19:20:05 [RateCDR] => 1 ) [2024-12-18 19:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 16:20:05' and `end` < '2024-12-18 19:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 19:20:18] Production.INFO: count ==2945 [2024-12-18 19:20:19] Production.ERROR: pbx CDR StartTime 2024-12-18 16:20:05 - End Time 2024-12-18 19:20:05 [2024-12-18 19:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050246', 'tblTempUsageDetail_20' ) start [2024-12-18 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050246', 'tblTempUsageDetail_20' ) end [2024-12-18 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050246', 'tblTempVendorCDR_20' ) start [2024-12-18 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050246', 'tblTempVendorCDR_20' ) end [2024-12-18 19:20:19] Production.INFO: ProcessCDR(1,14050246,1,1,2) [2024-12-18 19:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050246', 'tblTempUsageDetail_20' ) start [2024-12-18 19:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050246', 'tblTempUsageDetail_20' ) end [2024-12-18 19:20:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 19:20:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 19:20:22] Production.INFO: ==24091== Releasing lock... [2024-12-18 19:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 19:20:22] Production.INFO: 49.75 MB #Memory Used# [2024-12-18 19:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 16:21:05 [end_date_ymd] => 2024-12-18 19:21:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 16:21:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 19:21:17] Production.INFO: count ==2868 [2024-12-18 19:21:18] Production.ERROR: pbx CDR StartTime 2024-12-18 16:21:05 - End Time 2024-12-18 19:21:05 [2024-12-18 19:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 19:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050251', 'tblTempUsageDetail_20' ) start [2024-12-18 19:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050251', 'tblTempUsageDetail_20' ) end [2024-12-18 19:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050251', 'tblTempVendorCDR_20' ) start [2024-12-18 19:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050251', 'tblTempVendorCDR_20' ) end [2024-12-18 19:21:18] Production.INFO: ProcessCDR(1,14050251,1,1,2) [2024-12-18 19:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050251', 'tblTempUsageDetail_20' ) start [2024-12-18 19:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050251', 'tblTempUsageDetail_20' ) end [2024-12-18 19:21:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 19:21:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 19:21:21] Production.INFO: ==24206== Releasing lock... [2024-12-18 19:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 19:21:21] Production.INFO: 49.5 MB #Memory Used# [2024-12-18 19:22:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 16:22:04 [end_date_ymd] => 2024-12-18 19:22:04 [RateCDR] => 1 ) [2024-12-18 19:22:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 16:22:04' and `end` < '2024-12-18 19:22:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 19:22:17] Production.INFO: count ==2859 [2024-12-18 19:22:18] Production.ERROR: pbx CDR StartTime 2024-12-18 16:22:04 - End Time 2024-12-18 19:22:04 [2024-12-18 19:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 19:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050256', 'tblTempUsageDetail_20' ) start [2024-12-18 19:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050256', 'tblTempUsageDetail_20' ) end [2024-12-18 19:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050256', 'tblTempVendorCDR_20' ) start [2024-12-18 19:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050256', 'tblTempVendorCDR_20' ) end [2024-12-18 19:22:18] Production.INFO: ProcessCDR(1,14050256,1,1,2) [2024-12-18 19:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050256', 'tblTempUsageDetail_20' ) start [2024-12-18 19:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050256', 'tblTempUsageDetail_20' ) end [2024-12-18 19:22:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 19:22:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 19:22:22] Production.INFO: ==24276== Releasing lock... [2024-12-18 19:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 19:22:22] Production.INFO: 49.25 MB #Memory Used# [2024-12-18 19:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 16:23:04 [end_date_ymd] => 2024-12-18 19:23:04 [RateCDR] => 1 ) [2024-12-18 19:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 16:23:04' and `end` < '2024-12-18 19:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 19:23:17] Production.INFO: count ==2848 [2024-12-18 19:23:18] Production.ERROR: pbx CDR StartTime 2024-12-18 16:23:04 - End Time 2024-12-18 19:23:04 [2024-12-18 19:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 19:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050261', 'tblTempUsageDetail_20' ) start [2024-12-18 19:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050261', 'tblTempUsageDetail_20' ) end [2024-12-18 19:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050261', 'tblTempVendorCDR_20' ) start [2024-12-18 19:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050261', 'tblTempVendorCDR_20' ) end [2024-12-18 19:23:18] Production.INFO: ProcessCDR(1,14050261,1,1,2) [2024-12-18 19:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050261', 'tblTempUsageDetail_20' ) start [2024-12-18 19:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050261', 'tblTempUsageDetail_20' ) end [2024-12-18 19:23:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 19:23:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 19:23:21] Production.INFO: ==24346== Releasing lock... [2024-12-18 19:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 19:23:21] Production.INFO: 49.25 MB #Memory Used# [2024-12-18 19:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 16:24:05 [end_date_ymd] => 2024-12-18 19:24:05 [RateCDR] => 1 ) [2024-12-18 19:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 16:24:05' and `end` < '2024-12-18 19:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 19:24:17] Production.INFO: count ==2843 [2024-12-18 19:24:18] Production.ERROR: pbx CDR StartTime 2024-12-18 16:24:05 - End Time 2024-12-18 19:24:05 [2024-12-18 19:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 19:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050266', 'tblTempUsageDetail_20' ) start [2024-12-18 19:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050266', 'tblTempUsageDetail_20' ) end [2024-12-18 19:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050266', 'tblTempVendorCDR_20' ) start [2024-12-18 19:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050266', 'tblTempVendorCDR_20' ) end [2024-12-18 19:24:18] Production.INFO: ProcessCDR(1,14050266,1,1,2) [2024-12-18 19:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050266', 'tblTempUsageDetail_20' ) start [2024-12-18 19:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050266', 'tblTempUsageDetail_20' ) end [2024-12-18 19:24:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 19:24:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 19:24:21] Production.INFO: ==24417== Releasing lock... [2024-12-18 19:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 19:24:21] Production.INFO: 49.25 MB #Memory Used# [2024-12-18 19:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 16:25:04 [end_date_ymd] => 2024-12-18 19:25:04 [RateCDR] => 1 ) [2024-12-18 19: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` >= '2024-12-18 16:25:04' and `end` < '2024-12-18 19: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 ,'') [2024-12-18 19:25:17] Production.INFO: count ==2822 [2024-12-18 19:25:17] Production.ERROR: pbx CDR StartTime 2024-12-18 16:25:04 - End Time 2024-12-18 19:25:04 [2024-12-18 19:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 19:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050271', 'tblTempUsageDetail_20' ) start [2024-12-18 19:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050271', 'tblTempUsageDetail_20' ) end [2024-12-18 19:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050271', 'tblTempVendorCDR_20' ) start [2024-12-18 19:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050271', 'tblTempVendorCDR_20' ) end [2024-12-18 19:25:17] Production.INFO: ProcessCDR(1,14050271,1,1,2) [2024-12-18 19:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050271', 'tblTempUsageDetail_20' ) start [2024-12-18 19:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050271', 'tblTempUsageDetail_20' ) end [2024-12-18 19:25:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 19:25:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 19:25:20] Production.INFO: ==24488== Releasing lock... [2024-12-18 19:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 19:25:20] Production.INFO: 49.25 MB #Memory Used# [2024-12-18 19:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 16:26:05 [end_date_ymd] => 2024-12-18 19:26:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 16:26:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 19:26:18] Production.INFO: count ==2814 [2024-12-18 19:26:19] Production.ERROR: pbx CDR StartTime 2024-12-18 16:26:05 - End Time 2024-12-18 19:26:05 [2024-12-18 19:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050276', 'tblTempUsageDetail_20' ) start [2024-12-18 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050276', 'tblTempUsageDetail_20' ) end [2024-12-18 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050276', 'tblTempVendorCDR_20' ) start [2024-12-18 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050276', 'tblTempVendorCDR_20' ) end [2024-12-18 19:26:19] Production.INFO: ProcessCDR(1,14050276,1,1,2) [2024-12-18 19:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050276', 'tblTempUsageDetail_20' ) start [2024-12-18 19:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050276', 'tblTempUsageDetail_20' ) end [2024-12-18 19:26:23] Production.ERROR: pbx prc_insertCDR start [2024-12-18 19:26:23] Production.ERROR: pbx prc_insertCDR end [2024-12-18 19:26:24] Production.INFO: ==24561== Releasing lock... [2024-12-18 19:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 19:26:24] Production.INFO: 49.25 MB #Memory Used# [2024-12-18 19:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 16:27:05 [end_date_ymd] => 2024-12-18 19:27:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 16:27:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 19:27:17] Production.INFO: count ==2811 [2024-12-18 19:27:18] Production.ERROR: pbx CDR StartTime 2024-12-18 16:27:05 - End Time 2024-12-18 19:27:05 [2024-12-18 19:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 19:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050281', 'tblTempUsageDetail_20' ) start [2024-12-18 19:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050281', 'tblTempUsageDetail_20' ) end [2024-12-18 19:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050281', 'tblTempVendorCDR_20' ) start [2024-12-18 19:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050281', 'tblTempVendorCDR_20' ) end [2024-12-18 19:27:18] Production.INFO: ProcessCDR(1,14050281,1,1,2) [2024-12-18 19:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050281', 'tblTempUsageDetail_20' ) start [2024-12-18 19:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050281', 'tblTempUsageDetail_20' ) end [2024-12-18 19:27:23] Production.ERROR: pbx prc_insertCDR start [2024-12-18 19:27:23] Production.ERROR: pbx prc_insertCDR end [2024-12-18 19:27:23] Production.INFO: ==24630== Releasing lock... [2024-12-18 19:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 19:27:23] Production.INFO: 49.25 MB #Memory Used# [2024-12-18 19:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 16:28:05 [end_date_ymd] => 2024-12-18 19:28:05 [RateCDR] => 1 ) [2024-12-18 19:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 16:28:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 19:28:17] Production.INFO: count ==2792 [2024-12-18 19:28:18] Production.ERROR: pbx CDR StartTime 2024-12-18 16:28:05 - End Time 2024-12-18 19:28:05 [2024-12-18 19:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050286', 'tblTempUsageDetail_20' ) start [2024-12-18 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050286', 'tblTempUsageDetail_20' ) end [2024-12-18 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050286', 'tblTempVendorCDR_20' ) start [2024-12-18 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050286', 'tblTempVendorCDR_20' ) end [2024-12-18 19:28:18] Production.INFO: ProcessCDR(1,14050286,1,1,2) [2024-12-18 19:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050286', 'tblTempUsageDetail_20' ) start [2024-12-18 19:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050286', 'tblTempUsageDetail_20' ) end [2024-12-18 19:28:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 19:28:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 19:28:21] Production.INFO: ==24702== Releasing lock... [2024-12-18 19:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 19:28:21] Production.INFO: 49 MB #Memory Used# [2024-12-18 19:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 16:29:05 [end_date_ymd] => 2024-12-18 19:29:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 16:29:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 19:29:18] Production.INFO: count ==2791 [2024-12-18 19:29:19] Production.ERROR: pbx CDR StartTime 2024-12-18 16:29:05 - End Time 2024-12-18 19:29:05 [2024-12-18 19:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050291', 'tblTempUsageDetail_20' ) start [2024-12-18 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050291', 'tblTempUsageDetail_20' ) end [2024-12-18 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050291', 'tblTempVendorCDR_20' ) start [2024-12-18 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050291', 'tblTempVendorCDR_20' ) end [2024-12-18 19:29:19] Production.INFO: ProcessCDR(1,14050291,1,1,2) [2024-12-18 19:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050291', 'tblTempUsageDetail_20' ) start [2024-12-18 19:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050291', 'tblTempUsageDetail_20' ) end [2024-12-18 19:29:24] Production.ERROR: pbx prc_insertCDR start [2024-12-18 19:29:24] Production.ERROR: pbx prc_insertCDR end [2024-12-18 19:29:24] Production.INFO: ==24772== Releasing lock... [2024-12-18 19:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 19:29:24] Production.INFO: 49 MB #Memory Used# [2024-12-18 19:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 16:30:06 [end_date_ymd] => 2024-12-18 19:30:06 [RateCDR] => 1 ) [2024-12-18 19:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 16:30:06' and `end` < '2024-12-18 19:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 19:30:18] Production.INFO: count ==2774 [2024-12-18 19:30:19] Production.ERROR: pbx CDR StartTime 2024-12-18 16:30:06 - End Time 2024-12-18 19:30:06 [2024-12-18 19:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050297', 'tblTempUsageDetail_20' ) start [2024-12-18 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050297', 'tblTempUsageDetail_20' ) end [2024-12-18 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050297', 'tblTempVendorCDR_20' ) start [2024-12-18 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050297', 'tblTempVendorCDR_20' ) end [2024-12-18 19:30:19] Production.INFO: ProcessCDR(1,14050297,1,1,2) [2024-12-18 19:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050297', 'tblTempUsageDetail_20' ) start [2024-12-18 19:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050297', 'tblTempUsageDetail_20' ) end [2024-12-18 19:30:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 19:30:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 19:30:22] Production.INFO: ==24845== Releasing lock... [2024-12-18 19:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 19:30:22] Production.INFO: 48.75 MB #Memory Used# [2024-12-18 19:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 16:31:05 [end_date_ymd] => 2024-12-18 19:31:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 16:31:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 19:31:17] Production.INFO: count ==2716 [2024-12-18 19:31:18] Production.ERROR: pbx CDR StartTime 2024-12-18 16:31:05 - End Time 2024-12-18 19:31:05 [2024-12-18 19:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 19:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050302', 'tblTempUsageDetail_20' ) start [2024-12-18 19:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050302', 'tblTempUsageDetail_20' ) end [2024-12-18 19:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050302', 'tblTempVendorCDR_20' ) start [2024-12-18 19:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050302', 'tblTempVendorCDR_20' ) end [2024-12-18 19:31:18] Production.INFO: ProcessCDR(1,14050302,1,1,2) [2024-12-18 19:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050302', 'tblTempUsageDetail_20' ) start [2024-12-18 19:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050302', 'tblTempUsageDetail_20' ) end [2024-12-18 19:31:23] Production.ERROR: pbx prc_insertCDR start [2024-12-18 19:31:23] Production.ERROR: pbx prc_insertCDR end [2024-12-18 19:31:23] Production.INFO: ==24919== Releasing lock... [2024-12-18 19:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 19:31:23] Production.INFO: 48.5 MB #Memory Used# [2024-12-18 19:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 16:32:05 [end_date_ymd] => 2024-12-18 19:32:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 16:32:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 19:32:18] Production.INFO: count ==2721 [2024-12-18 19:32:18] Production.ERROR: pbx CDR StartTime 2024-12-18 16:32:05 - End Time 2024-12-18 19:32:05 [2024-12-18 19:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 19:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050307', 'tblTempUsageDetail_20' ) start [2024-12-18 19:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050307', 'tblTempUsageDetail_20' ) end [2024-12-18 19:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050307', 'tblTempVendorCDR_20' ) start [2024-12-18 19:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050307', 'tblTempVendorCDR_20' ) end [2024-12-18 19:32:18] Production.INFO: ProcessCDR(1,14050307,1,1,2) [2024-12-18 19:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050307', 'tblTempUsageDetail_20' ) start [2024-12-18 19:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050307', 'tblTempUsageDetail_20' ) end [2024-12-18 19:32:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 19:32:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 19:32:22] Production.INFO: ==24989== Releasing lock... [2024-12-18 19:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 19:32:22] Production.INFO: 48.5 MB #Memory Used# [2024-12-18 19:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 16:33:04 [end_date_ymd] => 2024-12-18 19:33:04 [RateCDR] => 1 ) [2024-12-18 19:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 16:33:04' and `end` < '2024-12-18 19:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 19:33:18] Production.INFO: count ==2705 [2024-12-18 19:33:19] Production.ERROR: pbx CDR StartTime 2024-12-18 16:33:04 - End Time 2024-12-18 19:33:04 [2024-12-18 19:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050312', 'tblTempUsageDetail_20' ) start [2024-12-18 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050312', 'tblTempUsageDetail_20' ) end [2024-12-18 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050312', 'tblTempVendorCDR_20' ) start [2024-12-18 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050312', 'tblTempVendorCDR_20' ) end [2024-12-18 19:33:19] Production.INFO: ProcessCDR(1,14050312,1,1,2) [2024-12-18 19:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050312', 'tblTempUsageDetail_20' ) start [2024-12-18 19:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050312', 'tblTempUsageDetail_20' ) end [2024-12-18 19:33:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 19:33:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 19:33:22] Production.INFO: ==25063== Releasing lock... [2024-12-18 19:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 19:33:22] Production.INFO: 48.25 MB #Memory Used# [2024-12-18 19:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 16:34:05 [end_date_ymd] => 2024-12-18 19:34:05 [RateCDR] => 1 ) [2024-12-18 19:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 16:34:05' and `end` < '2024-12-18 19:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 19:34:18] Production.INFO: count ==2696 [2024-12-18 19:34:19] Production.ERROR: pbx CDR StartTime 2024-12-18 16:34:05 - End Time 2024-12-18 19:34:05 [2024-12-18 19:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050317', 'tblTempUsageDetail_20' ) start [2024-12-18 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050317', 'tblTempUsageDetail_20' ) end [2024-12-18 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050317', 'tblTempVendorCDR_20' ) start [2024-12-18 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050317', 'tblTempVendorCDR_20' ) end [2024-12-18 19:34:19] Production.INFO: ProcessCDR(1,14050317,1,1,2) [2024-12-18 19:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050317', 'tblTempUsageDetail_20' ) start [2024-12-18 19:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050317', 'tblTempUsageDetail_20' ) end [2024-12-18 19:34:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 19:34:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 19:34:22] Production.INFO: ==25134== Releasing lock... [2024-12-18 19:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 19:34:22] Production.INFO: 48.25 MB #Memory Used# [2024-12-18 19:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 16:35:05 [end_date_ymd] => 2024-12-18 19:35:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 16:35:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 19:35:18] Production.INFO: count ==2680 [2024-12-18 19:35:18] Production.ERROR: pbx CDR StartTime 2024-12-18 16:35:05 - End Time 2024-12-18 19:35:05 [2024-12-18 19:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050322', 'tblTempUsageDetail_20' ) start [2024-12-18 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050322', 'tblTempUsageDetail_20' ) end [2024-12-18 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050322', 'tblTempVendorCDR_20' ) start [2024-12-18 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050322', 'tblTempVendorCDR_20' ) end [2024-12-18 19:35:18] Production.INFO: ProcessCDR(1,14050322,1,1,2) [2024-12-18 19:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050322', 'tblTempUsageDetail_20' ) start [2024-12-18 19:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050322', 'tblTempUsageDetail_20' ) end [2024-12-18 19:35:23] Production.ERROR: pbx prc_insertCDR start [2024-12-18 19:35:23] Production.ERROR: pbx prc_insertCDR end [2024-12-18 19:35:23] Production.INFO: ==25207== Releasing lock... [2024-12-18 19:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 19:35:23] Production.INFO: 48.25 MB #Memory Used# [2024-12-18 19:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 16:36:05 [end_date_ymd] => 2024-12-18 19:36:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 16:36:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 19:36:17] Production.INFO: count ==2669 [2024-12-18 19:36:18] Production.ERROR: pbx CDR StartTime 2024-12-18 16:36:05 - End Time 2024-12-18 19:36:05 [2024-12-18 19:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 19:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050327', 'tblTempUsageDetail_20' ) start [2024-12-18 19:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050327', 'tblTempUsageDetail_20' ) end [2024-12-18 19:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050327', 'tblTempVendorCDR_20' ) start [2024-12-18 19:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050327', 'tblTempVendorCDR_20' ) end [2024-12-18 19:36:18] Production.INFO: ProcessCDR(1,14050327,1,1,2) [2024-12-18 19:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050327', 'tblTempUsageDetail_20' ) start [2024-12-18 19:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050327', 'tblTempUsageDetail_20' ) end [2024-12-18 19:36:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 19:36:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 19:36:22] Production.INFO: ==25317== Releasing lock... [2024-12-18 19:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 19:36:22] Production.INFO: 48 MB #Memory Used# [2024-12-18 19:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 16:37:04 [end_date_ymd] => 2024-12-18 19:37:04 [RateCDR] => 1 ) [2024-12-18 19: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` >= '2024-12-18 16:37:04' and `end` < '2024-12-18 19: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 ,'') [2024-12-18 19:37:18] Production.INFO: count ==2664 [2024-12-18 19:37:18] Production.ERROR: pbx CDR StartTime 2024-12-18 16:37:04 - End Time 2024-12-18 19:37:04 [2024-12-18 19:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050332', 'tblTempUsageDetail_20' ) start [2024-12-18 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050332', 'tblTempUsageDetail_20' ) end [2024-12-18 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050332', 'tblTempVendorCDR_20' ) start [2024-12-18 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050332', 'tblTempVendorCDR_20' ) end [2024-12-18 19:37:18] Production.INFO: ProcessCDR(1,14050332,1,1,2) [2024-12-18 19:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050332', 'tblTempUsageDetail_20' ) start [2024-12-18 19:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050332', 'tblTempUsageDetail_20' ) end [2024-12-18 19:37:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 19:37:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 19:37:21] Production.INFO: ==25392== Releasing lock... [2024-12-18 19:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 19:37:21] Production.INFO: 48 MB #Memory Used# [2024-12-18 19:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 16:38:05 [end_date_ymd] => 2024-12-18 19:38:05 [RateCDR] => 1 ) [2024-12-18 19:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 16:38:05' and `end` < '2024-12-18 19:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 19:38:17] Production.INFO: count ==2635 [2024-12-18 19:38:18] Production.ERROR: pbx CDR StartTime 2024-12-18 16:38:05 - End Time 2024-12-18 19:38:05 [2024-12-18 19:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 19:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050337', 'tblTempUsageDetail_20' ) start [2024-12-18 19:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050337', 'tblTempUsageDetail_20' ) end [2024-12-18 19:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050337', 'tblTempVendorCDR_20' ) start [2024-12-18 19:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050337', 'tblTempVendorCDR_20' ) end [2024-12-18 19:38:18] Production.INFO: ProcessCDR(1,14050337,1,1,2) [2024-12-18 19:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050337', 'tblTempUsageDetail_20' ) start [2024-12-18 19:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050337', 'tblTempUsageDetail_20' ) end [2024-12-18 19:38:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 19:38:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 19:38:21] Production.INFO: ==25464== Releasing lock... [2024-12-18 19:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 19:38:21] Production.INFO: 47.75 MB #Memory Used# [2024-12-18 19:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 16:39:05 [end_date_ymd] => 2024-12-18 19:39:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 16:39:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 19:39:17] Production.INFO: count ==2626 [2024-12-18 19:39:18] Production.ERROR: pbx CDR StartTime 2024-12-18 16:39:05 - End Time 2024-12-18 19:39:05 [2024-12-18 19:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050342', 'tblTempUsageDetail_20' ) start [2024-12-18 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050342', 'tblTempUsageDetail_20' ) end [2024-12-18 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050342', 'tblTempVendorCDR_20' ) start [2024-12-18 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050342', 'tblTempVendorCDR_20' ) end [2024-12-18 19:39:18] Production.INFO: ProcessCDR(1,14050342,1,1,2) [2024-12-18 19:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050342', 'tblTempUsageDetail_20' ) start [2024-12-18 19:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050342', 'tblTempUsageDetail_20' ) end [2024-12-18 19:39:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 19:39:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 19:39:21] Production.INFO: ==25535== Releasing lock... [2024-12-18 19:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 19:39:21] Production.INFO: 47.75 MB #Memory Used# [2024-12-18 19:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 16:40:05 [end_date_ymd] => 2024-12-18 19:40:05 [RateCDR] => 1 ) [2024-12-18 19:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 16:40:05' and `end` < '2024-12-18 19:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 19:40:18] Production.INFO: count ==2614 [2024-12-18 19:40:18] Production.ERROR: pbx CDR StartTime 2024-12-18 16:40:05 - End Time 2024-12-18 19:40:05 [2024-12-18 19:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 19:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050347', 'tblTempUsageDetail_20' ) start [2024-12-18 19:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050347', 'tblTempUsageDetail_20' ) end [2024-12-18 19:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050347', 'tblTempVendorCDR_20' ) start [2024-12-18 19:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050347', 'tblTempVendorCDR_20' ) end [2024-12-18 19:40:18] Production.INFO: ProcessCDR(1,14050347,1,1,2) [2024-12-18 19:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050347', 'tblTempUsageDetail_20' ) start [2024-12-18 19:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050347', 'tblTempUsageDetail_20' ) end [2024-12-18 19:40:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 19:40:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 19:40:21] Production.INFO: ==25608== Releasing lock... [2024-12-18 19:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 19:40:21] Production.INFO: 47.75 MB #Memory Used# [2024-12-18 19:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 16:41:05 [end_date_ymd] => 2024-12-18 19:41:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 16:41:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 19:41:17] Production.INFO: count ==2563 [2024-12-18 19:41:18] Production.ERROR: pbx CDR StartTime 2024-12-18 16:41:05 - End Time 2024-12-18 19:41:05 [2024-12-18 19:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050353', 'tblTempUsageDetail_20' ) start [2024-12-18 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050353', 'tblTempUsageDetail_20' ) end [2024-12-18 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050353', 'tblTempVendorCDR_20' ) start [2024-12-18 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050353', 'tblTempVendorCDR_20' ) end [2024-12-18 19:41:18] Production.INFO: ProcessCDR(1,14050353,1,1,2) [2024-12-18 19:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050353', 'tblTempUsageDetail_20' ) start [2024-12-18 19:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050353', 'tblTempUsageDetail_20' ) end [2024-12-18 19:41:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 19:41:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 19:41:21] Production.INFO: ==25681== Releasing lock... [2024-12-18 19:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 19:41:21] Production.INFO: 47.5 MB #Memory Used# [2024-12-18 19:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 16:42:05 [end_date_ymd] => 2024-12-18 19:42:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 16:42:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 19:42:17] Production.INFO: count ==2557 [2024-12-18 19:42:18] Production.ERROR: pbx CDR StartTime 2024-12-18 16:42:05 - End Time 2024-12-18 19:42:05 [2024-12-18 19:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 19:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050358', 'tblTempUsageDetail_20' ) start [2024-12-18 19:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050358', 'tblTempUsageDetail_20' ) end [2024-12-18 19:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050358', 'tblTempVendorCDR_20' ) start [2024-12-18 19:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050358', 'tblTempVendorCDR_20' ) end [2024-12-18 19:42:18] Production.INFO: ProcessCDR(1,14050358,1,1,2) [2024-12-18 19:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050358', 'tblTempUsageDetail_20' ) start [2024-12-18 19:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050358', 'tblTempUsageDetail_20' ) end [2024-12-18 19:42:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 19:42:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 19:42:21] Production.INFO: ==25751== Releasing lock... [2024-12-18 19:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 19:42:21] Production.INFO: 47.5 MB #Memory Used# [2024-12-18 19:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 16:43:04 [end_date_ymd] => 2024-12-18 19:43:04 [RateCDR] => 1 ) [2024-12-18 19:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 16:43:04' and `end` < '2024-12-18 19:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 19:43:18] Production.INFO: count ==2532 [2024-12-18 19:43:18] Production.ERROR: pbx CDR StartTime 2024-12-18 16:43:04 - End Time 2024-12-18 19:43:04 [2024-12-18 19:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050363', 'tblTempUsageDetail_20' ) start [2024-12-18 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050363', 'tblTempUsageDetail_20' ) end [2024-12-18 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050363', 'tblTempVendorCDR_20' ) start [2024-12-18 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050363', 'tblTempVendorCDR_20' ) end [2024-12-18 19:43:18] Production.INFO: ProcessCDR(1,14050363,1,1,2) [2024-12-18 19:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050363', 'tblTempUsageDetail_20' ) start [2024-12-18 19:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050363', 'tblTempUsageDetail_20' ) end [2024-12-18 19:43:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 19:43:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 19:43:22] Production.INFO: ==25822== Releasing lock... [2024-12-18 19:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 19:43:22] Production.INFO: 47 MB #Memory Used# [2024-12-18 19:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 16:44:05 [end_date_ymd] => 2024-12-18 19:44:05 [RateCDR] => 1 ) [2024-12-18 19:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 16:44:05' and `end` < '2024-12-18 19:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 19:44:18] Production.INFO: count ==2527 [2024-12-18 19:44:18] Production.ERROR: pbx CDR StartTime 2024-12-18 16:44:05 - End Time 2024-12-18 19:44:05 [2024-12-18 19:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050368', 'tblTempUsageDetail_20' ) start [2024-12-18 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050368', 'tblTempUsageDetail_20' ) end [2024-12-18 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050368', 'tblTempVendorCDR_20' ) start [2024-12-18 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050368', 'tblTempVendorCDR_20' ) end [2024-12-18 19:44:18] Production.INFO: ProcessCDR(1,14050368,1,1,2) [2024-12-18 19:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050368', 'tblTempUsageDetail_20' ) start [2024-12-18 19:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050368', 'tblTempUsageDetail_20' ) end [2024-12-18 19:44:23] Production.ERROR: pbx prc_insertCDR start [2024-12-18 19:44:23] Production.ERROR: pbx prc_insertCDR end [2024-12-18 19:44:23] Production.INFO: ==25893== Releasing lock... [2024-12-18 19:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 19:44:23] Production.INFO: 47 MB #Memory Used# [2024-12-18 19:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 16:45:05 [end_date_ymd] => 2024-12-18 19:45:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 16:45:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 19:45:17] Production.INFO: count ==2512 [2024-12-18 19:45:18] Production.ERROR: pbx CDR StartTime 2024-12-18 16:45:05 - End Time 2024-12-18 19:45:05 [2024-12-18 19:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050373', 'tblTempUsageDetail_20' ) start [2024-12-18 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050373', 'tblTempUsageDetail_20' ) end [2024-12-18 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050373', 'tblTempVendorCDR_20' ) start [2024-12-18 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050373', 'tblTempVendorCDR_20' ) end [2024-12-18 19:45:18] Production.INFO: ProcessCDR(1,14050373,1,1,2) [2024-12-18 19:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050373', 'tblTempUsageDetail_20' ) start [2024-12-18 19:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050373', 'tblTempUsageDetail_20' ) end [2024-12-18 19:45:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 19:45:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 19:45:21] Production.INFO: ==25964== Releasing lock... [2024-12-18 19:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 19:45:21] Production.INFO: 47 MB #Memory Used# [2024-12-18 19:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 16:46:05 [end_date_ymd] => 2024-12-18 19:46:05 [RateCDR] => 1 ) [2024-12-18 19:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 16:46:05' and `end` < '2024-12-18 19:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 19:46:19] Production.INFO: count ==2489 [2024-12-18 19:46:20] Production.ERROR: pbx CDR StartTime 2024-12-18 16:46:05 - End Time 2024-12-18 19:46:05 [2024-12-18 19:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 19:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050378', 'tblTempUsageDetail_20' ) start [2024-12-18 19:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050378', 'tblTempUsageDetail_20' ) end [2024-12-18 19:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050378', 'tblTempVendorCDR_20' ) start [2024-12-18 19:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050378', 'tblTempVendorCDR_20' ) end [2024-12-18 19:46:20] Production.INFO: ProcessCDR(1,14050378,1,1,2) [2024-12-18 19:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050378', 'tblTempUsageDetail_20' ) start [2024-12-18 19:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050378', 'tblTempUsageDetail_20' ) end [2024-12-18 19:46:23] Production.ERROR: pbx prc_insertCDR start [2024-12-18 19:46:23] Production.ERROR: pbx prc_insertCDR end [2024-12-18 19:46:23] Production.INFO: ==26036== Releasing lock... [2024-12-18 19:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 19:46:23] Production.INFO: 46.75 MB #Memory Used# [2024-12-18 19:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 16:47:05 [end_date_ymd] => 2024-12-18 19:47:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 16:47:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 19:47:17] Production.INFO: count ==2461 [2024-12-18 19:47:18] Production.ERROR: pbx CDR StartTime 2024-12-18 16:47:05 - End Time 2024-12-18 19:47:05 [2024-12-18 19:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050383', 'tblTempUsageDetail_20' ) start [2024-12-18 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050383', 'tblTempUsageDetail_20' ) end [2024-12-18 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050383', 'tblTempVendorCDR_20' ) start [2024-12-18 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050383', 'tblTempVendorCDR_20' ) end [2024-12-18 19:47:18] Production.INFO: ProcessCDR(1,14050383,1,1,2) [2024-12-18 19:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050383', 'tblTempUsageDetail_20' ) start [2024-12-18 19:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050383', 'tblTempUsageDetail_20' ) end [2024-12-18 19:47:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 19:47:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 19:47:21] Production.INFO: ==26107== Releasing lock... [2024-12-18 19:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 19:47:21] Production.INFO: 46.75 MB #Memory Used# [2024-12-18 19:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 16:48:05 [end_date_ymd] => 2024-12-18 19:48:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 16:48:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 19:48:17] Production.INFO: count ==2435 [2024-12-18 19:48:18] Production.ERROR: pbx CDR StartTime 2024-12-18 16:48:05 - End Time 2024-12-18 19:48:05 [2024-12-18 19:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 19:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050388', 'tblTempUsageDetail_20' ) start [2024-12-18 19:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050388', 'tblTempUsageDetail_20' ) end [2024-12-18 19:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050388', 'tblTempVendorCDR_20' ) start [2024-12-18 19:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050388', 'tblTempVendorCDR_20' ) end [2024-12-18 19:48:18] Production.INFO: ProcessCDR(1,14050388,1,1,2) [2024-12-18 19:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050388', 'tblTempUsageDetail_20' ) start [2024-12-18 19:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050388', 'tblTempUsageDetail_20' ) end [2024-12-18 19:48:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 19:48:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 19:48:21] Production.INFO: ==26181== Releasing lock... [2024-12-18 19:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 19:48:21] Production.INFO: 46.25 MB #Memory Used# [2024-12-18 19:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 16:49:05 [end_date_ymd] => 2024-12-18 19:49:05 [RateCDR] => 1 ) [2024-12-18 19:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 16:49:05' and `end` < '2024-12-18 19:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 19:49:18] Production.INFO: count ==2413 [2024-12-18 19:49:19] Production.ERROR: pbx CDR StartTime 2024-12-18 16:49:05 - End Time 2024-12-18 19:49:05 [2024-12-18 19:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050393', 'tblTempUsageDetail_20' ) start [2024-12-18 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050393', 'tblTempUsageDetail_20' ) end [2024-12-18 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050393', 'tblTempVendorCDR_20' ) start [2024-12-18 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050393', 'tblTempVendorCDR_20' ) end [2024-12-18 19:49:19] Production.INFO: ProcessCDR(1,14050393,1,1,2) [2024-12-18 19:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050393', 'tblTempUsageDetail_20' ) start [2024-12-18 19:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050393', 'tblTempUsageDetail_20' ) end [2024-12-18 19:49:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 19:49:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 19:49:22] Production.INFO: ==26250== Releasing lock... [2024-12-18 19:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 19:49:22] Production.INFO: 46.25 MB #Memory Used# [2024-12-18 19:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 16:50:05 [end_date_ymd] => 2024-12-18 19:50:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 16:50:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 19:50:18] Production.INFO: count ==2409 [2024-12-18 19:50:18] Production.ERROR: pbx CDR StartTime 2024-12-18 16:50:05 - End Time 2024-12-18 19:50:05 [2024-12-18 19:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 19:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050399', 'tblTempUsageDetail_20' ) start [2024-12-18 19:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050399', 'tblTempUsageDetail_20' ) end [2024-12-18 19:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050399', 'tblTempVendorCDR_20' ) start [2024-12-18 19:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050399', 'tblTempVendorCDR_20' ) end [2024-12-18 19:50:18] Production.INFO: ProcessCDR(1,14050399,1,1,2) [2024-12-18 19:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050399', 'tblTempUsageDetail_20' ) start [2024-12-18 19:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050399', 'tblTempUsageDetail_20' ) end [2024-12-18 19:50:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 19:50:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 19:50:22] Production.INFO: ==26323== Releasing lock... [2024-12-18 19:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 19:50:22] Production.INFO: 46.25 MB #Memory Used# [2024-12-18 19:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 16:51:04 [end_date_ymd] => 2024-12-18 19:51:04 [RateCDR] => 1 ) [2024-12-18 19:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 16:51:04' and `end` < '2024-12-18 19:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 19:51:17] Production.INFO: count ==2307 [2024-12-18 19:51:17] Production.ERROR: pbx CDR StartTime 2024-12-18 16:51:04 - End Time 2024-12-18 19:51:04 [2024-12-18 19:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 19:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050404', 'tblTempUsageDetail_20' ) start [2024-12-18 19:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050404', 'tblTempUsageDetail_20' ) end [2024-12-18 19:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050404', 'tblTempVendorCDR_20' ) start [2024-12-18 19:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050404', 'tblTempVendorCDR_20' ) end [2024-12-18 19:51:17] Production.INFO: ProcessCDR(1,14050404,1,1,2) [2024-12-18 19:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050404', 'tblTempUsageDetail_20' ) start [2024-12-18 19:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050404', 'tblTempUsageDetail_20' ) end [2024-12-18 19:51:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 19:51:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 19:51:22] Production.INFO: ==26395== Releasing lock... [2024-12-18 19:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 19:51:22] Production.INFO: 45.25 MB #Memory Used# [2024-12-18 19:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 16:52:05 [end_date_ymd] => 2024-12-18 19:52:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 16:52:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 19:52:17] Production.INFO: count ==2176 [2024-12-18 19:52:18] Production.ERROR: pbx CDR StartTime 2024-12-18 16:52:05 - End Time 2024-12-18 19:52:05 [2024-12-18 19:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050409', 'tblTempUsageDetail_20' ) start [2024-12-18 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050409', 'tblTempUsageDetail_20' ) end [2024-12-18 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050409', 'tblTempVendorCDR_20' ) start [2024-12-18 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050409', 'tblTempVendorCDR_20' ) end [2024-12-18 19:52:18] Production.INFO: ProcessCDR(1,14050409,1,1,2) [2024-12-18 19:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050409', 'tblTempUsageDetail_20' ) start [2024-12-18 19:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050409', 'tblTempUsageDetail_20' ) end [2024-12-18 19:52:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 19:52:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 19:52:21] Production.INFO: ==26508== Releasing lock... [2024-12-18 19:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 19:52:21] Production.INFO: 44.25 MB #Memory Used# [2024-12-18 19:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 16:53:05 [end_date_ymd] => 2024-12-18 19:53:05 [RateCDR] => 1 ) [2024-12-18 19:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 16:53:05' and `end` < '2024-12-18 19:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 19:53:17] Production.INFO: count ==2058 [2024-12-18 19:53:17] Production.ERROR: pbx CDR StartTime 2024-12-18 16:53:05 - End Time 2024-12-18 19:53:05 [2024-12-18 19:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 19:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050414', 'tblTempUsageDetail_20' ) start [2024-12-18 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050414', 'tblTempUsageDetail_20' ) end [2024-12-18 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050414', 'tblTempVendorCDR_20' ) start [2024-12-18 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050414', 'tblTempVendorCDR_20' ) end [2024-12-18 19:53:18] Production.INFO: ProcessCDR(1,14050414,1,1,2) [2024-12-18 19:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050414', 'tblTempUsageDetail_20' ) start [2024-12-18 19:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050414', 'tblTempUsageDetail_20' ) end [2024-12-18 19:53:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 19:53:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 19:53:21] Production.INFO: ==26577== Releasing lock... [2024-12-18 19:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 19:53:21] Production.INFO: 43.25 MB #Memory Used# [2024-12-18 19:54:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 16:54:04 [end_date_ymd] => 2024-12-18 19:54:04 [RateCDR] => 1 ) [2024-12-18 19: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` >= '2024-12-18 16:54:04' and `end` < '2024-12-18 19: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 ,'') [2024-12-18 19:54:17] Production.INFO: count ==2034 [2024-12-18 19:54:17] Production.ERROR: pbx CDR StartTime 2024-12-18 16:54:04 - End Time 2024-12-18 19:54:04 [2024-12-18 19:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 19:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050419', 'tblTempUsageDetail_20' ) start [2024-12-18 19:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050419', 'tblTempUsageDetail_20' ) end [2024-12-18 19:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050419', 'tblTempVendorCDR_20' ) start [2024-12-18 19:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050419', 'tblTempVendorCDR_20' ) end [2024-12-18 19:54:17] Production.INFO: ProcessCDR(1,14050419,1,1,2) [2024-12-18 19:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050419', 'tblTempUsageDetail_20' ) start [2024-12-18 19:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050419', 'tblTempUsageDetail_20' ) end [2024-12-18 19:54:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 19:54:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 19:54:20] Production.INFO: ==26651== Releasing lock... [2024-12-18 19:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 19:54:20] Production.INFO: 43.25 MB #Memory Used# [2024-12-18 19:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 16:55:05 [end_date_ymd] => 2024-12-18 19:55:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 16:55:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 19:55:18] Production.INFO: count ==2029 [2024-12-18 19:55:18] Production.ERROR: pbx CDR StartTime 2024-12-18 16:55:05 - End Time 2024-12-18 19:55:05 [2024-12-18 19:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050424', 'tblTempUsageDetail_20' ) start [2024-12-18 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050424', 'tblTempUsageDetail_20' ) end [2024-12-18 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050424', 'tblTempVendorCDR_20' ) start [2024-12-18 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050424', 'tblTempVendorCDR_20' ) end [2024-12-18 19:55:18] Production.INFO: ProcessCDR(1,14050424,1,1,2) [2024-12-18 19:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050424', 'tblTempUsageDetail_20' ) start [2024-12-18 19:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050424', 'tblTempUsageDetail_20' ) end [2024-12-18 19:55:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 19:55:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 19:55:22] Production.INFO: ==26721== Releasing lock... [2024-12-18 19:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 19:55:22] Production.INFO: 43.25 MB #Memory Used# [2024-12-18 19:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 16:56:05 [end_date_ymd] => 2024-12-18 19:56:05 [RateCDR] => 1 ) [2024-12-18 19:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 16:56:05' and `end` < '2024-12-18 19:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 19:56:17] Production.INFO: count ==2027 [2024-12-18 19:56:17] Production.ERROR: pbx CDR StartTime 2024-12-18 16:56:05 - End Time 2024-12-18 19:56:05 [2024-12-18 19:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 19:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050429', 'tblTempUsageDetail_20' ) start [2024-12-18 19:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050429', 'tblTempUsageDetail_20' ) end [2024-12-18 19:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050429', 'tblTempVendorCDR_20' ) start [2024-12-18 19:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050429', 'tblTempVendorCDR_20' ) end [2024-12-18 19:56:17] Production.INFO: ProcessCDR(1,14050429,1,1,2) [2024-12-18 19:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050429', 'tblTempUsageDetail_20' ) start [2024-12-18 19:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050429', 'tblTempUsageDetail_20' ) end [2024-12-18 19:56:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 19:56:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 19:56:20] Production.INFO: ==26792== Releasing lock... [2024-12-18 19:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 19:56:20] Production.INFO: 43 MB #Memory Used# [2024-12-18 19:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 16:57:05 [end_date_ymd] => 2024-12-18 19:57:05 [RateCDR] => 1 ) [2024-12-18 19:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 16:57:05' and `end` < '2024-12-18 19:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 19:57:17] Production.INFO: count ==2023 [2024-12-18 19:57:18] Production.ERROR: pbx CDR StartTime 2024-12-18 16:57:05 - End Time 2024-12-18 19:57:05 [2024-12-18 19:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050434', 'tblTempUsageDetail_20' ) start [2024-12-18 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050434', 'tblTempUsageDetail_20' ) end [2024-12-18 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050434', 'tblTempVendorCDR_20' ) start [2024-12-18 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050434', 'tblTempVendorCDR_20' ) end [2024-12-18 19:57:18] Production.INFO: ProcessCDR(1,14050434,1,1,2) [2024-12-18 19:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050434', 'tblTempUsageDetail_20' ) start [2024-12-18 19:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050434', 'tblTempUsageDetail_20' ) end [2024-12-18 19:57:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 19:57:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 19:57:21] Production.INFO: ==26863== Releasing lock... [2024-12-18 19:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 19:57:21] Production.INFO: 43 MB #Memory Used# [2024-12-18 19:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 16:58:05 [end_date_ymd] => 2024-12-18 19:58:05 [RateCDR] => 1 ) [2024-12-18 19:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 16:58:05' and `end` < '2024-12-18 19:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 19:58:17] Production.INFO: count ==2019 [2024-12-18 19:58:17] Production.ERROR: pbx CDR StartTime 2024-12-18 16:58:05 - End Time 2024-12-18 19:58:05 [2024-12-18 19:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 19:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050439', 'tblTempUsageDetail_20' ) start [2024-12-18 19:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050439', 'tblTempUsageDetail_20' ) end [2024-12-18 19:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050439', 'tblTempVendorCDR_20' ) start [2024-12-18 19:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050439', 'tblTempVendorCDR_20' ) end [2024-12-18 19:58:17] Production.INFO: ProcessCDR(1,14050439,1,1,2) [2024-12-18 19:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050439', 'tblTempUsageDetail_20' ) start [2024-12-18 19:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050439', 'tblTempUsageDetail_20' ) end [2024-12-18 19:58:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 19:58:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 19:58:20] Production.INFO: ==26935== Releasing lock... [2024-12-18 19:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 19:58:20] Production.INFO: 43 MB #Memory Used# [2024-12-18 19:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 16:59:04 [end_date_ymd] => 2024-12-18 19:59:04 [RateCDR] => 1 ) [2024-12-18 19:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 16:59:04' and `end` < '2024-12-18 19:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 19:59:17] Production.INFO: count ==2014 [2024-12-18 19:59:17] Production.ERROR: pbx CDR StartTime 2024-12-18 16:59:04 - End Time 2024-12-18 19:59:04 [2024-12-18 19:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 19:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050444', 'tblTempUsageDetail_20' ) start [2024-12-18 19:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050444', 'tblTempUsageDetail_20' ) end [2024-12-18 19:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050444', 'tblTempVendorCDR_20' ) start [2024-12-18 19:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050444', 'tblTempVendorCDR_20' ) end [2024-12-18 19:59:17] Production.INFO: ProcessCDR(1,14050444,1,1,2) [2024-12-18 19:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 19:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 19:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050444', 'tblTempUsageDetail_20' ) start [2024-12-18 19:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050444', 'tblTempUsageDetail_20' ) end [2024-12-18 19:59:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 19:59:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 19:59:20] Production.INFO: ==27005== Releasing lock... [2024-12-18 19:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 19:59:20] Production.INFO: 43 MB #Memory Used# [2024-12-18 20:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 17:00:05 [end_date_ymd] => 2024-12-18 20:00:05 [RateCDR] => 1 ) [2024-12-18 20:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 17:00:05' and `end` < '2024-12-18 20:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 20:00:17] Production.INFO: count ==2012 [2024-12-18 20:00:18] Production.ERROR: pbx CDR StartTime 2024-12-18 17:00:05 - End Time 2024-12-18 20:00:05 [2024-12-18 20:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 20:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050449', 'tblTempUsageDetail_20' ) start [2024-12-18 20:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050449', 'tblTempUsageDetail_20' ) end [2024-12-18 20:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050449', 'tblTempVendorCDR_20' ) start [2024-12-18 20:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050449', 'tblTempVendorCDR_20' ) end [2024-12-18 20:00:18] Production.INFO: ProcessCDR(1,14050449,1,1,2) [2024-12-18 20:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050449', 'tblTempUsageDetail_20' ) start [2024-12-18 20:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050449', 'tblTempUsageDetail_20' ) end [2024-12-18 20:00:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 20:00:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 20:00:21] Production.INFO: ==27077== Releasing lock... [2024-12-18 20:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 20:00:21] Production.INFO: 43 MB #Memory Used# [2024-12-18 20:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 17:01:05 [end_date_ymd] => 2024-12-18 20:01:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 17:01:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 20:01:18] Production.INFO: count ==1983 [2024-12-18 20:01:18] Production.ERROR: pbx CDR StartTime 2024-12-18 17:01:05 - End Time 2024-12-18 20:01:05 [2024-12-18 20:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050455', 'tblTempUsageDetail_20' ) start [2024-12-18 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050455', 'tblTempUsageDetail_20' ) end [2024-12-18 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050455', 'tblTempVendorCDR_20' ) start [2024-12-18 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050455', 'tblTempVendorCDR_20' ) end [2024-12-18 20:01:18] Production.INFO: ProcessCDR(1,14050455,1,1,2) [2024-12-18 20:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050455', 'tblTempUsageDetail_20' ) start [2024-12-18 20:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050455', 'tblTempUsageDetail_20' ) end [2024-12-18 20:01:23] Production.ERROR: pbx prc_insertCDR start [2024-12-18 20:01:23] Production.ERROR: pbx prc_insertCDR end [2024-12-18 20:01:23] Production.INFO: ==27205== Releasing lock... [2024-12-18 20:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 20:01:23] Production.INFO: 42.75 MB #Memory Used# [2024-12-18 20:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 17:02:04 [end_date_ymd] => 2024-12-18 20:02:04 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 17:02:04' and `end` < '2024-12-18 20:02:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 20:02:17] Production.INFO: count ==1983 [2024-12-18 20:02:17] Production.ERROR: pbx CDR StartTime 2024-12-18 17:02:04 - End Time 2024-12-18 20:02:04 [2024-12-18 20:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 20:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050460', 'tblTempUsageDetail_20' ) start [2024-12-18 20:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050460', 'tblTempUsageDetail_20' ) end [2024-12-18 20:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050460', 'tblTempVendorCDR_20' ) start [2024-12-18 20:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050460', 'tblTempVendorCDR_20' ) end [2024-12-18 20:02:17] Production.INFO: ProcessCDR(1,14050460,1,1,2) [2024-12-18 20:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050460', 'tblTempUsageDetail_20' ) start [2024-12-18 20:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050460', 'tblTempUsageDetail_20' ) end [2024-12-18 20:02:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 20:02:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 20:02:22] Production.INFO: ==27278== Releasing lock... [2024-12-18 20:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 20:02:22] Production.INFO: 42.75 MB #Memory Used# [2024-12-18 20:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 17:03:05 [end_date_ymd] => 2024-12-18 20:03:05 [RateCDR] => 1 ) [2024-12-18 20:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 17:03:05' and `end` < '2024-12-18 20:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 20:03:18] Production.INFO: count ==1982 [2024-12-18 20:03:18] Production.ERROR: pbx CDR StartTime 2024-12-18 17:03:05 - End Time 2024-12-18 20:03:05 [2024-12-18 20:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050465', 'tblTempUsageDetail_20' ) start [2024-12-18 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050465', 'tblTempUsageDetail_20' ) end [2024-12-18 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050465', 'tblTempVendorCDR_20' ) start [2024-12-18 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050465', 'tblTempVendorCDR_20' ) end [2024-12-18 20:03:18] Production.INFO: ProcessCDR(1,14050465,1,1,2) [2024-12-18 20:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050465', 'tblTempUsageDetail_20' ) start [2024-12-18 20:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050465', 'tblTempUsageDetail_20' ) end [2024-12-18 20:03:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 20:03:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 20:03:22] Production.INFO: ==27350== Releasing lock... [2024-12-18 20:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 20:03:22] Production.INFO: 42.75 MB #Memory Used# [2024-12-18 20:04:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 17:04:06 [end_date_ymd] => 2024-12-18 20:04:06 [RateCDR] => 1 ) [2024-12-18 20: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` >= '2024-12-18 17:04:06' and `end` < '2024-12-18 20: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 ,'') [2024-12-18 20:04:19] Production.INFO: count ==1973 [2024-12-18 20:04:19] Production.ERROR: pbx CDR StartTime 2024-12-18 17:04:06 - End Time 2024-12-18 20:04:06 [2024-12-18 20:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050470', 'tblTempUsageDetail_20' ) start [2024-12-18 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050470', 'tblTempUsageDetail_20' ) end [2024-12-18 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050470', 'tblTempVendorCDR_20' ) start [2024-12-18 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050470', 'tblTempVendorCDR_20' ) end [2024-12-18 20:04:19] Production.INFO: ProcessCDR(1,14050470,1,1,2) [2024-12-18 20:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050470', 'tblTempUsageDetail_20' ) start [2024-12-18 20:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050470', 'tblTempUsageDetail_20' ) end [2024-12-18 20:04:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 20:04:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 20:04:22] Production.INFO: ==27425== Releasing lock... [2024-12-18 20:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 20:04:22] Production.INFO: 42.5 MB #Memory Used# [2024-12-18 20:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 17:05:05 [end_date_ymd] => 2024-12-18 20:05:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 17:05:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 20:05:17] Production.INFO: count ==1969 [2024-12-18 20:05:17] Production.ERROR: pbx CDR StartTime 2024-12-18 17:05:05 - End Time 2024-12-18 20:05:05 [2024-12-18 20:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 20:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050475', 'tblTempUsageDetail_20' ) start [2024-12-18 20:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050475', 'tblTempUsageDetail_20' ) end [2024-12-18 20:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050475', 'tblTempVendorCDR_20' ) start [2024-12-18 20:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050475', 'tblTempVendorCDR_20' ) end [2024-12-18 20:05:17] Production.INFO: ProcessCDR(1,14050475,1,1,2) [2024-12-18 20:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050475', 'tblTempUsageDetail_20' ) start [2024-12-18 20:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050475', 'tblTempUsageDetail_20' ) end [2024-12-18 20:05:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 20:05:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 20:05:20] Production.INFO: ==27496== Releasing lock... [2024-12-18 20:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 20:05:20] Production.INFO: 42.75 MB #Memory Used# [2024-12-18 20:06:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 17:06:06 [end_date_ymd] => 2024-12-18 20:06:06 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 17:06:06' and `end` < '2024-12-18 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 ,'') [2024-12-18 20:06:19] Production.INFO: count ==1969 [2024-12-18 20:06:19] Production.ERROR: pbx CDR StartTime 2024-12-18 17:06:06 - End Time 2024-12-18 20:06:06 [2024-12-18 20:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050480', 'tblTempUsageDetail_20' ) start [2024-12-18 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050480', 'tblTempUsageDetail_20' ) end [2024-12-18 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050480', 'tblTempVendorCDR_20' ) start [2024-12-18 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050480', 'tblTempVendorCDR_20' ) end [2024-12-18 20:06:19] Production.INFO: ProcessCDR(1,14050480,1,1,2) [2024-12-18 20:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050480', 'tblTempUsageDetail_20' ) start [2024-12-18 20:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050480', 'tblTempUsageDetail_20' ) end [2024-12-18 20:06:23] Production.ERROR: pbx prc_insertCDR start [2024-12-18 20:06:23] Production.ERROR: pbx prc_insertCDR end [2024-12-18 20:06:23] Production.INFO: ==27573== Releasing lock... [2024-12-18 20:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 20:06:23] Production.INFO: 42.75 MB #Memory Used# [2024-12-18 20:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 17:07:05 [end_date_ymd] => 2024-12-18 20:07:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 17:07:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 20:07:17] Production.INFO: count ==1966 [2024-12-18 20:07:17] Production.ERROR: pbx CDR StartTime 2024-12-18 17:07:05 - End Time 2024-12-18 20:07:05 [2024-12-18 20:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 20:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050485', 'tblTempUsageDetail_20' ) start [2024-12-18 20:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050485', 'tblTempUsageDetail_20' ) end [2024-12-18 20:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050485', 'tblTempVendorCDR_20' ) start [2024-12-18 20:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050485', 'tblTempVendorCDR_20' ) end [2024-12-18 20:07:18] Production.INFO: ProcessCDR(1,14050485,1,1,2) [2024-12-18 20:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050485', 'tblTempUsageDetail_20' ) start [2024-12-18 20:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050485', 'tblTempUsageDetail_20' ) end [2024-12-18 20:07:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 20:07:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 20:07:21] Production.INFO: ==27644== Releasing lock... [2024-12-18 20:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 20:07:21] Production.INFO: 42.5 MB #Memory Used# [2024-12-18 20:08:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 17:08:04 [end_date_ymd] => 2024-12-18 20:08:04 [RateCDR] => 1 ) [2024-12-18 20:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 17:08:04' and `end` < '2024-12-18 20:08:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 20:08:16] Production.INFO: count ==1952 [2024-12-18 20:08:17] Production.ERROR: pbx CDR StartTime 2024-12-18 17:08:04 - End Time 2024-12-18 20:08:04 [2024-12-18 20:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 20:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050490', 'tblTempUsageDetail_20' ) start [2024-12-18 20:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050490', 'tblTempUsageDetail_20' ) end [2024-12-18 20:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050490', 'tblTempVendorCDR_20' ) start [2024-12-18 20:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050490', 'tblTempVendorCDR_20' ) end [2024-12-18 20:08:17] Production.INFO: ProcessCDR(1,14050490,1,1,2) [2024-12-18 20:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050490', 'tblTempUsageDetail_20' ) start [2024-12-18 20:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050490', 'tblTempUsageDetail_20' ) end [2024-12-18 20:08:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 20:08:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 20:08:21] Production.INFO: ==27754== Releasing lock... [2024-12-18 20:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 20:08:21] Production.INFO: 42.75 MB #Memory Used# [2024-12-18 20:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 17:09:05 [end_date_ymd] => 2024-12-18 20:09:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 17:09:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 20:09:17] Production.INFO: count ==1958 [2024-12-18 20:09:17] Production.ERROR: pbx CDR StartTime 2024-12-18 17:09:05 - End Time 2024-12-18 20:09:05 [2024-12-18 20:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 20:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050495', 'tblTempUsageDetail_20' ) start [2024-12-18 20:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050495', 'tblTempUsageDetail_20' ) end [2024-12-18 20:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050495', 'tblTempVendorCDR_20' ) start [2024-12-18 20:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050495', 'tblTempVendorCDR_20' ) end [2024-12-18 20:09:17] Production.INFO: ProcessCDR(1,14050495,1,1,2) [2024-12-18 20:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050495', 'tblTempUsageDetail_20' ) start [2024-12-18 20:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050495', 'tblTempUsageDetail_20' ) end [2024-12-18 20:09:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 20:09:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 20:09:20] Production.INFO: ==27825== Releasing lock... [2024-12-18 20:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 20:09:20] Production.INFO: 42.5 MB #Memory Used# [2024-12-18 20:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 17:10:05 [end_date_ymd] => 2024-12-18 20:10:05 [RateCDR] => 1 ) [2024-12-18 20:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 17:10:05' and `end` < '2024-12-18 20:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 20:10:18] Production.INFO: count ==1947 [2024-12-18 20:10:18] Production.ERROR: pbx CDR StartTime 2024-12-18 17:10:05 - End Time 2024-12-18 20:10:05 [2024-12-18 20:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 20:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050501', 'tblTempUsageDetail_20' ) start [2024-12-18 20:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050501', 'tblTempUsageDetail_20' ) end [2024-12-18 20:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050501', 'tblTempVendorCDR_20' ) start [2024-12-18 20:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050501', 'tblTempVendorCDR_20' ) end [2024-12-18 20:10:18] Production.INFO: ProcessCDR(1,14050501,1,1,2) [2024-12-18 20:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050501', 'tblTempUsageDetail_20' ) start [2024-12-18 20:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050501', 'tblTempUsageDetail_20' ) end [2024-12-18 20:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 20:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 20:10:21] Production.INFO: ==27898== Releasing lock... [2024-12-18 20:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 20:10:21] Production.INFO: 42.5 MB #Memory Used# [2024-12-18 20:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 17:11:04 [end_date_ymd] => 2024-12-18 20:11:04 [RateCDR] => 1 ) [2024-12-18 20:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 17:11:04' and `end` < '2024-12-18 20:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 20:11:17] Production.INFO: count ==1889 [2024-12-18 20:11:17] Production.ERROR: pbx CDR StartTime 2024-12-18 17:11:04 - End Time 2024-12-18 20:11:04 [2024-12-18 20:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 20:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050506', 'tblTempUsageDetail_20' ) start [2024-12-18 20:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050506', 'tblTempUsageDetail_20' ) end [2024-12-18 20:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050506', 'tblTempVendorCDR_20' ) start [2024-12-18 20:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050506', 'tblTempVendorCDR_20' ) end [2024-12-18 20:11:17] Production.INFO: ProcessCDR(1,14050506,1,1,2) [2024-12-18 20:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050506', 'tblTempUsageDetail_20' ) start [2024-12-18 20:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050506', 'tblTempUsageDetail_20' ) end [2024-12-18 20:11:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 20:11:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 20:11:20] Production.INFO: ==27970== Releasing lock... [2024-12-18 20:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 20:11:20] Production.INFO: 42.25 MB #Memory Used# [2024-12-18 20:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 17:12:05 [end_date_ymd] => 2024-12-18 20:12:05 [RateCDR] => 1 ) [2024-12-18 20:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 17:12:05' and `end` < '2024-12-18 20:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 20:12:18] Production.INFO: count ==1897 [2024-12-18 20:12:19] Production.ERROR: pbx CDR StartTime 2024-12-18 17:12:05 - End Time 2024-12-18 20:12:05 [2024-12-18 20:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050511', 'tblTempUsageDetail_20' ) start [2024-12-18 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050511', 'tblTempUsageDetail_20' ) end [2024-12-18 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050511', 'tblTempVendorCDR_20' ) start [2024-12-18 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050511', 'tblTempVendorCDR_20' ) end [2024-12-18 20:12:19] Production.INFO: ProcessCDR(1,14050511,1,1,2) [2024-12-18 20:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050511', 'tblTempUsageDetail_20' ) start [2024-12-18 20:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050511', 'tblTempUsageDetail_20' ) end [2024-12-18 20:12:23] Production.ERROR: pbx prc_insertCDR start [2024-12-18 20:12:23] Production.ERROR: pbx prc_insertCDR end [2024-12-18 20:12:23] Production.INFO: ==28042== Releasing lock... [2024-12-18 20:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 20:12:23] Production.INFO: 42.25 MB #Memory Used# [2024-12-18 20:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 17:13:05 [end_date_ymd] => 2024-12-18 20:13:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 17:13:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 20:13:17] Production.INFO: count ==1953 [2024-12-18 20:13:17] Production.ERROR: pbx CDR StartTime 2024-12-18 17:13:05 - End Time 2024-12-18 20:13:05 [2024-12-18 20:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 20:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050516', 'tblTempUsageDetail_20' ) start [2024-12-18 20:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050516', 'tblTempUsageDetail_20' ) end [2024-12-18 20:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050516', 'tblTempVendorCDR_20' ) start [2024-12-18 20:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050516', 'tblTempVendorCDR_20' ) end [2024-12-18 20:13:17] Production.INFO: ProcessCDR(1,14050516,1,1,2) [2024-12-18 20:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050516', 'tblTempUsageDetail_20' ) start [2024-12-18 20:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050516', 'tblTempUsageDetail_20' ) end [2024-12-18 20:13:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 20:13:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 20:13:21] Production.INFO: ==28113== Releasing lock... [2024-12-18 20:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 20:13:21] Production.INFO: 42.5 MB #Memory Used# [2024-12-18 20:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 17:14:05 [end_date_ymd] => 2024-12-18 20:14:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 17:14:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 20:14:19] Production.INFO: count ==1950 [2024-12-18 20:14:19] Production.ERROR: pbx CDR StartTime 2024-12-18 17:14:05 - End Time 2024-12-18 20:14:05 [2024-12-18 20:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050521', 'tblTempUsageDetail_20' ) start [2024-12-18 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050521', 'tblTempUsageDetail_20' ) end [2024-12-18 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050521', 'tblTempVendorCDR_20' ) start [2024-12-18 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050521', 'tblTempVendorCDR_20' ) end [2024-12-18 20:14:19] Production.INFO: ProcessCDR(1,14050521,1,1,2) [2024-12-18 20:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050521', 'tblTempUsageDetail_20' ) start [2024-12-18 20:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050521', 'tblTempUsageDetail_20' ) end [2024-12-18 20:14:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 20:14:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 20:14:22] Production.INFO: ==28185== Releasing lock... [2024-12-18 20:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 20:14:22] Production.INFO: 42.5 MB #Memory Used# [2024-12-18 20:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 17:15:05 [end_date_ymd] => 2024-12-18 20:15:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 17:15:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 20:15:17] Production.INFO: count ==1932 [2024-12-18 20:15:18] Production.ERROR: pbx CDR StartTime 2024-12-18 17:15:05 - End Time 2024-12-18 20:15:05 [2024-12-18 20:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050526', 'tblTempUsageDetail_20' ) start [2024-12-18 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050526', 'tblTempUsageDetail_20' ) end [2024-12-18 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050526', 'tblTempVendorCDR_20' ) start [2024-12-18 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050526', 'tblTempVendorCDR_20' ) end [2024-12-18 20:15:18] Production.INFO: ProcessCDR(1,14050526,1,1,2) [2024-12-18 20:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050526', 'tblTempUsageDetail_20' ) start [2024-12-18 20:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050526', 'tblTempUsageDetail_20' ) end [2024-12-18 20:15:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 20:15:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 20:15:21] Production.INFO: ==28257== Releasing lock... [2024-12-18 20:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 20:15:21] Production.INFO: 42.25 MB #Memory Used# [2024-12-18 20:16:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 17:16:04 [end_date_ymd] => 2024-12-18 20:16:04 [RateCDR] => 1 ) [2024-12-18 20:16:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 17:16:04' and `end` < '2024-12-18 20:16:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 20:16:17] Production.INFO: count ==1923 [2024-12-18 20:16:17] Production.ERROR: pbx CDR StartTime 2024-12-18 17:16:04 - End Time 2024-12-18 20:16:04 [2024-12-18 20:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 20:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050531', 'tblTempUsageDetail_20' ) start [2024-12-18 20:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050531', 'tblTempUsageDetail_20' ) end [2024-12-18 20:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050531', 'tblTempVendorCDR_20' ) start [2024-12-18 20:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050531', 'tblTempVendorCDR_20' ) end [2024-12-18 20:16:17] Production.INFO: ProcessCDR(1,14050531,1,1,2) [2024-12-18 20:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050531', 'tblTempUsageDetail_20' ) start [2024-12-18 20:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050531', 'tblTempUsageDetail_20' ) end [2024-12-18 20:16:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 20:16:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 20:16:20] Production.INFO: ==28330== Releasing lock... [2024-12-18 20:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 20:16:20] Production.INFO: 42.25 MB #Memory Used# [2024-12-18 20:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 17:17:05 [end_date_ymd] => 2024-12-18 20:17:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 17:17:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 20:17:18] Production.INFO: count ==1919 [2024-12-18 20:17:18] Production.ERROR: pbx CDR StartTime 2024-12-18 17:17:05 - End Time 2024-12-18 20:17:05 [2024-12-18 20:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050536', 'tblTempUsageDetail_20' ) start [2024-12-18 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050536', 'tblTempUsageDetail_20' ) end [2024-12-18 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050536', 'tblTempVendorCDR_20' ) start [2024-12-18 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050536', 'tblTempVendorCDR_20' ) end [2024-12-18 20:17:18] Production.INFO: ProcessCDR(1,14050536,1,1,2) [2024-12-18 20:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050536', 'tblTempUsageDetail_20' ) start [2024-12-18 20:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050536', 'tblTempUsageDetail_20' ) end [2024-12-18 20:17:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 20:17:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 20:17:21] Production.INFO: ==28411== Releasing lock... [2024-12-18 20:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 20:17:21] Production.INFO: 42.25 MB #Memory Used# [2024-12-18 20:18:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 17:18:04 [end_date_ymd] => 2024-12-18 20:18:04 [RateCDR] => 1 ) [2024-12-18 20:18: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` >= '2024-12-18 17:18:04' and `end` < '2024-12-18 20:18: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 ,'') [2024-12-18 20:18:17] Production.INFO: count ==1913 [2024-12-18 20:18:17] Production.ERROR: pbx CDR StartTime 2024-12-18 17:18:04 - End Time 2024-12-18 20:18:04 [2024-12-18 20:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 20:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050541', 'tblTempUsageDetail_20' ) start [2024-12-18 20:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050541', 'tblTempUsageDetail_20' ) end [2024-12-18 20:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050541', 'tblTempVendorCDR_20' ) start [2024-12-18 20:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050541', 'tblTempVendorCDR_20' ) end [2024-12-18 20:18:17] Production.INFO: ProcessCDR(1,14050541,1,1,2) [2024-12-18 20:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050541', 'tblTempUsageDetail_20' ) start [2024-12-18 20:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050541', 'tblTempUsageDetail_20' ) end [2024-12-18 20:18:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 20:18:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 20:18:20] Production.INFO: ==28487== Releasing lock... [2024-12-18 20:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 20:18:20] Production.INFO: 42.5 MB #Memory Used# [2024-12-18 20:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 17:19:05 [end_date_ymd] => 2024-12-18 20:19:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 17:19:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 20:19:17] Production.INFO: count ==1910 [2024-12-18 20:19:18] Production.ERROR: pbx CDR StartTime 2024-12-18 17:19:05 - End Time 2024-12-18 20:19:05 [2024-12-18 20:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050546', 'tblTempUsageDetail_20' ) start [2024-12-18 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050546', 'tblTempUsageDetail_20' ) end [2024-12-18 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050546', 'tblTempVendorCDR_20' ) start [2024-12-18 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050546', 'tblTempVendorCDR_20' ) end [2024-12-18 20:19:18] Production.INFO: ProcessCDR(1,14050546,1,1,2) [2024-12-18 20:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050546', 'tblTempUsageDetail_20' ) start [2024-12-18 20:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050546', 'tblTempUsageDetail_20' ) end [2024-12-18 20:19:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 20:19:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 20:19:21] Production.INFO: ==28560== Releasing lock... [2024-12-18 20:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 20:19:21] Production.INFO: 42 MB #Memory Used# [2024-12-18 20:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 17:20:05 [end_date_ymd] => 2024-12-18 20:20:05 [RateCDR] => 1 ) [2024-12-18 20:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 17:20:05' and `end` < '2024-12-18 20:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 20:20:17] Production.INFO: count ==1906 [2024-12-18 20:20:18] Production.ERROR: pbx CDR StartTime 2024-12-18 17:20:05 - End Time 2024-12-18 20:20:05 [2024-12-18 20:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 20:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050552', 'tblTempUsageDetail_20' ) start [2024-12-18 20:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050552', 'tblTempUsageDetail_20' ) end [2024-12-18 20:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050552', 'tblTempVendorCDR_20' ) start [2024-12-18 20:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050552', 'tblTempVendorCDR_20' ) end [2024-12-18 20:20:18] Production.INFO: ProcessCDR(1,14050552,1,1,2) [2024-12-18 20:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050552', 'tblTempUsageDetail_20' ) start [2024-12-18 20:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050552', 'tblTempUsageDetail_20' ) end [2024-12-18 20:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 20:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 20:20:21] Production.INFO: ==28639== Releasing lock... [2024-12-18 20:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 20:20:21] Production.INFO: 42.25 MB #Memory Used# [2024-12-18 20:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 17:21:04 [end_date_ymd] => 2024-12-18 20:21:04 [RateCDR] => 1 ) [2024-12-18 20:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 17:21:04' and `end` < '2024-12-18 20:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 20:21:17] Production.INFO: count ==1835 [2024-12-18 20:21:17] Production.ERROR: pbx CDR StartTime 2024-12-18 17:21:04 - End Time 2024-12-18 20:21:04 [2024-12-18 20:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 20:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050557', 'tblTempUsageDetail_20' ) start [2024-12-18 20:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050557', 'tblTempUsageDetail_20' ) end [2024-12-18 20:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050557', 'tblTempVendorCDR_20' ) start [2024-12-18 20:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050557', 'tblTempVendorCDR_20' ) end [2024-12-18 20:21:17] Production.INFO: ProcessCDR(1,14050557,1,1,2) [2024-12-18 20:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050557', 'tblTempUsageDetail_20' ) start [2024-12-18 20:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050557', 'tblTempUsageDetail_20' ) end [2024-12-18 20:21:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 20:21:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 20:21:20] Production.INFO: ==28721== Releasing lock... [2024-12-18 20:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 20:21:20] Production.INFO: 41.5 MB #Memory Used# [2024-12-18 20:22:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 17:22:06 [end_date_ymd] => 2024-12-18 20:22:06 [RateCDR] => 1 ) [2024-12-18 20:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 17:22:06' and `end` < '2024-12-18 20:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 20:22:19] Production.INFO: count ==1828 [2024-12-18 20:22:19] Production.ERROR: pbx CDR StartTime 2024-12-18 17:22:06 - End Time 2024-12-18 20:22:06 [2024-12-18 20:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050562', 'tblTempUsageDetail_20' ) start [2024-12-18 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050562', 'tblTempUsageDetail_20' ) end [2024-12-18 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050562', 'tblTempVendorCDR_20' ) start [2024-12-18 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050562', 'tblTempVendorCDR_20' ) end [2024-12-18 20:22:19] Production.INFO: ProcessCDR(1,14050562,1,1,2) [2024-12-18 20:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050562', 'tblTempUsageDetail_20' ) start [2024-12-18 20:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050562', 'tblTempUsageDetail_20' ) end [2024-12-18 20:22:23] Production.ERROR: pbx prc_insertCDR start [2024-12-18 20:22:23] Production.ERROR: pbx prc_insertCDR end [2024-12-18 20:22:23] Production.INFO: ==28804== Releasing lock... [2024-12-18 20:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 20:22:23] Production.INFO: 42 MB #Memory Used# [2024-12-18 20:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 17:23:05 [end_date_ymd] => 2024-12-18 20:23:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 17:23:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 20:23:17] Production.INFO: count ==1823 [2024-12-18 20:23:18] Production.ERROR: pbx CDR StartTime 2024-12-18 17:23:05 - End Time 2024-12-18 20:23:05 [2024-12-18 20:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050567', 'tblTempUsageDetail_20' ) start [2024-12-18 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050567', 'tblTempUsageDetail_20' ) end [2024-12-18 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050567', 'tblTempVendorCDR_20' ) start [2024-12-18 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050567', 'tblTempVendorCDR_20' ) end [2024-12-18 20:23:18] Production.INFO: ProcessCDR(1,14050567,1,1,2) [2024-12-18 20:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050567', 'tblTempUsageDetail_20' ) start [2024-12-18 20:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050567', 'tblTempUsageDetail_20' ) end [2024-12-18 20:23:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 20:23:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 20:23:21] Production.INFO: ==28936== Releasing lock... [2024-12-18 20:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 20:23:21] Production.INFO: 41.75 MB #Memory Used# [2024-12-18 20:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 17:24:05 [end_date_ymd] => 2024-12-18 20:24:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 17:24:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 20:24:17] Production.INFO: count ==1817 [2024-12-18 20:24:18] Production.ERROR: pbx CDR StartTime 2024-12-18 17:24:05 - End Time 2024-12-18 20:24:05 [2024-12-18 20:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050572', 'tblTempUsageDetail_20' ) start [2024-12-18 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050572', 'tblTempUsageDetail_20' ) end [2024-12-18 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050572', 'tblTempVendorCDR_20' ) start [2024-12-18 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050572', 'tblTempVendorCDR_20' ) end [2024-12-18 20:24:18] Production.INFO: ProcessCDR(1,14050572,1,1,2) [2024-12-18 20:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050572', 'tblTempUsageDetail_20' ) start [2024-12-18 20:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050572', 'tblTempUsageDetail_20' ) end [2024-12-18 20:24:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 20:24:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 20:24:21] Production.INFO: ==29013== Releasing lock... [2024-12-18 20:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 20:24:21] Production.INFO: 41.75 MB #Memory Used# [2024-12-18 20:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 17:25:04 [end_date_ymd] => 2024-12-18 20:25:04 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 17:25:04' and `end` < '2024-12-18 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 ,'') [2024-12-18 20:25:16] Production.INFO: count ==1812 [2024-12-18 20:25:17] Production.ERROR: pbx CDR StartTime 2024-12-18 17:25:04 - End Time 2024-12-18 20:25:04 [2024-12-18 20:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 20:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050577', 'tblTempUsageDetail_20' ) start [2024-12-18 20:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050577', 'tblTempUsageDetail_20' ) end [2024-12-18 20:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050577', 'tblTempVendorCDR_20' ) start [2024-12-18 20:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050577', 'tblTempVendorCDR_20' ) end [2024-12-18 20:25:17] Production.INFO: ProcessCDR(1,14050577,1,1,2) [2024-12-18 20:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050577', 'tblTempUsageDetail_20' ) start [2024-12-18 20:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050577', 'tblTempUsageDetail_20' ) end [2024-12-18 20:25:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 20:25:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 20:25:21] Production.INFO: ==29092== Releasing lock... [2024-12-18 20:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 20:25:21] Production.INFO: 42 MB #Memory Used# [2024-12-18 20:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 17:26:05 [end_date_ymd] => 2024-12-18 20:26:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 17:26:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 20:26:17] Production.INFO: count ==1807 [2024-12-18 20:26:18] Production.ERROR: pbx CDR StartTime 2024-12-18 17:26:05 - End Time 2024-12-18 20:26:05 [2024-12-18 20:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050582', 'tblTempUsageDetail_20' ) start [2024-12-18 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050582', 'tblTempUsageDetail_20' ) end [2024-12-18 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050582', 'tblTempVendorCDR_20' ) start [2024-12-18 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050582', 'tblTempVendorCDR_20' ) end [2024-12-18 20:26:18] Production.INFO: ProcessCDR(1,14050582,1,1,2) [2024-12-18 20:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050582', 'tblTempUsageDetail_20' ) start [2024-12-18 20:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050582', 'tblTempUsageDetail_20' ) end [2024-12-18 20:26:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 20:26:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 20:26:21] Production.INFO: ==29173== Releasing lock... [2024-12-18 20:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 20:26:21] Production.INFO: 41.5 MB #Memory Used# [2024-12-18 20:27:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 17:27:04 [end_date_ymd] => 2024-12-18 20:27:04 [RateCDR] => 1 ) [2024-12-18 20:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 17:27:04' and `end` < '2024-12-18 20:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 20:27:17] Production.INFO: count ==1803 [2024-12-18 20:27:17] Production.ERROR: pbx CDR StartTime 2024-12-18 17:27:04 - End Time 2024-12-18 20:27:04 [2024-12-18 20:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 20:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050587', 'tblTempUsageDetail_20' ) start [2024-12-18 20:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050587', 'tblTempUsageDetail_20' ) end [2024-12-18 20:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050587', 'tblTempVendorCDR_20' ) start [2024-12-18 20:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050587', 'tblTempVendorCDR_20' ) end [2024-12-18 20:27:17] Production.INFO: ProcessCDR(1,14050587,1,1,2) [2024-12-18 20:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050587', 'tblTempUsageDetail_20' ) start [2024-12-18 20:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050587', 'tblTempUsageDetail_20' ) end [2024-12-18 20:27:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 20:27:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 20:27:21] Production.INFO: ==29251== Releasing lock... [2024-12-18 20:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 20:27:21] Production.INFO: 41.25 MB #Memory Used# [2024-12-18 20:28:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 17:28:04 [end_date_ymd] => 2024-12-18 20:28:04 [RateCDR] => 1 ) [2024-12-18 20:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 17:28:04' and `end` < '2024-12-18 20:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 20:28:16] Production.INFO: count ==1802 [2024-12-18 20:28:17] Production.ERROR: pbx CDR StartTime 2024-12-18 17:28:04 - End Time 2024-12-18 20:28:04 [2024-12-18 20:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 20:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050592', 'tblTempUsageDetail_20' ) start [2024-12-18 20:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050592', 'tblTempUsageDetail_20' ) end [2024-12-18 20:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050592', 'tblTempVendorCDR_20' ) start [2024-12-18 20:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050592', 'tblTempVendorCDR_20' ) end [2024-12-18 20:28:17] Production.INFO: ProcessCDR(1,14050592,1,1,2) [2024-12-18 20:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050592', 'tblTempUsageDetail_20' ) start [2024-12-18 20:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050592', 'tblTempUsageDetail_20' ) end [2024-12-18 20:28:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 20:28:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 20:28:20] Production.INFO: ==29326== Releasing lock... [2024-12-18 20:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 20:28:20] Production.INFO: 41.5 MB #Memory Used# [2024-12-18 20:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 17:29:05 [end_date_ymd] => 2024-12-18 20:29:05 [RateCDR] => 1 ) [2024-12-18 20:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 17:29:05' and `end` < '2024-12-18 20:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 20:29:17] Production.INFO: count ==1792 [2024-12-18 20:29:17] Production.ERROR: pbx CDR StartTime 2024-12-18 17:29:05 - End Time 2024-12-18 20:29:05 [2024-12-18 20:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 20:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050597', 'tblTempUsageDetail_20' ) start [2024-12-18 20:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050597', 'tblTempUsageDetail_20' ) end [2024-12-18 20:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050597', 'tblTempVendorCDR_20' ) start [2024-12-18 20:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050597', 'tblTempVendorCDR_20' ) end [2024-12-18 20:29:17] Production.INFO: ProcessCDR(1,14050597,1,1,2) [2024-12-18 20:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050597', 'tblTempUsageDetail_20' ) start [2024-12-18 20:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050597', 'tblTempUsageDetail_20' ) end [2024-12-18 20:29:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 20:29:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 20:29:21] Production.INFO: ==29412== Releasing lock... [2024-12-18 20:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 20:29:21] Production.INFO: 41.5 MB #Memory Used# [2024-12-18 20:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 17:30:05 [end_date_ymd] => 2024-12-18 20:30:05 [RateCDR] => 1 ) [2024-12-18 20:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 17:30:05' and `end` < '2024-12-18 20:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 20:30:17] Production.INFO: count ==1789 [2024-12-18 20:30:17] Production.ERROR: pbx CDR StartTime 2024-12-18 17:30:05 - End Time 2024-12-18 20:30:05 [2024-12-18 20:30:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 20:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050603', 'tblTempUsageDetail_20' ) start [2024-12-18 20:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050603', 'tblTempUsageDetail_20' ) end [2024-12-18 20:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050603', 'tblTempVendorCDR_20' ) start [2024-12-18 20:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050603', 'tblTempVendorCDR_20' ) end [2024-12-18 20:30:17] Production.INFO: ProcessCDR(1,14050603,1,1,2) [2024-12-18 20:30:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:30:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:30:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:30:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050603', 'tblTempUsageDetail_20' ) start [2024-12-18 20:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050603', 'tblTempUsageDetail_20' ) end [2024-12-18 20:30:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 20:30:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 20:30:20] Production.INFO: ==29493== Releasing lock... [2024-12-18 20:30:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 20:30:20] Production.INFO: 41.25 MB #Memory Used# [2024-12-18 20:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 17:31:04 [end_date_ymd] => 2024-12-18 20:31:04 [RateCDR] => 1 ) [2024-12-18 20:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 17:31:04' and `end` < '2024-12-18 20:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 20:31:17] Production.INFO: count ==1742 [2024-12-18 20:31:17] Production.ERROR: pbx CDR StartTime 2024-12-18 17:31:04 - End Time 2024-12-18 20:31:04 [2024-12-18 20:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 20:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050608', 'tblTempUsageDetail_20' ) start [2024-12-18 20:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050608', 'tblTempUsageDetail_20' ) end [2024-12-18 20:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050608', 'tblTempVendorCDR_20' ) start [2024-12-18 20:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050608', 'tblTempVendorCDR_20' ) end [2024-12-18 20:31:17] Production.INFO: ProcessCDR(1,14050608,1,1,2) [2024-12-18 20:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050608', 'tblTempUsageDetail_20' ) start [2024-12-18 20:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050608', 'tblTempUsageDetail_20' ) end [2024-12-18 20:31:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 20:31:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 20:31:22] Production.INFO: ==29576== Releasing lock... [2024-12-18 20:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 20:31:22] Production.INFO: 41 MB #Memory Used# [2024-12-18 20:32:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 17:32:04 [end_date_ymd] => 2024-12-18 20:32:04 [RateCDR] => 1 ) [2024-12-18 20:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 17:32:04' and `end` < '2024-12-18 20:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 20:32:17] Production.INFO: count ==1740 [2024-12-18 20:32:17] Production.ERROR: pbx CDR StartTime 2024-12-18 17:32:04 - End Time 2024-12-18 20:32:04 [2024-12-18 20:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 20:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050613', 'tblTempUsageDetail_20' ) start [2024-12-18 20:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050613', 'tblTempUsageDetail_20' ) end [2024-12-18 20:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050613', 'tblTempVendorCDR_20' ) start [2024-12-18 20:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050613', 'tblTempVendorCDR_20' ) end [2024-12-18 20:32:17] Production.INFO: ProcessCDR(1,14050613,1,1,2) [2024-12-18 20:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050613', 'tblTempUsageDetail_20' ) start [2024-12-18 20:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050613', 'tblTempUsageDetail_20' ) end [2024-12-18 20:32:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 20:32:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 20:32:20] Production.INFO: ==29654== Releasing lock... [2024-12-18 20:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 20:32:20] Production.INFO: 41 MB #Memory Used# [2024-12-18 20:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 17:33:04 [end_date_ymd] => 2024-12-18 20:33:04 [RateCDR] => 1 ) [2024-12-18 20:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 17:33:04' and `end` < '2024-12-18 20:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 20:33:16] Production.INFO: count ==1735 [2024-12-18 20:33:17] Production.ERROR: pbx CDR StartTime 2024-12-18 17:33:04 - End Time 2024-12-18 20:33:04 [2024-12-18 20:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 20:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050618', 'tblTempUsageDetail_20' ) start [2024-12-18 20:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050618', 'tblTempUsageDetail_20' ) end [2024-12-18 20:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050618', 'tblTempVendorCDR_20' ) start [2024-12-18 20:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050618', 'tblTempVendorCDR_20' ) end [2024-12-18 20:33:17] Production.INFO: ProcessCDR(1,14050618,1,1,2) [2024-12-18 20:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050618', 'tblTempUsageDetail_20' ) start [2024-12-18 20:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050618', 'tblTempUsageDetail_20' ) end [2024-12-18 20:33:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 20:33:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 20:33:21] Production.INFO: ==29733== Releasing lock... [2024-12-18 20:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 20:33:21] Production.INFO: 40.75 MB #Memory Used# [2024-12-18 20:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 17:34:05 [end_date_ymd] => 2024-12-18 20:34:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 17:34:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 20:34:18] Production.INFO: count ==1735 [2024-12-18 20:34:18] Production.ERROR: pbx CDR StartTime 2024-12-18 17:34:05 - End Time 2024-12-18 20:34:05 [2024-12-18 20:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050623', 'tblTempUsageDetail_20' ) start [2024-12-18 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050623', 'tblTempUsageDetail_20' ) end [2024-12-18 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050623', 'tblTempVendorCDR_20' ) start [2024-12-18 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050623', 'tblTempVendorCDR_20' ) end [2024-12-18 20:34:18] Production.INFO: ProcessCDR(1,14050623,1,1,2) [2024-12-18 20:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050623', 'tblTempUsageDetail_20' ) start [2024-12-18 20:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050623', 'tblTempUsageDetail_20' ) end [2024-12-18 20:34:23] Production.ERROR: pbx prc_insertCDR start [2024-12-18 20:34:23] Production.ERROR: pbx prc_insertCDR end [2024-12-18 20:34:23] Production.INFO: ==29811== Releasing lock... [2024-12-18 20:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 20:34:23] Production.INFO: 40.75 MB #Memory Used# [2024-12-18 20:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 17:35:05 [end_date_ymd] => 2024-12-18 20:35:05 [RateCDR] => 1 ) [2024-12-18 20:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 17:35:05' and `end` < '2024-12-18 20:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 20:35:17] Production.INFO: count ==1730 [2024-12-18 20:35:17] Production.ERROR: pbx CDR StartTime 2024-12-18 17:35:05 - End Time 2024-12-18 20:35:05 [2024-12-18 20:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 20:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050628', 'tblTempUsageDetail_20' ) start [2024-12-18 20:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050628', 'tblTempUsageDetail_20' ) end [2024-12-18 20:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050628', 'tblTempVendorCDR_20' ) start [2024-12-18 20:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050628', 'tblTempVendorCDR_20' ) end [2024-12-18 20:35:17] Production.INFO: ProcessCDR(1,14050628,1,1,2) [2024-12-18 20:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050628', 'tblTempUsageDetail_20' ) start [2024-12-18 20:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050628', 'tblTempUsageDetail_20' ) end [2024-12-18 20:35:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 20:35:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 20:35:20] Production.INFO: ==29889== Releasing lock... [2024-12-18 20:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 20:35:20] Production.INFO: 41 MB #Memory Used# [2024-12-18 20:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 17:36:05 [end_date_ymd] => 2024-12-18 20:36:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 17:36:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 20:36:17] Production.INFO: count ==1721 [2024-12-18 20:36:18] Production.ERROR: pbx CDR StartTime 2024-12-18 17:36:05 - End Time 2024-12-18 20:36:05 [2024-12-18 20:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050633', 'tblTempUsageDetail_20' ) start [2024-12-18 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050633', 'tblTempUsageDetail_20' ) end [2024-12-18 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050633', 'tblTempVendorCDR_20' ) start [2024-12-18 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050633', 'tblTempVendorCDR_20' ) end [2024-12-18 20:36:18] Production.INFO: ProcessCDR(1,14050633,1,1,2) [2024-12-18 20:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050633', 'tblTempUsageDetail_20' ) start [2024-12-18 20:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050633', 'tblTempUsageDetail_20' ) end [2024-12-18 20:36:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 20:36:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 20:36:21] Production.INFO: ==29964== Releasing lock... [2024-12-18 20:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 20:36:21] Production.INFO: 41 MB #Memory Used# [2024-12-18 20:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 17:37:04 [end_date_ymd] => 2024-12-18 20:37:04 [RateCDR] => 1 ) [2024-12-18 20: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` >= '2024-12-18 17:37:04' and `end` < '2024-12-18 20: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 ,'') [2024-12-18 20:37:17] Production.INFO: count ==1720 [2024-12-18 20:37:17] Production.ERROR: pbx CDR StartTime 2024-12-18 17:37:04 - End Time 2024-12-18 20:37:04 [2024-12-18 20:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 20:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050638', 'tblTempUsageDetail_20' ) start [2024-12-18 20:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050638', 'tblTempUsageDetail_20' ) end [2024-12-18 20:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050638', 'tblTempVendorCDR_20' ) start [2024-12-18 20:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050638', 'tblTempVendorCDR_20' ) end [2024-12-18 20:37:17] Production.INFO: ProcessCDR(1,14050638,1,1,2) [2024-12-18 20:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050638', 'tblTempUsageDetail_20' ) start [2024-12-18 20:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050638', 'tblTempUsageDetail_20' ) end [2024-12-18 20:37:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 20:37:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 20:37:22] Production.INFO: ==30042== Releasing lock... [2024-12-18 20:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 20:37:22] Production.INFO: 40.75 MB #Memory Used# [2024-12-18 20:38:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 17:38:04 [end_date_ymd] => 2024-12-18 20:38:04 [RateCDR] => 1 ) [2024-12-18 20:38:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 17:38:04' and `end` < '2024-12-18 20:38:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 20:38:17] Production.INFO: count ==1724 [2024-12-18 20:38:17] Production.ERROR: pbx CDR StartTime 2024-12-18 17:38:04 - End Time 2024-12-18 20:38:04 [2024-12-18 20:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 20:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050643', 'tblTempUsageDetail_20' ) start [2024-12-18 20:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050643', 'tblTempUsageDetail_20' ) end [2024-12-18 20:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050643', 'tblTempVendorCDR_20' ) start [2024-12-18 20:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050643', 'tblTempVendorCDR_20' ) end [2024-12-18 20:38:17] Production.INFO: ProcessCDR(1,14050643,1,1,2) [2024-12-18 20:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050643', 'tblTempUsageDetail_20' ) start [2024-12-18 20:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050643', 'tblTempUsageDetail_20' ) end [2024-12-18 20:38:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 20:38:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 20:38:22] Production.INFO: ==30116== Releasing lock... [2024-12-18 20:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 20:38:22] Production.INFO: 41.25 MB #Memory Used# [2024-12-18 20:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 17:39:04 [end_date_ymd] => 2024-12-18 20:39:04 [RateCDR] => 1 ) [2024-12-18 20:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 17:39:04' and `end` < '2024-12-18 20:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 20:39:17] Production.INFO: count ==1723 [2024-12-18 20:39:17] Production.ERROR: pbx CDR StartTime 2024-12-18 17:39:04 - End Time 2024-12-18 20:39:04 [2024-12-18 20:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 20:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050648', 'tblTempUsageDetail_20' ) start [2024-12-18 20:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050648', 'tblTempUsageDetail_20' ) end [2024-12-18 20:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050648', 'tblTempVendorCDR_20' ) start [2024-12-18 20:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050648', 'tblTempVendorCDR_20' ) end [2024-12-18 20:39:17] Production.INFO: ProcessCDR(1,14050648,1,1,2) [2024-12-18 20:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050648', 'tblTempUsageDetail_20' ) start [2024-12-18 20:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050648', 'tblTempUsageDetail_20' ) end [2024-12-18 20:39:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 20:39:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 20:39:20] Production.INFO: ==30230== Releasing lock... [2024-12-18 20:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 20:39:20] Production.INFO: 41 MB #Memory Used# [2024-12-18 20:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 17:40:05 [end_date_ymd] => 2024-12-18 20:40:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 17:40:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 20:40:18] Production.INFO: count ==1719 [2024-12-18 20:40:18] Production.ERROR: pbx CDR StartTime 2024-12-18 17:40:05 - End Time 2024-12-18 20:40:05 [2024-12-18 20:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 20:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050653', 'tblTempUsageDetail_20' ) start [2024-12-18 20:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050653', 'tblTempUsageDetail_20' ) end [2024-12-18 20:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050653', 'tblTempVendorCDR_20' ) start [2024-12-18 20:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050653', 'tblTempVendorCDR_20' ) end [2024-12-18 20:40:18] Production.INFO: ProcessCDR(1,14050653,1,1,2) [2024-12-18 20:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050653', 'tblTempUsageDetail_20' ) start [2024-12-18 20:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050653', 'tblTempUsageDetail_20' ) end [2024-12-18 20:40:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 20:40:23] Production.ERROR: pbx prc_insertCDR end [2024-12-18 20:40:23] Production.INFO: ==30303== Releasing lock... [2024-12-18 20:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 20:40:23] Production.INFO: 41 MB #Memory Used# [2024-12-18 20:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 17:41:05 [end_date_ymd] => 2024-12-18 20:41:05 [RateCDR] => 1 ) [2024-12-18 20:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 17:41:05' and `end` < '2024-12-18 20:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 20:41:17] Production.INFO: count ==1661 [2024-12-18 20:41:17] Production.ERROR: pbx CDR StartTime 2024-12-18 17:41:05 - End Time 2024-12-18 20:41:05 [2024-12-18 20:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 20:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050659', 'tblTempUsageDetail_20' ) start [2024-12-18 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050659', 'tblTempUsageDetail_20' ) end [2024-12-18 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050659', 'tblTempVendorCDR_20' ) start [2024-12-18 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050659', 'tblTempVendorCDR_20' ) end [2024-12-18 20:41:18] Production.INFO: ProcessCDR(1,14050659,1,1,2) [2024-12-18 20:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050659', 'tblTempUsageDetail_20' ) start [2024-12-18 20:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050659', 'tblTempUsageDetail_20' ) end [2024-12-18 20:41:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 20:41:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 20:41:21] Production.INFO: ==30377== Releasing lock... [2024-12-18 20:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 20:41:21] Production.INFO: 40.5 MB #Memory Used# [2024-12-18 20:42:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 17:42:04 [end_date_ymd] => 2024-12-18 20:42:04 [RateCDR] => 1 ) [2024-12-18 20:42:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 17:42:04' and `end` < '2024-12-18 20:42:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 20:42:17] Production.INFO: count ==1659 [2024-12-18 20:42:17] Production.ERROR: pbx CDR StartTime 2024-12-18 17:42:04 - End Time 2024-12-18 20:42:04 [2024-12-18 20:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 20:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050664', 'tblTempUsageDetail_20' ) start [2024-12-18 20:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050664', 'tblTempUsageDetail_20' ) end [2024-12-18 20:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050664', 'tblTempVendorCDR_20' ) start [2024-12-18 20:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050664', 'tblTempVendorCDR_20' ) end [2024-12-18 20:42:17] Production.INFO: ProcessCDR(1,14050664,1,1,2) [2024-12-18 20:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050664', 'tblTempUsageDetail_20' ) start [2024-12-18 20:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050664', 'tblTempUsageDetail_20' ) end [2024-12-18 20:42:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 20:42:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 20:42:21] Production.INFO: ==30448== Releasing lock... [2024-12-18 20:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 20:42:21] Production.INFO: 40.5 MB #Memory Used# [2024-12-18 20:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 17:43:05 [end_date_ymd] => 2024-12-18 20:43:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 17:43:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 20:43:17] Production.INFO: count ==1659 [2024-12-18 20:43:17] Production.ERROR: pbx CDR StartTime 2024-12-18 17:43:05 - End Time 2024-12-18 20:43:05 [2024-12-18 20:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 20:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050669', 'tblTempUsageDetail_20' ) start [2024-12-18 20:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050669', 'tblTempUsageDetail_20' ) end [2024-12-18 20:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050669', 'tblTempVendorCDR_20' ) start [2024-12-18 20:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050669', 'tblTempVendorCDR_20' ) end [2024-12-18 20:43:17] Production.INFO: ProcessCDR(1,14050669,1,1,2) [2024-12-18 20:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050669', 'tblTempUsageDetail_20' ) start [2024-12-18 20:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050669', 'tblTempUsageDetail_20' ) end [2024-12-18 20:43:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 20:43:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 20:43:22] Production.INFO: ==30523== Releasing lock... [2024-12-18 20:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 20:43:22] Production.INFO: 40.5 MB #Memory Used# [2024-12-18 20:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 17:44:05 [end_date_ymd] => 2024-12-18 20:44:05 [RateCDR] => 1 ) [2024-12-18 20:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 17:44:05' and `end` < '2024-12-18 20:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 20:44:17] Production.INFO: count ==1651 [2024-12-18 20:44:17] Production.ERROR: pbx CDR StartTime 2024-12-18 17:44:05 - End Time 2024-12-18 20:44:05 [2024-12-18 20:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 20:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050674', 'tblTempUsageDetail_20' ) start [2024-12-18 20:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050674', 'tblTempUsageDetail_20' ) end [2024-12-18 20:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050674', 'tblTempVendorCDR_20' ) start [2024-12-18 20:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050674', 'tblTempVendorCDR_20' ) end [2024-12-18 20:44:17] Production.INFO: ProcessCDR(1,14050674,1,1,2) [2024-12-18 20:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050674', 'tblTempUsageDetail_20' ) start [2024-12-18 20:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050674', 'tblTempUsageDetail_20' ) end [2024-12-18 20:44:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 20:44:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 20:44:20] Production.INFO: ==30597== Releasing lock... [2024-12-18 20:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 20:44:20] Production.INFO: 40.5 MB #Memory Used# [2024-12-18 20:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 17:45:05 [end_date_ymd] => 2024-12-18 20:45:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 17:45:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 20:45:17] Production.INFO: count ==1655 [2024-12-18 20:45:17] Production.ERROR: pbx CDR StartTime 2024-12-18 17:45:05 - End Time 2024-12-18 20:45:05 [2024-12-18 20:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 20:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050679', 'tblTempUsageDetail_20' ) start [2024-12-18 20:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050679', 'tblTempUsageDetail_20' ) end [2024-12-18 20:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050679', 'tblTempVendorCDR_20' ) start [2024-12-18 20:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050679', 'tblTempVendorCDR_20' ) end [2024-12-18 20:45:17] Production.INFO: ProcessCDR(1,14050679,1,1,2) [2024-12-18 20:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050679', 'tblTempUsageDetail_20' ) start [2024-12-18 20:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050679', 'tblTempUsageDetail_20' ) end [2024-12-18 20:45:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 20:45:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 20:45:22] Production.INFO: ==30667== Releasing lock... [2024-12-18 20:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 20:45:22] Production.INFO: 40.5 MB #Memory Used# [2024-12-18 20:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 17:46:05 [end_date_ymd] => 2024-12-18 20:46:05 [RateCDR] => 1 ) [2024-12-18 20:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 17:46:05' and `end` < '2024-12-18 20:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 20:46:18] Production.INFO: count ==1659 [2024-12-18 20:46:18] Production.ERROR: pbx CDR StartTime 2024-12-18 17:46:05 - End Time 2024-12-18 20:46:05 [2024-12-18 20:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050684', 'tblTempUsageDetail_20' ) start [2024-12-18 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050684', 'tblTempUsageDetail_20' ) end [2024-12-18 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050684', 'tblTempVendorCDR_20' ) start [2024-12-18 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050684', 'tblTempVendorCDR_20' ) end [2024-12-18 20:46:18] Production.INFO: ProcessCDR(1,14050684,1,1,2) [2024-12-18 20:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050684', 'tblTempUsageDetail_20' ) start [2024-12-18 20:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050684', 'tblTempUsageDetail_20' ) end [2024-12-18 20:46:23] Production.ERROR: pbx prc_insertCDR start [2024-12-18 20:46:23] Production.ERROR: pbx prc_insertCDR end [2024-12-18 20:46:23] Production.INFO: ==30740== Releasing lock... [2024-12-18 20:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 20:46:23] Production.INFO: 40.5 MB #Memory Used# [2024-12-18 20:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 17:47:05 [end_date_ymd] => 2024-12-18 20:47:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 17:47:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 20:47:17] Production.INFO: count ==1664 [2024-12-18 20:47:17] Production.ERROR: pbx CDR StartTime 2024-12-18 17:47:05 - End Time 2024-12-18 20:47:05 [2024-12-18 20:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 20:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050689', 'tblTempUsageDetail_20' ) start [2024-12-18 20:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050689', 'tblTempUsageDetail_20' ) end [2024-12-18 20:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050689', 'tblTempVendorCDR_20' ) start [2024-12-18 20:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050689', 'tblTempVendorCDR_20' ) end [2024-12-18 20:47:17] Production.INFO: ProcessCDR(1,14050689,1,1,2) [2024-12-18 20:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050689', 'tblTempUsageDetail_20' ) start [2024-12-18 20:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050689', 'tblTempUsageDetail_20' ) end [2024-12-18 20:47:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 20:47:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 20:47:22] Production.INFO: ==30815== Releasing lock... [2024-12-18 20:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 20:47:22] Production.INFO: 40.25 MB #Memory Used# [2024-12-18 20:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 17:48:05 [end_date_ymd] => 2024-12-18 20:48:05 [RateCDR] => 1 ) [2024-12-18 20:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 17:48:05' and `end` < '2024-12-18 20:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 20:48:17] Production.INFO: count ==1660 [2024-12-18 20:48:17] Production.ERROR: pbx CDR StartTime 2024-12-18 17:48:05 - End Time 2024-12-18 20:48:05 [2024-12-18 20:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 20:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050694', 'tblTempUsageDetail_20' ) start [2024-12-18 20:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050694', 'tblTempUsageDetail_20' ) end [2024-12-18 20:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050694', 'tblTempVendorCDR_20' ) start [2024-12-18 20:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050694', 'tblTempVendorCDR_20' ) end [2024-12-18 20:48:17] Production.INFO: ProcessCDR(1,14050694,1,1,2) [2024-12-18 20:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050694', 'tblTempUsageDetail_20' ) start [2024-12-18 20:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050694', 'tblTempUsageDetail_20' ) end [2024-12-18 20:48:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 20:48:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 20:48:22] Production.INFO: ==30888== Releasing lock... [2024-12-18 20:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 20:48:22] Production.INFO: 40.5 MB #Memory Used# [2024-12-18 20:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 17:49:04 [end_date_ymd] => 2024-12-18 20:49:04 [RateCDR] => 1 ) [2024-12-18 20:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 17:49:04' and `end` < '2024-12-18 20:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 20:49:17] Production.INFO: count ==1657 [2024-12-18 20:49:17] Production.ERROR: pbx CDR StartTime 2024-12-18 17:49:04 - End Time 2024-12-18 20:49:04 [2024-12-18 20:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 20:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050699', 'tblTempUsageDetail_20' ) start [2024-12-18 20:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050699', 'tblTempUsageDetail_20' ) end [2024-12-18 20:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050699', 'tblTempVendorCDR_20' ) start [2024-12-18 20:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050699', 'tblTempVendorCDR_20' ) end [2024-12-18 20:49:17] Production.INFO: ProcessCDR(1,14050699,1,1,2) [2024-12-18 20:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050699', 'tblTempUsageDetail_20' ) start [2024-12-18 20:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050699', 'tblTempUsageDetail_20' ) end [2024-12-18 20:49:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 20:49:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 20:49:21] Production.INFO: ==30959== Releasing lock... [2024-12-18 20:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 20:49:21] Production.INFO: 40.5 MB #Memory Used# [2024-12-18 20:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 17:50:05 [end_date_ymd] => 2024-12-18 20:50:05 [RateCDR] => 1 ) [2024-12-18 20:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 17:50:05' and `end` < '2024-12-18 20:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 20:50:18] Production.INFO: count ==1657 [2024-12-18 20:50:18] Production.ERROR: pbx CDR StartTime 2024-12-18 17:50:05 - End Time 2024-12-18 20:50:05 [2024-12-18 20:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 20:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050705', 'tblTempUsageDetail_20' ) start [2024-12-18 20:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050705', 'tblTempUsageDetail_20' ) end [2024-12-18 20:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050705', 'tblTempVendorCDR_20' ) start [2024-12-18 20:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050705', 'tblTempVendorCDR_20' ) end [2024-12-18 20:50:18] Production.INFO: ProcessCDR(1,14050705,1,1,2) [2024-12-18 20:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050705', 'tblTempUsageDetail_20' ) start [2024-12-18 20:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050705', 'tblTempUsageDetail_20' ) end [2024-12-18 20:50:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 20:50:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 20:50:21] Production.INFO: ==31035== Releasing lock... [2024-12-18 20:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 20:50:21] Production.INFO: 40.5 MB #Memory Used# [2024-12-18 20:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 17:51:04 [end_date_ymd] => 2024-12-18 20:51:04 [RateCDR] => 1 ) [2024-12-18 20:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 17:51:04' and `end` < '2024-12-18 20:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 20:51:17] Production.INFO: count ==1648 [2024-12-18 20:51:17] Production.ERROR: pbx CDR StartTime 2024-12-18 17:51:04 - End Time 2024-12-18 20:51:04 [2024-12-18 20:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 20:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050710', 'tblTempUsageDetail_20' ) start [2024-12-18 20:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050710', 'tblTempUsageDetail_20' ) end [2024-12-18 20:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050710', 'tblTempVendorCDR_20' ) start [2024-12-18 20:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050710', 'tblTempVendorCDR_20' ) end [2024-12-18 20:51:17] Production.INFO: ProcessCDR(1,14050710,1,1,2) [2024-12-18 20:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050710', 'tblTempUsageDetail_20' ) start [2024-12-18 20:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050710', 'tblTempUsageDetail_20' ) end [2024-12-18 20:51:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 20:51:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 20:51:21] Production.INFO: ==31112== Releasing lock... [2024-12-18 20:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 20:51:21] Production.INFO: 40.25 MB #Memory Used# [2024-12-18 20:52:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 17:52:04 [end_date_ymd] => 2024-12-18 20:52:04 [RateCDR] => 1 ) [2024-12-18 20:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 17:52:04' and `end` < '2024-12-18 20:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 20:52:17] Production.INFO: count ==1626 [2024-12-18 20:52:17] Production.ERROR: pbx CDR StartTime 2024-12-18 17:52:04 - End Time 2024-12-18 20:52:04 [2024-12-18 20:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 20:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050715', 'tblTempUsageDetail_20' ) start [2024-12-18 20:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050715', 'tblTempUsageDetail_20' ) end [2024-12-18 20:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050715', 'tblTempVendorCDR_20' ) start [2024-12-18 20:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050715', 'tblTempVendorCDR_20' ) end [2024-12-18 20:52:17] Production.INFO: ProcessCDR(1,14050715,1,1,2) [2024-12-18 20:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050715', 'tblTempUsageDetail_20' ) start [2024-12-18 20:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050715', 'tblTempUsageDetail_20' ) end [2024-12-18 20:52:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 20:52:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 20:52:20] Production.INFO: ==31188== Releasing lock... [2024-12-18 20:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 20:52:20] Production.INFO: 40.25 MB #Memory Used# [2024-12-18 20:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 17:53:05 [end_date_ymd] => 2024-12-18 20:53:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 17:53:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 20:53:17] Production.INFO: count ==1628 [2024-12-18 20:53:17] Production.ERROR: pbx CDR StartTime 2024-12-18 17:53:05 - End Time 2024-12-18 20:53:05 [2024-12-18 20:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 20:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050720', 'tblTempUsageDetail_20' ) start [2024-12-18 20:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050720', 'tblTempUsageDetail_20' ) end [2024-12-18 20:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050720', 'tblTempVendorCDR_20' ) start [2024-12-18 20:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050720', 'tblTempVendorCDR_20' ) end [2024-12-18 20:53:17] Production.INFO: ProcessCDR(1,14050720,1,1,2) [2024-12-18 20:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050720', 'tblTempUsageDetail_20' ) start [2024-12-18 20:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050720', 'tblTempUsageDetail_20' ) end [2024-12-18 20:53:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 20:53:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 20:53:20] Production.INFO: ==31263== Releasing lock... [2024-12-18 20:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 20:53:20] Production.INFO: 40.25 MB #Memory Used# [2024-12-18 20:54:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 17:54:04 [end_date_ymd] => 2024-12-18 20:54:04 [RateCDR] => 1 ) [2024-12-18 20: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` >= '2024-12-18 17:54:04' and `end` < '2024-12-18 20: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 ,'') [2024-12-18 20:54:18] Production.INFO: count ==1626 [2024-12-18 20:54:18] Production.ERROR: pbx CDR StartTime 2024-12-18 17:54:04 - End Time 2024-12-18 20:54:04 [2024-12-18 20:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050725', 'tblTempUsageDetail_20' ) start [2024-12-18 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050725', 'tblTempUsageDetail_20' ) end [2024-12-18 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050725', 'tblTempVendorCDR_20' ) start [2024-12-18 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050725', 'tblTempVendorCDR_20' ) end [2024-12-18 20:54:18] Production.INFO: ProcessCDR(1,14050725,1,1,2) [2024-12-18 20:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050725', 'tblTempUsageDetail_20' ) start [2024-12-18 20:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050725', 'tblTempUsageDetail_20' ) end [2024-12-18 20:54:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 20:54:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 20:54:21] Production.INFO: ==31333== Releasing lock... [2024-12-18 20:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 20:54:21] Production.INFO: 40.5 MB #Memory Used# [2024-12-18 20:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 17:55:05 [end_date_ymd] => 2024-12-18 20:55:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 17:55:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 20:55:17] Production.INFO: count ==1625 [2024-12-18 20:55:17] Production.ERROR: pbx CDR StartTime 2024-12-18 17:55:05 - End Time 2024-12-18 20:55:05 [2024-12-18 20:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 20:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050730', 'tblTempUsageDetail_20' ) start [2024-12-18 20:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050730', 'tblTempUsageDetail_20' ) end [2024-12-18 20:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050730', 'tblTempVendorCDR_20' ) start [2024-12-18 20:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050730', 'tblTempVendorCDR_20' ) end [2024-12-18 20:55:17] Production.INFO: ProcessCDR(1,14050730,1,1,2) [2024-12-18 20:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050730', 'tblTempUsageDetail_20' ) start [2024-12-18 20:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050730', 'tblTempUsageDetail_20' ) end [2024-12-18 20:55:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 20:55:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 20:55:20] Production.INFO: ==31445== Releasing lock... [2024-12-18 20:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 20:55:20] Production.INFO: 40.25 MB #Memory Used# [2024-12-18 20:56:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 17:56:04 [end_date_ymd] => 2024-12-18 20:56:04 [RateCDR] => 1 ) [2024-12-18 20:56:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 17:56:04' and `end` < '2024-12-18 20:56:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 20:56:17] Production.INFO: count ==1624 [2024-12-18 20:56:18] Production.ERROR: pbx CDR StartTime 2024-12-18 17:56:04 - End Time 2024-12-18 20:56:04 [2024-12-18 20:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050735', 'tblTempUsageDetail_20' ) start [2024-12-18 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050735', 'tblTempUsageDetail_20' ) end [2024-12-18 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050735', 'tblTempVendorCDR_20' ) start [2024-12-18 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050735', 'tblTempVendorCDR_20' ) end [2024-12-18 20:56:18] Production.INFO: ProcessCDR(1,14050735,1,1,2) [2024-12-18 20:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050735', 'tblTempUsageDetail_20' ) start [2024-12-18 20:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050735', 'tblTempUsageDetail_20' ) end [2024-12-18 20:56:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 20:56:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 20:56:21] Production.INFO: ==31515== Releasing lock... [2024-12-18 20:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 20:56:21] Production.INFO: 40.25 MB #Memory Used# [2024-12-18 20:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 17:57:05 [end_date_ymd] => 2024-12-18 20:57:05 [RateCDR] => 1 ) [2024-12-18 20:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 17:57:05' and `end` < '2024-12-18 20:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 20:57:17] Production.INFO: count ==1620 [2024-12-18 20:57:17] Production.ERROR: pbx CDR StartTime 2024-12-18 17:57:05 - End Time 2024-12-18 20:57:05 [2024-12-18 20:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 20:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050740', 'tblTempUsageDetail_20' ) start [2024-12-18 20:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050740', 'tblTempUsageDetail_20' ) end [2024-12-18 20:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050740', 'tblTempVendorCDR_20' ) start [2024-12-18 20:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050740', 'tblTempVendorCDR_20' ) end [2024-12-18 20:57:17] Production.INFO: ProcessCDR(1,14050740,1,1,2) [2024-12-18 20:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050740', 'tblTempUsageDetail_20' ) start [2024-12-18 20:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050740', 'tblTempUsageDetail_20' ) end [2024-12-18 20:57:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 20:57:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 20:57:21] Production.INFO: ==31587== Releasing lock... [2024-12-18 20:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 20:57:21] Production.INFO: 40.25 MB #Memory Used# [2024-12-18 20:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 17:58:05 [end_date_ymd] => 2024-12-18 20:58:05 [RateCDR] => 1 ) [2024-12-18 20:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 17:58:05' and `end` < '2024-12-18 20:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 20:58:17] Production.INFO: count ==1619 [2024-12-18 20:58:17] Production.ERROR: pbx CDR StartTime 2024-12-18 17:58:05 - End Time 2024-12-18 20:58:05 [2024-12-18 20:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 20:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050745', 'tblTempUsageDetail_20' ) start [2024-12-18 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050745', 'tblTempUsageDetail_20' ) end [2024-12-18 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050745', 'tblTempVendorCDR_20' ) start [2024-12-18 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050745', 'tblTempVendorCDR_20' ) end [2024-12-18 20:58:18] Production.INFO: ProcessCDR(1,14050745,1,1,2) [2024-12-18 20:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050745', 'tblTempUsageDetail_20' ) start [2024-12-18 20:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050745', 'tblTempUsageDetail_20' ) end [2024-12-18 20:58:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 20:58:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 20:58:22] Production.INFO: ==31659== Releasing lock... [2024-12-18 20:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 20:58:22] Production.INFO: 40 MB #Memory Used# [2024-12-18 20:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 17:59:04 [end_date_ymd] => 2024-12-18 20:59:04 [RateCDR] => 1 ) [2024-12-18 20:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 17:59:04' and `end` < '2024-12-18 20:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 20:59:17] Production.INFO: count ==1620 [2024-12-18 20:59:17] Production.ERROR: pbx CDR StartTime 2024-12-18 17:59:04 - End Time 2024-12-18 20:59:04 [2024-12-18 20:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 20:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050750', 'tblTempUsageDetail_20' ) start [2024-12-18 20:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050750', 'tblTempUsageDetail_20' ) end [2024-12-18 20:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050750', 'tblTempVendorCDR_20' ) start [2024-12-18 20:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050750', 'tblTempVendorCDR_20' ) end [2024-12-18 20:59:17] Production.INFO: ProcessCDR(1,14050750,1,1,2) [2024-12-18 20:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 20:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 20:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050750', 'tblTempUsageDetail_20' ) start [2024-12-18 20:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050750', 'tblTempUsageDetail_20' ) end [2024-12-18 20:59:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 20:59:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 20:59:21] Production.INFO: ==31729== Releasing lock... [2024-12-18 20:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 20:59:21] Production.INFO: 40 MB #Memory Used# [2024-12-18 21:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 18:00:05 [end_date_ymd] => 2024-12-18 21:00:05 [RateCDR] => 1 ) [2024-12-18 21:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 18:00:05' and `end` < '2024-12-18 21:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 21:00:18] Production.INFO: count ==1618 [2024-12-18 21:00:18] Production.ERROR: pbx CDR StartTime 2024-12-18 18:00:05 - End Time 2024-12-18 21:00:05 [2024-12-18 21:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 21:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050756', 'tblTempUsageDetail_20' ) start [2024-12-18 21:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050756', 'tblTempUsageDetail_20' ) end [2024-12-18 21:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050756', 'tblTempVendorCDR_20' ) start [2024-12-18 21:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050756', 'tblTempVendorCDR_20' ) end [2024-12-18 21:00:18] Production.INFO: ProcessCDR(1,14050756,1,1,2) [2024-12-18 21:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050756', 'tblTempUsageDetail_20' ) start [2024-12-18 21:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050756', 'tblTempUsageDetail_20' ) end [2024-12-18 21:00:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 21:00:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 21:00:21] Production.INFO: ==31803== Releasing lock... [2024-12-18 21:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 21:00:21] Production.INFO: 40 MB #Memory Used# [2024-12-18 21:01:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 18:01:04 [end_date_ymd] => 2024-12-18 21:01:04 [RateCDR] => 1 ) [2024-12-18 21: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` >= '2024-12-18 18:01:04' and `end` < '2024-12-18 21: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 ,'') [2024-12-18 21:01:16] Production.INFO: count ==1583 [2024-12-18 21:01:17] Production.ERROR: pbx CDR StartTime 2024-12-18 18:01:04 - End Time 2024-12-18 21:01:04 [2024-12-18 21:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 21:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050761', 'tblTempUsageDetail_20' ) start [2024-12-18 21:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050761', 'tblTempUsageDetail_20' ) end [2024-12-18 21:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050761', 'tblTempVendorCDR_20' ) start [2024-12-18 21:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050761', 'tblTempVendorCDR_20' ) end [2024-12-18 21:01:17] Production.INFO: ProcessCDR(1,14050761,1,1,2) [2024-12-18 21:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050761', 'tblTempUsageDetail_20' ) start [2024-12-18 21:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050761', 'tblTempUsageDetail_20' ) end [2024-12-18 21:01:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 21:01:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 21:01:21] Production.INFO: ==31887== Releasing lock... [2024-12-18 21:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 21:01:21] Production.INFO: 40 MB #Memory Used# [2024-12-18 21:02:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 18:02:04 [end_date_ymd] => 2024-12-18 21:02:04 [RateCDR] => 1 ) [2024-12-18 21:02:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 18:02:04' and `end` < '2024-12-18 21:02:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 21:02:17] Production.INFO: count ==1574 [2024-12-18 21:02:17] Production.ERROR: pbx CDR StartTime 2024-12-18 18:02:04 - End Time 2024-12-18 21:02:04 [2024-12-18 21:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 21:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050766', 'tblTempUsageDetail_20' ) start [2024-12-18 21:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050766', 'tblTempUsageDetail_20' ) end [2024-12-18 21:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050766', 'tblTempVendorCDR_20' ) start [2024-12-18 21:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050766', 'tblTempVendorCDR_20' ) end [2024-12-18 21:02:17] Production.INFO: ProcessCDR(1,14050766,1,1,2) [2024-12-18 21:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050766', 'tblTempUsageDetail_20' ) start [2024-12-18 21:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050766', 'tblTempUsageDetail_20' ) end [2024-12-18 21:02:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 21:02:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 21:02:22] Production.INFO: ==31958== Releasing lock... [2024-12-18 21:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 21:02:22] Production.INFO: 39.5 MB #Memory Used# [2024-12-18 21:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 18:03:05 [end_date_ymd] => 2024-12-18 21:03:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 18:03:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 21:03:17] Production.INFO: count ==1565 [2024-12-18 21:03:17] Production.ERROR: pbx CDR StartTime 2024-12-18 18:03:05 - End Time 2024-12-18 21:03:05 [2024-12-18 21:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 21:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050771', 'tblTempUsageDetail_20' ) start [2024-12-18 21:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050771', 'tblTempUsageDetail_20' ) end [2024-12-18 21:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050771', 'tblTempVendorCDR_20' ) start [2024-12-18 21:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050771', 'tblTempVendorCDR_20' ) end [2024-12-18 21:03:17] Production.INFO: ProcessCDR(1,14050771,1,1,2) [2024-12-18 21:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050771', 'tblTempUsageDetail_20' ) start [2024-12-18 21:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050771', 'tblTempUsageDetail_20' ) end [2024-12-18 21:03:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 21:03:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 21:03:20] Production.INFO: ==32028== Releasing lock... [2024-12-18 21:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 21:03:20] Production.INFO: 39.75 MB #Memory Used# [2024-12-18 21:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 18:04:05 [end_date_ymd] => 2024-12-18 21:04:05 [RateCDR] => 1 ) [2024-12-18 21:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 18:04:05' and `end` < '2024-12-18 21:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 21:04:18] Production.INFO: count ==1561 [2024-12-18 21:04:18] Production.ERROR: pbx CDR StartTime 2024-12-18 18:04:05 - End Time 2024-12-18 21:04:05 [2024-12-18 21:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050776', 'tblTempUsageDetail_20' ) start [2024-12-18 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050776', 'tblTempUsageDetail_20' ) end [2024-12-18 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050776', 'tblTempVendorCDR_20' ) start [2024-12-18 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050776', 'tblTempVendorCDR_20' ) end [2024-12-18 21:04:19] Production.INFO: ProcessCDR(1,14050776,1,1,2) [2024-12-18 21:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050776', 'tblTempUsageDetail_20' ) start [2024-12-18 21:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050776', 'tblTempUsageDetail_20' ) end [2024-12-18 21:04:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 21:04:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 21:04:22] Production.INFO: ==32101== Releasing lock... [2024-12-18 21:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 21:04:22] Production.INFO: 39.5 MB #Memory Used# [2024-12-18 21:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 18:05:05 [end_date_ymd] => 2024-12-18 21:05:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 18:05:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 21:05:18] Production.INFO: count ==1542 [2024-12-18 21:05:18] Production.ERROR: pbx CDR StartTime 2024-12-18 18:05:05 - End Time 2024-12-18 21:05:05 [2024-12-18 21:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050781', 'tblTempUsageDetail_20' ) start [2024-12-18 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050781', 'tblTempUsageDetail_20' ) end [2024-12-18 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050781', 'tblTempVendorCDR_20' ) start [2024-12-18 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050781', 'tblTempVendorCDR_20' ) end [2024-12-18 21:05:18] Production.INFO: ProcessCDR(1,14050781,1,1,2) [2024-12-18 21:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050781', 'tblTempUsageDetail_20' ) start [2024-12-18 21:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050781', 'tblTempUsageDetail_20' ) end [2024-12-18 21:05:23] Production.ERROR: pbx prc_insertCDR start [2024-12-18 21:05:23] Production.ERROR: pbx prc_insertCDR end [2024-12-18 21:05:23] Production.INFO: ==32176== Releasing lock... [2024-12-18 21:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 21:05:23] Production.INFO: 39.25 MB #Memory Used# [2024-12-18 21:06:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 18:06:04 [end_date_ymd] => 2024-12-18 21:06:04 [RateCDR] => 1 ) [2024-12-18 21:06:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 18:06:04' and `end` < '2024-12-18 21:06:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 21:06:17] Production.INFO: count ==1533 [2024-12-18 21:06:17] Production.ERROR: pbx CDR StartTime 2024-12-18 18:06:04 - End Time 2024-12-18 21:06:04 [2024-12-18 21:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 21:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050786', 'tblTempUsageDetail_20' ) start [2024-12-18 21:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050786', 'tblTempUsageDetail_20' ) end [2024-12-18 21:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050786', 'tblTempVendorCDR_20' ) start [2024-12-18 21:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050786', 'tblTempVendorCDR_20' ) end [2024-12-18 21:06:17] Production.INFO: ProcessCDR(1,14050786,1,1,2) [2024-12-18 21:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050786', 'tblTempUsageDetail_20' ) start [2024-12-18 21:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050786', 'tblTempUsageDetail_20' ) end [2024-12-18 21:06:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 21:06:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 21:06:20] Production.INFO: ==32250== Releasing lock... [2024-12-18 21:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 21:06:20] Production.INFO: 39.5 MB #Memory Used# [2024-12-18 21:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 18:07:05 [end_date_ymd] => 2024-12-18 21:07:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 18:07:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 21:07:18] Production.INFO: count ==1538 [2024-12-18 21:07:18] Production.ERROR: pbx CDR StartTime 2024-12-18 18:07:05 - End Time 2024-12-18 21:07:05 [2024-12-18 21:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050791', 'tblTempUsageDetail_20' ) start [2024-12-18 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050791', 'tblTempUsageDetail_20' ) end [2024-12-18 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050791', 'tblTempVendorCDR_20' ) start [2024-12-18 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050791', 'tblTempVendorCDR_20' ) end [2024-12-18 21:07:18] Production.INFO: ProcessCDR(1,14050791,1,1,2) [2024-12-18 21:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050791', 'tblTempUsageDetail_20' ) start [2024-12-18 21:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050791', 'tblTempUsageDetail_20' ) end [2024-12-18 21:07:23] Production.ERROR: pbx prc_insertCDR start [2024-12-18 21:07:23] Production.ERROR: pbx prc_insertCDR end [2024-12-18 21:07:23] Production.INFO: ==32324== Releasing lock... [2024-12-18 21:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 21:07:23] Production.INFO: 39.25 MB #Memory Used# [2024-12-18 21:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 18:08:05 [end_date_ymd] => 2024-12-18 21:08:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 18:08:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 21:08:17] Production.INFO: count ==1527 [2024-12-18 21:08:18] Production.ERROR: pbx CDR StartTime 2024-12-18 18:08:05 - End Time 2024-12-18 21:08:05 [2024-12-18 21:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050796', 'tblTempUsageDetail_20' ) start [2024-12-18 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050796', 'tblTempUsageDetail_20' ) end [2024-12-18 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050796', 'tblTempVendorCDR_20' ) start [2024-12-18 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050796', 'tblTempVendorCDR_20' ) end [2024-12-18 21:08:18] Production.INFO: ProcessCDR(1,14050796,1,1,2) [2024-12-18 21:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050796', 'tblTempUsageDetail_20' ) start [2024-12-18 21:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050796', 'tblTempUsageDetail_20' ) end [2024-12-18 21:08:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 21:08:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 21:08:21] Production.INFO: ==32397== Releasing lock... [2024-12-18 21:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 21:08:21] Production.INFO: 39.75 MB #Memory Used# [2024-12-18 21:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 18:09:04 [end_date_ymd] => 2024-12-18 21:09:04 [RateCDR] => 1 ) [2024-12-18 21:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 18:09:04' and `end` < '2024-12-18 21:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 21:09:16] Production.INFO: count ==1523 [2024-12-18 21:09:16] Production.ERROR: pbx CDR StartTime 2024-12-18 18:09:04 - End Time 2024-12-18 21:09:04 [2024-12-18 21:09:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 21:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050801', 'tblTempUsageDetail_20' ) start [2024-12-18 21:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050801', 'tblTempUsageDetail_20' ) end [2024-12-18 21:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050801', 'tblTempVendorCDR_20' ) start [2024-12-18 21:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050801', 'tblTempVendorCDR_20' ) end [2024-12-18 21:09:17] Production.INFO: ProcessCDR(1,14050801,1,1,2) [2024-12-18 21:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:09:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:09:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050801', 'tblTempUsageDetail_20' ) start [2024-12-18 21:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050801', 'tblTempUsageDetail_20' ) end [2024-12-18 21:09:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 21:09:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 21:09:20] Production.INFO: ==32466== Releasing lock... [2024-12-18 21:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 21:09:20] Production.INFO: 39.5 MB #Memory Used# [2024-12-18 21:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 18:10:06 [end_date_ymd] => 2024-12-18 21:10:06 [RateCDR] => 1 ) [2024-12-18 21:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 18:10:06' and `end` < '2024-12-18 21:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 21:10:18] Production.INFO: count ==1524 [2024-12-18 21:10:18] Production.ERROR: pbx CDR StartTime 2024-12-18 18:10:06 - End Time 2024-12-18 21:10:06 [2024-12-18 21:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 21:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050806', 'tblTempUsageDetail_20' ) start [2024-12-18 21:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050806', 'tblTempUsageDetail_20' ) end [2024-12-18 21:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050806', 'tblTempVendorCDR_20' ) start [2024-12-18 21:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050806', 'tblTempVendorCDR_20' ) end [2024-12-18 21:10:18] Production.INFO: ProcessCDR(1,14050806,1,1,2) [2024-12-18 21:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050806', 'tblTempUsageDetail_20' ) start [2024-12-18 21:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050806', 'tblTempUsageDetail_20' ) end [2024-12-18 21:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 21:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 21:10:21] Production.INFO: ==32585== Releasing lock... [2024-12-18 21:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 21:10:21] Production.INFO: 39.25 MB #Memory Used# [2024-12-18 21:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 18:11:04 [end_date_ymd] => 2024-12-18 21:11:04 [RateCDR] => 1 ) [2024-12-18 21:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 18:11:04' and `end` < '2024-12-18 21:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 21:11:16] Production.INFO: count ==1451 [2024-12-18 21:11:17] Production.ERROR: pbx CDR StartTime 2024-12-18 18:11:04 - End Time 2024-12-18 21:11:04 [2024-12-18 21:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 21:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050812', 'tblTempUsageDetail_20' ) start [2024-12-18 21:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050812', 'tblTempUsageDetail_20' ) end [2024-12-18 21:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050812', 'tblTempVendorCDR_20' ) start [2024-12-18 21:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050812', 'tblTempVendorCDR_20' ) end [2024-12-18 21:11:17] Production.INFO: ProcessCDR(1,14050812,1,1,2) [2024-12-18 21:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050812', 'tblTempUsageDetail_20' ) start [2024-12-18 21:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050812', 'tblTempUsageDetail_20' ) end [2024-12-18 21:11:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 21:11:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 21:11:20] Production.INFO: ==32664== Releasing lock... [2024-12-18 21:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 21:11:20] Production.INFO: 38.75 MB #Memory Used# [2024-12-18 21:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 18:12:05 [end_date_ymd] => 2024-12-18 21:12:05 [RateCDR] => 1 ) [2024-12-18 21:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 18:12:05' and `end` < '2024-12-18 21:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 21:12:17] Production.INFO: count ==1450 [2024-12-18 21:12:17] Production.ERROR: pbx CDR StartTime 2024-12-18 18:12:05 - End Time 2024-12-18 21:12:05 [2024-12-18 21:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 21:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050817', 'tblTempUsageDetail_20' ) start [2024-12-18 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050817', 'tblTempUsageDetail_20' ) end [2024-12-18 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050817', 'tblTempVendorCDR_20' ) start [2024-12-18 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050817', 'tblTempVendorCDR_20' ) end [2024-12-18 21:12:18] Production.INFO: ProcessCDR(1,14050817,1,1,2) [2024-12-18 21:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050817', 'tblTempUsageDetail_20' ) start [2024-12-18 21:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050817', 'tblTempUsageDetail_20' ) end [2024-12-18 21:12:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 21:12:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 21:12:21] Production.INFO: ==32740== Releasing lock... [2024-12-18 21:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 21:12:21] Production.INFO: 38.75 MB #Memory Used# [2024-12-18 21:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 18:13:04 [end_date_ymd] => 2024-12-18 21:13:04 [RateCDR] => 1 ) [2024-12-18 21:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 18:13:04' and `end` < '2024-12-18 21:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 21:13:18] Production.INFO: count ==1448 [2024-12-18 21:13:18] Production.ERROR: pbx CDR StartTime 2024-12-18 18:13:04 - End Time 2024-12-18 21:13:04 [2024-12-18 21:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050822', 'tblTempUsageDetail_20' ) start [2024-12-18 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050822', 'tblTempUsageDetail_20' ) end [2024-12-18 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050822', 'tblTempVendorCDR_20' ) start [2024-12-18 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050822', 'tblTempVendorCDR_20' ) end [2024-12-18 21:13:18] Production.INFO: ProcessCDR(1,14050822,1,1,2) [2024-12-18 21:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050822', 'tblTempUsageDetail_20' ) start [2024-12-18 21:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050822', 'tblTempUsageDetail_20' ) end [2024-12-18 21:13:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 21:13:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 21:13:21] Production.INFO: ==363== Releasing lock... [2024-12-18 21:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 21:13:21] Production.INFO: 38.75 MB #Memory Used# [2024-12-18 21:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 18:14:05 [end_date_ymd] => 2024-12-18 21:14:05 [RateCDR] => 1 ) [2024-12-18 21:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 18:14:05' and `end` < '2024-12-18 21:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 21:14:17] Production.INFO: count ==1445 [2024-12-18 21:14:17] Production.ERROR: pbx CDR StartTime 2024-12-18 18:14:05 - End Time 2024-12-18 21:14:05 [2024-12-18 21:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 21:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050827', 'tblTempUsageDetail_20' ) start [2024-12-18 21:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050827', 'tblTempUsageDetail_20' ) end [2024-12-18 21:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050827', 'tblTempVendorCDR_20' ) start [2024-12-18 21:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050827', 'tblTempVendorCDR_20' ) end [2024-12-18 21:14:17] Production.INFO: ProcessCDR(1,14050827,1,1,2) [2024-12-18 21:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050827', 'tblTempUsageDetail_20' ) start [2024-12-18 21:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050827', 'tblTempUsageDetail_20' ) end [2024-12-18 21:14:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 21:14:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 21:14:20] Production.INFO: ==439== Releasing lock... [2024-12-18 21:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 21:14:20] Production.INFO: 38.75 MB #Memory Used# [2024-12-18 21:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 18:15:05 [end_date_ymd] => 2024-12-18 21:15:05 [RateCDR] => 1 ) [2024-12-18 21:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 18:15:05' and `end` < '2024-12-18 21:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 21:15:17] Production.INFO: count ==1451 [2024-12-18 21:15:17] Production.ERROR: pbx CDR StartTime 2024-12-18 18:15:05 - End Time 2024-12-18 21:15:05 [2024-12-18 21:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 21:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050832', 'tblTempUsageDetail_20' ) start [2024-12-18 21:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050832', 'tblTempUsageDetail_20' ) end [2024-12-18 21:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050832', 'tblTempVendorCDR_20' ) start [2024-12-18 21:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050832', 'tblTempVendorCDR_20' ) end [2024-12-18 21:15:17] Production.INFO: ProcessCDR(1,14050832,1,1,2) [2024-12-18 21:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050832', 'tblTempUsageDetail_20' ) start [2024-12-18 21:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050832', 'tblTempUsageDetail_20' ) end [2024-12-18 21:15:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 21:15:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 21:15:21] Production.INFO: ==518== Releasing lock... [2024-12-18 21:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 21:15:21] Production.INFO: 39.25 MB #Memory Used# [2024-12-18 21:16:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 18:16:04 [end_date_ymd] => 2024-12-18 21:16:04 [RateCDR] => 1 ) [2024-12-18 21:16:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 18:16:04' and `end` < '2024-12-18 21:16:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 21:16:17] Production.INFO: count ==1449 [2024-12-18 21:16:17] Production.ERROR: pbx CDR StartTime 2024-12-18 18:16:04 - End Time 2024-12-18 21:16:04 [2024-12-18 21:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 21:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050837', 'tblTempUsageDetail_20' ) start [2024-12-18 21:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050837', 'tblTempUsageDetail_20' ) end [2024-12-18 21:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050837', 'tblTempVendorCDR_20' ) start [2024-12-18 21:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050837', 'tblTempVendorCDR_20' ) end [2024-12-18 21:16:17] Production.INFO: ProcessCDR(1,14050837,1,1,2) [2024-12-18 21:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050837', 'tblTempUsageDetail_20' ) start [2024-12-18 21:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050837', 'tblTempUsageDetail_20' ) end [2024-12-18 21:16:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 21:16:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 21:16:20] Production.INFO: ==596== Releasing lock... [2024-12-18 21:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 21:16:20] Production.INFO: 38.75 MB #Memory Used# [2024-12-18 21:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 18:17:05 [end_date_ymd] => 2024-12-18 21:17:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 18:17:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 21:17:17] Production.INFO: count ==1447 [2024-12-18 21:17:18] Production.ERROR: pbx CDR StartTime 2024-12-18 18:17:05 - End Time 2024-12-18 21:17:05 [2024-12-18 21:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050842', 'tblTempUsageDetail_20' ) start [2024-12-18 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050842', 'tblTempUsageDetail_20' ) end [2024-12-18 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050842', 'tblTempVendorCDR_20' ) start [2024-12-18 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050842', 'tblTempVendorCDR_20' ) end [2024-12-18 21:17:18] Production.INFO: ProcessCDR(1,14050842,1,1,2) [2024-12-18 21:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050842', 'tblTempUsageDetail_20' ) start [2024-12-18 21:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050842', 'tblTempUsageDetail_20' ) end [2024-12-18 21:17:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 21:17:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 21:17:21] Production.INFO: ==701== Releasing lock... [2024-12-18 21:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 21:17:21] Production.INFO: 38.75 MB #Memory Used# [2024-12-18 21:18:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 18:18:04 [end_date_ymd] => 2024-12-18 21:18:04 [RateCDR] => 1 ) [2024-12-18 21:18: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` >= '2024-12-18 18:18:04' and `end` < '2024-12-18 21:18: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 ,'') [2024-12-18 21:18:17] Production.INFO: count ==1447 [2024-12-18 21:18:17] Production.ERROR: pbx CDR StartTime 2024-12-18 18:18:04 - End Time 2024-12-18 21:18:04 [2024-12-18 21:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 21:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050847', 'tblTempUsageDetail_20' ) start [2024-12-18 21:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050847', 'tblTempUsageDetail_20' ) end [2024-12-18 21:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050847', 'tblTempVendorCDR_20' ) start [2024-12-18 21:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050847', 'tblTempVendorCDR_20' ) end [2024-12-18 21:18:17] Production.INFO: ProcessCDR(1,14050847,1,1,2) [2024-12-18 21:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050847', 'tblTempUsageDetail_20' ) start [2024-12-18 21:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050847', 'tblTempUsageDetail_20' ) end [2024-12-18 21:18:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 21:18:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 21:18:20] Production.INFO: ==782== Releasing lock... [2024-12-18 21:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 21:18:20] Production.INFO: 38.75 MB #Memory Used# [2024-12-18 21:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 18:19:05 [end_date_ymd] => 2024-12-18 21:19:05 [RateCDR] => 1 ) [2024-12-18 21:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 18:19:05' and `end` < '2024-12-18 21:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 21:19:17] Production.INFO: count ==1440 [2024-12-18 21:19:18] Production.ERROR: pbx CDR StartTime 2024-12-18 18:19:05 - End Time 2024-12-18 21:19:05 [2024-12-18 21:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050852', 'tblTempUsageDetail_20' ) start [2024-12-18 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050852', 'tblTempUsageDetail_20' ) end [2024-12-18 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050852', 'tblTempVendorCDR_20' ) start [2024-12-18 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050852', 'tblTempVendorCDR_20' ) end [2024-12-18 21:19:18] Production.INFO: ProcessCDR(1,14050852,1,1,2) [2024-12-18 21:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050852', 'tblTempUsageDetail_20' ) start [2024-12-18 21:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050852', 'tblTempUsageDetail_20' ) end [2024-12-18 21:19:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 21:19:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 21:19:21] Production.INFO: ==859== Releasing lock... [2024-12-18 21:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 21:19:21] Production.INFO: 39 MB #Memory Used# [2024-12-18 21:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 18:20:05 [end_date_ymd] => 2024-12-18 21:20:05 [RateCDR] => 1 ) [2024-12-18 21:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 18:20:05' and `end` < '2024-12-18 21:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 21:20:17] Production.INFO: count ==1442 [2024-12-18 21:20:17] Production.ERROR: pbx CDR StartTime 2024-12-18 18:20:05 - End Time 2024-12-18 21:20:05 [2024-12-18 21:20:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 21:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050857', 'tblTempUsageDetail_20' ) start [2024-12-18 21:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050857', 'tblTempUsageDetail_20' ) end [2024-12-18 21:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050857', 'tblTempVendorCDR_20' ) start [2024-12-18 21:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050857', 'tblTempVendorCDR_20' ) end [2024-12-18 21:20:17] Production.INFO: ProcessCDR(1,14050857,1,1,2) [2024-12-18 21:20:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:20:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:20:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:20:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:20:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050857', 'tblTempUsageDetail_20' ) start [2024-12-18 21:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050857', 'tblTempUsageDetail_20' ) end [2024-12-18 21:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 21:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 21:20:21] Production.INFO: ==934== Releasing lock... [2024-12-18 21:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 21:20:21] Production.INFO: 38.75 MB #Memory Used# [2024-12-18 21:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 18:21:04 [end_date_ymd] => 2024-12-18 21:21:04 [RateCDR] => 1 ) [2024-12-18 21:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 18:21:04' and `end` < '2024-12-18 21:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 21:21:17] Production.INFO: count ==1390 [2024-12-18 21:21:17] Production.ERROR: pbx CDR StartTime 2024-12-18 18:21:04 - End Time 2024-12-18 21:21:04 [2024-12-18 21:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 21:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050863', 'tblTempUsageDetail_20' ) start [2024-12-18 21:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050863', 'tblTempUsageDetail_20' ) end [2024-12-18 21:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050863', 'tblTempVendorCDR_20' ) start [2024-12-18 21:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050863', 'tblTempVendorCDR_20' ) end [2024-12-18 21:21:17] Production.INFO: ProcessCDR(1,14050863,1,1,2) [2024-12-18 21:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050863', 'tblTempUsageDetail_20' ) start [2024-12-18 21:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050863', 'tblTempUsageDetail_20' ) end [2024-12-18 21:21:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 21:21:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 21:21:20] Production.INFO: ==1014== Releasing lock... [2024-12-18 21:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 21:21:20] Production.INFO: 38.5 MB #Memory Used# [2024-12-18 21:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 18:22:05 [end_date_ymd] => 2024-12-18 21:22:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 18:22:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 21:22:18] Production.INFO: count ==1384 [2024-12-18 21:22:18] Production.ERROR: pbx CDR StartTime 2024-12-18 18:22:05 - End Time 2024-12-18 21:22:05 [2024-12-18 21:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050868', 'tblTempUsageDetail_20' ) start [2024-12-18 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050868', 'tblTempUsageDetail_20' ) end [2024-12-18 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050868', 'tblTempVendorCDR_20' ) start [2024-12-18 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050868', 'tblTempVendorCDR_20' ) end [2024-12-18 21:22:18] Production.INFO: ProcessCDR(1,14050868,1,1,2) [2024-12-18 21:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050868', 'tblTempUsageDetail_20' ) start [2024-12-18 21:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050868', 'tblTempUsageDetail_20' ) end [2024-12-18 21:22:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 21:22:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 21:22:21] Production.INFO: ==1095== Releasing lock... [2024-12-18 21:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 21:22:21] Production.INFO: 38.25 MB #Memory Used# [2024-12-18 21:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 18:23:04 [end_date_ymd] => 2024-12-18 21:23:04 [RateCDR] => 1 ) [2024-12-18 21:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 18:23:04' and `end` < '2024-12-18 21:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 21:23:17] Production.INFO: count ==1384 [2024-12-18 21:23:17] Production.ERROR: pbx CDR StartTime 2024-12-18 18:23:04 - End Time 2024-12-18 21:23:04 [2024-12-18 21:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 21:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050873', 'tblTempUsageDetail_20' ) start [2024-12-18 21:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050873', 'tblTempUsageDetail_20' ) end [2024-12-18 21:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050873', 'tblTempVendorCDR_20' ) start [2024-12-18 21:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050873', 'tblTempVendorCDR_20' ) end [2024-12-18 21:23:17] Production.INFO: ProcessCDR(1,14050873,1,1,2) [2024-12-18 21:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050873', 'tblTempUsageDetail_20' ) start [2024-12-18 21:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050873', 'tblTempUsageDetail_20' ) end [2024-12-18 21:23:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 21:23:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 21:23:22] Production.INFO: ==1176== Releasing lock... [2024-12-18 21:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 21:23:22] Production.INFO: 38.25 MB #Memory Used# [2024-12-18 21:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 18:24:05 [end_date_ymd] => 2024-12-18 21:24:05 [RateCDR] => 1 ) [2024-12-18 21:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 18:24:05' and `end` < '2024-12-18 21:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 21:24:18] Production.INFO: count ==1371 [2024-12-18 21:24:18] Production.ERROR: pbx CDR StartTime 2024-12-18 18:24:05 - End Time 2024-12-18 21:24:05 [2024-12-18 21:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050878', 'tblTempUsageDetail_20' ) start [2024-12-18 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050878', 'tblTempUsageDetail_20' ) end [2024-12-18 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050878', 'tblTempVendorCDR_20' ) start [2024-12-18 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050878', 'tblTempVendorCDR_20' ) end [2024-12-18 21:24:18] Production.INFO: ProcessCDR(1,14050878,1,1,2) [2024-12-18 21:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050878', 'tblTempUsageDetail_20' ) start [2024-12-18 21:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050878', 'tblTempUsageDetail_20' ) end [2024-12-18 21:24:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 21:24:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 21:24:22] Production.INFO: ==1259== Releasing lock... [2024-12-18 21:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 21:24:22] Production.INFO: 38 MB #Memory Used# [2024-12-18 21:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 18:25:04 [end_date_ymd] => 2024-12-18 21:25:04 [RateCDR] => 1 ) [2024-12-18 21:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 18:25:04' and `end` < '2024-12-18 21:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 21:25:16] Production.INFO: count ==1362 [2024-12-18 21:25:16] Production.ERROR: pbx CDR StartTime 2024-12-18 18:25:04 - End Time 2024-12-18 21:25:04 [2024-12-18 21:25:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 21:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050883', 'tblTempUsageDetail_20' ) start [2024-12-18 21:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050883', 'tblTempUsageDetail_20' ) end [2024-12-18 21:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050883', 'tblTempVendorCDR_20' ) start [2024-12-18 21:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050883', 'tblTempVendorCDR_20' ) end [2024-12-18 21:25:16] Production.INFO: ProcessCDR(1,14050883,1,1,2) [2024-12-18 21:25:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:25:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:25:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050883', 'tblTempUsageDetail_20' ) start [2024-12-18 21:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050883', 'tblTempUsageDetail_20' ) end [2024-12-18 21:25:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 21:25:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 21:25:20] Production.INFO: ==1338== Releasing lock... [2024-12-18 21:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 21:25:20] Production.INFO: 38.5 MB #Memory Used# [2024-12-18 21:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 18:26:05 [end_date_ymd] => 2024-12-18 21:26:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 18:26:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 21:26:17] Production.INFO: count ==1358 [2024-12-18 21:26:17] Production.ERROR: pbx CDR StartTime 2024-12-18 18:26:05 - End Time 2024-12-18 21:26:05 [2024-12-18 21:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 21:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050888', 'tblTempUsageDetail_20' ) start [2024-12-18 21:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050888', 'tblTempUsageDetail_20' ) end [2024-12-18 21:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050888', 'tblTempVendorCDR_20' ) start [2024-12-18 21:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050888', 'tblTempVendorCDR_20' ) end [2024-12-18 21:26:17] Production.INFO: ProcessCDR(1,14050888,1,1,2) [2024-12-18 21:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050888', 'tblTempUsageDetail_20' ) start [2024-12-18 21:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050888', 'tblTempUsageDetail_20' ) end [2024-12-18 21:26:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 21:26:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 21:26:20] Production.INFO: ==1454== Releasing lock... [2024-12-18 21:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 21:26:20] Production.INFO: 38.25 MB #Memory Used# [2024-12-18 21:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 18:27:05 [end_date_ymd] => 2024-12-18 21:27:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 18:27:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 21:27:18] Production.INFO: count ==1357 [2024-12-18 21:27:18] Production.ERROR: pbx CDR StartTime 2024-12-18 18:27:05 - End Time 2024-12-18 21:27:05 [2024-12-18 21:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050893', 'tblTempUsageDetail_20' ) start [2024-12-18 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050893', 'tblTempUsageDetail_20' ) end [2024-12-18 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050893', 'tblTempVendorCDR_20' ) start [2024-12-18 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050893', 'tblTempVendorCDR_20' ) end [2024-12-18 21:27:18] Production.INFO: ProcessCDR(1,14050893,1,1,2) [2024-12-18 21:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050893', 'tblTempUsageDetail_20' ) start [2024-12-18 21:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050893', 'tblTempUsageDetail_20' ) end [2024-12-18 21:27:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 21:27:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 21:27:21] Production.INFO: ==1563== Releasing lock... [2024-12-18 21:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 21:27:21] Production.INFO: 38.25 MB #Memory Used# [2024-12-18 21:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 18:28:05 [end_date_ymd] => 2024-12-18 21:28:05 [RateCDR] => 1 ) [2024-12-18 21:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 18:28:05' and `end` < '2024-12-18 21:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 21:28:17] Production.INFO: count ==1356 [2024-12-18 21:28:18] Production.ERROR: pbx CDR StartTime 2024-12-18 18:28:05 - End Time 2024-12-18 21:28:05 [2024-12-18 21:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050898', 'tblTempUsageDetail_20' ) start [2024-12-18 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050898', 'tblTempUsageDetail_20' ) end [2024-12-18 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050898', 'tblTempVendorCDR_20' ) start [2024-12-18 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050898', 'tblTempVendorCDR_20' ) end [2024-12-18 21:28:18] Production.INFO: ProcessCDR(1,14050898,1,1,2) [2024-12-18 21:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050898', 'tblTempUsageDetail_20' ) start [2024-12-18 21:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050898', 'tblTempUsageDetail_20' ) end [2024-12-18 21:28:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 21:28:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 21:28:21] Production.INFO: ==1640== Releasing lock... [2024-12-18 21:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 21:28:21] Production.INFO: 38.25 MB #Memory Used# [2024-12-18 21:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 18:29:05 [end_date_ymd] => 2024-12-18 21:29:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 18:29:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 21:29:17] Production.INFO: count ==1353 [2024-12-18 21:29:17] Production.ERROR: pbx CDR StartTime 2024-12-18 18:29:05 - End Time 2024-12-18 21:29:05 [2024-12-18 21:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 21:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050903', 'tblTempUsageDetail_20' ) start [2024-12-18 21:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050903', 'tblTempUsageDetail_20' ) end [2024-12-18 21:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050903', 'tblTempVendorCDR_20' ) start [2024-12-18 21:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050903', 'tblTempVendorCDR_20' ) end [2024-12-18 21:29:17] Production.INFO: ProcessCDR(1,14050903,1,1,2) [2024-12-18 21:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050903', 'tblTempUsageDetail_20' ) start [2024-12-18 21:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050903', 'tblTempUsageDetail_20' ) end [2024-12-18 21:29:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 21:29:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 21:29:20] Production.INFO: ==1718== Releasing lock... [2024-12-18 21:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 21:29:20] Production.INFO: 38 MB #Memory Used# [2024-12-18 21:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 18:30:05 [end_date_ymd] => 2024-12-18 21:30:05 [RateCDR] => 1 ) [2024-12-18 21:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 18:30:05' and `end` < '2024-12-18 21:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 21:30:18] Production.INFO: count ==1356 [2024-12-18 21:30:18] Production.ERROR: pbx CDR StartTime 2024-12-18 18:30:05 - End Time 2024-12-18 21:30:05 [2024-12-18 21:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 21:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050909', 'tblTempUsageDetail_20' ) start [2024-12-18 21:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050909', 'tblTempUsageDetail_20' ) end [2024-12-18 21:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050909', 'tblTempVendorCDR_20' ) start [2024-12-18 21:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050909', 'tblTempVendorCDR_20' ) end [2024-12-18 21:30:18] Production.INFO: ProcessCDR(1,14050909,1,1,2) [2024-12-18 21:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050909', 'tblTempUsageDetail_20' ) start [2024-12-18 21:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050909', 'tblTempUsageDetail_20' ) end [2024-12-18 21:30:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 21:30:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 21:30:21] Production.INFO: ==1799== Releasing lock... [2024-12-18 21:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 21:30:21] Production.INFO: 38.25 MB #Memory Used# [2024-12-18 21:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 18:31:05 [end_date_ymd] => 2024-12-18 21:31:05 [RateCDR] => 1 ) [2024-12-18 21:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 18:31:05' and `end` < '2024-12-18 21:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 21:31:17] Production.INFO: count ==1316 [2024-12-18 21:31:17] Production.ERROR: pbx CDR StartTime 2024-12-18 18:31:05 - End Time 2024-12-18 21:31:05 [2024-12-18 21:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 21:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050914', 'tblTempUsageDetail_20' ) start [2024-12-18 21:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050914', 'tblTempUsageDetail_20' ) end [2024-12-18 21:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050914', 'tblTempVendorCDR_20' ) start [2024-12-18 21:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050914', 'tblTempVendorCDR_20' ) end [2024-12-18 21:31:17] Production.INFO: ProcessCDR(1,14050914,1,1,2) [2024-12-18 21:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050914', 'tblTempUsageDetail_20' ) start [2024-12-18 21:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050914', 'tblTempUsageDetail_20' ) end [2024-12-18 21:31:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 21:31:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 21:31:20] Production.INFO: ==1896== Releasing lock... [2024-12-18 21:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 21:31:20] Production.INFO: 37.75 MB #Memory Used# [2024-12-18 21:32:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 18:32:04 [end_date_ymd] => 2024-12-18 21:32:04 [RateCDR] => 1 ) [2024-12-18 21:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 18:32:04' and `end` < '2024-12-18 21:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 21:32:17] Production.INFO: count ==1314 [2024-12-18 21:32:17] Production.ERROR: pbx CDR StartTime 2024-12-18 18:32:04 - End Time 2024-12-18 21:32:04 [2024-12-18 21:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 21:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050919', 'tblTempUsageDetail_20' ) start [2024-12-18 21:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050919', 'tblTempUsageDetail_20' ) end [2024-12-18 21:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050919', 'tblTempVendorCDR_20' ) start [2024-12-18 21:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050919', 'tblTempVendorCDR_20' ) end [2024-12-18 21:32:17] Production.INFO: ProcessCDR(1,14050919,1,1,2) [2024-12-18 21:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050919', 'tblTempUsageDetail_20' ) start [2024-12-18 21:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050919', 'tblTempUsageDetail_20' ) end [2024-12-18 21:32:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 21:32:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 21:32:20] Production.INFO: ==1981== Releasing lock... [2024-12-18 21:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 21:32:20] Production.INFO: 38 MB #Memory Used# [2024-12-18 21:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 18:33:04 [end_date_ymd] => 2024-12-18 21:33:04 [RateCDR] => 1 ) [2024-12-18 21:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 18:33:04' and `end` < '2024-12-18 21:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 21:33:17] Production.INFO: count ==1306 [2024-12-18 21:33:17] Production.ERROR: pbx CDR StartTime 2024-12-18 18:33:04 - End Time 2024-12-18 21:33:04 [2024-12-18 21:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 21:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050924', 'tblTempUsageDetail_20' ) start [2024-12-18 21:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050924', 'tblTempUsageDetail_20' ) end [2024-12-18 21:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050924', 'tblTempVendorCDR_20' ) start [2024-12-18 21:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050924', 'tblTempVendorCDR_20' ) end [2024-12-18 21:33:17] Production.INFO: ProcessCDR(1,14050924,1,1,2) [2024-12-18 21:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050924', 'tblTempUsageDetail_20' ) start [2024-12-18 21:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050924', 'tblTempUsageDetail_20' ) end [2024-12-18 21:33:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 21:33:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 21:33:20] Production.INFO: ==2068== Releasing lock... [2024-12-18 21:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 21:33:20] Production.INFO: 37.75 MB #Memory Used# [2024-12-18 21:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 18:34:05 [end_date_ymd] => 2024-12-18 21:34:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 18:34:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 21:34:19] Production.INFO: count ==1307 [2024-12-18 21:34:19] Production.ERROR: pbx CDR StartTime 2024-12-18 18:34:05 - End Time 2024-12-18 21:34:05 [2024-12-18 21:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050929', 'tblTempUsageDetail_20' ) start [2024-12-18 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050929', 'tblTempUsageDetail_20' ) end [2024-12-18 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050929', 'tblTempVendorCDR_20' ) start [2024-12-18 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050929', 'tblTempVendorCDR_20' ) end [2024-12-18 21:34:19] Production.INFO: ProcessCDR(1,14050929,1,1,2) [2024-12-18 21:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050929', 'tblTempUsageDetail_20' ) start [2024-12-18 21:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050929', 'tblTempUsageDetail_20' ) end [2024-12-18 21:34:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 21:34:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 21:34:22] Production.INFO: ==2158== Releasing lock... [2024-12-18 21:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 21:34:22] Production.INFO: 37.75 MB #Memory Used# [2024-12-18 21:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 18:35:05 [end_date_ymd] => 2024-12-18 21:35:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 18:35:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 21:35:18] Production.INFO: count ==1308 [2024-12-18 21:35:18] Production.ERROR: pbx CDR StartTime 2024-12-18 18:35:05 - End Time 2024-12-18 21:35:05 [2024-12-18 21:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050934', 'tblTempUsageDetail_20' ) start [2024-12-18 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050934', 'tblTempUsageDetail_20' ) end [2024-12-18 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050934', 'tblTempVendorCDR_20' ) start [2024-12-18 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050934', 'tblTempVendorCDR_20' ) end [2024-12-18 21:35:18] Production.INFO: ProcessCDR(1,14050934,1,1,2) [2024-12-18 21:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050934', 'tblTempUsageDetail_20' ) start [2024-12-18 21:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050934', 'tblTempUsageDetail_20' ) end [2024-12-18 21:35:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 21:35:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 21:35:22] Production.INFO: ==2243== Releasing lock... [2024-12-18 21:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 21:35:22] Production.INFO: 37.75 MB #Memory Used# [2024-12-18 21:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 18:36:05 [end_date_ymd] => 2024-12-18 21:36:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 18:36:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 21:36:18] Production.INFO: count ==1307 [2024-12-18 21:36:18] Production.ERROR: pbx CDR StartTime 2024-12-18 18:36:05 - End Time 2024-12-18 21:36:05 [2024-12-18 21:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050939', 'tblTempUsageDetail_20' ) start [2024-12-18 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050939', 'tblTempUsageDetail_20' ) end [2024-12-18 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050939', 'tblTempVendorCDR_20' ) start [2024-12-18 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050939', 'tblTempVendorCDR_20' ) end [2024-12-18 21:36:18] Production.INFO: ProcessCDR(1,14050939,1,1,2) [2024-12-18 21:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050939', 'tblTempUsageDetail_20' ) start [2024-12-18 21:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050939', 'tblTempUsageDetail_20' ) end [2024-12-18 21:36:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 21:36:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 21:36:22] Production.INFO: ==2323== Releasing lock... [2024-12-18 21:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 21:36:22] Production.INFO: 37.75 MB #Memory Used# [2024-12-18 21:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 18:37:04 [end_date_ymd] => 2024-12-18 21:37:04 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 18:37:04' and `end` < '2024-12-18 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 ,'') [2024-12-18 21:37:17] Production.INFO: count ==1302 [2024-12-18 21:37:17] Production.ERROR: pbx CDR StartTime 2024-12-18 18:37:04 - End Time 2024-12-18 21:37:04 [2024-12-18 21:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 21:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050944', 'tblTempUsageDetail_20' ) start [2024-12-18 21:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050944', 'tblTempUsageDetail_20' ) end [2024-12-18 21:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050944', 'tblTempVendorCDR_20' ) start [2024-12-18 21:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050944', 'tblTempVendorCDR_20' ) end [2024-12-18 21:37:17] Production.INFO: ProcessCDR(1,14050944,1,1,2) [2024-12-18 21:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050944', 'tblTempUsageDetail_20' ) start [2024-12-18 21:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050944', 'tblTempUsageDetail_20' ) end [2024-12-18 21:37:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 21:37:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 21:37:20] Production.INFO: ==2407== Releasing lock... [2024-12-18 21:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 21:37:20] Production.INFO: 37.75 MB #Memory Used# [2024-12-18 21:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 18:38:05 [end_date_ymd] => 2024-12-18 21:38:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 18:38:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 21:38:17] Production.INFO: count ==1290 [2024-12-18 21:38:17] Production.ERROR: pbx CDR StartTime 2024-12-18 18:38:05 - End Time 2024-12-18 21:38:05 [2024-12-18 21:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 21:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050949', 'tblTempUsageDetail_20' ) start [2024-12-18 21:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050949', 'tblTempUsageDetail_20' ) end [2024-12-18 21:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050949', 'tblTempVendorCDR_20' ) start [2024-12-18 21:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050949', 'tblTempVendorCDR_20' ) end [2024-12-18 21:38:17] Production.INFO: ProcessCDR(1,14050949,1,1,2) [2024-12-18 21:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050949', 'tblTempUsageDetail_20' ) start [2024-12-18 21:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050949', 'tblTempUsageDetail_20' ) end [2024-12-18 21:38:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 21:38:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 21:38:20] Production.INFO: ==2488== Releasing lock... [2024-12-18 21:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 21:38:20] Production.INFO: 37.5 MB #Memory Used# [2024-12-18 21:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 18:39:04 [end_date_ymd] => 2024-12-18 21:39:04 [RateCDR] => 1 ) [2024-12-18 21:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 18:39:04' and `end` < '2024-12-18 21:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 21:39:16] Production.INFO: count ==1289 [2024-12-18 21:39:16] Production.ERROR: pbx CDR StartTime 2024-12-18 18:39:04 - End Time 2024-12-18 21:39:04 [2024-12-18 21:39:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 21:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050954', 'tblTempUsageDetail_20' ) start [2024-12-18 21:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050954', 'tblTempUsageDetail_20' ) end [2024-12-18 21:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050954', 'tblTempVendorCDR_20' ) start [2024-12-18 21:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050954', 'tblTempVendorCDR_20' ) end [2024-12-18 21:39:16] Production.INFO: ProcessCDR(1,14050954,1,1,2) [2024-12-18 21:39:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:39:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:39:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:39:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:39:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050954', 'tblTempUsageDetail_20' ) start [2024-12-18 21:39:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050954', 'tblTempUsageDetail_20' ) end [2024-12-18 21:39:19] Production.ERROR: pbx prc_insertCDR start [2024-12-18 21:39:19] Production.ERROR: pbx prc_insertCDR end [2024-12-18 21:39:19] Production.INFO: ==2570== Releasing lock... [2024-12-18 21:39:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 21:39:19] Production.INFO: 37.5 MB #Memory Used# [2024-12-18 21:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 18:40:05 [end_date_ymd] => 2024-12-18 21:40:05 [RateCDR] => 1 ) [2024-12-18 21: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` >= '2024-12-18 18:40:05' and `end` < '2024-12-18 21: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 ,'') [2024-12-18 21:40:17] Production.INFO: count ==1291 [2024-12-18 21:40:18] Production.ERROR: pbx CDR StartTime 2024-12-18 18:40:05 - End Time 2024-12-18 21:40:05 [2024-12-18 21:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050960', 'tblTempUsageDetail_20' ) start [2024-12-18 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050960', 'tblTempUsageDetail_20' ) end [2024-12-18 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050960', 'tblTempVendorCDR_20' ) start [2024-12-18 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050960', 'tblTempVendorCDR_20' ) end [2024-12-18 21:40:18] Production.INFO: ProcessCDR(1,14050960,1,1,2) [2024-12-18 21:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050960', 'tblTempUsageDetail_20' ) start [2024-12-18 21:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050960', 'tblTempUsageDetail_20' ) end [2024-12-18 21:40:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 21:40:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 21:40:21] Production.INFO: ==2657== Releasing lock... [2024-12-18 21:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 21:40:21] Production.INFO: 37.5 MB #Memory Used# [2024-12-18 21:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 18:41:05 [end_date_ymd] => 2024-12-18 21:41:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 18:41:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 21:41:17] Production.INFO: count ==1280 [2024-12-18 21:41:18] Production.ERROR: pbx CDR StartTime 2024-12-18 18:41:05 - End Time 2024-12-18 21:41:05 [2024-12-18 21:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050965', 'tblTempUsageDetail_20' ) start [2024-12-18 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050965', 'tblTempUsageDetail_20' ) end [2024-12-18 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050965', 'tblTempVendorCDR_20' ) start [2024-12-18 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050965', 'tblTempVendorCDR_20' ) end [2024-12-18 21:41:18] Production.INFO: ProcessCDR(1,14050965,1,1,2) [2024-12-18 21:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050965', 'tblTempUsageDetail_20' ) start [2024-12-18 21:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050965', 'tblTempUsageDetail_20' ) end [2024-12-18 21:41:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 21:41:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 21:41:21] Production.INFO: ==2741== Releasing lock... [2024-12-18 21:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 21:41:21] Production.INFO: 38 MB #Memory Used# [2024-12-18 21:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 18:42:05 [end_date_ymd] => 2024-12-18 21:42:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 18:42:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 21:42:17] Production.INFO: count ==1281 [2024-12-18 21:42:17] Production.ERROR: pbx CDR StartTime 2024-12-18 18:42:05 - End Time 2024-12-18 21:42:05 [2024-12-18 21:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 21:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050970', 'tblTempUsageDetail_20' ) start [2024-12-18 21:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050970', 'tblTempUsageDetail_20' ) end [2024-12-18 21:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050970', 'tblTempVendorCDR_20' ) start [2024-12-18 21:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050970', 'tblTempVendorCDR_20' ) end [2024-12-18 21:42:17] Production.INFO: ProcessCDR(1,14050970,1,1,2) [2024-12-18 21:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050970', 'tblTempUsageDetail_20' ) start [2024-12-18 21:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050970', 'tblTempUsageDetail_20' ) end [2024-12-18 21:42:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 21:42:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 21:42:20] Production.INFO: ==2862== Releasing lock... [2024-12-18 21:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 21:42:20] Production.INFO: 37.5 MB #Memory Used# [2024-12-18 21:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 18:43:05 [end_date_ymd] => 2024-12-18 21:43:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 18:43:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 21:43:17] Production.INFO: count ==1278 [2024-12-18 21:43:17] Production.ERROR: pbx CDR StartTime 2024-12-18 18:43:05 - End Time 2024-12-18 21:43:05 [2024-12-18 21:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 21:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050975', 'tblTempUsageDetail_20' ) start [2024-12-18 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050975', 'tblTempUsageDetail_20' ) end [2024-12-18 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050975', 'tblTempVendorCDR_20' ) start [2024-12-18 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050975', 'tblTempVendorCDR_20' ) end [2024-12-18 21:43:18] Production.INFO: ProcessCDR(1,14050975,1,1,2) [2024-12-18 21:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050975', 'tblTempUsageDetail_20' ) start [2024-12-18 21:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050975', 'tblTempUsageDetail_20' ) end [2024-12-18 21:43:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 21:43:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 21:43:21] Production.INFO: ==2944== Releasing lock... [2024-12-18 21:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 21:43:21] Production.INFO: 37.5 MB #Memory Used# [2024-12-18 21:44:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 18:44:04 [end_date_ymd] => 2024-12-18 21:44:04 [RateCDR] => 1 ) [2024-12-18 21: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` >= '2024-12-18 18:44:04' and `end` < '2024-12-18 21: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 ,'') [2024-12-18 21:44:17] Production.INFO: count ==1275 [2024-12-18 21:44:17] Production.ERROR: pbx CDR StartTime 2024-12-18 18:44:04 - End Time 2024-12-18 21:44:04 [2024-12-18 21:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 21:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050980', 'tblTempUsageDetail_20' ) start [2024-12-18 21:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050980', 'tblTempUsageDetail_20' ) end [2024-12-18 21:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050980', 'tblTempVendorCDR_20' ) start [2024-12-18 21:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050980', 'tblTempVendorCDR_20' ) end [2024-12-18 21:44:17] Production.INFO: ProcessCDR(1,14050980,1,1,2) [2024-12-18 21:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050980', 'tblTempUsageDetail_20' ) start [2024-12-18 21:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050980', 'tblTempUsageDetail_20' ) end [2024-12-18 21:44:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 21:44:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 21:44:20] Production.INFO: ==3024== Releasing lock... [2024-12-18 21:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 21:44:20] Production.INFO: 37.25 MB #Memory Used# [2024-12-18 21:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 18:45:05 [end_date_ymd] => 2024-12-18 21:45:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 18:45:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 21:45:17] Production.INFO: count ==1272 [2024-12-18 21:45:17] Production.ERROR: pbx CDR StartTime 2024-12-18 18:45:05 - End Time 2024-12-18 21:45:05 [2024-12-18 21:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 21:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050985', 'tblTempUsageDetail_20' ) start [2024-12-18 21:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050985', 'tblTempUsageDetail_20' ) end [2024-12-18 21:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050985', 'tblTempVendorCDR_20' ) start [2024-12-18 21:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050985', 'tblTempVendorCDR_20' ) end [2024-12-18 21:45:17] Production.INFO: ProcessCDR(1,14050985,1,1,2) [2024-12-18 21:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050985', 'tblTempUsageDetail_20' ) start [2024-12-18 21:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050985', 'tblTempUsageDetail_20' ) end [2024-12-18 21:45:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 21:45:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 21:45:21] Production.INFO: ==3111== Releasing lock... [2024-12-18 21:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 21:45:21] Production.INFO: 37.25 MB #Memory Used# [2024-12-18 21:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 18:46:05 [end_date_ymd] => 2024-12-18 21:46:05 [RateCDR] => 1 ) [2024-12-18 21:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 18:46:05' and `end` < '2024-12-18 21:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 21:46:17] Production.INFO: count ==1270 [2024-12-18 21:46:17] Production.ERROR: pbx CDR StartTime 2024-12-18 18:46:05 - End Time 2024-12-18 21:46:05 [2024-12-18 21:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 21:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050990', 'tblTempUsageDetail_20' ) start [2024-12-18 21:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050990', 'tblTempUsageDetail_20' ) end [2024-12-18 21:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050990', 'tblTempVendorCDR_20' ) start [2024-12-18 21:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050990', 'tblTempVendorCDR_20' ) end [2024-12-18 21:46:17] Production.INFO: ProcessCDR(1,14050990,1,1,2) [2024-12-18 21:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050990', 'tblTempUsageDetail_20' ) start [2024-12-18 21:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050990', 'tblTempUsageDetail_20' ) end [2024-12-18 21:46:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 21:46:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 21:46:20] Production.INFO: ==3209== Releasing lock... [2024-12-18 21:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 21:46:20] Production.INFO: 37.25 MB #Memory Used# [2024-12-18 21:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 18:47:05 [end_date_ymd] => 2024-12-18 21:47:05 [RateCDR] => 1 ) [2024-12-18 21:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 18:47:05' and `end` < '2024-12-18 21:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 21:47:17] Production.INFO: count ==1270 [2024-12-18 21:47:17] Production.ERROR: pbx CDR StartTime 2024-12-18 18:47:05 - End Time 2024-12-18 21:47:05 [2024-12-18 21:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 21:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050995', 'tblTempUsageDetail_20' ) start [2024-12-18 21:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14050995', 'tblTempUsageDetail_20' ) end [2024-12-18 21:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050995', 'tblTempVendorCDR_20' ) start [2024-12-18 21:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14050995', 'tblTempVendorCDR_20' ) end [2024-12-18 21:47:17] Production.INFO: ProcessCDR(1,14050995,1,1,2) [2024-12-18 21:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14050995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14050995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14050995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14050995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050995', 'tblTempUsageDetail_20' ) start [2024-12-18 21:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14050995', 'tblTempUsageDetail_20' ) end [2024-12-18 21:47:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 21:47:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 21:47:20] Production.INFO: ==3320== Releasing lock... [2024-12-18 21:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 21:47:20] Production.INFO: 37.25 MB #Memory Used# [2024-12-18 21:48:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 18:48:04 [end_date_ymd] => 2024-12-18 21:48:04 [RateCDR] => 1 ) [2024-12-18 21:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 18:48:04' and `end` < '2024-12-18 21:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 21:48:16] Production.INFO: count ==1259 [2024-12-18 21:48:17] Production.ERROR: pbx CDR StartTime 2024-12-18 18:48:04 - End Time 2024-12-18 21:48:04 [2024-12-18 21:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 21:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051000', 'tblTempUsageDetail_20' ) start [2024-12-18 21:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051000', 'tblTempUsageDetail_20' ) end [2024-12-18 21:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051000', 'tblTempVendorCDR_20' ) start [2024-12-18 21:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051000', 'tblTempVendorCDR_20' ) end [2024-12-18 21:48:17] Production.INFO: ProcessCDR(1,14051000,1,1,2) [2024-12-18 21:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051000', 'tblTempUsageDetail_20' ) start [2024-12-18 21:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051000', 'tblTempUsageDetail_20' ) end [2024-12-18 21:48:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 21:48:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 21:48:20] Production.INFO: ==3434== Releasing lock... [2024-12-18 21:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 21:48:20] Production.INFO: 37.5 MB #Memory Used# [2024-12-18 21:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 18:49:05 [end_date_ymd] => 2024-12-18 21:49:05 [RateCDR] => 1 ) [2024-12-18 21:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 18:49:05' and `end` < '2024-12-18 21:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 21:49:19] Production.INFO: count ==1259 [2024-12-18 21:49:19] Production.ERROR: pbx CDR StartTime 2024-12-18 18:49:05 - End Time 2024-12-18 21:49:05 [2024-12-18 21:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051005', 'tblTempUsageDetail_20' ) start [2024-12-18 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051005', 'tblTempUsageDetail_20' ) end [2024-12-18 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051005', 'tblTempVendorCDR_20' ) start [2024-12-18 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051005', 'tblTempVendorCDR_20' ) end [2024-12-18 21:49:19] Production.INFO: ProcessCDR(1,14051005,1,1,2) [2024-12-18 21:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051005', 'tblTempUsageDetail_20' ) start [2024-12-18 21:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051005', 'tblTempUsageDetail_20' ) end [2024-12-18 21:49:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 21:49:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 21:49:22] Production.INFO: ==3523== Releasing lock... [2024-12-18 21:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 21:49:22] Production.INFO: 37.5 MB #Memory Used# [2024-12-18 21:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 18:50:06 [end_date_ymd] => 2024-12-18 21:50:06 [RateCDR] => 1 ) [2024-12-18 21:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 18:50:06' and `end` < '2024-12-18 21:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 21:50:18] Production.INFO: count ==1259 [2024-12-18 21:50:18] Production.ERROR: pbx CDR StartTime 2024-12-18 18:50:06 - End Time 2024-12-18 21:50:06 [2024-12-18 21:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 21:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051010', 'tblTempUsageDetail_20' ) start [2024-12-18 21:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051010', 'tblTempUsageDetail_20' ) end [2024-12-18 21:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051010', 'tblTempVendorCDR_20' ) start [2024-12-18 21:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051010', 'tblTempVendorCDR_20' ) end [2024-12-18 21:50:18] Production.INFO: ProcessCDR(1,14051010,1,1,2) [2024-12-18 21:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051010', 'tblTempUsageDetail_20' ) start [2024-12-18 21:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051010', 'tblTempUsageDetail_20' ) end [2024-12-18 21:50:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 21:50:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 21:50:21] Production.INFO: ==3608== Releasing lock... [2024-12-18 21:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 21:50:21] Production.INFO: 37.5 MB #Memory Used# [2024-12-18 21:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 18:51:05 [end_date_ymd] => 2024-12-18 21:51:05 [RateCDR] => 1 ) [2024-12-18 21:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 18:51:05' and `end` < '2024-12-18 21:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 21:51:17] Production.INFO: count ==1235 [2024-12-18 21:51:17] Production.ERROR: pbx CDR StartTime 2024-12-18 18:51:05 - End Time 2024-12-18 21:51:05 [2024-12-18 21:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 21:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051016', 'tblTempUsageDetail_20' ) start [2024-12-18 21:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051016', 'tblTempUsageDetail_20' ) end [2024-12-18 21:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051016', 'tblTempVendorCDR_20' ) start [2024-12-18 21:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051016', 'tblTempVendorCDR_20' ) end [2024-12-18 21:51:17] Production.INFO: ProcessCDR(1,14051016,1,1,2) [2024-12-18 21:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051016', 'tblTempUsageDetail_20' ) start [2024-12-18 21:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051016', 'tblTempUsageDetail_20' ) end [2024-12-18 21:51:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 21:51:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 21:51:20] Production.INFO: ==3690== Releasing lock... [2024-12-18 21:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 21:51:20] Production.INFO: 37 MB #Memory Used# [2024-12-18 21:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 18:52:05 [end_date_ymd] => 2024-12-18 21:52:05 [RateCDR] => 1 ) [2024-12-18 21:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 18:52:05' and `end` < '2024-12-18 21:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 21:52:17] Production.INFO: count ==1222 [2024-12-18 21:52:17] Production.ERROR: pbx CDR StartTime 2024-12-18 18:52:05 - End Time 2024-12-18 21:52:05 [2024-12-18 21:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 21:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051021', 'tblTempUsageDetail_20' ) start [2024-12-18 21:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051021', 'tblTempUsageDetail_20' ) end [2024-12-18 21:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051021', 'tblTempVendorCDR_20' ) start [2024-12-18 21:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051021', 'tblTempVendorCDR_20' ) end [2024-12-18 21:52:17] Production.INFO: ProcessCDR(1,14051021,1,1,2) [2024-12-18 21:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051021', 'tblTempUsageDetail_20' ) start [2024-12-18 21:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051021', 'tblTempUsageDetail_20' ) end [2024-12-18 21:52:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 21:52:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 21:52:22] Production.INFO: ==3772== Releasing lock... [2024-12-18 21:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 21:52:22] Production.INFO: 37.25 MB #Memory Used# [2024-12-18 21:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 18:53:04 [end_date_ymd] => 2024-12-18 21:53:04 [RateCDR] => 1 ) [2024-12-18 21:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 18:53:04' and `end` < '2024-12-18 21:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 21:53:17] Production.INFO: count ==1221 [2024-12-18 21:53:17] Production.ERROR: pbx CDR StartTime 2024-12-18 18:53:04 - End Time 2024-12-18 21:53:04 [2024-12-18 21:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 21:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051026', 'tblTempUsageDetail_20' ) start [2024-12-18 21:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051026', 'tblTempUsageDetail_20' ) end [2024-12-18 21:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051026', 'tblTempVendorCDR_20' ) start [2024-12-18 21:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051026', 'tblTempVendorCDR_20' ) end [2024-12-18 21:53:17] Production.INFO: ProcessCDR(1,14051026,1,1,2) [2024-12-18 21:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051026', 'tblTempUsageDetail_20' ) start [2024-12-18 21:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051026', 'tblTempUsageDetail_20' ) end [2024-12-18 21:53:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 21:53:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 21:53:20] Production.INFO: ==3857== Releasing lock... [2024-12-18 21:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 21:53:20] Production.INFO: 37.25 MB #Memory Used# [2024-12-18 21:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 18:54:05 [end_date_ymd] => 2024-12-18 21:54:05 [RateCDR] => 1 ) [2024-12-18 21:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 18:54:05' and `end` < '2024-12-18 21:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 21:54:18] Production.INFO: count ==1222 [2024-12-18 21:54:18] Production.ERROR: pbx CDR StartTime 2024-12-18 18:54:05 - End Time 2024-12-18 21:54:05 [2024-12-18 21:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051031', 'tblTempUsageDetail_20' ) start [2024-12-18 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051031', 'tblTempUsageDetail_20' ) end [2024-12-18 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051031', 'tblTempVendorCDR_20' ) start [2024-12-18 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051031', 'tblTempVendorCDR_20' ) end [2024-12-18 21:54:18] Production.INFO: ProcessCDR(1,14051031,1,1,2) [2024-12-18 21:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051031', 'tblTempUsageDetail_20' ) start [2024-12-18 21:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051031', 'tblTempUsageDetail_20' ) end [2024-12-18 21:54:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 21:54:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 21:54:21] Production.INFO: ==3939== Releasing lock... [2024-12-18 21:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 21:54:21] Production.INFO: 37.25 MB #Memory Used# [2024-12-18 21:55:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 18:55:04 [end_date_ymd] => 2024-12-18 21:55:04 [RateCDR] => 1 ) [2024-12-18 21:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 18:55:04' and `end` < '2024-12-18 21:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 21:55:17] Production.INFO: count ==1221 [2024-12-18 21:55:17] Production.ERROR: pbx CDR StartTime 2024-12-18 18:55:04 - End Time 2024-12-18 21:55:04 [2024-12-18 21:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 21:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051036', 'tblTempUsageDetail_20' ) start [2024-12-18 21:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051036', 'tblTempUsageDetail_20' ) end [2024-12-18 21:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051036', 'tblTempVendorCDR_20' ) start [2024-12-18 21:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051036', 'tblTempVendorCDR_20' ) end [2024-12-18 21:55:17] Production.INFO: ProcessCDR(1,14051036,1,1,2) [2024-12-18 21:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051036', 'tblTempUsageDetail_20' ) start [2024-12-18 21:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051036', 'tblTempUsageDetail_20' ) end [2024-12-18 21:55:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 21:55:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 21:55:20] Production.INFO: ==4026== Releasing lock... [2024-12-18 21:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 21:55:20] Production.INFO: 37 MB #Memory Used# [2024-12-18 21:56:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 18:56:04 [end_date_ymd] => 2024-12-18 21:56:04 [RateCDR] => 1 ) [2024-12-18 21:56:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 18:56:04' and `end` < '2024-12-18 21:56:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 21:56:17] Production.INFO: count ==1221 [2024-12-18 21:56:17] Production.ERROR: pbx CDR StartTime 2024-12-18 18:56:04 - End Time 2024-12-18 21:56:04 [2024-12-18 21:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 21:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051041', 'tblTempUsageDetail_20' ) start [2024-12-18 21:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051041', 'tblTempUsageDetail_20' ) end [2024-12-18 21:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051041', 'tblTempVendorCDR_20' ) start [2024-12-18 21:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051041', 'tblTempVendorCDR_20' ) end [2024-12-18 21:56:17] Production.INFO: ProcessCDR(1,14051041,1,1,2) [2024-12-18 21:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051041', 'tblTempUsageDetail_20' ) start [2024-12-18 21:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051041', 'tblTempUsageDetail_20' ) end [2024-12-18 21:56:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 21:56:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 21:56:21] Production.INFO: ==4107== Releasing lock... [2024-12-18 21:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 21:56:21] Production.INFO: 37 MB #Memory Used# [2024-12-18 21:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 18:57:05 [end_date_ymd] => 2024-12-18 21:57:05 [RateCDR] => 1 ) [2024-12-18 21:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 18:57:05' and `end` < '2024-12-18 21:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 21:57:17] Production.INFO: count ==1211 [2024-12-18 21:57:17] Production.ERROR: pbx CDR StartTime 2024-12-18 18:57:05 - End Time 2024-12-18 21:57:05 [2024-12-18 21:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 21:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051046', 'tblTempUsageDetail_20' ) start [2024-12-18 21:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051046', 'tblTempUsageDetail_20' ) end [2024-12-18 21:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051046', 'tblTempVendorCDR_20' ) start [2024-12-18 21:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051046', 'tblTempVendorCDR_20' ) end [2024-12-18 21:57:17] Production.INFO: ProcessCDR(1,14051046,1,1,2) [2024-12-18 21:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051046', 'tblTempUsageDetail_20' ) start [2024-12-18 21:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051046', 'tblTempUsageDetail_20' ) end [2024-12-18 21:57:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 21:57:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 21:57:20] Production.INFO: ==4194== Releasing lock... [2024-12-18 21:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 21:57:20] Production.INFO: 36.75 MB #Memory Used# [2024-12-18 21:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 18:58:05 [end_date_ymd] => 2024-12-18 21:58:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 18:58:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 21:58:17] Production.INFO: count ==1209 [2024-12-18 21:58:17] Production.ERROR: pbx CDR StartTime 2024-12-18 18:58:05 - End Time 2024-12-18 21:58:05 [2024-12-18 21:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 21:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051051', 'tblTempUsageDetail_20' ) start [2024-12-18 21:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051051', 'tblTempUsageDetail_20' ) end [2024-12-18 21:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051051', 'tblTempVendorCDR_20' ) start [2024-12-18 21:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051051', 'tblTempVendorCDR_20' ) end [2024-12-18 21:58:17] Production.INFO: ProcessCDR(1,14051051,1,1,2) [2024-12-18 21:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051051', 'tblTempUsageDetail_20' ) start [2024-12-18 21:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051051', 'tblTempUsageDetail_20' ) end [2024-12-18 21:58:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 21:58:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 21:58:20] Production.INFO: ==4313== Releasing lock... [2024-12-18 21:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 21:58:20] Production.INFO: 36.75 MB #Memory Used# [2024-12-18 21:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 18:59:05 [end_date_ymd] => 2024-12-18 21:59:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 18:59:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 21:59:17] Production.INFO: count ==1199 [2024-12-18 21:59:17] Production.ERROR: pbx CDR StartTime 2024-12-18 18:59:05 - End Time 2024-12-18 21:59:05 [2024-12-18 21:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 21:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051056', 'tblTempUsageDetail_20' ) start [2024-12-18 21:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051056', 'tblTempUsageDetail_20' ) end [2024-12-18 21:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051056', 'tblTempVendorCDR_20' ) start [2024-12-18 21:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051056', 'tblTempVendorCDR_20' ) end [2024-12-18 21:59:17] Production.INFO: ProcessCDR(1,14051056,1,1,2) [2024-12-18 21:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 21:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 21:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051056', 'tblTempUsageDetail_20' ) start [2024-12-18 21:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051056', 'tblTempUsageDetail_20' ) end [2024-12-18 21:59:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 21:59:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 21:59:20] Production.INFO: ==4396== Releasing lock... [2024-12-18 21:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 21:59:20] Production.INFO: 36.75 MB #Memory Used# [2024-12-18 22:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 19:00:05 [end_date_ymd] => 2024-12-18 22:00:05 [RateCDR] => 1 ) [2024-12-18 22:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 19:00:05' and `end` < '2024-12-18 22:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 22:00:17] Production.INFO: count ==1189 [2024-12-18 22:00:17] Production.ERROR: pbx CDR StartTime 2024-12-18 19:00:05 - End Time 2024-12-18 22:00:05 [2024-12-18 22:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 22:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051062', 'tblTempUsageDetail_20' ) start [2024-12-18 22:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051062', 'tblTempUsageDetail_20' ) end [2024-12-18 22:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051062', 'tblTempVendorCDR_20' ) start [2024-12-18 22:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051062', 'tblTempVendorCDR_20' ) end [2024-12-18 22:00:17] Production.INFO: ProcessCDR(1,14051062,1,1,2) [2024-12-18 22:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:00:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:00:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051062', 'tblTempUsageDetail_20' ) start [2024-12-18 22:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051062', 'tblTempUsageDetail_20' ) end [2024-12-18 22:00:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 22:00:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 22:00:21] Production.INFO: ==4489== Releasing lock... [2024-12-18 22:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 22:00:21] Production.INFO: 36.75 MB #Memory Used# [2024-12-18 22:01:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 19:01:04 [end_date_ymd] => 2024-12-18 22:01:04 [RateCDR] => 1 ) [2024-12-18 22: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` >= '2024-12-18 19:01:04' and `end` < '2024-12-18 22: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 ,'') [2024-12-18 22:01:18] Production.INFO: count ==1159 [2024-12-18 22:01:18] Production.ERROR: pbx CDR StartTime 2024-12-18 19:01:04 - End Time 2024-12-18 22:01:04 [2024-12-18 22:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051067', 'tblTempUsageDetail_20' ) start [2024-12-18 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051067', 'tblTempUsageDetail_20' ) end [2024-12-18 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051067', 'tblTempVendorCDR_20' ) start [2024-12-18 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051067', 'tblTempVendorCDR_20' ) end [2024-12-18 22:01:18] Production.INFO: ProcessCDR(1,14051067,1,1,2) [2024-12-18 22:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051067', 'tblTempUsageDetail_20' ) start [2024-12-18 22:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051067', 'tblTempUsageDetail_20' ) end [2024-12-18 22:01:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 22:01:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 22:01:21] Production.INFO: ==4593== Releasing lock... [2024-12-18 22:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 22:01:21] Production.INFO: 36.5 MB #Memory Used# [2024-12-18 22:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 19:02:05 [end_date_ymd] => 2024-12-18 22:02:05 [RateCDR] => 1 ) [2024-12-18 22:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 19:02:05' and `end` < '2024-12-18 22:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 22:02:18] Production.INFO: count ==1160 [2024-12-18 22:02:18] Production.ERROR: pbx CDR StartTime 2024-12-18 19:02:05 - End Time 2024-12-18 22:02:05 [2024-12-18 22:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051072', 'tblTempUsageDetail_20' ) start [2024-12-18 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051072', 'tblTempUsageDetail_20' ) end [2024-12-18 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051072', 'tblTempVendorCDR_20' ) start [2024-12-18 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051072', 'tblTempVendorCDR_20' ) end [2024-12-18 22:02:18] Production.INFO: ProcessCDR(1,14051072,1,1,2) [2024-12-18 22:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051072', 'tblTempUsageDetail_20' ) start [2024-12-18 22:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051072', 'tblTempUsageDetail_20' ) end [2024-12-18 22:02:23] Production.ERROR: pbx prc_insertCDR start [2024-12-18 22:02:23] Production.ERROR: pbx prc_insertCDR end [2024-12-18 22:02:23] Production.INFO: ==4678== Releasing lock... [2024-12-18 22:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 22:02:23] Production.INFO: 36.5 MB #Memory Used# [2024-12-18 22:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 19:03:04 [end_date_ymd] => 2024-12-18 22:03:04 [RateCDR] => 1 ) [2024-12-18 22:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 19:03:04' and `end` < '2024-12-18 22:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 22:03:16] Production.INFO: count ==1159 [2024-12-18 22:03:16] Production.ERROR: pbx CDR StartTime 2024-12-18 19:03:04 - End Time 2024-12-18 22:03:04 [2024-12-18 22:03:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 22:03:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051077', 'tblTempUsageDetail_20' ) start [2024-12-18 22:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051077', 'tblTempUsageDetail_20' ) end [2024-12-18 22:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051077', 'tblTempVendorCDR_20' ) start [2024-12-18 22:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051077', 'tblTempVendorCDR_20' ) end [2024-12-18 22:03:17] Production.INFO: ProcessCDR(1,14051077,1,1,2) [2024-12-18 22:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:03:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:03:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051077', 'tblTempUsageDetail_20' ) start [2024-12-18 22:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051077', 'tblTempUsageDetail_20' ) end [2024-12-18 22:03:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 22:03:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 22:03:20] Production.INFO: ==4760== Releasing lock... [2024-12-18 22:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 22:03:20] Production.INFO: 36.5 MB #Memory Used# [2024-12-18 22:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 19:04:05 [end_date_ymd] => 2024-12-18 22:04:05 [RateCDR] => 1 ) [2024-12-18 22:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 19:04:05' and `end` < '2024-12-18 22:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 22:04:17] Production.INFO: count ==1161 [2024-12-18 22:04:17] Production.ERROR: pbx CDR StartTime 2024-12-18 19:04:05 - End Time 2024-12-18 22:04:05 [2024-12-18 22:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 22:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051082', 'tblTempUsageDetail_20' ) start [2024-12-18 22:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051082', 'tblTempUsageDetail_20' ) end [2024-12-18 22:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051082', 'tblTempVendorCDR_20' ) start [2024-12-18 22:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051082', 'tblTempVendorCDR_20' ) end [2024-12-18 22:04:17] Production.INFO: ProcessCDR(1,14051082,1,1,2) [2024-12-18 22:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051082', 'tblTempUsageDetail_20' ) start [2024-12-18 22:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051082', 'tblTempUsageDetail_20' ) end [2024-12-18 22:04:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 22:04:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 22:04:21] Production.INFO: ==4845== Releasing lock... [2024-12-18 22:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 22:04:21] Production.INFO: 36.5 MB #Memory Used# [2024-12-18 22:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 19:05:04 [end_date_ymd] => 2024-12-18 22:05:04 [RateCDR] => 1 ) [2024-12-18 22: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` >= '2024-12-18 19:05:04' and `end` < '2024-12-18 22: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 ,'') [2024-12-18 22:05:16] Production.INFO: count ==1162 [2024-12-18 22:05:17] Production.ERROR: pbx CDR StartTime 2024-12-18 19:05:04 - End Time 2024-12-18 22:05:04 [2024-12-18 22:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 22:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051087', 'tblTempUsageDetail_20' ) start [2024-12-18 22:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051087', 'tblTempUsageDetail_20' ) end [2024-12-18 22:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051087', 'tblTempVendorCDR_20' ) start [2024-12-18 22:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051087', 'tblTempVendorCDR_20' ) end [2024-12-18 22:05:17] Production.INFO: ProcessCDR(1,14051087,1,1,2) [2024-12-18 22:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051087', 'tblTempUsageDetail_20' ) start [2024-12-18 22:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051087', 'tblTempUsageDetail_20' ) end [2024-12-18 22:05:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 22:05:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 22:05:20] Production.INFO: ==4927== Releasing lock... [2024-12-18 22:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 22:05:20] Production.INFO: 36.75 MB #Memory Used# [2024-12-18 22:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 19:06:05 [end_date_ymd] => 2024-12-18 22:06:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 19:06:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 22:06:18] Production.INFO: count ==1155 [2024-12-18 22:06:19] Production.ERROR: pbx CDR StartTime 2024-12-18 19:06:05 - End Time 2024-12-18 22:06:05 [2024-12-18 22:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051092', 'tblTempUsageDetail_20' ) start [2024-12-18 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051092', 'tblTempUsageDetail_20' ) end [2024-12-18 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051092', 'tblTempVendorCDR_20' ) start [2024-12-18 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051092', 'tblTempVendorCDR_20' ) end [2024-12-18 22:06:19] Production.INFO: ProcessCDR(1,14051092,1,1,2) [2024-12-18 22:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051092', 'tblTempUsageDetail_20' ) start [2024-12-18 22:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051092', 'tblTempUsageDetail_20' ) end [2024-12-18 22:06:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 22:06:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 22:06:21] Production.INFO: ==5011== Releasing lock... [2024-12-18 22:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 22:06:21] Production.INFO: 36.5 MB #Memory Used# [2024-12-18 22:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 19:07:04 [end_date_ymd] => 2024-12-18 22:07:04 [RateCDR] => 1 ) [2024-12-18 22:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 19:07:04' and `end` < '2024-12-18 22: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 ,'') [2024-12-18 22:07:16] Production.INFO: count ==1155 [2024-12-18 22:07:16] Production.ERROR: pbx CDR StartTime 2024-12-18 19:07:04 - End Time 2024-12-18 22:07:04 [2024-12-18 22:07:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 22:07:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051097', 'tblTempUsageDetail_20' ) start [2024-12-18 22:07:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051097', 'tblTempUsageDetail_20' ) end [2024-12-18 22:07:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051097', 'tblTempVendorCDR_20' ) start [2024-12-18 22:07:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051097', 'tblTempVendorCDR_20' ) end [2024-12-18 22:07:16] Production.INFO: ProcessCDR(1,14051097,1,1,2) [2024-12-18 22:07:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:07:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:07:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:07:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:07:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051097', 'tblTempUsageDetail_20' ) start [2024-12-18 22:07:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051097', 'tblTempUsageDetail_20' ) end [2024-12-18 22:07:19] Production.ERROR: pbx prc_insertCDR start [2024-12-18 22:07:19] Production.ERROR: pbx prc_insertCDR end [2024-12-18 22:07:19] Production.INFO: ==5099== Releasing lock... [2024-12-18 22:07:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 22:07:19] Production.INFO: 36.5 MB #Memory Used# [2024-12-18 22:08:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 19:08:04 [end_date_ymd] => 2024-12-18 22:08:04 [RateCDR] => 1 ) [2024-12-18 22:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 19:08:04' and `end` < '2024-12-18 22:08:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 22:08:17] Production.INFO: count ==1156 [2024-12-18 22:08:17] Production.ERROR: pbx CDR StartTime 2024-12-18 19:08:04 - End Time 2024-12-18 22:08:04 [2024-12-18 22:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 22:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051102', 'tblTempUsageDetail_20' ) start [2024-12-18 22:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051102', 'tblTempUsageDetail_20' ) end [2024-12-18 22:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051102', 'tblTempVendorCDR_20' ) start [2024-12-18 22:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051102', 'tblTempVendorCDR_20' ) end [2024-12-18 22:08:17] Production.INFO: ProcessCDR(1,14051102,1,1,2) [2024-12-18 22:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051102', 'tblTempUsageDetail_20' ) start [2024-12-18 22:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051102', 'tblTempUsageDetail_20' ) end [2024-12-18 22:08:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 22:08:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 22:08:20] Production.INFO: ==5190== Releasing lock... [2024-12-18 22:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 22:08:20] Production.INFO: 36.5 MB #Memory Used# [2024-12-18 22:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 19:09:05 [end_date_ymd] => 2024-12-18 22:09:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 19:09:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 22:09:19] Production.INFO: count ==1155 [2024-12-18 22:09:19] Production.ERROR: pbx CDR StartTime 2024-12-18 19:09:05 - End Time 2024-12-18 22:09:05 [2024-12-18 22:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051107', 'tblTempUsageDetail_20' ) start [2024-12-18 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051107', 'tblTempUsageDetail_20' ) end [2024-12-18 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051107', 'tblTempVendorCDR_20' ) start [2024-12-18 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051107', 'tblTempVendorCDR_20' ) end [2024-12-18 22:09:19] Production.INFO: ProcessCDR(1,14051107,1,1,2) [2024-12-18 22:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051107', 'tblTempUsageDetail_20' ) start [2024-12-18 22:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051107', 'tblTempUsageDetail_20' ) end [2024-12-18 22:09:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 22:09:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 22:09:22] Production.INFO: ==5272== Releasing lock... [2024-12-18 22:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 22:09:22] Production.INFO: 36.5 MB #Memory Used# [2024-12-18 22:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 19:10:05 [end_date_ymd] => 2024-12-18 22:10:05 [RateCDR] => 1 ) [2024-12-18 22: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` >= '2024-12-18 19:10:05' and `end` < '2024-12-18 22: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 ,'') [2024-12-18 22:10:17] Production.INFO: count ==1153 [2024-12-18 22:10:17] Production.ERROR: pbx CDR StartTime 2024-12-18 19:10:05 - End Time 2024-12-18 22:10:05 [2024-12-18 22:10:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 22:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051112', 'tblTempUsageDetail_20' ) start [2024-12-18 22:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051112', 'tblTempUsageDetail_20' ) end [2024-12-18 22:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051112', 'tblTempVendorCDR_20' ) start [2024-12-18 22:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051112', 'tblTempVendorCDR_20' ) end [2024-12-18 22:10:17] Production.INFO: ProcessCDR(1,14051112,1,1,2) [2024-12-18 22:10:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:10:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:10:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:10:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:10:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051112', 'tblTempUsageDetail_20' ) start [2024-12-18 22:10:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051112', 'tblTempUsageDetail_20' ) end [2024-12-18 22:10:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 22:10:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 22:10:20] Production.INFO: ==5356== Releasing lock... [2024-12-18 22:10:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 22:10:20] Production.INFO: 36.5 MB #Memory Used# [2024-12-18 22:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 19:11:05 [end_date_ymd] => 2024-12-18 22:11:05 [RateCDR] => 1 ) [2024-12-18 22:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 19:11:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 22:11:17] Production.INFO: count ==1103 [2024-12-18 22:11:17] Production.ERROR: pbx CDR StartTime 2024-12-18 19:11:05 - End Time 2024-12-18 22:11:05 [2024-12-18 22:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 22:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051118', 'tblTempUsageDetail_20' ) start [2024-12-18 22:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051118', 'tblTempUsageDetail_20' ) end [2024-12-18 22:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051118', 'tblTempVendorCDR_20' ) start [2024-12-18 22:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051118', 'tblTempVendorCDR_20' ) end [2024-12-18 22:11:17] Production.INFO: ProcessCDR(1,14051118,1,1,2) [2024-12-18 22:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051118', 'tblTempUsageDetail_20' ) start [2024-12-18 22:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051118', 'tblTempUsageDetail_20' ) end [2024-12-18 22:11:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 22:11:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 22:11:20] Production.INFO: ==5446== Releasing lock... [2024-12-18 22:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 22:11:20] Production.INFO: 36 MB #Memory Used# [2024-12-18 22:12:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 19:12:04 [end_date_ymd] => 2024-12-18 22:12:04 [RateCDR] => 1 ) [2024-12-18 22:12:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 19:12:04' and `end` < '2024-12-18 22:12:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 22:12:17] Production.INFO: count ==1100 [2024-12-18 22:12:17] Production.ERROR: pbx CDR StartTime 2024-12-18 19:12:04 - End Time 2024-12-18 22:12:04 [2024-12-18 22:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 22:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051123', 'tblTempUsageDetail_20' ) start [2024-12-18 22:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051123', 'tblTempUsageDetail_20' ) end [2024-12-18 22:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051123', 'tblTempVendorCDR_20' ) start [2024-12-18 22:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051123', 'tblTempVendorCDR_20' ) end [2024-12-18 22:12:17] Production.INFO: ProcessCDR(1,14051123,1,1,2) [2024-12-18 22:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051123', 'tblTempUsageDetail_20' ) start [2024-12-18 22:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051123', 'tblTempUsageDetail_20' ) end [2024-12-18 22:12:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 22:12:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 22:12:21] Production.INFO: ==5529== Releasing lock... [2024-12-18 22:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 22:12:21] Production.INFO: 36.25 MB #Memory Used# [2024-12-18 22:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 19:13:05 [end_date_ymd] => 2024-12-18 22:13:05 [RateCDR] => 1 ) [2024-12-18 22:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 19:13:05' and `end` < '2024-12-18 22:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 22:13:18] Production.INFO: count ==1096 [2024-12-18 22:13:18] Production.ERROR: pbx CDR StartTime 2024-12-18 19:13:05 - End Time 2024-12-18 22:13:05 [2024-12-18 22:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051128', 'tblTempUsageDetail_20' ) start [2024-12-18 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051128', 'tblTempUsageDetail_20' ) end [2024-12-18 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051128', 'tblTempVendorCDR_20' ) start [2024-12-18 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051128', 'tblTempVendorCDR_20' ) end [2024-12-18 22:13:18] Production.INFO: ProcessCDR(1,14051128,1,1,2) [2024-12-18 22:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051128', 'tblTempUsageDetail_20' ) start [2024-12-18 22:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051128', 'tblTempUsageDetail_20' ) end [2024-12-18 22:13:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 22:13:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 22:13:21] Production.INFO: ==5652== Releasing lock... [2024-12-18 22:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 22:13:21] Production.INFO: 36.25 MB #Memory Used# [2024-12-18 22:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 19:14:05 [end_date_ymd] => 2024-12-18 22:14:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 19:14:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 22:14:18] Production.INFO: count ==1091 [2024-12-18 22:14:18] Production.ERROR: pbx CDR StartTime 2024-12-18 19:14:05 - End Time 2024-12-18 22:14:05 [2024-12-18 22:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051133', 'tblTempUsageDetail_20' ) start [2024-12-18 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051133', 'tblTempUsageDetail_20' ) end [2024-12-18 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051133', 'tblTempVendorCDR_20' ) start [2024-12-18 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051133', 'tblTempVendorCDR_20' ) end [2024-12-18 22:14:18] Production.INFO: ProcessCDR(1,14051133,1,1,2) [2024-12-18 22:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051133', 'tblTempUsageDetail_20' ) start [2024-12-18 22:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051133', 'tblTempUsageDetail_20' ) end [2024-12-18 22:14:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 22:14:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 22:14:21] Production.INFO: ==5736== Releasing lock... [2024-12-18 22:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 22:14:21] Production.INFO: 36 MB #Memory Used# [2024-12-18 22:15:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 19:15:04 [end_date_ymd] => 2024-12-18 22:15:04 [RateCDR] => 1 ) [2024-12-18 22: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` >= '2024-12-18 19:15:04' and `end` < '2024-12-18 22: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 ,'') [2024-12-18 22:15:16] Production.INFO: count ==1088 [2024-12-18 22:15:17] Production.ERROR: pbx CDR StartTime 2024-12-18 19:15:04 - End Time 2024-12-18 22:15:04 [2024-12-18 22:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 22:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051138', 'tblTempUsageDetail_20' ) start [2024-12-18 22:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051138', 'tblTempUsageDetail_20' ) end [2024-12-18 22:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051138', 'tblTempVendorCDR_20' ) start [2024-12-18 22:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051138', 'tblTempVendorCDR_20' ) end [2024-12-18 22:15:17] Production.INFO: ProcessCDR(1,14051138,1,1,2) [2024-12-18 22:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051138', 'tblTempUsageDetail_20' ) start [2024-12-18 22:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051138', 'tblTempUsageDetail_20' ) end [2024-12-18 22:15:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 22:15:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 22:15:20] Production.INFO: ==5817== Releasing lock... [2024-12-18 22:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 22:15:20] Production.INFO: 36 MB #Memory Used# [2024-12-18 22:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 19:16:05 [end_date_ymd] => 2024-12-18 22:16:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 19:16:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 22:16:18] Production.INFO: count ==1087 [2024-12-18 22:16:18] Production.ERROR: pbx CDR StartTime 2024-12-18 19:16:05 - End Time 2024-12-18 22:16:05 [2024-12-18 22:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051143', 'tblTempUsageDetail_20' ) start [2024-12-18 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051143', 'tblTempUsageDetail_20' ) end [2024-12-18 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051143', 'tblTempVendorCDR_20' ) start [2024-12-18 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051143', 'tblTempVendorCDR_20' ) end [2024-12-18 22:16:18] Production.INFO: ProcessCDR(1,14051143,1,1,2) [2024-12-18 22:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051143', 'tblTempUsageDetail_20' ) start [2024-12-18 22:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051143', 'tblTempUsageDetail_20' ) end [2024-12-18 22:16:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 22:16:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 22:16:21] Production.INFO: ==5902== Releasing lock... [2024-12-18 22:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 22:16:21] Production.INFO: 36 MB #Memory Used# [2024-12-18 22:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 19:17:05 [end_date_ymd] => 2024-12-18 22:17:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 19:17:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 22:17:17] Production.INFO: count ==1084 [2024-12-18 22:17:17] Production.ERROR: pbx CDR StartTime 2024-12-18 19:17:05 - End Time 2024-12-18 22:17:05 [2024-12-18 22:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 22:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051148', 'tblTempUsageDetail_20' ) start [2024-12-18 22:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051148', 'tblTempUsageDetail_20' ) end [2024-12-18 22:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051148', 'tblTempVendorCDR_20' ) start [2024-12-18 22:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051148', 'tblTempVendorCDR_20' ) end [2024-12-18 22:17:17] Production.INFO: ProcessCDR(1,14051148,1,1,2) [2024-12-18 22:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051148', 'tblTempUsageDetail_20' ) start [2024-12-18 22:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051148', 'tblTempUsageDetail_20' ) end [2024-12-18 22:17:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 22:17:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 22:17:20] Production.INFO: ==5985== Releasing lock... [2024-12-18 22:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 22:17:20] Production.INFO: 36 MB #Memory Used# [2024-12-18 22:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 19:18:05 [end_date_ymd] => 2024-12-18 22:18:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 19:18:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 22:18:17] Production.INFO: count ==1085 [2024-12-18 22:18:18] Production.ERROR: pbx CDR StartTime 2024-12-18 19:18:05 - End Time 2024-12-18 22:18:05 [2024-12-18 22:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051153', 'tblTempUsageDetail_20' ) start [2024-12-18 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051153', 'tblTempUsageDetail_20' ) end [2024-12-18 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051153', 'tblTempVendorCDR_20' ) start [2024-12-18 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051153', 'tblTempVendorCDR_20' ) end [2024-12-18 22:18:18] Production.INFO: ProcessCDR(1,14051153,1,1,2) [2024-12-18 22:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051153', 'tblTempUsageDetail_20' ) start [2024-12-18 22:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051153', 'tblTempUsageDetail_20' ) end [2024-12-18 22:18:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 22:18:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 22:18:21] Production.INFO: ==6071== Releasing lock... [2024-12-18 22:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 22:18:21] Production.INFO: 36 MB #Memory Used# [2024-12-18 22:19:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 19:19:04 [end_date_ymd] => 2024-12-18 22:19:04 [RateCDR] => 1 ) [2024-12-18 22:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 19:19:04' and `end` < '2024-12-18 22:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 22:19:16] Production.INFO: count ==1087 [2024-12-18 22:19:16] Production.ERROR: pbx CDR StartTime 2024-12-18 19:19:04 - End Time 2024-12-18 22:19:04 [2024-12-18 22:19:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 22:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051158', 'tblTempUsageDetail_20' ) start [2024-12-18 22:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051158', 'tblTempUsageDetail_20' ) end [2024-12-18 22:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051158', 'tblTempVendorCDR_20' ) start [2024-12-18 22:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051158', 'tblTempVendorCDR_20' ) end [2024-12-18 22:19:16] Production.INFO: ProcessCDR(1,14051158,1,1,2) [2024-12-18 22:19:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:19:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:19:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051158', 'tblTempUsageDetail_20' ) start [2024-12-18 22:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051158', 'tblTempUsageDetail_20' ) end [2024-12-18 22:19:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 22:19:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 22:19:20] Production.INFO: ==6153== Releasing lock... [2024-12-18 22:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 22:19:20] Production.INFO: 36 MB #Memory Used# [2024-12-18 22:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 19:20:06 [end_date_ymd] => 2024-12-18 22:20:06 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 19:20:06' and `end` < '2024-12-18 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 ,'') [2024-12-18 22:20:18] Production.INFO: count ==1089 [2024-12-18 22:20:18] Production.ERROR: pbx CDR StartTime 2024-12-18 19:20:06 - End Time 2024-12-18 22:20:06 [2024-12-18 22:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051164', 'tblTempUsageDetail_20' ) start [2024-12-18 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051164', 'tblTempUsageDetail_20' ) end [2024-12-18 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051164', 'tblTempVendorCDR_20' ) start [2024-12-18 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051164', 'tblTempVendorCDR_20' ) end [2024-12-18 22:20:18] Production.INFO: ProcessCDR(1,14051164,1,1,2) [2024-12-18 22:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051164', 'tblTempUsageDetail_20' ) start [2024-12-18 22:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051164', 'tblTempUsageDetail_20' ) end [2024-12-18 22:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 22:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 22:20:21] Production.INFO: ==6241== Releasing lock... [2024-12-18 22:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 22:20:21] Production.INFO: 36 MB #Memory Used# [2024-12-18 22:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 19:21:04 [end_date_ymd] => 2024-12-18 22:21:04 [RateCDR] => 1 ) [2024-12-18 22:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 19:21:04' and `end` < '2024-12-18 22:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 22:21:18] Production.INFO: count ==1075 [2024-12-18 22:21:18] Production.ERROR: pbx CDR StartTime 2024-12-18 19:21:04 - End Time 2024-12-18 22:21:04 [2024-12-18 22:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051169', 'tblTempUsageDetail_20' ) start [2024-12-18 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051169', 'tblTempUsageDetail_20' ) end [2024-12-18 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051169', 'tblTempVendorCDR_20' ) start [2024-12-18 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051169', 'tblTempVendorCDR_20' ) end [2024-12-18 22:21:18] Production.INFO: ProcessCDR(1,14051169,1,1,2) [2024-12-18 22:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051169', 'tblTempUsageDetail_20' ) start [2024-12-18 22:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051169', 'tblTempUsageDetail_20' ) end [2024-12-18 22:21:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 22:21:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 22:21:21] Production.INFO: ==6329== Releasing lock... [2024-12-18 22:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 22:21:21] Production.INFO: 35.75 MB #Memory Used# [2024-12-18 22:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 19:22:05 [end_date_ymd] => 2024-12-18 22:22:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 19:22:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 22:22:19] Production.INFO: count ==1076 [2024-12-18 22:22:19] Production.ERROR: pbx CDR StartTime 2024-12-18 19:22:05 - End Time 2024-12-18 22:22:05 [2024-12-18 22:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051174', 'tblTempUsageDetail_20' ) start [2024-12-18 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051174', 'tblTempUsageDetail_20' ) end [2024-12-18 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051174', 'tblTempVendorCDR_20' ) start [2024-12-18 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051174', 'tblTempVendorCDR_20' ) end [2024-12-18 22:22:19] Production.INFO: ProcessCDR(1,14051174,1,1,2) [2024-12-18 22:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051174', 'tblTempUsageDetail_20' ) start [2024-12-18 22:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051174', 'tblTempUsageDetail_20' ) end [2024-12-18 22:22:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 22:22:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 22:22:22] Production.INFO: ==6413== Releasing lock... [2024-12-18 22:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 22:22:22] Production.INFO: 35.75 MB #Memory Used# [2024-12-18 22:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 19:23:04 [end_date_ymd] => 2024-12-18 22:23:04 [RateCDR] => 1 ) [2024-12-18 22:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 19:23:04' and `end` < '2024-12-18 22:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 22:23:16] Production.INFO: count ==1080 [2024-12-18 22:23:17] Production.ERROR: pbx CDR StartTime 2024-12-18 19:23:04 - End Time 2024-12-18 22:23:04 [2024-12-18 22:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 22:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051179', 'tblTempUsageDetail_20' ) start [2024-12-18 22:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051179', 'tblTempUsageDetail_20' ) end [2024-12-18 22:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051179', 'tblTempVendorCDR_20' ) start [2024-12-18 22:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051179', 'tblTempVendorCDR_20' ) end [2024-12-18 22:23:17] Production.INFO: ProcessCDR(1,14051179,1,1,2) [2024-12-18 22:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051179', 'tblTempUsageDetail_20' ) start [2024-12-18 22:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051179', 'tblTempUsageDetail_20' ) end [2024-12-18 22:23:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 22:23:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 22:23:20] Production.INFO: ==6496== Releasing lock... [2024-12-18 22:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 22:23:20] Production.INFO: 36 MB #Memory Used# [2024-12-18 22:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 19:24:05 [end_date_ymd] => 2024-12-18 22:24:05 [RateCDR] => 1 ) [2024-12-18 22:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 19:24:05' and `end` < '2024-12-18 22:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 22:24:18] Production.INFO: count ==1080 [2024-12-18 22:24:18] Production.ERROR: pbx CDR StartTime 2024-12-18 19:24:05 - End Time 2024-12-18 22:24:05 [2024-12-18 22:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051184', 'tblTempUsageDetail_20' ) start [2024-12-18 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051184', 'tblTempUsageDetail_20' ) end [2024-12-18 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051184', 'tblTempVendorCDR_20' ) start [2024-12-18 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051184', 'tblTempVendorCDR_20' ) end [2024-12-18 22:24:18] Production.INFO: ProcessCDR(1,14051184,1,1,2) [2024-12-18 22:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051184', 'tblTempUsageDetail_20' ) start [2024-12-18 22:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051184', 'tblTempUsageDetail_20' ) end [2024-12-18 22:24:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 22:24:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 22:24:21] Production.INFO: ==6582== Releasing lock... [2024-12-18 22:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 22:24:21] Production.INFO: 36 MB #Memory Used# [2024-12-18 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 19:25:05 [end_date_ymd] => 2024-12-18 22:25:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 19:25:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 22:25:17] Production.INFO: count ==1080 [2024-12-18 22:25:17] Production.ERROR: pbx CDR StartTime 2024-12-18 19:25:05 - End Time 2024-12-18 22:25:05 [2024-12-18 22:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051189', 'tblTempUsageDetail_20' ) start [2024-12-18 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051189', 'tblTempUsageDetail_20' ) end [2024-12-18 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051189', 'tblTempVendorCDR_20' ) start [2024-12-18 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051189', 'tblTempVendorCDR_20' ) end [2024-12-18 22:25:17] Production.INFO: ProcessCDR(1,14051189,1,1,2) [2024-12-18 22:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051189', 'tblTempUsageDetail_20' ) start [2024-12-18 22:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051189', 'tblTempUsageDetail_20' ) end [2024-12-18 22:25:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 22:25:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 22:25:20] Production.INFO: ==6667== Releasing lock... [2024-12-18 22:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 22:25:20] Production.INFO: 36 MB #Memory Used# [2024-12-18 22:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 19:26:05 [end_date_ymd] => 2024-12-18 22:26:05 [RateCDR] => 1 ) [2024-12-18 22:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 19:26:05' and `end` < '2024-12-18 22:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 22:26:18] Production.INFO: count ==1082 [2024-12-18 22:26:18] Production.ERROR: pbx CDR StartTime 2024-12-18 19:26:05 - End Time 2024-12-18 22:26:05 [2024-12-18 22:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051194', 'tblTempUsageDetail_20' ) start [2024-12-18 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051194', 'tblTempUsageDetail_20' ) end [2024-12-18 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051194', 'tblTempVendorCDR_20' ) start [2024-12-18 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051194', 'tblTempVendorCDR_20' ) end [2024-12-18 22:26:18] Production.INFO: ProcessCDR(1,14051194,1,1,2) [2024-12-18 22:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051194', 'tblTempUsageDetail_20' ) start [2024-12-18 22:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051194', 'tblTempUsageDetail_20' ) end [2024-12-18 22:26:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 22:26:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 22:26:22] Production.INFO: ==6749== Releasing lock... [2024-12-18 22:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 22:26:22] Production.INFO: 36 MB #Memory Used# [2024-12-18 22:27:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 19:27:06 [end_date_ymd] => 2024-12-18 22:27:06 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 19:27:06' and `end` < '2024-12-18 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 ,'') [2024-12-18 22:27:18] Production.INFO: count ==1074 [2024-12-18 22:27:18] Production.ERROR: pbx CDR StartTime 2024-12-18 19:27:06 - End Time 2024-12-18 22:27:06 [2024-12-18 22:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051199', 'tblTempUsageDetail_20' ) start [2024-12-18 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051199', 'tblTempUsageDetail_20' ) end [2024-12-18 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051199', 'tblTempVendorCDR_20' ) start [2024-12-18 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051199', 'tblTempVendorCDR_20' ) end [2024-12-18 22:27:18] Production.INFO: ProcessCDR(1,14051199,1,1,2) [2024-12-18 22:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051199', 'tblTempUsageDetail_20' ) start [2024-12-18 22:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051199', 'tblTempUsageDetail_20' ) end [2024-12-18 22:27:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 22:27:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 22:27:21] Production.INFO: ==6835== Releasing lock... [2024-12-18 22:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 22:27:21] Production.INFO: 35.75 MB #Memory Used# [2024-12-18 22:28:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 19:28:04 [end_date_ymd] => 2024-12-18 22:28:04 [RateCDR] => 1 ) [2024-12-18 22:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 19:28:04' and `end` < '2024-12-18 22:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 22:28:16] Production.INFO: count ==1074 [2024-12-18 22:28:16] Production.ERROR: pbx CDR StartTime 2024-12-18 19:28:04 - End Time 2024-12-18 22:28:04 [2024-12-18 22:28:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 22:28:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051204', 'tblTempUsageDetail_20' ) start [2024-12-18 22:28:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051204', 'tblTempUsageDetail_20' ) end [2024-12-18 22:28:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051204', 'tblTempVendorCDR_20' ) start [2024-12-18 22:28:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051204', 'tblTempVendorCDR_20' ) end [2024-12-18 22:28:16] Production.INFO: ProcessCDR(1,14051204,1,1,2) [2024-12-18 22:28:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:28:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:28:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:28:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:28:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051204', 'tblTempUsageDetail_20' ) start [2024-12-18 22:28:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051204', 'tblTempUsageDetail_20' ) end [2024-12-18 22:28:19] Production.ERROR: pbx prc_insertCDR start [2024-12-18 22:28:19] Production.ERROR: pbx prc_insertCDR end [2024-12-18 22:28:20] Production.INFO: ==6918== Releasing lock... [2024-12-18 22:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 22:28:20] Production.INFO: 35.75 MB #Memory Used# [2024-12-18 22:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 19:29:05 [end_date_ymd] => 2024-12-18 22:29:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 19:29:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 22:29:17] Production.INFO: count ==1066 [2024-12-18 22:29:17] Production.ERROR: pbx CDR StartTime 2024-12-18 19:29:05 - End Time 2024-12-18 22:29:05 [2024-12-18 22:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 22:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051209', 'tblTempUsageDetail_20' ) start [2024-12-18 22:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051209', 'tblTempUsageDetail_20' ) end [2024-12-18 22:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051209', 'tblTempVendorCDR_20' ) start [2024-12-18 22:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051209', 'tblTempVendorCDR_20' ) end [2024-12-18 22:29:17] Production.INFO: ProcessCDR(1,14051209,1,1,2) [2024-12-18 22:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051209', 'tblTempUsageDetail_20' ) start [2024-12-18 22:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051209', 'tblTempUsageDetail_20' ) end [2024-12-18 22:29:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 22:29:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 22:29:20] Production.INFO: ==7046== Releasing lock... [2024-12-18 22:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 22:29:20] Production.INFO: 35.75 MB #Memory Used# [2024-12-18 22:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 19:30:05 [end_date_ymd] => 2024-12-18 22:30:05 [RateCDR] => 1 ) [2024-12-18 22:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 19:30:05' and `end` < '2024-12-18 22:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 22:30:17] Production.INFO: count ==1061 [2024-12-18 22:30:17] Production.ERROR: pbx CDR StartTime 2024-12-18 19:30:05 - End Time 2024-12-18 22:30:05 [2024-12-18 22:30:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 22:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051215', 'tblTempUsageDetail_20' ) start [2024-12-18 22:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051215', 'tblTempUsageDetail_20' ) end [2024-12-18 22:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051215', 'tblTempVendorCDR_20' ) start [2024-12-18 22:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051215', 'tblTempVendorCDR_20' ) end [2024-12-18 22:30:17] Production.INFO: ProcessCDR(1,14051215,1,1,2) [2024-12-18 22:30:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:30:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:30:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:30:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051215', 'tblTempUsageDetail_20' ) start [2024-12-18 22:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051215', 'tblTempUsageDetail_20' ) end [2024-12-18 22:30:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 22:30:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 22:30:20] Production.INFO: ==7134== Releasing lock... [2024-12-18 22:30:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 22:30:20] Production.INFO: 36 MB #Memory Used# [2024-12-18 22:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 19:31:05 [end_date_ymd] => 2024-12-18 22:31:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 19:31:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 22:31:17] Production.INFO: count ==1003 [2024-12-18 22:31:17] Production.ERROR: pbx CDR StartTime 2024-12-18 19:31:05 - End Time 2024-12-18 22:31:05 [2024-12-18 22:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 22:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051220', 'tblTempUsageDetail_20' ) start [2024-12-18 22:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051220', 'tblTempUsageDetail_20' ) end [2024-12-18 22:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051220', 'tblTempVendorCDR_20' ) start [2024-12-18 22:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051220', 'tblTempVendorCDR_20' ) end [2024-12-18 22:31:17] Production.INFO: ProcessCDR(1,14051220,1,1,2) [2024-12-18 22:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051220', 'tblTempUsageDetail_20' ) start [2024-12-18 22:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051220', 'tblTempUsageDetail_20' ) end [2024-12-18 22:31:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 22:31:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 22:31:20] Production.INFO: ==7219== Releasing lock... [2024-12-18 22:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 22:31:20] Production.INFO: 35.75 MB #Memory Used# [2024-12-18 22:32:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 19:32:04 [end_date_ymd] => 2024-12-18 22:32:04 [RateCDR] => 1 ) [2024-12-18 22:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 19:32:04' and `end` < '2024-12-18 22:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 22:32:16] Production.INFO: count ==995 [2024-12-18 22:32:16] Production.ERROR: pbx CDR StartTime 2024-12-18 19:32:04 - End Time 2024-12-18 22:32:04 [2024-12-18 22:32:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 22:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051225', 'tblTempUsageDetail_20' ) start [2024-12-18 22:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051225', 'tblTempUsageDetail_20' ) end [2024-12-18 22:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051225', 'tblTempVendorCDR_20' ) start [2024-12-18 22:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051225', 'tblTempVendorCDR_20' ) end [2024-12-18 22:32:16] Production.INFO: ProcessCDR(1,14051225,1,1,2) [2024-12-18 22:32:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:32:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:32:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:32:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:32:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051225', 'tblTempUsageDetail_20' ) start [2024-12-18 22:32:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051225', 'tblTempUsageDetail_20' ) end [2024-12-18 22:32:19] Production.ERROR: pbx prc_insertCDR start [2024-12-18 22:32:19] Production.ERROR: pbx prc_insertCDR end [2024-12-18 22:32:19] Production.INFO: ==7302== Releasing lock... [2024-12-18 22:32:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 22:32:19] Production.INFO: 35.5 MB #Memory Used# [2024-12-18 22:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 19:33:04 [end_date_ymd] => 2024-12-18 22:33:04 [RateCDR] => 1 ) [2024-12-18 22:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 19:33:04' and `end` < '2024-12-18 22:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 22:33:17] Production.INFO: count ==994 [2024-12-18 22:33:17] Production.ERROR: pbx CDR StartTime 2024-12-18 19:33:04 - End Time 2024-12-18 22:33:04 [2024-12-18 22:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 22:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051230', 'tblTempUsageDetail_20' ) start [2024-12-18 22:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051230', 'tblTempUsageDetail_20' ) end [2024-12-18 22:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051230', 'tblTempVendorCDR_20' ) start [2024-12-18 22:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051230', 'tblTempVendorCDR_20' ) end [2024-12-18 22:33:17] Production.INFO: ProcessCDR(1,14051230,1,1,2) [2024-12-18 22:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051230', 'tblTempUsageDetail_20' ) start [2024-12-18 22:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051230', 'tblTempUsageDetail_20' ) end [2024-12-18 22:33:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 22:33:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 22:33:20] Production.INFO: ==7383== Releasing lock... [2024-12-18 22:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 22:33:20] Production.INFO: 35.75 MB #Memory Used# [2024-12-18 22:34:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 19:34:04 [end_date_ymd] => 2024-12-18 22:34:04 [RateCDR] => 1 ) [2024-12-18 22:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 19:34:04' and `end` < '2024-12-18 22:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 22:34:16] Production.INFO: count ==996 [2024-12-18 22:34:16] Production.ERROR: pbx CDR StartTime 2024-12-18 19:34:04 - End Time 2024-12-18 22:34:04 [2024-12-18 22:34:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 22:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051235', 'tblTempUsageDetail_20' ) start [2024-12-18 22:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051235', 'tblTempUsageDetail_20' ) end [2024-12-18 22:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051235', 'tblTempVendorCDR_20' ) start [2024-12-18 22:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051235', 'tblTempVendorCDR_20' ) end [2024-12-18 22:34:16] Production.INFO: ProcessCDR(1,14051235,1,1,2) [2024-12-18 22:34:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051235', 'tblTempUsageDetail_20' ) start [2024-12-18 22:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051235', 'tblTempUsageDetail_20' ) end [2024-12-18 22:34:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 22:34:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 22:34:21] Production.INFO: ==7472== Releasing lock... [2024-12-18 22:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 22:34:21] Production.INFO: 35.5 MB #Memory Used# [2024-12-18 22:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 19:35:05 [end_date_ymd] => 2024-12-18 22:35:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 19:35:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 22:35:17] Production.INFO: count ==993 [2024-12-18 22:35:17] Production.ERROR: pbx CDR StartTime 2024-12-18 19:35:05 - End Time 2024-12-18 22:35:05 [2024-12-18 22:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 22:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051240', 'tblTempUsageDetail_20' ) start [2024-12-18 22:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051240', 'tblTempUsageDetail_20' ) end [2024-12-18 22:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051240', 'tblTempVendorCDR_20' ) start [2024-12-18 22:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051240', 'tblTempVendorCDR_20' ) end [2024-12-18 22:35:17] Production.INFO: ProcessCDR(1,14051240,1,1,2) [2024-12-18 22:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051240', 'tblTempUsageDetail_20' ) start [2024-12-18 22:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051240', 'tblTempUsageDetail_20' ) end [2024-12-18 22:35:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 22:35:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 22:35:20] Production.INFO: ==7561== Releasing lock... [2024-12-18 22:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 22:35:20] Production.INFO: 35.5 MB #Memory Used# [2024-12-18 22:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 19:36:05 [end_date_ymd] => 2024-12-18 22:36:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 19:36:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 22:36:19] Production.INFO: count ==995 [2024-12-18 22:36:19] Production.ERROR: pbx CDR StartTime 2024-12-18 19:36:05 - End Time 2024-12-18 22:36:05 [2024-12-18 22:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051245', 'tblTempUsageDetail_20' ) start [2024-12-18 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051245', 'tblTempUsageDetail_20' ) end [2024-12-18 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051245', 'tblTempVendorCDR_20' ) start [2024-12-18 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051245', 'tblTempVendorCDR_20' ) end [2024-12-18 22:36:19] Production.INFO: ProcessCDR(1,14051245,1,1,2) [2024-12-18 22:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051245', 'tblTempUsageDetail_20' ) start [2024-12-18 22:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051245', 'tblTempUsageDetail_20' ) end [2024-12-18 22:36:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 22:36:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 22:36:22] Production.INFO: ==7642== Releasing lock... [2024-12-18 22:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 22:36:22] Production.INFO: 35.5 MB #Memory Used# [2024-12-18 22:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 19:37:05 [end_date_ymd] => 2024-12-18 22:37:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 19:37:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 22:37:17] Production.INFO: count ==998 [2024-12-18 22:37:17] Production.ERROR: pbx CDR StartTime 2024-12-18 19:37:05 - End Time 2024-12-18 22:37:05 [2024-12-18 22:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 22:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051250', 'tblTempUsageDetail_20' ) start [2024-12-18 22:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051250', 'tblTempUsageDetail_20' ) end [2024-12-18 22:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051250', 'tblTempVendorCDR_20' ) start [2024-12-18 22:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051250', 'tblTempVendorCDR_20' ) end [2024-12-18 22:37:17] Production.INFO: ProcessCDR(1,14051250,1,1,2) [2024-12-18 22:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051250', 'tblTempUsageDetail_20' ) start [2024-12-18 22:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051250', 'tblTempUsageDetail_20' ) end [2024-12-18 22:37:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 22:37:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 22:37:20] Production.INFO: ==7727== Releasing lock... [2024-12-18 22:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 22:37:20] Production.INFO: 35.5 MB #Memory Used# [2024-12-18 22:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 19:38:05 [end_date_ymd] => 2024-12-18 22:38:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 19:38:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 22:38:17] Production.INFO: count ==997 [2024-12-18 22:38:17] Production.ERROR: pbx CDR StartTime 2024-12-18 19:38:05 - End Time 2024-12-18 22:38:05 [2024-12-18 22:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 22:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051255', 'tblTempUsageDetail_20' ) start [2024-12-18 22:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051255', 'tblTempUsageDetail_20' ) end [2024-12-18 22:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051255', 'tblTempVendorCDR_20' ) start [2024-12-18 22:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051255', 'tblTempVendorCDR_20' ) end [2024-12-18 22:38:17] Production.INFO: ProcessCDR(1,14051255,1,1,2) [2024-12-18 22:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051255', 'tblTempUsageDetail_20' ) start [2024-12-18 22:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051255', 'tblTempUsageDetail_20' ) end [2024-12-18 22:38:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 22:38:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 22:38:20] Production.INFO: ==7812== Releasing lock... [2024-12-18 22:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 22:38:20] Production.INFO: 35.5 MB #Memory Used# [2024-12-18 22:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 19:39:04 [end_date_ymd] => 2024-12-18 22:39:04 [RateCDR] => 1 ) [2024-12-18 22:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 19:39:04' and `end` < '2024-12-18 22:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 22:39:16] Production.INFO: count ==997 [2024-12-18 22:39:17] Production.ERROR: pbx CDR StartTime 2024-12-18 19:39:04 - End Time 2024-12-18 22:39:04 [2024-12-18 22:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 22:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051260', 'tblTempUsageDetail_20' ) start [2024-12-18 22:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051260', 'tblTempUsageDetail_20' ) end [2024-12-18 22:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051260', 'tblTempVendorCDR_20' ) start [2024-12-18 22:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051260', 'tblTempVendorCDR_20' ) end [2024-12-18 22:39:17] Production.INFO: ProcessCDR(1,14051260,1,1,2) [2024-12-18 22:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051260', 'tblTempUsageDetail_20' ) start [2024-12-18 22:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051260', 'tblTempUsageDetail_20' ) end [2024-12-18 22:39:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 22:39:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 22:39:20] Production.INFO: ==7896== Releasing lock... [2024-12-18 22:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 22:39:20] Production.INFO: 35.5 MB #Memory Used# [2024-12-18 22:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 19:40:05 [end_date_ymd] => 2024-12-18 22:40:05 [RateCDR] => 1 ) [2024-12-18 22: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` >= '2024-12-18 19:40:05' and `end` < '2024-12-18 22: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 ,'') [2024-12-18 22:40:18] Production.INFO: count ==997 [2024-12-18 22:40:18] Production.ERROR: pbx CDR StartTime 2024-12-18 19:40:05 - End Time 2024-12-18 22:40:05 [2024-12-18 22:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051266', 'tblTempUsageDetail_20' ) start [2024-12-18 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051266', 'tblTempUsageDetail_20' ) end [2024-12-18 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051266', 'tblTempVendorCDR_20' ) start [2024-12-18 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051266', 'tblTempVendorCDR_20' ) end [2024-12-18 22:40:18] Production.INFO: ProcessCDR(1,14051266,1,1,2) [2024-12-18 22:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051266', 'tblTempUsageDetail_20' ) start [2024-12-18 22:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051266', 'tblTempUsageDetail_20' ) end [2024-12-18 22:40:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 22:40:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 22:40:21] Production.INFO: ==7989== Releasing lock... [2024-12-18 22:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 22:40:21] Production.INFO: 35.5 MB #Memory Used# [2024-12-18 22:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 19:41:05 [end_date_ymd] => 2024-12-18 22:41:05 [RateCDR] => 1 ) [2024-12-18 22:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 19:41:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 22:41:18] Production.INFO: count ==990 [2024-12-18 22:41:18] Production.ERROR: pbx CDR StartTime 2024-12-18 19:41:05 - End Time 2024-12-18 22:41:05 [2024-12-18 22:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051271', 'tblTempUsageDetail_20' ) start [2024-12-18 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051271', 'tblTempUsageDetail_20' ) end [2024-12-18 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051271', 'tblTempVendorCDR_20' ) start [2024-12-18 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051271', 'tblTempVendorCDR_20' ) end [2024-12-18 22:41:18] Production.INFO: ProcessCDR(1,14051271,1,1,2) [2024-12-18 22:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051271', 'tblTempUsageDetail_20' ) start [2024-12-18 22:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051271', 'tblTempUsageDetail_20' ) end [2024-12-18 22:41:23] Production.ERROR: pbx prc_insertCDR start [2024-12-18 22:41:23] Production.ERROR: pbx prc_insertCDR end [2024-12-18 22:41:23] Production.INFO: ==8076== Releasing lock... [2024-12-18 22:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 22:41:23] Production.INFO: 35.5 MB #Memory Used# [2024-12-18 22:42:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 19:42:04 [end_date_ymd] => 2024-12-18 22:42:04 [RateCDR] => 1 ) [2024-12-18 22:42:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 19:42:04' and `end` < '2024-12-18 22:42:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 22:42:17] Production.INFO: count ==988 [2024-12-18 22:42:17] Production.ERROR: pbx CDR StartTime 2024-12-18 19:42:04 - End Time 2024-12-18 22:42:04 [2024-12-18 22:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 22:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051276', 'tblTempUsageDetail_20' ) start [2024-12-18 22:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051276', 'tblTempUsageDetail_20' ) end [2024-12-18 22:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051276', 'tblTempVendorCDR_20' ) start [2024-12-18 22:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051276', 'tblTempVendorCDR_20' ) end [2024-12-18 22:42:17] Production.INFO: ProcessCDR(1,14051276,1,1,2) [2024-12-18 22:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051276', 'tblTempUsageDetail_20' ) start [2024-12-18 22:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051276', 'tblTempUsageDetail_20' ) end [2024-12-18 22:42:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 22:42:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 22:42:20] Production.INFO: ==8184== Releasing lock... [2024-12-18 22:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 22:42:20] Production.INFO: 35.5 MB #Memory Used# [2024-12-18 22:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 19:43:05 [end_date_ymd] => 2024-12-18 22:43:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 19:43:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 22:43:18] Production.INFO: count ==983 [2024-12-18 22:43:18] Production.ERROR: pbx CDR StartTime 2024-12-18 19:43:05 - End Time 2024-12-18 22:43:05 [2024-12-18 22:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051281', 'tblTempUsageDetail_20' ) start [2024-12-18 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051281', 'tblTempUsageDetail_20' ) end [2024-12-18 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051281', 'tblTempVendorCDR_20' ) start [2024-12-18 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051281', 'tblTempVendorCDR_20' ) end [2024-12-18 22:43:18] Production.INFO: ProcessCDR(1,14051281,1,1,2) [2024-12-18 22:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051281', 'tblTempUsageDetail_20' ) start [2024-12-18 22:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051281', 'tblTempUsageDetail_20' ) end [2024-12-18 22:43:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 22:43:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 22:43:21] Production.INFO: ==8295== Releasing lock... [2024-12-18 22:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 22:43:21] Production.INFO: 35.25 MB #Memory Used# [2024-12-18 22:44:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 19:44:04 [end_date_ymd] => 2024-12-18 22:44:04 [RateCDR] => 1 ) [2024-12-18 22: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` >= '2024-12-18 19:44:04' and `end` < '2024-12-18 22: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 ,'') [2024-12-18 22:44:17] Production.INFO: count ==978 [2024-12-18 22:44:17] Production.ERROR: pbx CDR StartTime 2024-12-18 19:44:04 - End Time 2024-12-18 22:44:04 [2024-12-18 22:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 22:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051286', 'tblTempUsageDetail_20' ) start [2024-12-18 22:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051286', 'tblTempUsageDetail_20' ) end [2024-12-18 22:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051286', 'tblTempVendorCDR_20' ) start [2024-12-18 22:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051286', 'tblTempVendorCDR_20' ) end [2024-12-18 22:44:17] Production.INFO: ProcessCDR(1,14051286,1,1,2) [2024-12-18 22:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051286', 'tblTempUsageDetail_20' ) start [2024-12-18 22:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051286', 'tblTempUsageDetail_20' ) end [2024-12-18 22:44:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 22:44:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 22:44:20] Production.INFO: ==8409== Releasing lock... [2024-12-18 22:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 22:44:20] Production.INFO: 35 MB #Memory Used# [2024-12-18 22:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 19:45:05 [end_date_ymd] => 2024-12-18 22:45:05 [RateCDR] => 1 ) [2024-12-18 22:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 19:45:05' and `end` < '2024-12-18 22:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 22:45:17] Production.INFO: count ==977 [2024-12-18 22:45:17] Production.ERROR: pbx CDR StartTime 2024-12-18 19:45:05 - End Time 2024-12-18 22:45:05 [2024-12-18 22:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 22:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051291', 'tblTempUsageDetail_20' ) start [2024-12-18 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051291', 'tblTempUsageDetail_20' ) end [2024-12-18 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051291', 'tblTempVendorCDR_20' ) start [2024-12-18 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051291', 'tblTempVendorCDR_20' ) end [2024-12-18 22:45:18] Production.INFO: ProcessCDR(1,14051291,1,1,2) [2024-12-18 22:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051291', 'tblTempUsageDetail_20' ) start [2024-12-18 22:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051291', 'tblTempUsageDetail_20' ) end [2024-12-18 22:45:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 22:45:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 22:45:21] Production.INFO: ==8533== Releasing lock... [2024-12-18 22:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 22:45:21] Production.INFO: 35 MB #Memory Used# [2024-12-18 22:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 19:46:05 [end_date_ymd] => 2024-12-18 22:46:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 19:46:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 22:46:18] Production.INFO: count ==977 [2024-12-18 22:46:19] Production.ERROR: pbx CDR StartTime 2024-12-18 19:46:05 - End Time 2024-12-18 22:46:05 [2024-12-18 22:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051296', 'tblTempUsageDetail_20' ) start [2024-12-18 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051296', 'tblTempUsageDetail_20' ) end [2024-12-18 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051296', 'tblTempVendorCDR_20' ) start [2024-12-18 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051296', 'tblTempVendorCDR_20' ) end [2024-12-18 22:46:19] Production.INFO: ProcessCDR(1,14051296,1,1,2) [2024-12-18 22:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051296', 'tblTempUsageDetail_20' ) start [2024-12-18 22:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051296', 'tblTempUsageDetail_20' ) end [2024-12-18 22:46:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 22:46:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 22:46:22] Production.INFO: ==8613== Releasing lock... [2024-12-18 22:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 22:46:22] Production.INFO: 35 MB #Memory Used# [2024-12-18 22:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 19:47:05 [end_date_ymd] => 2024-12-18 22:47:05 [RateCDR] => 1 ) [2024-12-18 22:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 19:47:05' and `end` < '2024-12-18 22:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 22:47:18] Production.INFO: count ==973 [2024-12-18 22:47:18] Production.ERROR: pbx CDR StartTime 2024-12-18 19:47:05 - End Time 2024-12-18 22:47:05 [2024-12-18 22:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051301', 'tblTempUsageDetail_20' ) start [2024-12-18 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051301', 'tblTempUsageDetail_20' ) end [2024-12-18 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051301', 'tblTempVendorCDR_20' ) start [2024-12-18 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051301', 'tblTempVendorCDR_20' ) end [2024-12-18 22:47:18] Production.INFO: ProcessCDR(1,14051301,1,1,2) [2024-12-18 22:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051301', 'tblTempUsageDetail_20' ) start [2024-12-18 22:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051301', 'tblTempUsageDetail_20' ) end [2024-12-18 22:47:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 22:47:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 22:47:21] Production.INFO: ==8700== Releasing lock... [2024-12-18 22:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 22:47:21] Production.INFO: 35 MB #Memory Used# [2024-12-18 22:48:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 19:48:04 [end_date_ymd] => 2024-12-18 22:48:04 [RateCDR] => 1 ) [2024-12-18 22: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` >= '2024-12-18 19:48:04' and `end` < '2024-12-18 22: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 ,'') [2024-12-18 22:48:16] Production.INFO: count ==972 [2024-12-18 22:48:16] Production.ERROR: pbx CDR StartTime 2024-12-18 19:48:04 - End Time 2024-12-18 22:48:04 [2024-12-18 22:48:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 22:48:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051306', 'tblTempUsageDetail_20' ) start [2024-12-18 22:48:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051306', 'tblTempUsageDetail_20' ) end [2024-12-18 22:48:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051306', 'tblTempVendorCDR_20' ) start [2024-12-18 22:48:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051306', 'tblTempVendorCDR_20' ) end [2024-12-18 22:48:16] Production.INFO: ProcessCDR(1,14051306,1,1,2) [2024-12-18 22:48:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:48:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:48:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:48:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:48:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051306', 'tblTempUsageDetail_20' ) start [2024-12-18 22:48:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051306', 'tblTempUsageDetail_20' ) end [2024-12-18 22:48:19] Production.ERROR: pbx prc_insertCDR start [2024-12-18 22:48:19] Production.ERROR: pbx prc_insertCDR end [2024-12-18 22:48:19] Production.INFO: ==8785== Releasing lock... [2024-12-18 22:48:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 22:48:19] Production.INFO: 35.5 MB #Memory Used# [2024-12-18 22:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 19:49:05 [end_date_ymd] => 2024-12-18 22:49:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 19:49:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 22:49:17] Production.INFO: count ==971 [2024-12-18 22:49:17] Production.ERROR: pbx CDR StartTime 2024-12-18 19:49:05 - End Time 2024-12-18 22:49:05 [2024-12-18 22:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051311', 'tblTempUsageDetail_20' ) start [2024-12-18 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051311', 'tblTempUsageDetail_20' ) end [2024-12-18 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051311', 'tblTempVendorCDR_20' ) start [2024-12-18 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051311', 'tblTempVendorCDR_20' ) end [2024-12-18 22:49:17] Production.INFO: ProcessCDR(1,14051311,1,1,2) [2024-12-18 22:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051311', 'tblTempUsageDetail_20' ) start [2024-12-18 22:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051311', 'tblTempUsageDetail_20' ) end [2024-12-18 22:49:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 22:49:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 22:49:20] Production.INFO: ==8868== Releasing lock... [2024-12-18 22:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 22:49:20] Production.INFO: 35.25 MB #Memory Used# [2024-12-18 22:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 19:50:05 [end_date_ymd] => 2024-12-18 22:50:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 19:50:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 22:50:17] Production.INFO: count ==970 [2024-12-18 22:50:17] Production.ERROR: pbx CDR StartTime 2024-12-18 19:50:05 - End Time 2024-12-18 22:50:05 [2024-12-18 22:50:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 22:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051317', 'tblTempUsageDetail_20' ) start [2024-12-18 22:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051317', 'tblTempUsageDetail_20' ) end [2024-12-18 22:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051317', 'tblTempVendorCDR_20' ) start [2024-12-18 22:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051317', 'tblTempVendorCDR_20' ) end [2024-12-18 22:50:17] Production.INFO: ProcessCDR(1,14051317,1,1,2) [2024-12-18 22:50:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:50:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:50:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:50:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051317', 'tblTempUsageDetail_20' ) start [2024-12-18 22:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051317', 'tblTempUsageDetail_20' ) end [2024-12-18 22:50:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 22:50:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 22:50:20] Production.INFO: ==8956== Releasing lock... [2024-12-18 22:50:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 22:50:20] Production.INFO: 35 MB #Memory Used# [2024-12-18 22:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 19:51:05 [end_date_ymd] => 2024-12-18 22:51:05 [RateCDR] => 1 ) [2024-12-18 22:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 19:51:05' and `end` < '2024-12-18 22:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 22:51:18] Production.INFO: count ==952 [2024-12-18 22:51:18] Production.ERROR: pbx CDR StartTime 2024-12-18 19:51:05 - End Time 2024-12-18 22:51:05 [2024-12-18 22:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051322', 'tblTempUsageDetail_20' ) start [2024-12-18 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051322', 'tblTempUsageDetail_20' ) end [2024-12-18 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051322', 'tblTempVendorCDR_20' ) start [2024-12-18 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051322', 'tblTempVendorCDR_20' ) end [2024-12-18 22:51:18] Production.INFO: ProcessCDR(1,14051322,1,1,2) [2024-12-18 22:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051322', 'tblTempUsageDetail_20' ) start [2024-12-18 22:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051322', 'tblTempUsageDetail_20' ) end [2024-12-18 22:51:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 22:51:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 22:51:21] Production.INFO: ==9039== Releasing lock... [2024-12-18 22:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 22:51:21] Production.INFO: 35 MB #Memory Used# [2024-12-18 22:52:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 19:52:04 [end_date_ymd] => 2024-12-18 22:52:04 [RateCDR] => 1 ) [2024-12-18 22:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 19:52:04' and `end` < '2024-12-18 22:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 22:52:17] Production.INFO: count ==944 [2024-12-18 22:52:17] Production.ERROR: pbx CDR StartTime 2024-12-18 19:52:04 - End Time 2024-12-18 22:52:04 [2024-12-18 22:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 22:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051327', 'tblTempUsageDetail_20' ) start [2024-12-18 22:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051327', 'tblTempUsageDetail_20' ) end [2024-12-18 22:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051327', 'tblTempVendorCDR_20' ) start [2024-12-18 22:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051327', 'tblTempVendorCDR_20' ) end [2024-12-18 22:52:17] Production.INFO: ProcessCDR(1,14051327,1,1,2) [2024-12-18 22:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051327', 'tblTempUsageDetail_20' ) start [2024-12-18 22:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051327', 'tblTempUsageDetail_20' ) end [2024-12-18 22:52:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 22:52:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 22:52:20] Production.INFO: ==9122== Releasing lock... [2024-12-18 22:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 22:52:20] Production.INFO: 35.25 MB #Memory Used# [2024-12-18 22:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 19:53:05 [end_date_ymd] => 2024-12-18 22:53:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 19:53:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 22:53:18] Production.INFO: count ==940 [2024-12-18 22:53:19] Production.ERROR: pbx CDR StartTime 2024-12-18 19:53:05 - End Time 2024-12-18 22:53:05 [2024-12-18 22:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 22:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051332', 'tblTempUsageDetail_20' ) start [2024-12-18 22:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051332', 'tblTempUsageDetail_20' ) end [2024-12-18 22:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051332', 'tblTempVendorCDR_20' ) start [2024-12-18 22:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051332', 'tblTempVendorCDR_20' ) end [2024-12-18 22:53:19] Production.INFO: ProcessCDR(1,14051332,1,1,2) [2024-12-18 22:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051332', 'tblTempUsageDetail_20' ) start [2024-12-18 22:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051332', 'tblTempUsageDetail_20' ) end [2024-12-18 22:53:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 22:53:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 22:53:22] Production.INFO: ==9212== Releasing lock... [2024-12-18 22:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 22:53:22] Production.INFO: 34.75 MB #Memory Used# [2024-12-18 22:54:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 19:54:04 [end_date_ymd] => 2024-12-18 22:54:04 [RateCDR] => 1 ) [2024-12-18 22: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` >= '2024-12-18 19:54:04' and `end` < '2024-12-18 22: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 ,'') [2024-12-18 22:54:17] Production.INFO: count ==939 [2024-12-18 22:54:17] Production.ERROR: pbx CDR StartTime 2024-12-18 19:54:04 - End Time 2024-12-18 22:54:04 [2024-12-18 22:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 22:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051337', 'tblTempUsageDetail_20' ) start [2024-12-18 22:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051337', 'tblTempUsageDetail_20' ) end [2024-12-18 22:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051337', 'tblTempVendorCDR_20' ) start [2024-12-18 22:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051337', 'tblTempVendorCDR_20' ) end [2024-12-18 22:54:17] Production.INFO: ProcessCDR(1,14051337,1,1,2) [2024-12-18 22:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051337', 'tblTempUsageDetail_20' ) start [2024-12-18 22:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051337', 'tblTempUsageDetail_20' ) end [2024-12-18 22:54:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 22:54:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 22:54:20] Production.INFO: ==9295== Releasing lock... [2024-12-18 22:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 22:54:20] Production.INFO: 34.75 MB #Memory Used# [2024-12-18 22:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 19:55:05 [end_date_ymd] => 2024-12-18 22:55:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 19:55:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 22:55:17] Production.INFO: count ==933 [2024-12-18 22:55:17] Production.ERROR: pbx CDR StartTime 2024-12-18 19:55:05 - End Time 2024-12-18 22:55:05 [2024-12-18 22:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 22:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051342', 'tblTempUsageDetail_20' ) start [2024-12-18 22:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051342', 'tblTempUsageDetail_20' ) end [2024-12-18 22:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051342', 'tblTempVendorCDR_20' ) start [2024-12-18 22:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051342', 'tblTempVendorCDR_20' ) end [2024-12-18 22:55:17] Production.INFO: ProcessCDR(1,14051342,1,1,2) [2024-12-18 22:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051342', 'tblTempUsageDetail_20' ) start [2024-12-18 22:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051342', 'tblTempUsageDetail_20' ) end [2024-12-18 22:55:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 22:55:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 22:55:20] Production.INFO: ==9380== Releasing lock... [2024-12-18 22:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 22:55:20] Production.INFO: 34.75 MB #Memory Used# [2024-12-18 22:56:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 19:56:04 [end_date_ymd] => 2024-12-18 22:56:04 [RateCDR] => 1 ) [2024-12-18 22:56:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 19:56:04' and `end` < '2024-12-18 22:56:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 22:56:17] Production.INFO: count ==928 [2024-12-18 22:56:17] Production.ERROR: pbx CDR StartTime 2024-12-18 19:56:04 - End Time 2024-12-18 22:56:04 [2024-12-18 22:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 22:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051347', 'tblTempUsageDetail_20' ) start [2024-12-18 22:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051347', 'tblTempUsageDetail_20' ) end [2024-12-18 22:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051347', 'tblTempVendorCDR_20' ) start [2024-12-18 22:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051347', 'tblTempVendorCDR_20' ) end [2024-12-18 22:56:17] Production.INFO: ProcessCDR(1,14051347,1,1,2) [2024-12-18 22:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051347', 'tblTempUsageDetail_20' ) start [2024-12-18 22:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051347', 'tblTempUsageDetail_20' ) end [2024-12-18 22:56:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 22:56:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 22:56:20] Production.INFO: ==9462== Releasing lock... [2024-12-18 22:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 22:56:20] Production.INFO: 34.25 MB #Memory Used# [2024-12-18 22:57:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 19:57:04 [end_date_ymd] => 2024-12-18 22:57:04 [RateCDR] => 1 ) [2024-12-18 22:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 19:57:04' and `end` < '2024-12-18 22:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 22:57:17] Production.INFO: count ==914 [2024-12-18 22:57:17] Production.ERROR: pbx CDR StartTime 2024-12-18 19:57:04 - End Time 2024-12-18 22:57:04 [2024-12-18 22:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 22:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051352', 'tblTempUsageDetail_20' ) start [2024-12-18 22:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051352', 'tblTempUsageDetail_20' ) end [2024-12-18 22:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051352', 'tblTempVendorCDR_20' ) start [2024-12-18 22:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051352', 'tblTempVendorCDR_20' ) end [2024-12-18 22:57:17] Production.INFO: ProcessCDR(1,14051352,1,1,2) [2024-12-18 22:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051352', 'tblTempUsageDetail_20' ) start [2024-12-18 22:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051352', 'tblTempUsageDetail_20' ) end [2024-12-18 22:57:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 22:57:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 22:57:20] Production.INFO: ==9548== Releasing lock... [2024-12-18 22:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 22:57:20] Production.INFO: 34 MB #Memory Used# [2024-12-18 22:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 19:58:05 [end_date_ymd] => 2024-12-18 22:58:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 19:58:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 22:58:19] Production.INFO: count ==909 [2024-12-18 22:58:19] Production.ERROR: pbx CDR StartTime 2024-12-18 19:58:05 - End Time 2024-12-18 22:58:05 [2024-12-18 22:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051357', 'tblTempUsageDetail_20' ) start [2024-12-18 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051357', 'tblTempUsageDetail_20' ) end [2024-12-18 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051357', 'tblTempVendorCDR_20' ) start [2024-12-18 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051357', 'tblTempVendorCDR_20' ) end [2024-12-18 22:58:19] Production.INFO: ProcessCDR(1,14051357,1,1,2) [2024-12-18 22:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051357', 'tblTempUsageDetail_20' ) start [2024-12-18 22:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051357', 'tblTempUsageDetail_20' ) end [2024-12-18 22:58:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 22:58:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 22:58:22] Production.INFO: ==9629== Releasing lock... [2024-12-18 22:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 22:58:22] Production.INFO: 34.25 MB #Memory Used# [2024-12-18 22:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 19:59:04 [end_date_ymd] => 2024-12-18 22:59:04 [RateCDR] => 1 ) [2024-12-18 22:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 19:59:04' and `end` < '2024-12-18 22:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 22:59:17] Production.INFO: count ==904 [2024-12-18 22:59:17] Production.ERROR: pbx CDR StartTime 2024-12-18 19:59:04 - End Time 2024-12-18 22:59:04 [2024-12-18 22:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 22:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051362', 'tblTempUsageDetail_20' ) start [2024-12-18 22:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051362', 'tblTempUsageDetail_20' ) end [2024-12-18 22:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051362', 'tblTempVendorCDR_20' ) start [2024-12-18 22:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051362', 'tblTempVendorCDR_20' ) end [2024-12-18 22:59:17] Production.INFO: ProcessCDR(1,14051362,1,1,2) [2024-12-18 22:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 22:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 22:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051362', 'tblTempUsageDetail_20' ) start [2024-12-18 22:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051362', 'tblTempUsageDetail_20' ) end [2024-12-18 22:59:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 22:59:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 22:59:20] Production.INFO: ==9711== Releasing lock... [2024-12-18 22:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 22:59:20] Production.INFO: 34.25 MB #Memory Used# [2024-12-18 23:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 20:00:06 [end_date_ymd] => 2024-12-18 23:00:06 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 20:00:06' and `end` < '2024-12-18 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 ,'') [2024-12-18 23:00:18] Production.INFO: count ==899 [2024-12-18 23:00:18] Production.ERROR: pbx CDR StartTime 2024-12-18 20:00:06 - End Time 2024-12-18 23:00:06 [2024-12-18 23:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051368', 'tblTempUsageDetail_20' ) start [2024-12-18 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051368', 'tblTempUsageDetail_20' ) end [2024-12-18 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051368', 'tblTempVendorCDR_20' ) start [2024-12-18 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051368', 'tblTempVendorCDR_20' ) end [2024-12-18 23:00:18] Production.INFO: ProcessCDR(1,14051368,1,1,2) [2024-12-18 23:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051368', 'tblTempUsageDetail_20' ) start [2024-12-18 23:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051368', 'tblTempUsageDetail_20' ) end [2024-12-18 23:00:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 23:00:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 23:00:21] Production.INFO: ==9835== Releasing lock... [2024-12-18 23:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 23:00:21] Production.INFO: 34 MB #Memory Used# [2024-12-18 23:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 20:01:05 [end_date_ymd] => 2024-12-18 23:01:05 [RateCDR] => 1 ) [2024-12-18 23:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 20:01:05' and `end` < '2024-12-18 23:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 23:01:18] Production.INFO: count ==869 [2024-12-18 23:01:18] Production.ERROR: pbx CDR StartTime 2024-12-18 20:01:05 - End Time 2024-12-18 23:01:05 [2024-12-18 23:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051373', 'tblTempUsageDetail_20' ) start [2024-12-18 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051373', 'tblTempUsageDetail_20' ) end [2024-12-18 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051373', 'tblTempVendorCDR_20' ) start [2024-12-18 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051373', 'tblTempVendorCDR_20' ) end [2024-12-18 23:01:18] Production.INFO: ProcessCDR(1,14051373,1,1,2) [2024-12-18 23:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051373', 'tblTempUsageDetail_20' ) start [2024-12-18 23:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051373', 'tblTempUsageDetail_20' ) end [2024-12-18 23:01:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 23:01:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 23:01:21] Production.INFO: ==9932== Releasing lock... [2024-12-18 23:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 23:01:21] Production.INFO: 33.75 MB #Memory Used# [2024-12-18 23:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 20:02:05 [end_date_ymd] => 2024-12-18 23:02:05 [RateCDR] => 1 ) [2024-12-18 23:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 20:02:05' and `end` < '2024-12-18 23:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 23:02:17] Production.INFO: count ==863 [2024-12-18 23:02:17] Production.ERROR: pbx CDR StartTime 2024-12-18 20:02:05 - End Time 2024-12-18 23:02:05 [2024-12-18 23:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 23:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051378', 'tblTempUsageDetail_20' ) start [2024-12-18 23:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051378', 'tblTempUsageDetail_20' ) end [2024-12-18 23:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051378', 'tblTempVendorCDR_20' ) start [2024-12-18 23:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051378', 'tblTempVendorCDR_20' ) end [2024-12-18 23:02:17] Production.INFO: ProcessCDR(1,14051378,1,1,2) [2024-12-18 23:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051378', 'tblTempUsageDetail_20' ) start [2024-12-18 23:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051378', 'tblTempUsageDetail_20' ) end [2024-12-18 23:02:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 23:02:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 23:02:20] Production.INFO: ==10094== Releasing lock... [2024-12-18 23:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 23:02:20] Production.INFO: 33.75 MB #Memory Used# [2024-12-18 23:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 20:03:04 [end_date_ymd] => 2024-12-18 23:03:04 [RateCDR] => 1 ) [2024-12-18 23:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 20:03:04' and `end` < '2024-12-18 23:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 23:03:17] Production.INFO: count ==860 [2024-12-18 23:03:17] Production.ERROR: pbx CDR StartTime 2024-12-18 20:03:04 - End Time 2024-12-18 23:03:04 [2024-12-18 23:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 23:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051383', 'tblTempUsageDetail_20' ) start [2024-12-18 23:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051383', 'tblTempUsageDetail_20' ) end [2024-12-18 23:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051383', 'tblTempVendorCDR_20' ) start [2024-12-18 23:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051383', 'tblTempVendorCDR_20' ) end [2024-12-18 23:03:17] Production.INFO: ProcessCDR(1,14051383,1,1,2) [2024-12-18 23:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051383', 'tblTempUsageDetail_20' ) start [2024-12-18 23:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051383', 'tblTempUsageDetail_20' ) end [2024-12-18 23:03:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 23:03:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 23:03:21] Production.INFO: ==10175== Releasing lock... [2024-12-18 23:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 23:03:21] Production.INFO: 33.75 MB #Memory Used# [2024-12-18 23:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 20:04:05 [end_date_ymd] => 2024-12-18 23:04:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 20:04:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 23:04:17] Production.INFO: count ==858 [2024-12-18 23:04:17] Production.ERROR: pbx CDR StartTime 2024-12-18 20:04:05 - End Time 2024-12-18 23:04:05 [2024-12-18 23:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 23:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051388', 'tblTempUsageDetail_20' ) start [2024-12-18 23:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051388', 'tblTempUsageDetail_20' ) end [2024-12-18 23:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051388', 'tblTempVendorCDR_20' ) start [2024-12-18 23:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051388', 'tblTempVendorCDR_20' ) end [2024-12-18 23:04:17] Production.INFO: ProcessCDR(1,14051388,1,1,2) [2024-12-18 23:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051388', 'tblTempUsageDetail_20' ) start [2024-12-18 23:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051388', 'tblTempUsageDetail_20' ) end [2024-12-18 23:04:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 23:04:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 23:04:21] Production.INFO: ==10259== Releasing lock... [2024-12-18 23:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 23:04:21] Production.INFO: 33.75 MB #Memory Used# [2024-12-18 23:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 20:05:04 [end_date_ymd] => 2024-12-18 23:05:04 [RateCDR] => 1 ) [2024-12-18 23: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` >= '2024-12-18 20:05:04' and `end` < '2024-12-18 23: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 ,'') [2024-12-18 23:05:16] Production.INFO: count ==851 [2024-12-18 23:05:16] Production.ERROR: pbx CDR StartTime 2024-12-18 20:05:04 - End Time 2024-12-18 23:05:04 [2024-12-18 23:05:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 23:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051393', 'tblTempUsageDetail_20' ) start [2024-12-18 23:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051393', 'tblTempUsageDetail_20' ) end [2024-12-18 23:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051393', 'tblTempVendorCDR_20' ) start [2024-12-18 23:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051393', 'tblTempVendorCDR_20' ) end [2024-12-18 23:05:16] Production.INFO: ProcessCDR(1,14051393,1,1,2) [2024-12-18 23:05:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:05:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:05:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:05:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:05:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051393', 'tblTempUsageDetail_20' ) start [2024-12-18 23:05:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051393', 'tblTempUsageDetail_20' ) end [2024-12-18 23:05:19] Production.ERROR: pbx prc_insertCDR start [2024-12-18 23:05:19] Production.ERROR: pbx prc_insertCDR end [2024-12-18 23:05:19] Production.INFO: ==10417== Releasing lock... [2024-12-18 23:05:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 23:05:19] Production.INFO: 33.5 MB #Memory Used# [2024-12-18 23:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 20:06:05 [end_date_ymd] => 2024-12-18 23:06:05 [RateCDR] => 1 ) [2024-12-18 23:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 20:06:05' and `end` < '2024-12-18 23:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 23:06:18] Production.INFO: count ==846 [2024-12-18 23:06:18] Production.ERROR: pbx CDR StartTime 2024-12-18 20:06:05 - End Time 2024-12-18 23:06:05 [2024-12-18 23:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051398', 'tblTempUsageDetail_20' ) start [2024-12-18 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051398', 'tblTempUsageDetail_20' ) end [2024-12-18 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051398', 'tblTempVendorCDR_20' ) start [2024-12-18 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051398', 'tblTempVendorCDR_20' ) end [2024-12-18 23:06:18] Production.INFO: ProcessCDR(1,14051398,1,1,2) [2024-12-18 23:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051398', 'tblTempUsageDetail_20' ) start [2024-12-18 23:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051398', 'tblTempUsageDetail_20' ) end [2024-12-18 23:06:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 23:06:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 23:06:21] Production.INFO: ==10499== Releasing lock... [2024-12-18 23:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 23:06:21] Production.INFO: 33.5 MB #Memory Used# [2024-12-18 23:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 20:07:04 [end_date_ymd] => 2024-12-18 23:07:04 [RateCDR] => 1 ) [2024-12-18 23:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 20:07:04' and `end` < '2024-12-18 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 ,'') [2024-12-18 23:07:17] Production.INFO: count ==842 [2024-12-18 23:07:17] Production.ERROR: pbx CDR StartTime 2024-12-18 20:07:04 - End Time 2024-12-18 23:07:04 [2024-12-18 23:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 23:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051403', 'tblTempUsageDetail_20' ) start [2024-12-18 23:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051403', 'tblTempUsageDetail_20' ) end [2024-12-18 23:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051403', 'tblTempVendorCDR_20' ) start [2024-12-18 23:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051403', 'tblTempVendorCDR_20' ) end [2024-12-18 23:07:17] Production.INFO: ProcessCDR(1,14051403,1,1,2) [2024-12-18 23:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051403', 'tblTempUsageDetail_20' ) start [2024-12-18 23:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051403', 'tblTempUsageDetail_20' ) end [2024-12-18 23:07:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 23:07:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 23:07:20] Production.INFO: ==10582== Releasing lock... [2024-12-18 23:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 23:07:20] Production.INFO: 33.5 MB #Memory Used# [2024-12-18 23:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 20:08:05 [end_date_ymd] => 2024-12-18 23:08:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 20:08:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 23:08:18] Production.INFO: count ==839 [2024-12-18 23:08:18] Production.ERROR: pbx CDR StartTime 2024-12-18 20:08:05 - End Time 2024-12-18 23:08:05 [2024-12-18 23:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051408', 'tblTempUsageDetail_20' ) start [2024-12-18 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051408', 'tblTempUsageDetail_20' ) end [2024-12-18 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051408', 'tblTempVendorCDR_20' ) start [2024-12-18 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051408', 'tblTempVendorCDR_20' ) end [2024-12-18 23:08:18] Production.INFO: ProcessCDR(1,14051408,1,1,2) [2024-12-18 23:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051408', 'tblTempUsageDetail_20' ) start [2024-12-18 23:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051408', 'tblTempUsageDetail_20' ) end [2024-12-18 23:08:23] Production.ERROR: pbx prc_insertCDR start [2024-12-18 23:08:23] Production.ERROR: pbx prc_insertCDR end [2024-12-18 23:08:23] Production.INFO: ==10667== Releasing lock... [2024-12-18 23:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 23:08:23] Production.INFO: 33.5 MB #Memory Used# [2024-12-18 23:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 20:09:04 [end_date_ymd] => 2024-12-18 23:09:04 [RateCDR] => 1 ) [2024-12-18 23:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 20:09:04' and `end` < '2024-12-18 23:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 23:09:17] Production.INFO: count ==818 [2024-12-18 23:09:18] Production.ERROR: pbx CDR StartTime 2024-12-18 20:09:04 - End Time 2024-12-18 23:09:04 [2024-12-18 23:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051413', 'tblTempUsageDetail_20' ) start [2024-12-18 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051413', 'tblTempUsageDetail_20' ) end [2024-12-18 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051413', 'tblTempVendorCDR_20' ) start [2024-12-18 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051413', 'tblTempVendorCDR_20' ) end [2024-12-18 23:09:18] Production.INFO: ProcessCDR(1,14051413,1,1,2) [2024-12-18 23:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051413', 'tblTempUsageDetail_20' ) start [2024-12-18 23:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051413', 'tblTempUsageDetail_20' ) end [2024-12-18 23:09:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 23:09:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 23:09:21] Production.INFO: ==10831== Releasing lock... [2024-12-18 23:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 23:09:21] Production.INFO: 33.25 MB #Memory Used# [2024-12-18 23:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 20:10:05 [end_date_ymd] => 2024-12-18 23:10:05 [RateCDR] => 1 ) [2024-12-18 23:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 20:10:05' and `end` < '2024-12-18 23:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 23:10:17] Production.INFO: count ==813 [2024-12-18 23:10:17] Production.ERROR: pbx CDR StartTime 2024-12-18 20:10:05 - End Time 2024-12-18 23:10:05 [2024-12-18 23:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051419', 'tblTempUsageDetail_20' ) start [2024-12-18 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051419', 'tblTempUsageDetail_20' ) end [2024-12-18 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051419', 'tblTempVendorCDR_20' ) start [2024-12-18 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051419', 'tblTempVendorCDR_20' ) end [2024-12-18 23:10:18] Production.INFO: ProcessCDR(1,14051419,1,1,2) [2024-12-18 23:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051419', 'tblTempUsageDetail_20' ) start [2024-12-18 23:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051419', 'tblTempUsageDetail_20' ) end [2024-12-18 23:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 23:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 23:10:21] Production.INFO: ==10919== Releasing lock... [2024-12-18 23:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 23:10:21] Production.INFO: 33.25 MB #Memory Used# [2024-12-18 23:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 20:11:05 [end_date_ymd] => 2024-12-18 23:11:05 [RateCDR] => 1 ) [2024-12-18 23:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 20:11:05' and `end` < '2024-12-18 23:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 23:11:18] Production.INFO: count ==803 [2024-12-18 23:11:18] Production.ERROR: pbx CDR StartTime 2024-12-18 20:11:05 - End Time 2024-12-18 23:11:05 [2024-12-18 23:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051424', 'tblTempUsageDetail_20' ) start [2024-12-18 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051424', 'tblTempUsageDetail_20' ) end [2024-12-18 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051424', 'tblTempVendorCDR_20' ) start [2024-12-18 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051424', 'tblTempVendorCDR_20' ) end [2024-12-18 23:11:18] Production.INFO: ProcessCDR(1,14051424,1,1,2) [2024-12-18 23:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051424', 'tblTempUsageDetail_20' ) start [2024-12-18 23:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051424', 'tblTempUsageDetail_20' ) end [2024-12-18 23:11:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 23:11:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 23:11:21] Production.INFO: ==11018== Releasing lock... [2024-12-18 23:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 23:11:21] Production.INFO: 33.25 MB #Memory Used# [2024-12-18 23:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 20:12:05 [end_date_ymd] => 2024-12-18 23:12:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 20:12:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 23:12:18] Production.INFO: count ==798 [2024-12-18 23:12:18] Production.ERROR: pbx CDR StartTime 2024-12-18 20:12:05 - End Time 2024-12-18 23:12:05 [2024-12-18 23:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051429', 'tblTempUsageDetail_20' ) start [2024-12-18 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051429', 'tblTempUsageDetail_20' ) end [2024-12-18 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051429', 'tblTempVendorCDR_20' ) start [2024-12-18 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051429', 'tblTempVendorCDR_20' ) end [2024-12-18 23:12:18] Production.INFO: ProcessCDR(1,14051429,1,1,2) [2024-12-18 23:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051429', 'tblTempUsageDetail_20' ) start [2024-12-18 23:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051429', 'tblTempUsageDetail_20' ) end [2024-12-18 23:12:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 23:12:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 23:12:22] Production.INFO: ==11191== Releasing lock... [2024-12-18 23:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 23:12:22] Production.INFO: 33.25 MB #Memory Used# [2024-12-18 23:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 20:13:05 [end_date_ymd] => 2024-12-18 23:13:05 [RateCDR] => 1 ) [2024-12-18 23:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 20:13:05' and `end` < '2024-12-18 23:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 23:13:18] Production.INFO: count ==796 [2024-12-18 23:13:18] Production.ERROR: pbx CDR StartTime 2024-12-18 20:13:05 - End Time 2024-12-18 23:13:05 [2024-12-18 23:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051434', 'tblTempUsageDetail_20' ) start [2024-12-18 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051434', 'tblTempUsageDetail_20' ) end [2024-12-18 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051434', 'tblTempVendorCDR_20' ) start [2024-12-18 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051434', 'tblTempVendorCDR_20' ) end [2024-12-18 23:13:18] Production.INFO: ProcessCDR(1,14051434,1,1,2) [2024-12-18 23:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051434', 'tblTempUsageDetail_20' ) start [2024-12-18 23:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051434', 'tblTempUsageDetail_20' ) end [2024-12-18 23:13:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 23:13:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 23:13:21] Production.INFO: ==11287== Releasing lock... [2024-12-18 23:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 23:13:21] Production.INFO: 33.25 MB #Memory Used# [2024-12-18 23:14:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 20:14:04 [end_date_ymd] => 2024-12-18 23:14:04 [RateCDR] => 1 ) [2024-12-18 23:14:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 20:14:04' and `end` < '2024-12-18 23:14:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 23:14:18] Production.INFO: count ==796 [2024-12-18 23:14:19] Production.ERROR: pbx CDR StartTime 2024-12-18 20:14:04 - End Time 2024-12-18 23:14:04 [2024-12-18 23:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051439', 'tblTempUsageDetail_20' ) start [2024-12-18 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051439', 'tblTempUsageDetail_20' ) end [2024-12-18 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051439', 'tblTempVendorCDR_20' ) start [2024-12-18 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051439', 'tblTempVendorCDR_20' ) end [2024-12-18 23:14:19] Production.INFO: ProcessCDR(1,14051439,1,1,2) [2024-12-18 23:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051439', 'tblTempUsageDetail_20' ) start [2024-12-18 23:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051439', 'tblTempUsageDetail_20' ) end [2024-12-18 23:14:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 23:14:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 23:14:22] Production.INFO: ==11386== Releasing lock... [2024-12-18 23:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 23:14:22] Production.INFO: 33.25 MB #Memory Used# [2024-12-18 23:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 20:15:05 [end_date_ymd] => 2024-12-18 23:15:05 [RateCDR] => 1 ) [2024-12-18 23:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 20:15:05' and `end` < '2024-12-18 23:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 23:15:17] Production.INFO: count ==796 [2024-12-18 23:15:17] Production.ERROR: pbx CDR StartTime 2024-12-18 20:15:05 - End Time 2024-12-18 23:15:05 [2024-12-18 23:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 23:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051444', 'tblTempUsageDetail_20' ) start [2024-12-18 23:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051444', 'tblTempUsageDetail_20' ) end [2024-12-18 23:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051444', 'tblTempVendorCDR_20' ) start [2024-12-18 23:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051444', 'tblTempVendorCDR_20' ) end [2024-12-18 23:15:17] Production.INFO: ProcessCDR(1,14051444,1,1,2) [2024-12-18 23:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051444', 'tblTempUsageDetail_20' ) start [2024-12-18 23:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051444', 'tblTempUsageDetail_20' ) end [2024-12-18 23:15:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 23:15:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 23:15:20] Production.INFO: ==11529== Releasing lock... [2024-12-18 23:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 23:15:20] Production.INFO: 33.25 MB #Memory Used# [2024-12-18 23:16:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 20:16:04 [end_date_ymd] => 2024-12-18 23:16:04 [RateCDR] => 1 ) [2024-12-18 23:16:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 20:16:04' and `end` < '2024-12-18 23:16:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 23:16:19] Production.INFO: count ==796 [2024-12-18 23:16:20] Production.ERROR: pbx CDR StartTime 2024-12-18 20:16:04 - End Time 2024-12-18 23:16:04 [2024-12-18 23:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 23:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051449', 'tblTempUsageDetail_20' ) start [2024-12-18 23:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051449', 'tblTempUsageDetail_20' ) end [2024-12-18 23:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051449', 'tblTempVendorCDR_20' ) start [2024-12-18 23:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051449', 'tblTempVendorCDR_20' ) end [2024-12-18 23:16:20] Production.INFO: ProcessCDR(1,14051449,1,1,2) [2024-12-18 23:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051449', 'tblTempUsageDetail_20' ) start [2024-12-18 23:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051449', 'tblTempUsageDetail_20' ) end [2024-12-18 23:16:23] Production.ERROR: pbx prc_insertCDR start [2024-12-18 23:16:23] Production.ERROR: pbx prc_insertCDR end [2024-12-18 23:16:23] Production.INFO: ==11706== Releasing lock... [2024-12-18 23:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 23:16:23] Production.INFO: 33.25 MB #Memory Used# [2024-12-18 23:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 20:17:05 [end_date_ymd] => 2024-12-18 23:17:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 20:17:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 23:17:17] Production.INFO: count ==792 [2024-12-18 23:17:17] Production.ERROR: pbx CDR StartTime 2024-12-18 20:17:05 - End Time 2024-12-18 23:17:05 [2024-12-18 23:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 23:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051454', 'tblTempUsageDetail_20' ) start [2024-12-18 23:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051454', 'tblTempUsageDetail_20' ) end [2024-12-18 23:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051454', 'tblTempVendorCDR_20' ) start [2024-12-18 23:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051454', 'tblTempVendorCDR_20' ) end [2024-12-18 23:17:17] Production.INFO: ProcessCDR(1,14051454,1,1,2) [2024-12-18 23:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051454', 'tblTempUsageDetail_20' ) start [2024-12-18 23:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051454', 'tblTempUsageDetail_20' ) end [2024-12-18 23:17:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 23:17:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 23:17:20] Production.INFO: ==11804== Releasing lock... [2024-12-18 23:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 23:17:20] Production.INFO: 33.25 MB #Memory Used# [2024-12-18 23:18:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 20:18:04 [end_date_ymd] => 2024-12-18 23:18:04 [RateCDR] => 1 ) [2024-12-18 23:18: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` >= '2024-12-18 20:18:04' and `end` < '2024-12-18 23:18: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 ,'') [2024-12-18 23:18:16] Production.INFO: count ==790 [2024-12-18 23:18:16] Production.ERROR: pbx CDR StartTime 2024-12-18 20:18:04 - End Time 2024-12-18 23:18:04 [2024-12-18 23:18:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 23:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051459', 'tblTempUsageDetail_20' ) start [2024-12-18 23:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051459', 'tblTempUsageDetail_20' ) end [2024-12-18 23:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051459', 'tblTempVendorCDR_20' ) start [2024-12-18 23:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051459', 'tblTempVendorCDR_20' ) end [2024-12-18 23:18:16] Production.INFO: ProcessCDR(1,14051459,1,1,2) [2024-12-18 23:18:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:18:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:18:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:18:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:18:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051459', 'tblTempUsageDetail_20' ) start [2024-12-18 23:18:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051459', 'tblTempUsageDetail_20' ) end [2024-12-18 23:18:19] Production.ERROR: pbx prc_insertCDR start [2024-12-18 23:18:19] Production.ERROR: pbx prc_insertCDR end [2024-12-18 23:18:19] Production.INFO: ==11896== Releasing lock... [2024-12-18 23:18:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 23:18:19] Production.INFO: 33.25 MB #Memory Used# [2024-12-18 23:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 20:19:05 [end_date_ymd] => 2024-12-18 23:19:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 20:19:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 23:19:17] Production.INFO: count ==789 [2024-12-18 23:19:17] Production.ERROR: pbx CDR StartTime 2024-12-18 20:19:05 - End Time 2024-12-18 23:19:05 [2024-12-18 23:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051464', 'tblTempUsageDetail_20' ) start [2024-12-18 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051464', 'tblTempUsageDetail_20' ) end [2024-12-18 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051464', 'tblTempVendorCDR_20' ) start [2024-12-18 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051464', 'tblTempVendorCDR_20' ) end [2024-12-18 23:19:17] Production.INFO: ProcessCDR(1,14051464,1,1,2) [2024-12-18 23:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051464', 'tblTempUsageDetail_20' ) start [2024-12-18 23:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051464', 'tblTempUsageDetail_20' ) end [2024-12-18 23:19:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 23:19:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 23:19:20] Production.INFO: ==11996== Releasing lock... [2024-12-18 23:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 23:19:20] Production.INFO: 33 MB #Memory Used# [2024-12-18 23:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 20:20:05 [end_date_ymd] => 2024-12-18 23:20:05 [RateCDR] => 1 ) [2024-12-18 23:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 20:20:05' and `end` < '2024-12-18 23:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 23:20:17] Production.INFO: count ==787 [2024-12-18 23:20:17] Production.ERROR: pbx CDR StartTime 2024-12-18 20:20:05 - End Time 2024-12-18 23:20:05 [2024-12-18 23:20:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 23:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051470', 'tblTempUsageDetail_20' ) start [2024-12-18 23:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051470', 'tblTempUsageDetail_20' ) end [2024-12-18 23:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051470', 'tblTempVendorCDR_20' ) start [2024-12-18 23:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051470', 'tblTempVendorCDR_20' ) end [2024-12-18 23:20:17] Production.INFO: ProcessCDR(1,14051470,1,1,2) [2024-12-18 23:20:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:20:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:20:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051470', 'tblTempUsageDetail_20' ) start [2024-12-18 23:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051470', 'tblTempUsageDetail_20' ) end [2024-12-18 23:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 23:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 23:20:21] Production.INFO: ==12089== Releasing lock... [2024-12-18 23:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 23:20:21] Production.INFO: 33 MB #Memory Used# [2024-12-18 23:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 20:21:05 [end_date_ymd] => 2024-12-18 23:21:05 [RateCDR] => 1 ) [2024-12-18 23:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 20:21:05' and `end` < '2024-12-18 23:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 23:21:17] Production.INFO: count ==795 [2024-12-18 23:21:17] Production.ERROR: pbx CDR StartTime 2024-12-18 20:21:05 - End Time 2024-12-18 23:21:05 [2024-12-18 23:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 23:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051475', 'tblTempUsageDetail_20' ) start [2024-12-18 23:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051475', 'tblTempUsageDetail_20' ) end [2024-12-18 23:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051475', 'tblTempVendorCDR_20' ) start [2024-12-18 23:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051475', 'tblTempVendorCDR_20' ) end [2024-12-18 23:21:17] Production.INFO: ProcessCDR(1,14051475,1,1,2) [2024-12-18 23:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051475', 'tblTempUsageDetail_20' ) start [2024-12-18 23:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051475', 'tblTempUsageDetail_20' ) end [2024-12-18 23:21:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 23:21:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 23:21:20] Production.INFO: ==12189== Releasing lock... [2024-12-18 23:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 23:21:20] Production.INFO: 33.25 MB #Memory Used# [2024-12-18 23:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 20:22:05 [end_date_ymd] => 2024-12-18 23:22:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 20:22:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 23:22:17] Production.INFO: count ==792 [2024-12-18 23:22:17] Production.ERROR: pbx CDR StartTime 2024-12-18 20:22:05 - End Time 2024-12-18 23:22:05 [2024-12-18 23:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 23:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051480', 'tblTempUsageDetail_20' ) start [2024-12-18 23:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051480', 'tblTempUsageDetail_20' ) end [2024-12-18 23:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051480', 'tblTempVendorCDR_20' ) start [2024-12-18 23:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051480', 'tblTempVendorCDR_20' ) end [2024-12-18 23:22:17] Production.INFO: ProcessCDR(1,14051480,1,1,2) [2024-12-18 23:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051480', 'tblTempUsageDetail_20' ) start [2024-12-18 23:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051480', 'tblTempUsageDetail_20' ) end [2024-12-18 23:22:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 23:22:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 23:22:20] Production.INFO: ==12284== Releasing lock... [2024-12-18 23:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 23:22:20] Production.INFO: 33.25 MB #Memory Used# [2024-12-18 23:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 20:23:05 [end_date_ymd] => 2024-12-18 23:23:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 20:23:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 23:23:17] Production.INFO: count ==790 [2024-12-18 23:23:17] Production.ERROR: pbx CDR StartTime 2024-12-18 20:23:05 - End Time 2024-12-18 23:23:05 [2024-12-18 23:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 23:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051485', 'tblTempUsageDetail_20' ) start [2024-12-18 23:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051485', 'tblTempUsageDetail_20' ) end [2024-12-18 23:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051485', 'tblTempVendorCDR_20' ) start [2024-12-18 23:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051485', 'tblTempVendorCDR_20' ) end [2024-12-18 23:23:17] Production.INFO: ProcessCDR(1,14051485,1,1,2) [2024-12-18 23:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051485', 'tblTempUsageDetail_20' ) start [2024-12-18 23:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051485', 'tblTempUsageDetail_20' ) end [2024-12-18 23:23:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 23:23:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 23:23:21] Production.INFO: ==12389== Releasing lock... [2024-12-18 23:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 23:23:21] Production.INFO: 33 MB #Memory Used# [2024-12-18 23:24:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 20:24:04 [end_date_ymd] => 2024-12-18 23:24:04 [RateCDR] => 1 ) [2024-12-18 23:24:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 20:24:04' and `end` < '2024-12-18 23:24:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 23:24:17] Production.INFO: count ==792 [2024-12-18 23:24:17] Production.ERROR: pbx CDR StartTime 2024-12-18 20:24:04 - End Time 2024-12-18 23:24:04 [2024-12-18 23:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 23:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051490', 'tblTempUsageDetail_20' ) start [2024-12-18 23:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051490', 'tblTempUsageDetail_20' ) end [2024-12-18 23:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051490', 'tblTempVendorCDR_20' ) start [2024-12-18 23:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051490', 'tblTempVendorCDR_20' ) end [2024-12-18 23:24:17] Production.INFO: ProcessCDR(1,14051490,1,1,2) [2024-12-18 23:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051490', 'tblTempUsageDetail_20' ) start [2024-12-18 23:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051490', 'tblTempUsageDetail_20' ) end [2024-12-18 23:24:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 23:24:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 23:24:20] Production.INFO: ==12482== Releasing lock... [2024-12-18 23:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 23:24:20] Production.INFO: 33.25 MB #Memory Used# [2024-12-18 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 20:25:05 [end_date_ymd] => 2024-12-18 23:25:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 20:25:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 23:25:17] Production.INFO: count ==791 [2024-12-18 23:25:17] Production.ERROR: pbx CDR StartTime 2024-12-18 20:25:05 - End Time 2024-12-18 23:25:05 [2024-12-18 23:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051495', 'tblTempUsageDetail_20' ) start [2024-12-18 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051495', 'tblTempUsageDetail_20' ) end [2024-12-18 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051495', 'tblTempVendorCDR_20' ) start [2024-12-18 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051495', 'tblTempVendorCDR_20' ) end [2024-12-18 23:25:17] Production.INFO: ProcessCDR(1,14051495,1,1,2) [2024-12-18 23:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051495', 'tblTempUsageDetail_20' ) start [2024-12-18 23:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051495', 'tblTempUsageDetail_20' ) end [2024-12-18 23:25:22] Production.ERROR: pbx prc_insertCDR start [2024-12-18 23:25:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 23:25:22] Production.INFO: ==12577== Releasing lock... [2024-12-18 23:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 23:25:22] Production.INFO: 33.25 MB #Memory Used# [2024-12-18 23:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 20:26:05 [end_date_ymd] => 2024-12-18 23:26:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 20:26:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 23:26:17] Production.INFO: count ==791 [2024-12-18 23:26:18] Production.ERROR: pbx CDR StartTime 2024-12-18 20:26:05 - End Time 2024-12-18 23:26:05 [2024-12-18 23:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051500', 'tblTempUsageDetail_20' ) start [2024-12-18 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051500', 'tblTempUsageDetail_20' ) end [2024-12-18 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051500', 'tblTempVendorCDR_20' ) start [2024-12-18 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051500', 'tblTempVendorCDR_20' ) end [2024-12-18 23:26:18] Production.INFO: ProcessCDR(1,14051500,1,1,2) [2024-12-18 23:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051500', 'tblTempUsageDetail_20' ) start [2024-12-18 23:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051500', 'tblTempUsageDetail_20' ) end [2024-12-18 23:26:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 23:26:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 23:26:21] Production.INFO: ==12678== Releasing lock... [2024-12-18 23:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 23:26:21] Production.INFO: 33.25 MB #Memory Used# [2024-12-18 23:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 20:27:05 [end_date_ymd] => 2024-12-18 23:27:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 20:27:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 23:27:18] Production.INFO: count ==790 [2024-12-18 23:27:18] Production.ERROR: pbx CDR StartTime 2024-12-18 20:27:05 - End Time 2024-12-18 23:27:05 [2024-12-18 23:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051505', 'tblTempUsageDetail_20' ) start [2024-12-18 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051505', 'tblTempUsageDetail_20' ) end [2024-12-18 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051505', 'tblTempVendorCDR_20' ) start [2024-12-18 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051505', 'tblTempVendorCDR_20' ) end [2024-12-18 23:27:18] Production.INFO: ProcessCDR(1,14051505,1,1,2) [2024-12-18 23:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051505', 'tblTempUsageDetail_20' ) start [2024-12-18 23:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051505', 'tblTempUsageDetail_20' ) end [2024-12-18 23:27:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 23:27:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 23:27:21] Production.INFO: ==12771== Releasing lock... [2024-12-18 23:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 23:27:21] Production.INFO: 33 MB #Memory Used# [2024-12-18 23:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 20:28:05 [end_date_ymd] => 2024-12-18 23:28:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 20:28:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 23:28:17] Production.INFO: count ==790 [2024-12-18 23:28:17] Production.ERROR: pbx CDR StartTime 2024-12-18 20:28:05 - End Time 2024-12-18 23:28:05 [2024-12-18 23:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 23:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051510', 'tblTempUsageDetail_20' ) start [2024-12-18 23:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051510', 'tblTempUsageDetail_20' ) end [2024-12-18 23:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051510', 'tblTempVendorCDR_20' ) start [2024-12-18 23:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051510', 'tblTempVendorCDR_20' ) end [2024-12-18 23:28:17] Production.INFO: ProcessCDR(1,14051510,1,1,2) [2024-12-18 23:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051510', 'tblTempUsageDetail_20' ) start [2024-12-18 23:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051510', 'tblTempUsageDetail_20' ) end [2024-12-18 23:28:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 23:28:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 23:28:21] Production.INFO: ==12864== Releasing lock... [2024-12-18 23:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 23:28:21] Production.INFO: 33 MB #Memory Used# [2024-12-18 23:29:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 20:29:04 [end_date_ymd] => 2024-12-18 23:29:04 [RateCDR] => 1 ) [2024-12-18 23:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 20:29:04' and `end` < '2024-12-18 23:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 23:29:17] Production.INFO: count ==787 [2024-12-18 23:29:17] Production.ERROR: pbx CDR StartTime 2024-12-18 20:29:04 - End Time 2024-12-18 23:29:04 [2024-12-18 23:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 23:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051515', 'tblTempUsageDetail_20' ) start [2024-12-18 23:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051515', 'tblTempUsageDetail_20' ) end [2024-12-18 23:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051515', 'tblTempVendorCDR_20' ) start [2024-12-18 23:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051515', 'tblTempVendorCDR_20' ) end [2024-12-18 23:29:17] Production.INFO: ProcessCDR(1,14051515,1,1,2) [2024-12-18 23:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051515', 'tblTempUsageDetail_20' ) start [2024-12-18 23:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051515', 'tblTempUsageDetail_20' ) end [2024-12-18 23:29:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 23:29:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 23:29:20] Production.INFO: ==12964== Releasing lock... [2024-12-18 23:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 23:29:20] Production.INFO: 33 MB #Memory Used# [2024-12-18 23:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 20:30:05 [end_date_ymd] => 2024-12-18 23:30:05 [RateCDR] => 1 ) [2024-12-18 23:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 20:30:05' and `end` < '2024-12-18 23:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 23:30:18] Production.INFO: count ==787 [2024-12-18 23:30:18] Production.ERROR: pbx CDR StartTime 2024-12-18 20:30:05 - End Time 2024-12-18 23:30:05 [2024-12-18 23:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051521', 'tblTempUsageDetail_20' ) start [2024-12-18 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051521', 'tblTempUsageDetail_20' ) end [2024-12-18 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051521', 'tblTempVendorCDR_20' ) start [2024-12-18 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051521', 'tblTempVendorCDR_20' ) end [2024-12-18 23:30:18] Production.INFO: ProcessCDR(1,14051521,1,1,2) [2024-12-18 23:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051521', 'tblTempUsageDetail_20' ) start [2024-12-18 23:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051521', 'tblTempUsageDetail_20' ) end [2024-12-18 23:30:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 23:30:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 23:30:21] Production.INFO: ==13061== Releasing lock... [2024-12-18 23:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 23:30:21] Production.INFO: 33 MB #Memory Used# [2024-12-18 23:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 20:31:04 [end_date_ymd] => 2024-12-18 23:31:04 [RateCDR] => 1 ) [2024-12-18 23:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 20:31:04' and `end` < '2024-12-18 23:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 23:31:16] Production.INFO: count ==766 [2024-12-18 23:31:16] Production.ERROR: pbx CDR StartTime 2024-12-18 20:31:04 - End Time 2024-12-18 23:31:04 [2024-12-18 23:31:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 23:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051526', 'tblTempUsageDetail_20' ) start [2024-12-18 23:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051526', 'tblTempUsageDetail_20' ) end [2024-12-18 23:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051526', 'tblTempVendorCDR_20' ) start [2024-12-18 23:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051526', 'tblTempVendorCDR_20' ) end [2024-12-18 23:31:16] Production.INFO: ProcessCDR(1,14051526,1,1,2) [2024-12-18 23:31:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051526', 'tblTempUsageDetail_20' ) start [2024-12-18 23:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051526', 'tblTempUsageDetail_20' ) end [2024-12-18 23:31:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 23:31:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 23:31:20] Production.INFO: ==13159== Releasing lock... [2024-12-18 23:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 23:31:20] Production.INFO: 33 MB #Memory Used# [2024-12-18 23:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 20:32:05 [end_date_ymd] => 2024-12-18 23:32:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 20:32:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 23:32:17] Production.INFO: count ==766 [2024-12-18 23:32:17] Production.ERROR: pbx CDR StartTime 2024-12-18 20:32:05 - End Time 2024-12-18 23:32:05 [2024-12-18 23:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 23:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051531', 'tblTempUsageDetail_20' ) start [2024-12-18 23:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051531', 'tblTempUsageDetail_20' ) end [2024-12-18 23:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051531', 'tblTempVendorCDR_20' ) start [2024-12-18 23:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051531', 'tblTempVendorCDR_20' ) end [2024-12-18 23:32:17] Production.INFO: ProcessCDR(1,14051531,1,1,2) [2024-12-18 23:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051531', 'tblTempUsageDetail_20' ) start [2024-12-18 23:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051531', 'tblTempUsageDetail_20' ) end [2024-12-18 23:32:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 23:32:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 23:32:20] Production.INFO: ==13293== Releasing lock... [2024-12-18 23:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 23:32:20] Production.INFO: 33 MB #Memory Used# [2024-12-18 23:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 20:33:04 [end_date_ymd] => 2024-12-18 23:33:04 [RateCDR] => 1 ) [2024-12-18 23:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 20:33:04' and `end` < '2024-12-18 23:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 23:33:16] Production.INFO: count ==765 [2024-12-18 23:33:16] Production.ERROR: pbx CDR StartTime 2024-12-18 20:33:04 - End Time 2024-12-18 23:33:04 [2024-12-18 23:33:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 23:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051536', 'tblTempUsageDetail_20' ) start [2024-12-18 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051536', 'tblTempUsageDetail_20' ) end [2024-12-18 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051536', 'tblTempVendorCDR_20' ) start [2024-12-18 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051536', 'tblTempVendorCDR_20' ) end [2024-12-18 23:33:17] Production.INFO: ProcessCDR(1,14051536,1,1,2) [2024-12-18 23:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:33:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:33:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051536', 'tblTempUsageDetail_20' ) start [2024-12-18 23:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051536', 'tblTempUsageDetail_20' ) end [2024-12-18 23:33:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 23:33:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 23:33:20] Production.INFO: ==13387== Releasing lock... [2024-12-18 23:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 23:33:20] Production.INFO: 33 MB #Memory Used# [2024-12-18 23:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 20:34:05 [end_date_ymd] => 2024-12-18 23:34:05 [RateCDR] => 1 ) [2024-12-18 23:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 20:34:05' and `end` < '2024-12-18 23:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 23:34:17] Production.INFO: count ==764 [2024-12-18 23:34:17] Production.ERROR: pbx CDR StartTime 2024-12-18 20:34:05 - End Time 2024-12-18 23:34:05 [2024-12-18 23:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 23:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051541', 'tblTempUsageDetail_20' ) start [2024-12-18 23:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051541', 'tblTempUsageDetail_20' ) end [2024-12-18 23:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051541', 'tblTempVendorCDR_20' ) start [2024-12-18 23:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051541', 'tblTempVendorCDR_20' ) end [2024-12-18 23:34:17] Production.INFO: ProcessCDR(1,14051541,1,1,2) [2024-12-18 23:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051541', 'tblTempUsageDetail_20' ) start [2024-12-18 23:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051541', 'tblTempUsageDetail_20' ) end [2024-12-18 23:34:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 23:34:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 23:34:20] Production.INFO: ==13489== Releasing lock... [2024-12-18 23:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 23:34:20] Production.INFO: 33 MB #Memory Used# [2024-12-18 23:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 20:35:04 [end_date_ymd] => 2024-12-18 23:35:04 [RateCDR] => 1 ) [2024-12-18 23:35: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` >= '2024-12-18 20:35:04' and `end` < '2024-12-18 23:35: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 ,'') [2024-12-18 23:35:16] Production.INFO: count ==764 [2024-12-18 23:35:16] Production.ERROR: pbx CDR StartTime 2024-12-18 20:35:04 - End Time 2024-12-18 23:35:04 [2024-12-18 23:35:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 23:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051546', 'tblTempUsageDetail_20' ) start [2024-12-18 23:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051546', 'tblTempUsageDetail_20' ) end [2024-12-18 23:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051546', 'tblTempVendorCDR_20' ) start [2024-12-18 23:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051546', 'tblTempVendorCDR_20' ) end [2024-12-18 23:35:16] Production.INFO: ProcessCDR(1,14051546,1,1,2) [2024-12-18 23:35:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:35:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:35:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:35:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:35:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051546', 'tblTempUsageDetail_20' ) start [2024-12-18 23:35:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051546', 'tblTempUsageDetail_20' ) end [2024-12-18 23:35:19] Production.ERROR: pbx prc_insertCDR start [2024-12-18 23:35:19] Production.ERROR: pbx prc_insertCDR end [2024-12-18 23:35:19] Production.INFO: ==13579== Releasing lock... [2024-12-18 23:35:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 23:35:19] Production.INFO: 33 MB #Memory Used# [2024-12-18 23:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 20:36:05 [end_date_ymd] => 2024-12-18 23:36:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 20:36:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 23:36:18] Production.INFO: count ==764 [2024-12-18 23:36:18] Production.ERROR: pbx CDR StartTime 2024-12-18 20:36:05 - End Time 2024-12-18 23:36:05 [2024-12-18 23:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051551', 'tblTempUsageDetail_20' ) start [2024-12-18 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051551', 'tblTempUsageDetail_20' ) end [2024-12-18 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051551', 'tblTempVendorCDR_20' ) start [2024-12-18 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051551', 'tblTempVendorCDR_20' ) end [2024-12-18 23:36:18] Production.INFO: ProcessCDR(1,14051551,1,1,2) [2024-12-18 23:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051551', 'tblTempUsageDetail_20' ) start [2024-12-18 23:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051551', 'tblTempUsageDetail_20' ) end [2024-12-18 23:36:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 23:36:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 23:36:21] Production.INFO: ==13674== Releasing lock... [2024-12-18 23:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 23:36:21] Production.INFO: 33 MB #Memory Used# [2024-12-18 23:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 20:37:05 [end_date_ymd] => 2024-12-18 23:37:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 20:37:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 23:37:17] Production.INFO: count ==763 [2024-12-18 23:37:17] Production.ERROR: pbx CDR StartTime 2024-12-18 20:37:05 - End Time 2024-12-18 23:37:05 [2024-12-18 23:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 23:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051556', 'tblTempUsageDetail_20' ) start [2024-12-18 23:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051556', 'tblTempUsageDetail_20' ) end [2024-12-18 23:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051556', 'tblTempVendorCDR_20' ) start [2024-12-18 23:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051556', 'tblTempVendorCDR_20' ) end [2024-12-18 23:37:17] Production.INFO: ProcessCDR(1,14051556,1,1,2) [2024-12-18 23:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051556', 'tblTempUsageDetail_20' ) start [2024-12-18 23:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051556', 'tblTempUsageDetail_20' ) end [2024-12-18 23:37:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 23:37:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 23:37:20] Production.INFO: ==13776== Releasing lock... [2024-12-18 23:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 23:37:20] Production.INFO: 33 MB #Memory Used# [2024-12-18 23:38:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 20:38:04 [end_date_ymd] => 2024-12-18 23:38:04 [RateCDR] => 1 ) [2024-12-18 23:38:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 20:38:04' and `end` < '2024-12-18 23:38:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 23:38:17] Production.INFO: count ==756 [2024-12-18 23:38:17] Production.ERROR: pbx CDR StartTime 2024-12-18 20:38:04 - End Time 2024-12-18 23:38:04 [2024-12-18 23:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 23:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051561', 'tblTempUsageDetail_20' ) start [2024-12-18 23:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051561', 'tblTempUsageDetail_20' ) end [2024-12-18 23:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051561', 'tblTempVendorCDR_20' ) start [2024-12-18 23:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051561', 'tblTempVendorCDR_20' ) end [2024-12-18 23:38:17] Production.INFO: ProcessCDR(1,14051561,1,1,2) [2024-12-18 23:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051561', 'tblTempUsageDetail_20' ) start [2024-12-18 23:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051561', 'tblTempUsageDetail_20' ) end [2024-12-18 23:38:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 23:38:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 23:38:20] Production.INFO: ==13870== Releasing lock... [2024-12-18 23:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 23:38:20] Production.INFO: 33 MB #Memory Used# [2024-12-18 23:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 20:39:05 [end_date_ymd] => 2024-12-18 23:39:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 20:39:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 23:39:18] Production.INFO: count ==756 [2024-12-18 23:39:18] Production.ERROR: pbx CDR StartTime 2024-12-18 20:39:05 - End Time 2024-12-18 23:39:05 [2024-12-18 23:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051566', 'tblTempUsageDetail_20' ) start [2024-12-18 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051566', 'tblTempUsageDetail_20' ) end [2024-12-18 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051566', 'tblTempVendorCDR_20' ) start [2024-12-18 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051566', 'tblTempVendorCDR_20' ) end [2024-12-18 23:39:18] Production.INFO: ProcessCDR(1,14051566,1,1,2) [2024-12-18 23:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051566', 'tblTempUsageDetail_20' ) start [2024-12-18 23:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051566', 'tblTempUsageDetail_20' ) end [2024-12-18 23:39:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 23:39:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 23:39:21] Production.INFO: ==13969== Releasing lock... [2024-12-18 23:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 23:39:21] Production.INFO: 33 MB #Memory Used# [2024-12-18 23:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 20:40:05 [end_date_ymd] => 2024-12-18 23:40:05 [RateCDR] => 1 ) [2024-12-18 23:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 20:40:05' and `end` < '2024-12-18 23:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 23:40:17] Production.INFO: count ==759 [2024-12-18 23:40:17] Production.ERROR: pbx CDR StartTime 2024-12-18 20:40:05 - End Time 2024-12-18 23:40:05 [2024-12-18 23:40:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 23:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051572', 'tblTempUsageDetail_20' ) start [2024-12-18 23:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051572', 'tblTempUsageDetail_20' ) end [2024-12-18 23:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051572', 'tblTempVendorCDR_20' ) start [2024-12-18 23:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051572', 'tblTempVendorCDR_20' ) end [2024-12-18 23:40:17] Production.INFO: ProcessCDR(1,14051572,1,1,2) [2024-12-18 23:40:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051572', 'tblTempUsageDetail_20' ) start [2024-12-18 23:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051572', 'tblTempUsageDetail_20' ) end [2024-12-18 23:40:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 23:40:22] Production.ERROR: pbx prc_insertCDR end [2024-12-18 23:40:22] Production.INFO: ==14068== Releasing lock... [2024-12-18 23:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 23:40:22] Production.INFO: 33 MB #Memory Used# [2024-12-18 23:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 20:41:05 [end_date_ymd] => 2024-12-18 23:41:05 [RateCDR] => 1 ) [2024-12-18 23:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 20:41:05' and `end` < '2024-12-18 23:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 23:41:17] Production.INFO: count ==747 [2024-12-18 23:41:17] Production.ERROR: pbx CDR StartTime 2024-12-18 20:41:05 - End Time 2024-12-18 23:41:05 [2024-12-18 23:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 23:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051577', 'tblTempUsageDetail_20' ) start [2024-12-18 23:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051577', 'tblTempUsageDetail_20' ) end [2024-12-18 23:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051577', 'tblTempVendorCDR_20' ) start [2024-12-18 23:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051577', 'tblTempVendorCDR_20' ) end [2024-12-18 23:41:17] Production.INFO: ProcessCDR(1,14051577,1,1,2) [2024-12-18 23:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051577', 'tblTempUsageDetail_20' ) start [2024-12-18 23:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051577', 'tblTempUsageDetail_20' ) end [2024-12-18 23:41:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 23:41:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 23:41:20] Production.INFO: ==14167== Releasing lock... [2024-12-18 23:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 23:41:20] Production.INFO: 32.75 MB #Memory Used# [2024-12-18 23:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 20:42:05 [end_date_ymd] => 2024-12-18 23:42:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 20:42:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 23:42:17] Production.INFO: count ==746 [2024-12-18 23:42:17] Production.ERROR: pbx CDR StartTime 2024-12-18 20:42:05 - End Time 2024-12-18 23:42:05 [2024-12-18 23:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 23:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051582', 'tblTempUsageDetail_20' ) start [2024-12-18 23:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051582', 'tblTempUsageDetail_20' ) end [2024-12-18 23:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051582', 'tblTempVendorCDR_20' ) start [2024-12-18 23:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051582', 'tblTempVendorCDR_20' ) end [2024-12-18 23:42:17] Production.INFO: ProcessCDR(1,14051582,1,1,2) [2024-12-18 23:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051582', 'tblTempUsageDetail_20' ) start [2024-12-18 23:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051582', 'tblTempUsageDetail_20' ) end [2024-12-18 23:42:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 23:42:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 23:42:21] Production.INFO: ==14260== Releasing lock... [2024-12-18 23:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 23:42:21] Production.INFO: 32.75 MB #Memory Used# [2024-12-18 23:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 20:43:04 [end_date_ymd] => 2024-12-18 23:43:04 [RateCDR] => 1 ) [2024-12-18 23:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 20:43:04' and `end` < '2024-12-18 23:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 23:43:16] Production.INFO: count ==744 [2024-12-18 23:43:16] Production.ERROR: pbx CDR StartTime 2024-12-18 20:43:04 - End Time 2024-12-18 23:43:04 [2024-12-18 23:43:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 23:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051587', 'tblTempUsageDetail_20' ) start [2024-12-18 23:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051587', 'tblTempUsageDetail_20' ) end [2024-12-18 23:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051587', 'tblTempVendorCDR_20' ) start [2024-12-18 23:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051587', 'tblTempVendorCDR_20' ) end [2024-12-18 23:43:16] Production.INFO: ProcessCDR(1,14051587,1,1,2) [2024-12-18 23:43:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:43:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:43:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051587', 'tblTempUsageDetail_20' ) start [2024-12-18 23:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051587', 'tblTempUsageDetail_20' ) end [2024-12-18 23:43:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 23:43:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 23:43:20] Production.INFO: ==14351== Releasing lock... [2024-12-18 23:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 23:43:20] Production.INFO: 33 MB #Memory Used# [2024-12-18 23:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 20:44:05 [end_date_ymd] => 2024-12-18 23:44:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 20:44:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 23:44:17] Production.INFO: count ==742 [2024-12-18 23:44:17] Production.ERROR: pbx CDR StartTime 2024-12-18 20:44:05 - End Time 2024-12-18 23:44:05 [2024-12-18 23:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 23:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051592', 'tblTempUsageDetail_20' ) start [2024-12-18 23:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051592', 'tblTempUsageDetail_20' ) end [2024-12-18 23:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051592', 'tblTempVendorCDR_20' ) start [2024-12-18 23:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051592', 'tblTempVendorCDR_20' ) end [2024-12-18 23:44:17] Production.INFO: ProcessCDR(1,14051592,1,1,2) [2024-12-18 23:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051592', 'tblTempUsageDetail_20' ) start [2024-12-18 23:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051592', 'tblTempUsageDetail_20' ) end [2024-12-18 23:44:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 23:44:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 23:44:20] Production.INFO: ==14439== Releasing lock... [2024-12-18 23:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 23:44:20] Production.INFO: 33 MB #Memory Used# [2024-12-18 23:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 20:45:04 [end_date_ymd] => 2024-12-18 23:45:04 [RateCDR] => 1 ) [2024-12-18 23:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 20:45:04' and `end` < '2024-12-18 23:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 23:45:17] Production.INFO: count ==731 [2024-12-18 23:45:17] Production.ERROR: pbx CDR StartTime 2024-12-18 20:45:04 - End Time 2024-12-18 23:45:04 [2024-12-18 23:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051597', 'tblTempUsageDetail_20' ) start [2024-12-18 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051597', 'tblTempUsageDetail_20' ) end [2024-12-18 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051597', 'tblTempVendorCDR_20' ) start [2024-12-18 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051597', 'tblTempVendorCDR_20' ) end [2024-12-18 23:45:17] Production.INFO: ProcessCDR(1,14051597,1,1,2) [2024-12-18 23:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051597', 'tblTempUsageDetail_20' ) start [2024-12-18 23:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051597', 'tblTempUsageDetail_20' ) end [2024-12-18 23:45:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 23:45:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 23:45:20] Production.INFO: ==14526== Releasing lock... [2024-12-18 23:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 23:45:20] Production.INFO: 32.75 MB #Memory Used# [2024-12-18 23:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 20:46:05 [end_date_ymd] => 2024-12-18 23:46:05 [RateCDR] => 1 ) [2024-12-18 23:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 20:46:05' and `end` < '2024-12-18 23:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 23:46:17] Production.INFO: count ==731 [2024-12-18 23:46:17] Production.ERROR: pbx CDR StartTime 2024-12-18 20:46:05 - End Time 2024-12-18 23:46:05 [2024-12-18 23:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 23:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051602', 'tblTempUsageDetail_20' ) start [2024-12-18 23:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051602', 'tblTempUsageDetail_20' ) end [2024-12-18 23:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051602', 'tblTempVendorCDR_20' ) start [2024-12-18 23:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051602', 'tblTempVendorCDR_20' ) end [2024-12-18 23:46:17] Production.INFO: ProcessCDR(1,14051602,1,1,2) [2024-12-18 23:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051602', 'tblTempUsageDetail_20' ) start [2024-12-18 23:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051602', 'tblTempUsageDetail_20' ) end [2024-12-18 23:46:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 23:46:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 23:46:20] Production.INFO: ==14620== Releasing lock... [2024-12-18 23:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 23:46:20] Production.INFO: 32.75 MB #Memory Used# [2024-12-18 23:47:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 20:47:04 [end_date_ymd] => 2024-12-18 23:47:04 [RateCDR] => 1 ) [2024-12-18 23:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 20:47:04' and `end` < '2024-12-18 23:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 23:47:16] Production.INFO: count ==729 [2024-12-18 23:47:16] Production.ERROR: pbx CDR StartTime 2024-12-18 20:47:04 - End Time 2024-12-18 23:47:04 [2024-12-18 23:47:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 23:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051607', 'tblTempUsageDetail_20' ) start [2024-12-18 23:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051607', 'tblTempUsageDetail_20' ) end [2024-12-18 23:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051607', 'tblTempVendorCDR_20' ) start [2024-12-18 23:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051607', 'tblTempVendorCDR_20' ) end [2024-12-18 23:47:17] Production.INFO: ProcessCDR(1,14051607,1,1,2) [2024-12-18 23:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051607', 'tblTempUsageDetail_20' ) start [2024-12-18 23:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051607', 'tblTempUsageDetail_20' ) end [2024-12-18 23:47:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 23:47:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 23:47:20] Production.INFO: ==14745== Releasing lock... [2024-12-18 23:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 23:47:20] Production.INFO: 32.75 MB #Memory Used# [2024-12-18 23:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 20:48:05 [end_date_ymd] => 2024-12-18 23:48:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 20:48:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 23:48:17] Production.INFO: count ==730 [2024-12-18 23:48:17] Production.ERROR: pbx CDR StartTime 2024-12-18 20:48:05 - End Time 2024-12-18 23:48:05 [2024-12-18 23:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 23:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051612', 'tblTempUsageDetail_20' ) start [2024-12-18 23:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051612', 'tblTempUsageDetail_20' ) end [2024-12-18 23:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051612', 'tblTempVendorCDR_20' ) start [2024-12-18 23:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051612', 'tblTempVendorCDR_20' ) end [2024-12-18 23:48:17] Production.INFO: ProcessCDR(1,14051612,1,1,2) [2024-12-18 23:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051612', 'tblTempUsageDetail_20' ) start [2024-12-18 23:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051612', 'tblTempUsageDetail_20' ) end [2024-12-18 23:48:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 23:48:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 23:48:20] Production.INFO: ==14837== Releasing lock... [2024-12-18 23:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 23:48:20] Production.INFO: 32.75 MB #Memory Used# [2024-12-18 23:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 20:49:04 [end_date_ymd] => 2024-12-18 23:49:04 [RateCDR] => 1 ) [2024-12-18 23:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 20:49:04' and `end` < '2024-12-18 23:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 23:49:17] Production.INFO: count ==722 [2024-12-18 23:49:17] Production.ERROR: pbx CDR StartTime 2024-12-18 20:49:04 - End Time 2024-12-18 23:49:04 [2024-12-18 23:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 23:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051617', 'tblTempUsageDetail_20' ) start [2024-12-18 23:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051617', 'tblTempUsageDetail_20' ) end [2024-12-18 23:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051617', 'tblTempVendorCDR_20' ) start [2024-12-18 23:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051617', 'tblTempVendorCDR_20' ) end [2024-12-18 23:49:17] Production.INFO: ProcessCDR(1,14051617,1,1,2) [2024-12-18 23:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051617', 'tblTempUsageDetail_20' ) start [2024-12-18 23:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051617', 'tblTempUsageDetail_20' ) end [2024-12-18 23:49:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 23:49:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 23:49:21] Production.INFO: ==14926== Releasing lock... [2024-12-18 23:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 23:49:21] Production.INFO: 32.75 MB #Memory Used# [2024-12-18 23:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 20:50:05 [end_date_ymd] => 2024-12-18 23:50:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 20:50:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 23:50:17] Production.INFO: count ==718 [2024-12-18 23:50:18] Production.ERROR: pbx CDR StartTime 2024-12-18 20:50:05 - End Time 2024-12-18 23:50:05 [2024-12-18 23:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051623', 'tblTempUsageDetail_20' ) start [2024-12-18 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051623', 'tblTempUsageDetail_20' ) end [2024-12-18 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051623', 'tblTempVendorCDR_20' ) start [2024-12-18 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051623', 'tblTempVendorCDR_20' ) end [2024-12-18 23:50:18] Production.INFO: ProcessCDR(1,14051623,1,1,2) [2024-12-18 23:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:50:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:50:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:50:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051623', 'tblTempUsageDetail_20' ) start [2024-12-18 23:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051623', 'tblTempUsageDetail_20' ) end [2024-12-18 23:50:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 23:50:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 23:50:20] Production.INFO: ==15018== Releasing lock... [2024-12-18 23:50:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 23:50:20] Production.INFO: 32.75 MB #Memory Used# [2024-12-18 23:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 20:51:05 [end_date_ymd] => 2024-12-18 23:51:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 20:51:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 23:51:18] Production.INFO: count ==665 [2024-12-18 23:51:18] Production.ERROR: pbx CDR StartTime 2024-12-18 20:51:05 - End Time 2024-12-18 23:51:05 [2024-12-18 23:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051628', 'tblTempUsageDetail_20' ) start [2024-12-18 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051628', 'tblTempUsageDetail_20' ) end [2024-12-18 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051628', 'tblTempVendorCDR_20' ) start [2024-12-18 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051628', 'tblTempVendorCDR_20' ) end [2024-12-18 23:51:18] Production.INFO: ProcessCDR(1,14051628,1,1,2) [2024-12-18 23:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051628', 'tblTempUsageDetail_20' ) start [2024-12-18 23:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051628', 'tblTempUsageDetail_20' ) end [2024-12-18 23:51:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 23:51:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 23:51:21] Production.INFO: ==15106== Releasing lock... [2024-12-18 23:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 23:51:21] Production.INFO: 32.25 MB #Memory Used# [2024-12-18 23:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 20:52:04 [end_date_ymd] => 2024-12-18 23:52:04 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 20:52:04' and `end` < '2024-12-18 23:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 23:52:17] Production.INFO: count ==669 [2024-12-18 23:52:17] Production.ERROR: pbx CDR StartTime 2024-12-18 20:52:04 - End Time 2024-12-18 23:52:04 [2024-12-18 23:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 23:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051633', 'tblTempUsageDetail_20' ) start [2024-12-18 23:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051633', 'tblTempUsageDetail_20' ) end [2024-12-18 23:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051633', 'tblTempVendorCDR_20' ) start [2024-12-18 23:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051633', 'tblTempVendorCDR_20' ) end [2024-12-18 23:52:17] Production.INFO: ProcessCDR(1,14051633,1,1,2) [2024-12-18 23:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051633', 'tblTempUsageDetail_20' ) start [2024-12-18 23:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051633', 'tblTempUsageDetail_20' ) end [2024-12-18 23:52:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 23:52:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 23:52:21] Production.INFO: ==15196== Releasing lock... [2024-12-18 23:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 23:52:21] Production.INFO: 32.5 MB #Memory Used# [2024-12-18 23:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 20:53:05 [end_date_ymd] => 2024-12-18 23:53:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 20:53:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 23:53:18] Production.INFO: count ==669 [2024-12-18 23:53:18] Production.ERROR: pbx CDR StartTime 2024-12-18 20:53:05 - End Time 2024-12-18 23:53:05 [2024-12-18 23:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051638', 'tblTempUsageDetail_20' ) start [2024-12-18 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051638', 'tblTempUsageDetail_20' ) end [2024-12-18 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051638', 'tblTempVendorCDR_20' ) start [2024-12-18 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051638', 'tblTempVendorCDR_20' ) end [2024-12-18 23:53:18] Production.INFO: ProcessCDR(1,14051638,1,1,2) [2024-12-18 23:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051638', 'tblTempUsageDetail_20' ) start [2024-12-18 23:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051638', 'tblTempUsageDetail_20' ) end [2024-12-18 23:53:23] Production.ERROR: pbx prc_insertCDR start [2024-12-18 23:53:23] Production.ERROR: pbx prc_insertCDR end [2024-12-18 23:53:23] Production.INFO: ==15283== Releasing lock... [2024-12-18 23:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 23:53:23] Production.INFO: 32.5 MB #Memory Used# [2024-12-18 23:54:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 20:54:04 [end_date_ymd] => 2024-12-18 23:54:04 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 20:54:04' and `end` < '2024-12-18 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 ,'') [2024-12-18 23:54:16] Production.INFO: count ==669 [2024-12-18 23:54:16] Production.ERROR: pbx CDR StartTime 2024-12-18 20:54:04 - End Time 2024-12-18 23:54:04 [2024-12-18 23:54:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 23:54:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051643', 'tblTempUsageDetail_20' ) start [2024-12-18 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051643', 'tblTempUsageDetail_20' ) end [2024-12-18 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051643', 'tblTempVendorCDR_20' ) start [2024-12-18 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051643', 'tblTempVendorCDR_20' ) end [2024-12-18 23:54:17] Production.INFO: ProcessCDR(1,14051643,1,1,2) [2024-12-18 23:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:54:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:54:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051643', 'tblTempUsageDetail_20' ) start [2024-12-18 23:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051643', 'tblTempUsageDetail_20' ) end [2024-12-18 23:54:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 23:54:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 23:54:20] Production.INFO: ==15370== Releasing lock... [2024-12-18 23:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 23:54:20] Production.INFO: 32.5 MB #Memory Used# [2024-12-18 23:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 20:55:05 [end_date_ymd] => 2024-12-18 23:55:05 [RateCDR] => 1 ) [2024-12-18 23:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 20:55:05' and `end` < '2024-12-18 23:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 23:55:17] Production.INFO: count ==669 [2024-12-18 23:55:17] Production.ERROR: pbx CDR StartTime 2024-12-18 20:55:05 - End Time 2024-12-18 23:55:05 [2024-12-18 23:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051648', 'tblTempUsageDetail_20' ) start [2024-12-18 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051648', 'tblTempUsageDetail_20' ) end [2024-12-18 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051648', 'tblTempVendorCDR_20' ) start [2024-12-18 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051648', 'tblTempVendorCDR_20' ) end [2024-12-18 23:55:17] Production.INFO: ProcessCDR(1,14051648,1,1,2) [2024-12-18 23:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051648', 'tblTempUsageDetail_20' ) start [2024-12-18 23:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051648', 'tblTempUsageDetail_20' ) end [2024-12-18 23:55:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 23:55:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 23:55:20] Production.INFO: ==15462== Releasing lock... [2024-12-18 23:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 23:55:20] Production.INFO: 32.5 MB #Memory Used# [2024-12-18 23:56:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 20:56:04 [end_date_ymd] => 2024-12-18 23:56:04 [RateCDR] => 1 ) [2024-12-18 23:56:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 20:56:04' and `end` < '2024-12-18 23:56:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 23:56:17] Production.INFO: count ==669 [2024-12-18 23:56:17] Production.ERROR: pbx CDR StartTime 2024-12-18 20:56:04 - End Time 2024-12-18 23:56:04 [2024-12-18 23:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 23:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051653', 'tblTempUsageDetail_20' ) start [2024-12-18 23:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051653', 'tblTempUsageDetail_20' ) end [2024-12-18 23:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051653', 'tblTempVendorCDR_20' ) start [2024-12-18 23:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051653', 'tblTempVendorCDR_20' ) end [2024-12-18 23:56:17] Production.INFO: ProcessCDR(1,14051653,1,1,2) [2024-12-18 23:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051653', 'tblTempUsageDetail_20' ) start [2024-12-18 23:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051653', 'tblTempUsageDetail_20' ) end [2024-12-18 23:56:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 23:56:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 23:56:20] Production.INFO: ==15549== Releasing lock... [2024-12-18 23:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 23:56:20] Production.INFO: 32.5 MB #Memory Used# [2024-12-18 23:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 20:57:05 [end_date_ymd] => 2024-12-18 23:57:05 [RateCDR] => 1 ) [2024-12-18 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` >= '2024-12-18 20:57:05' and `end` < '2024-12-18 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 ,'') [2024-12-18 23:57:17] Production.INFO: count ==670 [2024-12-18 23:57:17] Production.ERROR: pbx CDR StartTime 2024-12-18 20:57:05 - End Time 2024-12-18 23:57:05 [2024-12-18 23:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 23:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051658', 'tblTempUsageDetail_20' ) start [2024-12-18 23:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051658', 'tblTempUsageDetail_20' ) end [2024-12-18 23:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051658', 'tblTempVendorCDR_20' ) start [2024-12-18 23:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051658', 'tblTempVendorCDR_20' ) end [2024-12-18 23:57:17] Production.INFO: ProcessCDR(1,14051658,1,1,2) [2024-12-18 23:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051658', 'tblTempUsageDetail_20' ) start [2024-12-18 23:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051658', 'tblTempUsageDetail_20' ) end [2024-12-18 23:57:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 23:57:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 23:57:21] Production.INFO: ==15639== Releasing lock... [2024-12-18 23:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 23:57:21] Production.INFO: 32.5 MB #Memory Used# [2024-12-18 23:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 20:58:05 [end_date_ymd] => 2024-12-18 23:58:05 [RateCDR] => 1 ) [2024-12-18 23:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 20:58:05' and `end` < '2024-12-18 23:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 23:58:17] Production.INFO: count ==669 [2024-12-18 23:58:17] Production.ERROR: pbx CDR StartTime 2024-12-18 20:58:05 - End Time 2024-12-18 23:58:05 [2024-12-18 23:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 23:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051663', 'tblTempUsageDetail_20' ) start [2024-12-18 23:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051663', 'tblTempUsageDetail_20' ) end [2024-12-18 23:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051663', 'tblTempVendorCDR_20' ) start [2024-12-18 23:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051663', 'tblTempVendorCDR_20' ) end [2024-12-18 23:58:17] Production.INFO: ProcessCDR(1,14051663,1,1,2) [2024-12-18 23:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051663', 'tblTempUsageDetail_20' ) start [2024-12-18 23:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051663', 'tblTempUsageDetail_20' ) end [2024-12-18 23:58:21] Production.ERROR: pbx prc_insertCDR start [2024-12-18 23:58:21] Production.ERROR: pbx prc_insertCDR end [2024-12-18 23:58:21] Production.INFO: ==15725== Releasing lock... [2024-12-18 23:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 23:58:21] Production.INFO: 32.5 MB #Memory Used# [2024-12-18 23:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 20:59:04 [end_date_ymd] => 2024-12-18 23:59:04 [RateCDR] => 1 ) [2024-12-18 23:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 20:59:04' and `end` < '2024-12-18 23:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-18 23:59:17] Production.INFO: count ==668 [2024-12-18 23:59:17] Production.ERROR: pbx CDR StartTime 2024-12-18 20:59:04 - End Time 2024-12-18 23:59:04 [2024-12-18 23:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-18 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051668', 'tblTempUsageDetail_20' ) start [2024-12-18 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051668', 'tblTempUsageDetail_20' ) end [2024-12-18 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051668', 'tblTempVendorCDR_20' ) start [2024-12-18 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051668', 'tblTempVendorCDR_20' ) end [2024-12-18 23:59:17] Production.INFO: ProcessCDR(1,14051668,1,1,2) [2024-12-18 23:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-18 23:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-18 23:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051668', 'tblTempUsageDetail_20' ) start [2024-12-18 23:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051668', 'tblTempUsageDetail_20' ) end [2024-12-18 23:59:20] Production.ERROR: pbx prc_insertCDR start [2024-12-18 23:59:20] Production.ERROR: pbx prc_insertCDR end [2024-12-18 23:59:20] Production.INFO: ==15812== Releasing lock... [2024-12-18 23:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-18 23:59:20] Production.INFO: 32.5 MB #Memory Used#